diff --git a/src/pages/cart/cart.vue b/src/pages/cart/cart.vue index 37e2e0c..41d1b01 100644 --- a/src/pages/cart/cart.vue +++ b/src/pages/cart/cart.vue @@ -15,7 +15,7 @@ - + 全选 合计: {{totalPrice}} @@ -64,6 +64,11 @@ export default { return } this.cartList[index].goods_count += num + }, + // 更改全选状态 + selectAllChange(){ + let temp = !this.selectAll + this.cartList.forEach(item=>item.goods_select = temp) } }, //深度监听