|
|
|
@ -453,7 +453,7 @@ |
|
|
|
|
}).then(res=>{ |
|
|
|
|
this.selectCountPrice = 0.00 |
|
|
|
|
this.cartCount = 0; |
|
|
|
|
this.getCartList(true); |
|
|
|
|
this.getCartList(true,'isdel'); |
|
|
|
|
this.getCartNum(); |
|
|
|
|
return that.$util.Tips({ |
|
|
|
|
title: res.message, |
|
|
|
@ -777,7 +777,7 @@ |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
// 购物车列表 |
|
|
|
|
getCartList: function(isChange) { |
|
|
|
|
getCartList: function(isChange,val) { |
|
|
|
|
let that = this; |
|
|
|
|
let resArr=[] |
|
|
|
|
this.cartList.valid.forEach(item=>{ |
|
|
|
@ -855,6 +855,17 @@ |
|
|
|
|
this.selectCountPrice = totalMoney |
|
|
|
|
this.cartCount = totalNum |
|
|
|
|
} |
|
|
|
|
if(val=='isdel'){ |
|
|
|
|
|
|
|
|
|
this.cartList.valid.forEach(el=>{ |
|
|
|
|
el.list.forEach(e => { |
|
|
|
|
e.check = false; |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
this.selectCountPrice = 0 |
|
|
|
|
this.cartCount = 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|