...
|
...
|
@@ -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();
|
...
|
...
|
|