From 304d8892963cd579a77840ae9d19555e55be5e73 Mon Sep 17 00:00:00 2001 From: woody Date: Wed, 24 Sep 2025 09:50:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(shoppingCar):=20=E8=B4=AD=E7=89=A9=E8=BD=A6?= =?UTF-8?q?=E4=BC=9A=E5=91=98=E4=B8=93=E5=8C=BA=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/shoppingCar/index.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pages/shoppingCar/index.vue b/pages/shoppingCar/index.vue index ef2f273..a134f4d 100644 --- a/pages/shoppingCar/index.vue +++ b/pages/shoppingCar/index.vue @@ -356,7 +356,7 @@ export default { }) // sangelxiu1 this.newShareMember = uni.getStorageSync('User')?.loginType !== 0 - if(this.newShareMember){ + if (this.newShareMember) { uni.navigateTo({ url: '/pages/regiest/shareRegister?specialArea=' + @@ -364,7 +364,7 @@ export default { '&shoppArr=' + JSON.stringify(shoppArr), }) - }else{ + } else { uni.navigateTo({ url: '/pages/regiest/index?specialArea=' + @@ -586,12 +586,14 @@ export default { }) }) this.shopCarList = res.data - if(this.newShareMember){ - if(this.shopCarList){ - this.shopCarList = this.shopCarList.filter(car => car.specialArea === 41); - let subCar = this.shopCarList.find(car => car.specialArea === 41) - this.$set(subCar, 'specialAreaVal', '会员专区') - } + if (this.newShareMember) { + if (this.shopCarList) { + this.shopCarList = this.shopCarList.filter( + car => car.specialArea === 1 + ) + let subCar = this.shopCarList.find(car => car.specialArea === 1) + this.$set(subCar, 'specialAreaVal', '会员专区') + } } }) },