Authored by 刘传洋

m

@@ -367,6 +367,7 @@ @@ -367,6 +367,7 @@
367 <i class="iconfont">&#xe60d;</i> 367 <i class="iconfont">&#xe60d;</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">  
5 - <span class="active">{{promotionTitle}}</span>  
6 - <!--<code class="spacing">|</code>  
7 - <span>59元加价购</span>  
8 - <code class="spacing">|</code>  
9 - <span>99元加价购</span>-->  
10 - </em>  
11 - </p>  
12 - <div class="side-img-dd">  
13 - <ul class="img-list">  
14 - {{#each goodsList}}  
15 - <li class="img-item {{#if active}}active{{/if}}"  
16 - data-id="{{id}}"  
17 - data-skn="{{skn}}"  
18 - data-ispricegift="{{isPriceGift}}"  
19 - data-isgift="{{isGift}}">  
20 - <span class="hide goods-id">{{goods_id}}</span>  
21 - <div class="good">  
22 - <a href="javascript:void(0)" target="_blank"> {{!--{{link}}--}}  
23 - <img class="lazy" src="{{imgCover}}"/>  
24 - </a>  
25 - </div>  
26 - {{#if_cond ../selectedSkn '==' skn}}<i class="iconfont checked">&#xe6cb;</i>{{/if_cond}}  
27 - </li>  
28 - {{/each}}  
29 - </ul>  
30 - <div class="img-brand-switch">  
31 - <a class="prev iconfont" href="javascript:;">&#xe609;</a>  
32 - <a class="next iconfont" href="javascript:;">&#xe608;</a>  
33 - </div> 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">
  6 + <span class="active">{{promotionTitle}}</span>
  7 + <!--<code class="spacing">|</code>
  8 + <span>59元加价购</span>
  9 + <code class="spacing">|</code>
  10 + <span>99元加价购</span>-->
  11 + </em>--}}
  12 + </p>
  13 + <div class="side-img-dd">
  14 + <ul class="img-list">
  15 + {{#each goodsList}}
  16 + <li class="img-item {{#if active}}active{{/if}}"
  17 + data-id="{{id}}"
  18 + data-skn="{{skn}}"
  19 + data-ispricegift="{{isPriceGift}}"
  20 + data-isgift="{{isGift}}">
  21 + <span class="hide goods-id">{{goods_id}}</span>
  22 + <div class="good">
  23 + <a href="javascript:void(0)" target="_blank"> {{!--{{link}}--}}
  24 + <img class="lazy" src="{{imgCover}}"/>
  25 + </a>
  26 + </div>
  27 + {{#if_cond ../selectedSkn '==' skn}}<i class="iconfont checked">&#xe6cb;</i>{{/if_cond}}
  28 + </li>
  29 + {{/each}}
  30 + </ul>
  31 + <div class="img-brand-switch">
  32 + <a class="prev iconfont" href="javascript:;">&#xe609;</a>
  33 + <a class="next iconfont" href="javascript:;">&#xe608;</a>
34 </div> 34 </div>
35 </div> 35 </div>
36 - <div class="product-detail-info" data-promotionid="{{promotionId}}" {{#if swap}}data-swap="{{swap}}"{{/if}}>  
37 - {{#productInfo}}  
38 - {{> cart-product-info-tpl}}  
39 - {{/productInfo}}  
40 - </div> 36 +</div>
  37 +<div class="product-detail-info"
  38 + data-promotionid="{{promotionId}}"
  39 + data-maxselectnum="{{maxSelectNumber}}"
  40 + {{#if swap}}data-swap="{{swap}}"{{/if}}>
  41 + {{#productInfo}}
  42 + {{> cart-product-info-tpl}}
  43 + {{/productInfo}}
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');