Authored by uedxwg

'updata'

... ... @@ -275,6 +275,10 @@ $yohoPage.on('touchstart', '.btn-minus', function() {
if (num === 1 || 0 === leftNum - 0) {
return;
}
if (num < 1) {
$num.val(1);
return;
}
$num.val(num - 1);
}).on('touchstart', '.btn-plus', function() {
... ... @@ -292,7 +296,7 @@ $yohoPage.on('touchstart', '.btn-minus', function() {
}
//TODO:库存数验证
if (num > leftNum) {
if (num > leftNum - 1) {
$num.val(leftNum);
return;
}
... ...