Merge branch 'feature/group-buy' into 'release/313'
拼团商品详情页优化 See merge request !1709
Showing
4 changed files
with
12 additions
and
3 deletions
@@ -134,8 +134,8 @@ | @@ -134,8 +134,8 @@ | ||
134 | <div id="productDesc" {{#if limit}}class="limit"{{/if}}> </div> | 134 | <div id="productDesc" {{#if limit}}class="limit"{{/if}}> </div> |
135 | 135 | ||
136 | <div class="bottom"> | 136 | <div class="bottom"> |
137 | - <div class="count-down"> | ||
138 | {{#ifcond storage_sum '&&' activityIdDetail.currentTime}} | 137 | {{#ifcond storage_sum '&&' activityIdDetail.currentTime}} |
138 | + <div class="count-down"> | ||
139 | <div data-current="{{activityIdDetail.currentTime}}" | 139 | <div data-current="{{activityIdDetail.currentTime}}" |
140 | data-begin="{{activityIdDetail.beginTime}}" | 140 | data-begin="{{activityIdDetail.beginTime}}" |
141 | data-end="{{activityIdDetail.endTime}}" | 141 | data-end="{{activityIdDetail.endTime}}" |
@@ -147,8 +147,8 @@ | @@ -147,8 +147,8 @@ | ||
147 | <span class="number" id="minutes"></span>分 | 147 | <span class="number" id="minutes"></span>分 |
148 | <span class="number" id="seconds"></span>秒 | 148 | <span class="number" id="seconds"></span>秒 |
149 | </div> | 149 | </div> |
150 | - {{/ifcond}} | ||
151 | </div> | 150 | </div> |
151 | + {{/ifcond}} | ||
152 | {{#unless groupNo}} | 152 | {{#unless groupNo}} |
153 | <a href="/activity/group" class='shoppint-cart-icon'> | 153 | <a href="/activity/group" class='shoppint-cart-icon'> |
154 | <img src="//img10.static.yhbimg.com/yhb-img01/2019/02/21/01/016b3f1cbc1b946fa0acbb1523f6386435.png" | 154 | <img src="//img10.static.yhbimg.com/yhb-img01/2019/02/21/01/016b3f1cbc1b946fa0acbb1523f6386435.png" |
@@ -76,7 +76,7 @@ | @@ -76,7 +76,7 @@ | ||
76 | <a href="../group/list?activityId={{activityId}}" class="status-btn">查看更多拼团活动</a> | 76 | <a href="../group/list?activityId={{activityId}}" class="status-btn">查看更多拼团活动</a> |
77 | {{/ifcond}} | 77 | {{/ifcond}} |
78 | 78 | ||
79 | - <a class="tip" href="https://m.yohobuy.com/activity/feature/1555.html">支付开团-支付参团-凑齐人数发货-凑不齐退款 玩法介绍》</a> | 79 | + <a class="tip" href="https://m.yohobuy.com/activity/feature/1555.html?nodownload=1">支付开团-支付参团-凑齐人数发货-凑不齐退款 玩法介绍》</a> |
80 | </div> | 80 | </div> |
81 | </div> | 81 | </div> |
82 | {{#if bannerResource}} | 82 | {{#if bannerResource}} |
@@ -287,7 +287,9 @@ class Detail extends Page { | @@ -287,7 +287,9 @@ class Detail extends Page { | ||
287 | let formatCollagePrice = document.getElementById('collagePrice').value; | 287 | let formatCollagePrice = document.getElementById('collagePrice').value; |
288 | 288 | ||
289 | this.getProductData(productSkn); | 289 | this.getProductData(productSkn); |
290 | + if (buynow) { | ||
290 | buynow.onclick = this.joinGroup.bind(this); | 291 | buynow.onclick = this.joinGroup.bind(this); |
292 | + } | ||
291 | 293 | ||
292 | let title = `【包邮】${formatCollagePrice}抢${goodsName}`; | 294 | let title = `【包邮】${formatCollagePrice}抢${goodsName}`; |
293 | 295 | ||
@@ -306,6 +308,8 @@ class Detail extends Page { | @@ -306,6 +308,8 @@ class Detail extends Page { | ||
306 | isShowPop.style.display = 'none'; | 308 | isShowPop.style.display = 'none'; |
307 | }, 10000); | 309 | }, 10000); |
308 | } | 310 | } |
311 | + | ||
312 | + if (selfBuyDom) { | ||
309 | if (groupNo) { | 313 | if (groupNo) { |
310 | selfBuyDom.onclick = function() { | 314 | selfBuyDom.onclick = function() { |
311 | window.location.href = '/activity/group/detail?activityId=' + activityId + '&productSkn=' + productSkn; | 315 | window.location.href = '/activity/group/detail?activityId=' + activityId + '&productSkn=' + productSkn; |
@@ -316,6 +320,7 @@ class Detail extends Page { | @@ -316,6 +320,7 @@ class Detail extends Page { | ||
316 | }; | 320 | }; |
317 | } | 321 | } |
318 | } | 322 | } |
323 | + } | ||
319 | 324 | ||
320 | joinGroup() { | 325 | joinGroup() { |
321 | let chosePanel = require('js/activity/group/chose-panel'); | 326 | let chosePanel = require('js/activity/group/chose-panel'); |
-
Please register or login to post a comment