...
|
...
|
@@ -32,6 +32,7 @@ let store = { |
|
|
targetVersion: '6.8.3',
|
|
|
};
|
|
|
|
|
|
let $fellowBar = $('#fellow-bar');
|
|
|
let $product = $('.product_name');
|
|
|
let name = $product.data('name');
|
|
|
let img = $product.data('img');
|
...
|
...
|
@@ -52,7 +53,14 @@ new Swiper('.swiper-container', { |
|
|
autoplay: 4000
|
|
|
});
|
|
|
|
|
|
function fellow() {
|
|
|
function fellow(content) {
|
|
|
if (content) {
|
|
|
$.yAlert({
|
|
|
content: `<div class="fellow-tip-content">${content}</div>` // eslint-disable-line
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
$.yAlert({
|
|
|
content: `<div>公众号
|
|
|
<span style="font-weight: bolder">“潮流有货”</span>已经复制成功,</div>
|
...
|
...
|
@@ -158,16 +166,27 @@ let luckAlert = { |
|
|
}
|
|
|
};
|
|
|
|
|
|
let clipboardFellow = new Clipboard('.js-fellow', {
|
|
|
let fellowInfo = $fellowBar.data() || {};
|
|
|
|
|
|
if (+fellowInfo.type === 2) {
|
|
|
$fellowBar.on('click', '.js-fellow', function() {
|
|
|
if (fellowInfo.link) {
|
|
|
window.location.href = fellowInfo.link;
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
let clipboardFellow = new Clipboard('.js-fellow', {
|
|
|
text: function() {
|
|
|
return '潮流有货';
|
|
|
return fellowInfo.copy || '潮流有货';
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
|
|
|
clipboardFellow.on('success', function(e) {
|
|
|
fellow();
|
|
|
clipboardFellow.on('success', function(e) {
|
|
|
fellow(fellowInfo.tip);
|
|
|
e.clearSelection();
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
(function() {
|
|
|
let lotteryInfo = $('.js-lottery').data('lottery');
|
...
|
...
|
|