gain.html
10.1 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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>有货&可口可乐</title>
<meta name="apple-mobile-web-app-title" content="SUMMER SALE">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="grey">
<style type="text/css">
*{
margin: 0;
padding: 0;
font-size: 14px;
}
html,body{
width: 100%;
height: 100%;
background: #e10c1e;
}
.page{
width: 100%;
height: 100%;
background: #e10c1e;
}
.banner{
width: 100%;
height: auto;
overflow: hidden;
}
.banner img{
width: 100%;
height: auto;
}
.centent{
width: 100%;
height: auto;
overflow: hidden;
padding-top: 2rem;
padding-bottom: .6rem;
background: #e10c1e;
}
.centent p{
width: 100%;
height: auto;
overflow: hidden;
text-align: center;
color: #fff;
line-height: 2rem;
font-size: .9rem
}
.centent p.phone{
font-size: 1.3rem;
font-weight: bold;
line-height: 2.6rem;
}
.coupon{
width: 81.25%;
height: auto;
overflow: hidden;
margin: 0 auto;
}
.coupon img{
width: 100%;
height: auto;
}
.dialog{
width: 82%;
height: 14rem;
position: absolute;
background: #fff;
border-radius: .6rem;
left:9%;
top: 45%;
margin-top: -7rem;
z-index: 2;
}
.dialog .close{
width: 1.4rem;
height: 1.4rem;
overflow: hidden;
background: #444;
color: #f1f1f1;
border-radius: 50%;
position: absolute;
top: -.5rem;
right: -.5rem;
line-height: 1.4rem;
text-align: center;
}
.dialog .close img{
width: 100%;
height: auto;
}
.dialog .inform{
width: 100%;
height: 6rem;
overflow: hidden;
text-align: center;
padding-top: 1.5rem;
line-height: 2.4rem;
}
.dialog .inform h3{
font-size: 1.5rem;
}
.dialog .inform span{
font-size: 1rem;
}
.dialog .btn-list{
width: 110%;
height: 3.4rem;
overflow: hidden;
border-top: 1px solid #c5c5c5;
}
.btn-list span{
width: 45.5%;
height: 3.4rem;
overflow: hidden;
float: left;
border-right: 1px solid #c5c5c5;
line-height: 3.4rem;
text-align: center;
font-size: 1.2rem;
}
.btn-list a{
text-decoration:none;
color: #000;
}
.hidden{
display: none;
}
.keep-out{
width: 100%;
height: 100%;
overflow: hidden;
background-color: #000;
opacity: 0.4;
position: absolute;
top: 0;
left: 0;
z-index: 1;
}
.activity-message{
overflow: auto;
}
.activity-message h3{
width: 100%;
height: 3.4rem;
padding-top: .6rem;
line-height: 3.4rem;
font-size: 1.2rem;
text-align: center;
}
.activity-message p{
width: 85%;
height: auto;
overflow: hidden;
margin:0 auto;
line-height: 2rem;
}
.footer{
width: 100%;
height: auto;
overflow: hidden;
padding-bottom: 2rem;
}
.footer .btn{
width: 75.25%;
height:auto;
margin: 0 auto 1.6rem;
}
.footer .btn img{
width: 100%;
height: auto;
}
.footer span{
font-weight: bold;
display: inline-block;
width: 20%;
height: auto;
text-align: center;
color: #fff;
margin: 0 40%;
}
</style>
</head>
<body>
<div class="page">
<div class="banner">
<img src="/activity/cocacola/images/cokeBanner.jpg">
</div>
<div class="centent">
<div class="coupon">
<img src="/activity/cocacola/images/cokeCoupon.png">
</div>
<p class="phone" id="mobile"></p>
<p>登录Yoho!Buy有货客户端即可使用</p>
</div>
<div class="footer">
<div class="btn">
<img src="/activity/cocacola/images/cokeBtn.png">
</div>
<span>活动说明</span>
</div>
</div>
<div class="dialog hidden" style="height: 11rem;" id="dialog">
<div class="content" style="overflow: hidden;">
<div class="inform">
<h3>恭喜您成功领取</h3>
<span>Yoho!Buy有货优惠券</span>
</div>
<div class="btn-list">
<span>下载Yoho!Buy有货</span>
<span style="color: red;">我知道了</span>
</div>
</div>
</div>
<div class="keep-out hidden"></div>
<div class="dialog hidden" id="message">
<span class="close"><img src="/activity/cocacola/images/close.png"></span>
<div class="activity-message">
<h3>活动说明</h3>
<div class="message">
<P>1、活动时间:2016年4月7日到2016年7月7日</P>
<P>2、仅限新注册用户以及首次购买用户使用</P>
<P>3、同一手机号限领一次优惠券</P>
</div>
</div>
</div>
</body>
<script type="text/javascript" src="/activity/js/jquery-1.12.0.min.js"></script>
<script type="text/javascript">
(function(w, d, s, j, f) {
var a = d.createElement(s);
var m = d.getElementsByTagName(s)[0];
w.YohoAcquisitionObject = f;
w[f] = function() {
w[f].p = arguments;
};
a.async = 1;
a.src = j;
m.parentNode.insertBefore(a, m);
})(window, document, 'script', 'http://cdn.yoho.cn/yas-jssdk/1.0.14/yas.js', '_yas');
(function() {
if (window._yas) {
window._yas(1 * new Date(), '1.0.14', '', '', '', '');
}
}());
</script>
<script type="text/javascript">
function getQueryStr(key){
var svalue = location.search.match(new RegExp("[\?\&]" + key + "=([^\&]*)(\&?)","i"));
var str = svalue ? svalue[1] : svalue;
return str == null ? "" : str;
}
$(function() {
$("#mobile").html("优惠券已放至账户" + getQueryStr("mobile"));
});
$('.close').on('click', function(){
$('.dialog').addClass('hidden');
$('.keep-out').addClass('hidden');
$('#dialog .content').html(' ')
})
$('.footer span').on('click',function(){
$('#message').removeClass('hidden');
$('.keep-out').removeClass('hidden');
})
setTimeout(function(){
$('#dialog').removeClass('hidden');
$('.keep-out').removeClass('hidden');
},1000)
$('.btn').on('click',function(){
if (window._yas) {
window._yas.sendCustomInfo({
'downApp': 'Y'
}, true);
}
setTimeout(function(){
window.location.href = "http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho";
}, 2000)
})
$('.btn-list span:eq(1)').on('click',function(){
$('.dialog').addClass('hidden');
$('.keep-out').addClass('hidden');
})
$('.btn-list span:eq(0)').on('click',function(){
if (window._yas) {
window._yas.sendCustomInfo({
'downApp': 'Y'
}, true);
}
setTimeout(function(){
window.location.href = "http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho";
}, 2000)
})
</script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
<script type="text/javascript">
/**
* 微信分享
*/
(function($) {
if (typeof(wx) == "undefined") {
return;
}
/* var shareUrl = "";
$.ajax({
async : false,
url : "/activity/cocacola/CocacolaController/getWechatShareUrl",
dataType : "json",
cache : false,
success : function(data) {
if (!data || data.code != 200) {
return;
}
shareUrl = data.data.wechatShareUrl;
}
}); */
var _weChatInterface = 'http://www.yohoshow.com/api/wechat/getSignPackage';
var shareTitle = '来Yoho!Buy有货玩潮流,潮流逛不停';
//var shareImg = 'http://img12.static.yhbimg.com/activity/2016/04/07/11/02b3b297581ace1ca6251f7f9e67ca7937.jpg';
var shareImg = "http://img10.static.yhbimg.com/activity/2016/04/22/18/011ec22354d4e299d23f9699695f1a763c.jpg";
var shareDesc = '揭盖赢福利,潮流逛不停';
//var shareLink = "http://feature.yoho.cn/activity/cocacola/index.html";
var shareLink = "http://service.yoho.cn/activity/cocacola/html/index1.html";
$.getJSON(_weChatInterface + '?pageurl=' +
encodeURIComponent(location.href.split('#')[0]) + '&callback=?', function(json) {
var _appId, _timestamp, _nonceStr, _signature;
if (json !== undefined && json !== '') {
_appId = json.appId.toString();
_timestamp = json.timestamp;
_nonceStr = json.nonceStr.toString();
_signature = json.signature.toString();
wx.config({
debug: false,
appId: _appId,
timestamp: _timestamp,
nonceStr: _nonceStr,
signature: _signature,
jsApiList: [
'checkJsApi',
'onMenuShareTimeline',
'onMenuShareAppMessage',
'onMenuShareQQ',
'onMenuShareWeibo',
'hideMenuItems',
'showMenuItems',
'hideAllNonBaseMenuItem',
'showAllNonBaseMenuItem',
'translateVoice',
'startRecord',
'stopRecord',
'onRecordEnd',
'playVoice',
'pauseVoice',
'stopVoice',
'uploadVoice',
'downloadVoice',
'chooseImage',
'previewImage',
'uploadImage',
'downloadImage',
'getNetworkType',
'openLocation',
'getLocation',
'hideOptionMenu',
'showOptionMenu',
'closeWindow',
'scanQRCode',
'chooseWXPay',
'openProductSpecificView',
'addCard',
'chooseCard',
'openCard'
]
});
}
});
wx.ready(function() {
var shareData = {
title: shareTitle,
desc: shareDesc,
imgUrl: shareImg,
link: shareLink
};
wx.onMenuShareAppMessage(shareData);
wx.onMenuShareTimeline(shareData);
wx.onMenuShareQQ(shareData);
wx.onMenuShareWeibo(shareData);
});
}(jQuery));
</script>
</html>