From 7c4ec59325b629f638f08521c15c700cf85a8aad Mon Sep 17 00:00:00 2001 From: BigBoss <2280520255@qq.com> Date: Sun, 7 Jun 2020 11:16:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/cart/cart.vue | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/pages/cart/cart.vue b/src/pages/cart/cart.vue index 5bccab6..084cf60 100644 --- a/src/pages/cart/cart.vue +++ b/src/pages/cart/cart.vue @@ -26,7 +26,7 @@ > @@ -181,17 +181,13 @@ export default { } }, //单选按钮 - childClick(type,index){ - if(type){ - this.childIsOpenArr[index] = false - this.pIsoPen = false - }else{ - this.childIsOpenArr[index] = true - } + childClick(index){ + this.childIsOpenArr[index] = !this.childIsOpenArr[index] if(this.childIsOpenArr.find(item => item == false)==undefined){ this.pIsoPen = true + }else{ + this.pIsoPen = false } - console.log(this.childIsOpenArr) }, //修改购物车 chooseCartModi(mp_id,sk_id,price,pid,num,cart_id,index){ -- 2.0.0