From ac9b0c4d41ff531fc52b019135df1ede64b1c85a Mon Sep 17 00:00:00 2001 From: "jqtmviyu@gmail.com" Date: Fri, 5 Mar 2021 02:04:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=85=A8=E9=80=89=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/cart/cart.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) } }, //深度监听