From c91409150fbbe8564a5a36ca4dc7a6f166de5030 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Fri, 26 Apr 2024 18:26:29 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E8=B4=AD=E7=89=A9=E8=BD=A6):[#1313]?= =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=E7=82=B9=E5=87=BB=E5=85=A8=E9=80=89?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E5=8F=96=E6=B6=88=E9=80=89=E6=8B=A9=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=95=86=E5=93=81=EF=BC=8C=E5=85=A8=E9=80=89=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E4=BB=8D=E7=84=B6=E8=A2=AB=E5=8B=BE=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/cart.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pages/cart.vue b/pages/cart.vue index 4eeeb11..48b2cd2 100644 --- a/pages/cart.vue +++ b/pages/cart.vue @@ -330,6 +330,13 @@ export default { }) 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) { const { type } = e