Fix(购物车):[#1313]购物车点击全选后,取消选择部分商品,全选按钮仍然被勾选

This commit is contained in:
lifizer
2024-04-26 18:26:29 +08:00
parent 6aa3fbdd54
commit c91409150f
+7
View File
@@ -330,6 +330,13 @@ export default {
}) })
this.list[mark[0]]['state'] = count === length this.list[mark[0]]['state'] = count === length
} }
let shopCheckNumber = 0
this.list.map(item => {
if (item.state) {
shopCheckNumber++
}
})
this.isAll = shopCheckNumber === this.list.length
}, },
changeNumHandle(index, gIndex, good, e) { changeNumHandle(index, gIndex, good, e) {
const { type } = e const { type } = e