...
|
...
|
@@ -18,7 +18,7 @@ require('common/share')(shareData); |
|
|
require('common/set-trend-world');
|
|
|
|
|
|
// 生成二维码
|
|
|
setTimeout(function() {
|
|
|
function generateCode() {
|
|
|
let text = $('.code-qr').attr('qr-data'),
|
|
|
width = $('.code-qr').css('width');
|
|
|
|
...
|
...
|
@@ -29,7 +29,7 @@ setTimeout(function() { |
|
|
ecLevel: 'L', // 纠错级别
|
|
|
background: '#fff'
|
|
|
});
|
|
|
}, 0);
|
|
|
}
|
|
|
|
|
|
// 分享弹框
|
|
|
$('.share').click(function() {
|
...
|
...
|
@@ -55,6 +55,19 @@ $('.modify').click(function() { |
|
|
$('.set-trend-world').show();
|
|
|
});
|
|
|
|
|
|
$('.reload-c').click(function() {
|
|
|
$.ajax({
|
|
|
type: 'get',
|
|
|
url: '//m.yohobuy.com/activity/reload-qrcode',
|
|
|
}).then(function(data) {
|
|
|
|
|
|
$('.code-qr').attr('qr-data', data.qrcodeUrl);
|
|
|
$('.code-qr').find('img').remove();
|
|
|
|
|
|
generateCode();
|
|
|
});
|
|
|
});
|
|
|
|
|
|
(function() {
|
|
|
if (!$('.set-trend-world').hasClass('trend-world')) {
|
|
|
if (!window.cookie('promotion-trend-pop') || parseInt(window.cookie('promotion-trend-pop'), 10) !== 1) {
|
...
|
...
|
@@ -65,4 +78,6 @@ $('.modify').click(function() { |
|
|
}, 1000);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
generateCode();
|
|
|
}()); |
...
|
...
|
|