Authored by 郭成尧

'discount-buy-add'

... ... @@ -50,12 +50,17 @@
<a class="btn btn-minus" href="javascript:void(0);">
<span class="iconfont {{#if promotionId}}disabled{{/if}}">&#xe625;</span>
</a>
<input id="good-num" class="good-num disabled" type="text" value="1" disabled="true">
<input id="good-num" class="good-num disabled" type="text" {{#if @root.discountBuy}}value="{{@root.discountBuy.num}}" {{^}} value="1"{{/if}} disabled="true">
<a class="btn btn-plus" href="javascript:void(0);">
<span class="iconfont {{#if promotionId}}disabled{{/if}}">&#xe624;</span>
</a>
</div>
{{#if @root.discountBuy}}
<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>
<input id="mnum" type="hidden" value="{{@root.discountBuy.num}}">
{{^}}
<span class="left-num"></span>
{{/if}}
<input id="left-num" type="hidden" value="0">
<input id="limitNum" type="hidden" value="{{limit}}">
</div>
... ...
... ... @@ -59,7 +59,7 @@ var limitProductCode,
skn;
// 量贩商品
var discountNum = $('#discount-buy').val() - 0,
var discountNum = $('#mnum').val() - 0,
$promotionPhrase = $('#promotion-phrase');
// 禁用数字编辑
... ...