Authored by 郭成尧

'discount-buy-add'

@@ -50,12 +50,17 @@ @@ -50,12 +50,17 @@
50 <a class="btn btn-minus" href="javascript:void(0);"> 50 <a class="btn btn-minus" href="javascript:void(0);">
51 <span class="iconfont {{#if promotionId}}disabled{{/if}}">&#xe625;</span> 51 <span class="iconfont {{#if promotionId}}disabled{{/if}}">&#xe625;</span>
52 </a> 52 </a>
53 - <input id="good-num" class="good-num disabled" type="text" value="1" disabled="true"> 53 + <input id="good-num" class="good-num disabled" type="text" {{#if @root.discountBuy}}value="{{@root.discountBuy.num}}" {{^}} value="1"{{/if}} disabled="true">
54 <a class="btn btn-plus" href="javascript:void(0);"> 54 <a class="btn btn-plus" href="javascript:void(0);">
55 <span class="iconfont {{#if promotionId}}disabled{{/if}}">&#xe624;</span> 55 <span class="iconfont {{#if promotionId}}disabled{{/if}}">&#xe624;</span>
56 </a> 56 </a>
57 </div> 57 </div>
  58 + {{#if @root.discountBuy}}
  59 + <span class="left-num-discount" style="color: #e10;position: absolute;top: 0.5rem;left: 9.5rem;overflow: hidden;white-space: nowrap;width: 5.2rem;-o-text-overflow: ellipsis;text-overflow: ellipsis;">{{@root.discountBuy.promotionPhrase}}</span>
  60 + <input id="mnum" type="hidden" value="{{@root.discountBuy.num}}">
  61 + {{^}}
58 <span class="left-num"></span> 62 <span class="left-num"></span>
  63 + {{/if}}
59 <input id="left-num" type="hidden" value="0"> 64 <input id="left-num" type="hidden" value="0">
60 <input id="limitNum" type="hidden" value="{{limit}}"> 65 <input id="limitNum" type="hidden" value="{{limit}}">
61 </div> 66 </div>
@@ -59,7 +59,7 @@ var limitProductCode, @@ -59,7 +59,7 @@ var limitProductCode,
59 skn; 59 skn;
60 60
61 // 量贩商品 61 // 量贩商品
62 -var discountNum = $('#discount-buy').val() - 0, 62 +var discountNum = $('#mnum').val() - 0,
63 $promotionPhrase = $('#promotion-phrase'); 63 $promotionPhrase = $('#promotion-phrase');
64 64
65 // 禁用数字编辑 65 // 禁用数字编辑