|
@@ -200,7 +200,7 @@ |
|
@@ -200,7 +200,7 @@ |
200
|
</div>
|
200
|
</div>
|
201
|
<div class="footer">
|
201
|
<div class="footer">
|
202
|
<div class="btn">
|
202
|
<div class="btn">
|
203
|
- <a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho"><img src="/activity/cocacola/images/cokeBtn.png"></a>
|
203
|
+ <img src="/activity/cocacola/images/cokeBtn.png">
|
204
|
</div>
|
204
|
</div>
|
205
|
<span>活动说明</span>
|
205
|
<span>活动说明</span>
|
206
|
</div>
|
206
|
</div>
|
|
@@ -212,7 +212,7 @@ |
|
@@ -212,7 +212,7 @@ |
212
|
<span>Yoho!Buy有货优惠券</span>
|
212
|
<span>Yoho!Buy有货优惠券</span>
|
213
|
</div>
|
213
|
</div>
|
214
|
<div class="btn-list">
|
214
|
<div class="btn-list">
|
215
|
- <span><a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho">下载Yoho!Buy有货</a></span>
|
215
|
+ <span>下载Yoho!Buy有货</span>
|
216
|
<span style="color: red;">我知道了</span>
|
216
|
<span style="color: red;">我知道了</span>
|
217
|
</div>
|
217
|
</div>
|
218
|
</div>
|
218
|
</div>
|
|
@@ -284,7 +284,7 @@ |
|
@@ -284,7 +284,7 @@ |
284
|
}, true);
|
284
|
}, true);
|
285
|
}
|
285
|
}
|
286
|
setTimeout(function(){
|
286
|
setTimeout(function(){
|
287
|
- console.log(1);
|
287
|
+ window.location.href = "http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho";
|
288
|
}, 2000)
|
288
|
}, 2000)
|
289
|
})
|
289
|
})
|
290
|
$('.btn-list span:eq(1)').on('click',function(){
|
290
|
$('.btn-list span:eq(1)').on('click',function(){
|
|
@@ -298,7 +298,7 @@ |
|
@@ -298,7 +298,7 @@ |
298
|
}, true);
|
298
|
}, true);
|
299
|
}
|
299
|
}
|
300
|
setTimeout(function(){
|
300
|
setTimeout(function(){
|
301
|
- console.log(1);
|
301
|
+ window.location.href = "http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho";
|
302
|
}, 2000)
|
302
|
}, 2000)
|
303
|
})
|
303
|
})
|
304
|
</script>
|
304
|
</script>
|
|
@@ -307,95 +307,96 @@ |
|
@@ -307,95 +307,96 @@ |
307
|
/**
|
307
|
/**
|
308
|
* 微信分享
|
308
|
* 微信分享
|
309
|
*/
|
309
|
*/
|
310
|
-(function($) {
|
|
|
311
|
- if (typeof(wx) == "undefined") {
|
|
|
312
|
- return;
|
|
|
313
|
- }
|
|
|
314
|
- /* var shareUrl = "";
|
|
|
315
|
- $.ajax({
|
|
|
316
|
- async : false,
|
|
|
317
|
- url : "/activity/cocacola/CocacolaController/getWechatShareUrl",
|
|
|
318
|
- dataType : "json",
|
|
|
319
|
- cache : false,
|
|
|
320
|
- success : function(data) {
|
|
|
321
|
- if (!data || data.code != 200) {
|
|
|
322
|
- return;
|
|
|
323
|
- }
|
|
|
324
|
- shareUrl = data.data.wechatShareUrl;
|
|
|
325
|
- }
|
|
|
326
|
- }); */
|
|
|
327
|
- var _weChatInterface = 'http://www.yohoshow.com/api/wechat/getSignPackage';
|
|
|
328
|
- var shareTitle = '来Yoho!Buy有货玩潮流,潮流逛不停';
|
|
|
329
|
- var shareImg = 'http://img12.static.yhbimg.com/activity/2016/04/07/11/02b3b297581ace1ca6251f7f9e67ca7937.jpg';
|
|
|
330
|
- var shareDesc = '揭盖赢福利,潮流逛不停';
|
|
|
331
|
- //var shareLink = "http://feature.yoho.cn/activity/cocacola/index.html";
|
|
|
332
|
- var shareLink = "http://service.yoho.cn/activity/cocacola/html/index1.html";
|
|
|
333
|
- $.getJSON(_weChatInterface + '?pageurl=' +
|
|
|
334
|
- encodeURIComponent(location.href.split('#')[0]) + '&callback=?', function(json) {
|
|
|
335
|
- var _appId, _timestamp, _nonceStr, _signature;
|
|
|
336
|
- if (json !== undefined && json !== '') {
|
|
|
337
|
- _appId = json.appId.toString();
|
|
|
338
|
- _timestamp = json.timestamp;
|
|
|
339
|
- _nonceStr = json.nonceStr.toString();
|
|
|
340
|
- _signature = json.signature.toString();
|
310
|
+ (function($) {
|
|
|
311
|
+ if (typeof(wx) == "undefined") {
|
|
|
312
|
+ return;
|
|
|
313
|
+ }
|
|
|
314
|
+ /* var shareUrl = "";
|
|
|
315
|
+ $.ajax({
|
|
|
316
|
+ async : false,
|
|
|
317
|
+ url : "/activity/cocacola/CocacolaController/getWechatShareUrl",
|
|
|
318
|
+ dataType : "json",
|
|
|
319
|
+ cache : false,
|
|
|
320
|
+ success : function(data) {
|
|
|
321
|
+ if (!data || data.code != 200) {
|
|
|
322
|
+ return;
|
|
|
323
|
+ }
|
|
|
324
|
+ shareUrl = data.data.wechatShareUrl;
|
|
|
325
|
+ }
|
|
|
326
|
+ }); */
|
|
|
327
|
+ var _weChatInterface = 'http://www.yohoshow.com/api/wechat/getSignPackage';
|
|
|
328
|
+ var shareTitle = '来Yoho!Buy有货玩潮流,潮流逛不停';
|
|
|
329
|
+ var shareImg = 'http://img12.static.yhbimg.com/activity/2016/04/07/11/02b3b297581ace1ca6251f7f9e67ca7937.jpg';
|
|
|
330
|
+ var shareDesc = '揭盖赢福利,潮流逛不停';
|
|
|
331
|
+ //var shareLink = "http://feature.yoho.cn/activity/cocacola/index.html";
|
|
|
332
|
+ var shareLink = "http://service.yoho.cn/activity/cocacola/html/index1.html";
|
|
|
333
|
+ $.getJSON(_weChatInterface + '?pageurl=' +
|
|
|
334
|
+ encodeURIComponent(location.href.split('#')[0]) + '&callback=?', function(json) {
|
|
|
335
|
+ var _appId, _timestamp, _nonceStr, _signature;
|
|
|
336
|
+ if (json !== undefined && json !== '') {
|
|
|
337
|
+ _appId = json.appId.toString();
|
|
|
338
|
+ _timestamp = json.timestamp;
|
|
|
339
|
+ _nonceStr = json.nonceStr.toString();
|
|
|
340
|
+ _signature = json.signature.toString();
|
341
|
|
341
|
|
342
|
- wx.config({
|
|
|
343
|
- debug: false,
|
|
|
344
|
- appId: _appId,
|
|
|
345
|
- timestamp: _timestamp,
|
|
|
346
|
- nonceStr: _nonceStr,
|
|
|
347
|
- signature: _signature,
|
|
|
348
|
- jsApiList: [
|
|
|
349
|
- 'checkJsApi',
|
|
|
350
|
- 'onMenuShareTimeline',
|
|
|
351
|
- 'onMenuShareAppMessage',
|
|
|
352
|
- 'onMenuShareQQ',
|
|
|
353
|
- 'onMenuShareWeibo',
|
|
|
354
|
- 'hideMenuItems',
|
|
|
355
|
- 'showMenuItems',
|
|
|
356
|
- 'hideAllNonBaseMenuItem',
|
|
|
357
|
- 'showAllNonBaseMenuItem',
|
|
|
358
|
- 'translateVoice',
|
|
|
359
|
- 'startRecord',
|
|
|
360
|
- 'stopRecord',
|
|
|
361
|
- 'onRecordEnd',
|
|
|
362
|
- 'playVoice',
|
|
|
363
|
- 'pauseVoice',
|
|
|
364
|
- 'stopVoice',
|
|
|
365
|
- 'uploadVoice',
|
|
|
366
|
- 'downloadVoice',
|
|
|
367
|
- 'chooseImage',
|
|
|
368
|
- 'previewImage',
|
|
|
369
|
- 'uploadImage',
|
|
|
370
|
- 'downloadImage',
|
|
|
371
|
- 'getNetworkType',
|
|
|
372
|
- 'openLocation',
|
|
|
373
|
- 'getLocation',
|
|
|
374
|
- 'hideOptionMenu',
|
|
|
375
|
- 'showOptionMenu',
|
|
|
376
|
- 'closeWindow',
|
|
|
377
|
- 'scanQRCode',
|
|
|
378
|
- 'chooseWXPay',
|
|
|
379
|
- 'openProductSpecificView',
|
|
|
380
|
- 'addCard',
|
|
|
381
|
- 'chooseCard',
|
|
|
382
|
- 'openCard'
|
|
|
383
|
- ]
|
|
|
384
|
- });
|
|
|
385
|
- }
|
|
|
386
|
- });
|
|
|
387
|
- wx.ready(function() {
|
|
|
388
|
-
|
|
|
389
|
- var shareData = {
|
|
|
390
|
- title: shareTitle,
|
|
|
391
|
- desc: shareDesc,
|
|
|
392
|
- imgUrl: shareImg,
|
|
|
393
|
- link: shareLink
|
|
|
394
|
- };
|
|
|
395
|
- wx.onMenuShareAppMessage(shareData);
|
|
|
396
|
- wx.onMenuShareTimeline(shareData);
|
|
|
397
|
- wx.onMenuShareQQ(shareData);
|
|
|
398
|
- wx.onMenuShareWeibo(shareData);
|
|
|
399
|
- });
|
|
|
400
|
-}(jQuery));
|
342
|
+ wx.config({
|
|
|
343
|
+ debug: false,
|
|
|
344
|
+ appId: _appId,
|
|
|
345
|
+ timestamp: _timestamp,
|
|
|
346
|
+ nonceStr: _nonceStr,
|
|
|
347
|
+ signature: _signature,
|
|
|
348
|
+ jsApiList: [
|
|
|
349
|
+ 'checkJsApi',
|
|
|
350
|
+ 'onMenuShareTimeline',
|
|
|
351
|
+ 'onMenuShareAppMessage',
|
|
|
352
|
+ 'onMenuShareQQ',
|
|
|
353
|
+ 'onMenuShareWeibo',
|
|
|
354
|
+ 'hideMenuItems',
|
|
|
355
|
+ 'showMenuItems',
|
|
|
356
|
+ 'hideAllNonBaseMenuItem',
|
|
|
357
|
+ 'showAllNonBaseMenuItem',
|
|
|
358
|
+ 'translateVoice',
|
|
|
359
|
+ 'startRecord',
|
|
|
360
|
+ 'stopRecord',
|
|
|
361
|
+ 'onRecordEnd',
|
|
|
362
|
+ 'playVoice',
|
|
|
363
|
+ 'pauseVoice',
|
|
|
364
|
+ 'stopVoice',
|
|
|
365
|
+ 'uploadVoice',
|
|
|
366
|
+ 'downloadVoice',
|
|
|
367
|
+ 'chooseImage',
|
|
|
368
|
+ 'previewImage',
|
|
|
369
|
+ 'uploadImage',
|
|
|
370
|
+ 'downloadImage',
|
|
|
371
|
+ 'getNetworkType',
|
|
|
372
|
+ 'openLocation',
|
|
|
373
|
+ 'getLocation',
|
|
|
374
|
+ 'hideOptionMenu',
|
|
|
375
|
+ 'showOptionMenu',
|
|
|
376
|
+ 'closeWindow',
|
|
|
377
|
+ 'scanQRCode',
|
|
|
378
|
+ 'chooseWXPay',
|
|
|
379
|
+ 'openProductSpecificView',
|
|
|
380
|
+ 'addCard',
|
|
|
381
|
+ 'chooseCard',
|
|
|
382
|
+ 'openCard'
|
|
|
383
|
+ ]
|
|
|
384
|
+ });
|
|
|
385
|
+ }
|
|
|
386
|
+ });
|
|
|
387
|
+ wx.ready(function() {
|
|
|
388
|
+
|
|
|
389
|
+ var shareData = {
|
|
|
390
|
+ title: shareTitle,
|
|
|
391
|
+ desc: shareDesc,
|
|
|
392
|
+ imgUrl: shareImg,
|
|
|
393
|
+ link: shareLink
|
|
|
394
|
+ };
|
|
|
395
|
+ wx.onMenuShareAppMessage(shareData);
|
|
|
396
|
+ wx.onMenuShareTimeline(shareData);
|
|
|
397
|
+ wx.onMenuShareQQ(shareData);
|
|
|
398
|
+ wx.onMenuShareWeibo(shareData);
|
|
|
399
|
+ });
|
|
|
400
|
+ }(jQuery));
|
|
|
401
|
+ </script>
|
401
|
</html> |
402
|
</html> |