Authored by htoooth

fix

... ... @@ -10,7 +10,7 @@
</ul>
</div>
<div class="chose-size row clearfix {{#if isTicket}} hide {{/if}}">
<div class="chose-size row clearfix {{#unless isTicket}} hide {{/unless}}">
<input type="hidden" name="isTicket" value="{{isTicket}}"/>
<span class="title pull-left">
选区域:
... ...
... ... @@ -607,11 +607,16 @@ bindEvent.add(function() {
$('.few-sold').addClass('hide');
}
// 没有选中尺码
maxStock = +$('.size:not(.hide) li.focus').data('num');
// 选中尺码
if ($('.size:not(.hide) li.focus').length === 1) {
maxStock = +$('.size:not(.hide) li.focus').data('num');
} else {
// 没有选中
maxStock = -1;
}
// 如果库存数量为 0,表示已售罄
if (!maxStock) {
maxStock = -1;
$enableNotifyYou.addClass('hide'); // 没有
// 初始化color-size显示或隐藏
... ...