...
|
...
|
@@ -278,8 +278,14 @@ $yohoPage.on('touchstart', '.btn-minus', function() { |
|
|
}
|
|
|
|
|
|
//TODO:库存数验证
|
|
|
if (num > leftNum) {
|
|
|
$num.val(leftNum);
|
|
|
return;
|
|
|
}
|
|
|
$num.val(num + 1);
|
|
|
}).on('touchstart', '#chose-btn-sure', function() {
|
|
|
});
|
|
|
|
|
|
$yohoPage.on('touchstart', '#chose-btn-sure', function() {
|
|
|
|
|
|
var productSku,
|
|
|
buyNumber = $('#good-num').val() - 0,
|
...
|
...
|
@@ -293,6 +299,10 @@ $yohoPage.on('touchstart', '.btn-minus', function() { |
|
|
if (!checkColorSizeNum()) {
|
|
|
return;
|
|
|
}
|
|
|
if (isNaN(num)) {
|
|
|
tip.show('您选择的数量不是一个数字~');
|
|
|
return;
|
|
|
};
|
|
|
|
|
|
//TODO status change
|
|
|
if ($('#chose-btn-sure').html() === '已售罄') {
|
...
|
...
|
|