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){