...
|
...
|
@@ -316,6 +316,7 @@ $yohoPage.on('touchstart', '.btn-minus', function() { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
|
|
|
//TODO status change
|
|
|
if ($('#chose-btn-sure').html() === '已售罄') {
|
|
|
return;
|
...
|
...
|
@@ -327,7 +328,10 @@ $yohoPage.on('touchstart', '.btn-minus', function() { |
|
|
tip.show('您选择的数量超过了最大库存量~');
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (num < 0) {
|
|
|
tip.show('您选择的数量小于一件~');
|
|
|
return;
|
|
|
}
|
|
|
$chosed = $('.block-list>ul>li.chosed');
|
|
|
|
|
|
if (2 === $chosed.length && 0 === $chosed.closest('.zero-stock').length) {
|
...
|
...
|
|