|
|
|
@ -272,6 +272,7 @@ |
|
|
|
|
// this.getCartList(); |
|
|
|
|
getCartList().then(res => { |
|
|
|
|
console.log(res,"mm") |
|
|
|
|
let hasSelected = false; |
|
|
|
|
res.data.list.forEach(i=>{ |
|
|
|
|
|
|
|
|
|
i.list.forEach(u=>{ |
|
|
|
@ -284,8 +285,14 @@ |
|
|
|
|
if(selectedArr.length==i.list.length){ |
|
|
|
|
this.$set(i,'allCheck',true) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(selectedArr.length>0){ |
|
|
|
|
hasSelected = true; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
if(!hasSelected){ |
|
|
|
|
this.selectCountPrice = 0.00 |
|
|
|
|
this.cartCount = 0 |
|
|
|
|
} |
|
|
|
|
this.cartList.valid = res.data.list; |
|
|
|
|
|
|
|
|
|
let allCheckList = this.cartList.valid.filter(p=>{ |
|
|
|
|