Authored by 肖亚东

yoluck详情页关注公众号弹出引导开发

@@ -6,6 +6,14 @@ @@ -6,6 +6,14 @@
6 <div class="fellow-bar-wrap"> 6 <div class="fellow-bar-wrap">
7 {{> yoluck/fellow-bar}} 7 {{> yoluck/fellow-bar}}
8 </div> 8 </div>
  9 +
  10 + <div id="fellow-guide" class="js-fellow-guide" style="display: none">
  11 + <div class="fellow-guide-bg"></div>
  12 + <div class="fellow-guide">
  13 + <div class="js-fellow-ok"></div>
  14 + </div>
  15 + </div>
  16 +
9 {{/unless}} 17 {{/unless}}
10 {{/if}} 18 {{/if}}
11 19
@@ -13,8 +21,7 @@ @@ -13,8 +21,7 @@
13 {{> yoluck/product-detail-header product=product avatars=avatars}} 21 {{> yoluck/product-detail-header product=product avatars=avatars}}
14 </div> 22 </div>
15 23
16 - <div class="jion-tips">  
17 - </div> 24 + <div class="jion-tips"></div>
18 25
19 {{> yoluck/lottery-machine}} 26 {{> yoluck/lottery-machine}}
20 27
@@ -35,6 +35,7 @@ let store = { @@ -35,6 +35,7 @@ let store = {
35 let hideInfo = $('#hide-info').remove().data(); 35 let hideInfo = $('#hide-info').remove().data();
36 36
37 let $fellowBar = $('#fellow-bar'); 37 let $fellowBar = $('#fellow-bar');
  38 +let $fellowGuide = $('#fellow-guide');
38 let $product = $('.product_name'); 39 let $product = $('.product_name');
39 let name = $product.data('name'); 40 let name = $product.data('name');
40 let img = $product.data('img'); 41 let img = $product.data('img');
@@ -189,12 +190,18 @@ if (+fellowInfo.type === 2) { @@ -189,12 +190,18 @@ if (+fellowInfo.type === 2) {
189 }); 190 });
190 191
191 clipboardFellow.on('success', function(e) { 192 clipboardFellow.on('success', function(e) {
192 - fellow(fellowInfo.tip);  
193 - tip.show('内容已复制', 2000); 193 + // fellow(fellowInfo.tip);
  194 + // tip.show('内容已复制', 2000);
  195 + $fellowGuide.show();
194 e.clearSelection(); 196 e.clearSelection();
195 }); 197 });
196 } 198 }
197 199
  200 +// 隐藏关注公众号引导
  201 +$('.js-fellow-guide').on('click', '.js-fellow-ok', function() {
  202 + $fellowGuide.hide();
  203 +});
  204 +
198 (function() { 205 (function() {
199 let lotteryInfo = $('.js-lottery').data('lottery') || {}; 206 let lotteryInfo = $('.js-lottery').data('lottery') || {};
200 207
@@ -143,3 +143,36 @@ @@ -143,3 +143,36 @@
143 .yoho-tip { 143 .yoho-tip {
144 top: 350px; 144 top: 350px;
145 } 145 }
  146 +
  147 +.fellow-guide-bg {
  148 + width: 100%;
  149 + height: 100%;
  150 + position: fixed;
  151 + top: 0;
  152 + left: 0;
  153 + background: #000;
  154 + opacity: 0.5;
  155 + z-index: 999;
  156 +}
  157 +
  158 +.fellow-guide {
  159 + width: 600px;
  160 + height: 1028px;
  161 + position: fixed;
  162 + top: 46%;
  163 + left: 50%;
  164 + background: url("img/activity/yoluck/fellow_guide@2x.png");
  165 + margin-right: -50%;
  166 + transform: translate(-50%, -50%);
  167 + z-index: 1000;
  168 + overflow: visible;
  169 + background-size: 100% 100%;
  170 +
  171 + .js-fellow-ok {
  172 + position: absolute;
  173 + left: 50px;
  174 + bottom: 50px;
  175 + width: 500px;
  176 + height: 100px;
  177 + }
  178 +}