Authored by yyq

fix style

@@ -186,6 +186,7 @@ if (+fellowInfo.type === 2) { @@ -186,6 +186,7 @@ if (+fellowInfo.type === 2) {
186 186
187 clipboardFellow.on('success', function(e) { 187 clipboardFellow.on('success', function(e) {
188 fellow(fellowInfo.tip); 188 fellow(fellowInfo.tip);
  189 + tip.show('复制成功', 2000);
189 e.clearSelection(); 190 e.clearSelection();
190 }); 191 });
191 } 192 }
@@ -200,6 +201,7 @@ if (+fellowInfo.type === 2) { @@ -200,6 +201,7 @@ if (+fellowInfo.type === 2) {
200 201
201 clipboardLottery.on('success', function(e) { 202 clipboardLottery.on('success', function(e) {
202 fellow(lotteryInfo.h5Tip); 203 fellow(lotteryInfo.h5Tip);
  204 + tip.show('复制成功', 2000);
203 e.clearSelection(); 205 e.clearSelection();
204 }); 206 });
205 207
@@ -11,6 +11,7 @@ let yoSdk = require('yoho-activity-sdk'); @@ -11,6 +11,7 @@ let yoSdk = require('yoho-activity-sdk');
11 let yoho = require('js/yoho-app'); 11 let yoho = require('js/yoho-app');
12 const DETAIL_URI = location.protocol + '//m.yohobuy.com/activity/yoluck'; 12 const DETAIL_URI = location.protocol + '//m.yohobuy.com/activity/yoluck';
13 13
  14 +let tip = require('js/plugin/tip');
14 let Clipboard = require('clipboard'); 15 let Clipboard = require('clipboard');
15 let publicCopyInfo = ''; 16 let publicCopyInfo = '';
16 17
@@ -257,11 +258,17 @@ bus$.add(onTabClick); @@ -257,11 +258,17 @@ bus$.add(onTabClick);
257 bus$.add(onReachBottom); 258 bus$.add(onReachBottom);
258 259
259 function initClipboard() { 260 function initClipboard() {
260 - new Clipboard('.js-clipbroad', { 261 + let _clipboard = new Clipboard('.js-clipbroad', {
261 text: function() { 262 text: function() {
262 return publicCopyInfo; 263 return publicCopyInfo;
263 } 264 }
264 }); 265 });
  266 +
  267 + _clipboard.on('success', function() {
  268 + if (publicCopyInfo) {
  269 + tip.show('复制成功', 2000);
  270 + }
  271 + });
265 } 272 }
266 273
267 initClipboard(); 274 initClipboard();
@@ -88,7 +88,7 @@ @@ -88,7 +88,7 @@
88 content: ""; 88 content: "";
89 width: 100%; 89 width: 100%;
90 height: 40px; 90 height: 40px;
91 - margin-top: -31px; 91 + margin-top: -40px;
92 background: url("img/activity/yoluck/lottery-more.png"); 92 background: url("img/activity/yoluck/lottery-more.png");
93 background-size: 100%; 93 background-size: 100%;
94 background-repeat: no-repeat; 94 background-repeat: no-repeat;
@@ -129,3 +129,7 @@ @@ -129,3 +129,7 @@
129 display: none !important; 129 display: none !important;
130 } 130 }
131 } 131 }
  132 +
  133 +.yoho-tip {
  134 + top: 350px;
  135 +}
@@ -87,4 +87,9 @@ @@ -87,4 +87,9 @@
87 87
88 .modal-view-lottery { 88 .modal-view-lottery {
89 padding-top: 20px; 89 padding-top: 20px;
  90 + word-break: break-all;
  91 +}
  92 +
  93 +.yoho-tip {
  94 + top: 350px;
90 } 95 }
@@ -100,7 +100,7 @@ button { @@ -100,7 +100,7 @@ button {
100 color: #fff; 100 color: #fff;
101 font-size: 24px; 101 font-size: 24px;
102 border: none; 102 border: none;
103 - z-index: 100; 103 + z-index: 1000;
104 box-sizing: border-box; 104 box-sizing: border-box;
105 border-radius: 10PX; 105 border-radius: 10PX;
106 } 106 }