Authored by 郭成尧

show-chose-panel

... ... @@ -18,6 +18,9 @@
{{#isAdvanceBuy}}
<div class="flag price-gift"><div class="text">加价购</div></div>
{{/isAdvanceBuy}}
{{#if parent.isBundle}}
<div class="flag bundle"></div>
{{/if}}
</div>
</a>
<div class="info">
... ... @@ -34,11 +37,13 @@
<div class="intro intro-edit">
<div class="edit-box">
{{#ifnot parent.isBundle}}
<div class="num-opt">
<a href="javascript:;" class="btn btn-opt-minus{{#ifor minSelectNum isGift isAdvanceBuy}} disabled{{/ifor}}"><span class="iconfont"></span></a>
<input type="text" class="good-num" disabled="true" value="{{count}}" data-min="{{minNumber}}" data-max="{{maxNumber}}">
<a href="javascript:;" class="btn btn-opt-plus{{#ifor maxSelectNum isGift isAdvanceBuy}} disabled{{/ifor}}"><span class="iconfont"></span></a>
</div>
<div class="num-opt">
<a href="javascript:;" class="btn btn-opt-minus{{#ifor minSelectNum isGift isAdvanceBuy}} disabled{{/ifor}}"><span class="iconfont"></span></a>
<input type="text" class="good-num" disabled="true" value="{{count}}" data-min="{{minNumber}}" data-max="{{maxNumber}}">
<a href="javascript:;" class="btn btn-opt-plus{{#ifor maxSelectNum isGift isAdvanceBuy}} disabled{{/ifor}}"><span class="iconfont"></span></a>
</div>
{{^}}
<input type="hidden" class="good-num" value="{{count}}" data-min="{{minNumber}}" data-max="{{maxNumber}}">
{{/ifnot}}
<div class="edit-size-info {{#ifnot parent.isBundle}} edit-size-info-notop {{/ifnot}}">
<div class="txt">颜色:{{color}} 尺码:{{size}}</div>
... ...
... ... @@ -449,9 +449,10 @@ let goodObj = {
minNum = $(e.delegateTarget).data('mnum');
promotionId = $(e.delegateTarget).data('promotion');
// 加价购或者赠品不能编辑数量
// 加价购或者赠品不能编辑数量,套餐不能编辑数量
canEditNum = $(e.delegateTarget).find('.flag.gift').length ||
$(e.delegateTarget).find('.flag.price-gift').length ? false : true;
$(e.delegateTarget).find('.flag.price-gift').length ||
$(e.delegateTarget).find('.flag.bundle').length ? false : true;
e.stopPropagation();
loading.showLoading();
$.ajax({
... ...