|
|
|
@ -311,7 +311,7 @@ |
|
|
|
|
this.getCartNum(); |
|
|
|
|
this.goodsHidden = true; |
|
|
|
|
this.footerswitch = true; |
|
|
|
|
// this.isAllSelect = true; //全不选 |
|
|
|
|
this.isAllSelect = true; //全不选 |
|
|
|
|
this.selectValue = []; //选中的数据 |
|
|
|
|
this.isShowAuth = false; |
|
|
|
|
uni.setStorage({ |
|
|
|
@ -355,6 +355,8 @@ |
|
|
|
|
console.log(selectedArr) |
|
|
|
|
if(selectedArr.length==i.list.length){ |
|
|
|
|
this.$set(i,'allCheck',true) |
|
|
|
|
}else{ |
|
|
|
|
this.$set(i,'allCheck',false) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
@ -748,6 +750,7 @@ |
|
|
|
|
}) |
|
|
|
|
this.cartList.valid = res.data.list; |
|
|
|
|
let newArr=JSON.parse(uni.getStorageSync('cartSelectedGoods')) |
|
|
|
|
console.log(newArr,"报错") |
|
|
|
|
this.cartList.valid.forEach(item=>{ |
|
|
|
|
item.list.forEach(p=>{ |
|
|
|
|
newArr.forEach(i=>{ |
|
|
|
@ -847,7 +850,7 @@ |
|
|
|
|
// 全选 |
|
|
|
|
console.log(allArr,"oooo12345",this.cartList.valid,isFirst) |
|
|
|
|
if(!isFirst){ |
|
|
|
|
this.isAllSelect = allArr.length == this.cartList.valid.length ? true : false |
|
|
|
|
this.isAllSelect = allArr.length!=0&&this.cartList.valid.length!=0&&allArr.length == this.cartList.valid.length ? true : false |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|