togiftcardfromgroup.html
7.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="format-detection" content="telephone=no" />
<title>您的好友赠送您- {$tpshop_config['shop_info_store_title']}</title>
<link rel="stylesheet" href="__STATIC__/css/giftuser/common_new.css?v3" />
<link rel="stylesheet" href="__STATIC__/css/giftuser/receive_gift_new.css?v3" />
<link rel="stylesheet" href="__STATIC__/css/giftuser/xinyi/css/xinyi.css" />
</head>
<body>
<div id="win" class="win_none">
<div class="tips"></div>
</div>
<div class="layout card">
<div class="stage">
<!--赠言start!-->
<div class="msg">一点心意,希望您喜欢!</div>
<div class="scenegoods">
<div class="scenemsgvoice">
<span class="rotate"></span>
<div class="layoutscene">
</div>
</div>
<!--商品图start!-->
<div class="layoutpic">
<span class="rotate"></span>
<img src="http://youzhipai.b0.upaiyun.com/uploads/pic/12/1512625394788.jpeg" />
</div>
<!--商品图end!-->
</div>
</div>
<div class="layout_gift">
<div>
<h3>您的好友赠送您</h3>
<div>
<span class="giftlist">
<i class="child">
<i>
<i>美国进口卡富芮氏全脂巴氏鲜牛奶 355ml</i>
<i>X1</i>
</i>
</i>
</span>
</div>
</div>
</div>
<div class="btn_b donation">
<a class="btn" href="/warehouse/receiveGiftFormGroup/GC1520924474092MznW/2?isAnonymous=0">立即领取</a>
<a class="btn" id="shareToOtherFromShoppingCart" href="javascript:void(0);">转赠他人</a>
<input type="hidden" id="giftCode" value="GC1520924474092MznW" />
</div>
<div class="prompt">
为保障隐私,收礼人地址信息不会透露给送礼人。
</div>
<!-- #BeginLibraryItem "/Library/copyright.lbi" -->
<!-- #EndLibraryItem -->
</div>
</body>
<input type="hidden" id="title" value="Season送*nin*份礼品【卡富芮氏巴氏鲜奶355ml】1份" />
<input type="hidden" id="desc" value="快来填写收货地址完成领取吧!" />
<input type="hidden" id="link" value="https://weixin.youzhipai.cn/warehouse/newShareRecieveLink/" />
<input type="hidden" id="imgUrl" value="http://other.youzhipai.cn/staticImg/box.png" />
<input type="hidden" id="recFlag" value="2" />
<input type="hidden" id="sid" value="12" />
<input type="hidden" id="isAnonymous" value="0" />
<input type="hidden" id="fromOpenId" value="ofj4bwMF2M6c1wX7TSqGpxPVkagM" />
<input type="hidden" id="sceneHtml" value="<div class="xinyi">
<div class="box2"></div>
<div class="box"></div>
<div class="flower"></div>
<div class="chestnut"></div>
<div class="envelope">
<ul>
<li></li>
<li></li>
</ul>
</div>
<div class="fireworks"></div>
<div class="fireworks2"></div>
</div>" />
<script src="__STATIC__/js/jquery.js" type="text/javascript"></script>
<script src="__STATIC__/giftuser/js/fastclick.js" type="text/javascript"></script>
<div>
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="__STATIC__/giftuser/js/wechat_common.js"></script>
</div>
<script src="__STATIC__/giftuser/js/redirect_url_handle.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
$(function(){
var sceneHtml = $("#sceneHtml").val();
if(sceneHtml){
$('.layoutscene').html(sceneHtml);
}
$('#shareToOther').on('click',function(){
$("#win").attr("class","win");
var shareObject = {
shareTitle: $("#title").val(),
shareDesc: $("#desc").val(),
shareLink: $("#link").url_handle()+$("#recCode").val()+"/"+$("#recFlag").val()+"/1"+"?sceneId=0&isAnonymous=1&fromOpenId="+$("#fromOpenId").val(),
shareImgUrl: $("#imgUrl").val(),
shareType: 'link',
successCallback: function () {
$(".win").attr("class","win_none");
},
cancelCallback: function () {
$(".win").attr("class","win_none");
}
};
wechat_common.wechat_share_app_message(shareObject);
});
$('#shareToOtherFromShoppingCart').on('click',function(){
$("#win").attr("class","win");
var shareObject = {
shareTitle: $("#title").val().replace("*nin*","您1"),
shareDesc: $("#desc").val(),
shareLink: $("#link").url_handle()+$("#giftCode").val()+"/"+$("#recFlag").val()+"/2"+"?sceneId=0&isAnonymous=1&fromOpenId="+$("#fromOpenId").val(),
shareImgUrl: $("#imgUrl").val(),
shareType: 'link',
successCallback: function () {
$(".win").attr("class","win_none");
},
cancelCallback: function () {
$(".win").attr("class","win_none");
}
};
wechat_common.wechat_share_app_message(shareObject);
})
$("body").on('click','.win',function(){
$(this).attr("class","win_none");
});
})
/*]]>*/
//
$(function($) {
var appHeight = $(window).height();
$(".layout").css({
"min-height" : appHeight
});
//定时播放场景动画
setTimeout(function() {
$(".layoutscene *").show();
}, 1000)
//礼物超过2件折叠
var childlength=$(".giftlist > i").children("i").length;
if(childlength>2) {
$(".giftlist").addClass("More");
$(".giftlist").on("click",function(e){
$(".giftlist").toggleClass("fold")
});
}
//翻转
var goodspicnum=$(".scenegoods").find(".layoutpic").length;
if(goodspicnum==1) {
$(".scenegoods").addClass("flip");
$(".scenegoods").css("animation-delay","5s");
$(".voice").on("click", function(e) {
$(".scenegoods").removeClass("flip");
$(".scenegoods").removeAttr("style");
});
$(".layoutpic").on("click",function(e){
$(".scenegoods").removeClass("flip");
$(".scenegoods").removeAttr("style");
$(".scenegoods").addClass("flip2");
});
$(".scenemsgvoice").on("click",function(e){
$(".scenegoods").removeClass("flip2");
$(".scenegoods").addClass("flip");
});
} else {return false}
})
</script>
<script src="__STATIC__/giftuser/js/aboutOpenId.js" type="text/javascript"></script>
<script src="__STATIC__/giftuser/js/voice.js" type="text/javascript"></script>
</html>