|
@@ -243,13 +243,13 @@
|
|
this.$util.msg(error.msg,2000);
|
|
this.$util.msg(error.msg,2000);
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- clearProduct(data){
|
|
|
|
- this.handleData = datadata;
|
|
|
|
- console.log('清空')
|
|
|
|
- console.log(this.productKind)
|
|
|
|
- this.productKind= 0;
|
|
|
|
- this.productTotalNum = 0;
|
|
|
|
- this.productTotalAmount = 0;
|
|
|
|
|
|
+ clearProduct(){//成功加入购物车后清空所选值
|
|
|
|
+ this.handleData.productKind= 0;
|
|
|
|
+ this.handleData.productTotalNum = 0;
|
|
|
|
+ this.handleData.productTotalAmount = 0;
|
|
|
|
+ this.handleData.combinationProductList.forEach(item =>{
|
|
|
|
+ item.initProductNum = 0;
|
|
|
|
+ })
|
|
},
|
|
},
|
|
getAddProductCart(){//增加购物车成功和toast弹窗提示成功
|
|
getAddProductCart(){//增加购物车成功和toast弹窗提示成功
|
|
let params ={
|
|
let params ={
|