Authored by yyq

fix style

... ... @@ -186,6 +186,7 @@ if (+fellowInfo.type === 2) {
clipboardFellow.on('success', function(e) {
fellow(fellowInfo.tip);
tip.show('复制成功', 2000);
e.clearSelection();
});
}
... ... @@ -200,6 +201,7 @@ if (+fellowInfo.type === 2) {
clipboardLottery.on('success', function(e) {
fellow(lotteryInfo.h5Tip);
tip.show('复制成功', 2000);
e.clearSelection();
});
... ...
... ... @@ -11,6 +11,7 @@ let yoSdk = require('yoho-activity-sdk');
let yoho = require('js/yoho-app');
const DETAIL_URI = location.protocol + '//m.yohobuy.com/activity/yoluck';
let tip = require('js/plugin/tip');
let Clipboard = require('clipboard');
let publicCopyInfo = '';
... ... @@ -257,11 +258,17 @@ bus$.add(onTabClick);
bus$.add(onReachBottom);
function initClipboard() {
new Clipboard('.js-clipbroad', {
let _clipboard = new Clipboard('.js-clipbroad', {
text: function() {
return publicCopyInfo;
}
});
_clipboard.on('success', function() {
if (publicCopyInfo) {
tip.show('复制成功', 2000);
}
});
}
initClipboard();
... ...
... ... @@ -88,7 +88,7 @@
content: "";
width: 100%;
height: 40px;
margin-top: -31px;
margin-top: -40px;
background: url("img/activity/yoluck/lottery-more.png");
background-size: 100%;
background-repeat: no-repeat;
... ...
... ... @@ -129,3 +129,7 @@
display: none !important;
}
}
.yoho-tip {
top: 350px;
}
... ...
... ... @@ -87,4 +87,9 @@
.modal-view-lottery {
padding-top: 20px;
word-break: break-all;
}
.yoho-tip {
top: 350px;
}
... ...
... ... @@ -100,7 +100,7 @@ button {
color: #fff;
font-size: 24px;
border: none;
z-index: 100;
z-index: 1000;
box-sizing: border-box;
border-radius: 10PX;
}
... ...