|
|
@@ -385,10 +385,10 @@
|
|
|
},
|
|
|
setSub(item, type) {
|
|
|
let cartKey = this.cartData.goods_list.findIndex(row => row.goods_id === item.goods_id)
|
|
|
- if (type === 2 && cartKey < 0) {
|
|
|
+ if (type === 2 ) {
|
|
|
this.setShopIngAdd(item.goods_id, item.category_id, '', 1,item)
|
|
|
} else {
|
|
|
- this.setShopIngNumber(item.goods_id, item.category_id, type, '', 1)
|
|
|
+ this.setShopIngNumber(item.goods_id, item.category_id, type, '', 1,item)
|
|
|
}
|
|
|
},
|
|
|
setShopIngAdd(goodsId, categoryId, goodsSpecId, number,item) {
|
|
|
@@ -409,7 +409,7 @@
|
|
|
this.isAjax = false
|
|
|
})
|
|
|
},
|
|
|
- setShopIngNumber(goodsId, categoryId, operation, goodsSpecId, number) {
|
|
|
+ setShopIngNumber(goodsId, categoryId, operation, goodsSpecId, number,item) {
|
|
|
setShopIngNumber({
|
|
|
'type': 1,
|
|
|
'goods_id': goodsId,
|