Showing
5 changed files
with
15 additions
and
11 deletions
@@ -367,6 +367,7 @@ | @@ -367,6 +367,7 @@ | ||
367 | <i class="iconfont"></i> | 367 | <i class="iconfont"></i> |
368 | </div> | 368 | </div> |
369 | <div class="content goods-select-content"> | 369 | <div class="content goods-select-content"> |
370 | + <div class="detail-body"></div> | ||
370 | </div> | 371 | </div> |
371 | </div> | 372 | </div> |
372 | </div> | 373 | </div> |
1 | -<div class="detail-body"> | ||
2 | - <div class="slide-img"> | ||
3 | - <p class="sell-class-title"><!--选赠品:--> | ||
4 | - <em class="slide-img-title"> | 1 | +<div class="slide-img"> |
2 | + <p class="sell-class-title"> | ||
3 | + {{#if isGift}}选赠品:{{/if}}<!--选赠品:--> | ||
4 | + {{#if isPriceGift}}{{promotionTitle}}{{/if}} | ||
5 | + {{!--<em class="slide-img-title"> | ||
5 | <span class="active">{{promotionTitle}}</span> | 6 | <span class="active">{{promotionTitle}}</span> |
6 | <!--<code class="spacing">|</code> | 7 | <!--<code class="spacing">|</code> |
7 | <span>59元加价购</span> | 8 | <span>59元加价购</span> |
8 | <code class="spacing">|</code> | 9 | <code class="spacing">|</code> |
9 | <span>99元加价购</span>--> | 10 | <span>99元加价购</span>--> |
10 | - </em> | 11 | + </em>--}} |
11 | </p> | 12 | </p> |
12 | <div class="side-img-dd"> | 13 | <div class="side-img-dd"> |
13 | <ul class="img-list"> | 14 | <ul class="img-list"> |
@@ -32,10 +33,12 @@ | @@ -32,10 +33,12 @@ | ||
32 | <a class="next iconfont" href="javascript:;"></a> | 33 | <a class="next iconfont" href="javascript:;"></a> |
33 | </div> | 34 | </div> |
34 | </div> | 35 | </div> |
35 | - </div> | ||
36 | - <div class="product-detail-info" data-promotionid="{{promotionId}}" {{#if swap}}data-swap="{{swap}}"{{/if}}> | 36 | +</div> |
37 | +<div class="product-detail-info" | ||
38 | + data-promotionid="{{promotionId}}" | ||
39 | + data-maxselectnum="{{maxSelectNumber}}" | ||
40 | + {{#if swap}}data-swap="{{swap}}"{{/if}}> | ||
37 | {{#productInfo}} | 41 | {{#productInfo}} |
38 | {{> cart-product-info-tpl}} | 42 | {{> cart-product-info-tpl}} |
39 | {{/productInfo}} | 43 | {{/productInfo}} |
40 | - </div> | ||
41 | </div> | 44 | </div> |
@@ -30,7 +30,7 @@ | @@ -30,7 +30,7 @@ | ||
30 | <div class="price"> | 30 | <div class="price"> |
31 | {{#if salePrice}} | 31 | {{#if salePrice}} |
32 | <span class="newprice">现价:<b class="promotion-price">¥{{salePrice}}</b></span> | 32 | <span class="newprice">现价:<b class="promotion-price">¥{{salePrice}}</b></span> |
33 | - <span class="oldprice">原价:<del>¥{{marketPrice}}</del></span> | 33 | + <span class="oldprice">活动价:<del>¥{{marketPrice}}</del></span> |
34 | {{^}} | 34 | {{^}} |
35 | <span class="newprice {{#presalePrice}}none{{/presalePrice}}">原价:<b class="promotion-price">¥{{marketPrice}}</b></span> | 35 | <span class="newprice {{#presalePrice}}none{{/presalePrice}}">原价:<b class="promotion-price">¥{{marketPrice}}</b></span> |
36 | {{/if}} | 36 | {{/if}} |
@@ -19,7 +19,7 @@ var $ = require('yoho-jquery'), | @@ -19,7 +19,7 @@ var $ = require('yoho-jquery'), | ||
19 | '[data-role=pg-resel-btn]']; | 19 | '[data-role=pg-resel-btn]']; |
20 | 20 | ||
21 | function renderAndShowGiftWin(plist) { | 21 | function renderAndShowGiftWin(plist) { |
22 | - $goodsSelWin.find('.content').empty().html(giftsWinTpl(plist)); | 22 | + $goodsSelWin.find('.detail-body').empty().html(giftsWinTpl(plist)); |
23 | capi.showMDialog('#Y_goodsSelectWinDialog'); | 23 | capi.showMDialog('#Y_goodsSelectWinDialog'); |
24 | } | 24 | } |
25 | 25 |
@@ -158,7 +158,7 @@ $('.bottom-tab-slide').on('click', '.bottom-title', function() { | @@ -158,7 +158,7 @@ $('.bottom-tab-slide').on('click', '.bottom-title', function() { | ||
158 | function showTogetherSelWin(id, skn) { | 158 | function showTogetherSelWin(id, skn) { |
159 | 159 | ||
160 | capi.getProductInfo(id, skn).then(res => { | 160 | capi.getProductInfo(id, skn).then(res => { |
161 | - $goodsSelWin.find('.content').empty().append(productInfoTpl(res)); | 161 | + $goodsSelWin.find('.detail-body').empty().append(productInfoTpl(res)); |
162 | }); | 162 | }); |
163 | 163 | ||
164 | capi.showMDialog('#Y_goodsSelectWinDialog'); | 164 | capi.showMDialog('#Y_goodsSelectWinDialog'); |
-
Please register or login to post a comment