|
@@ -329,9 +329,9 @@
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
console.log(pass);
|
|
console.log(pass);
|
|
|
- if (item.num + pass * type > 0) {
|
|
|
|
|
|
|
+ if ((+item.num) + pass * type > 0) {
|
|
|
//修改商品数量
|
|
//修改商品数量
|
|
|
- that.changeCartShop(item.cartId, item.num + pass * type).then(function (data) {
|
|
|
|
|
|
|
+ that.changeCartShop(item.cartId, (+item.num) + pass * type).then(function (data) {
|
|
|
console.log(data.data.status);
|
|
console.log(data.data.status);
|
|
|
if (data.data.status == 200) {
|
|
if (data.data.status == 200) {
|
|
|
item.num += pass * type;
|
|
item.num += pass * type;
|