From 6a27c8bca269a86138917293612ed5f4a9826510 Mon Sep 17 00:00:00 2001 From: woody Date: Wed, 17 Sep 2025 10:41:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(index):=20=E9=A6=96=E9=A1=B5=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E4=B8=93=E5=8C=BA=E5=88=97=E8=A1=A8=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=9C=A8onshow=E6=97=B6=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 0118eb6..8d350dd 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -421,13 +421,14 @@ export default { ) { } this.getGoodsInfo() - this.getAreaGoods() + // this.getLanguage(); this.getService() }, onShow() { this.$store.dispatch('getCarLength') this.user = uni.getStorageSync('User') + this.getAreaGoods() this.newShareMember = this.user?.loginType !== 0 }, onPullDownRefresh() { @@ -474,12 +475,16 @@ export default { getAreaGoods() { getAreaGoods().then(res => { this.recommendSpecialAreaList = res.data?.recommendSpecialAreaList || [] - if(this.newShareMember){ - let obj = this.recommendSpecialAreaList.find(item => item.specialArea === 41) - if(obj){ + if (this.newShareMember) { + let obj = this.recommendSpecialAreaList.find( + item => item.specialArea === 41 + ) + if (obj) { this.$set(obj, 'specialAreaName', '会员专区') } - this.recommendSpecialAreaList = this.recommendSpecialAreaList.filter(item => item.specialArea === 41) + this.recommendSpecialAreaList = this.recommendSpecialAreaList.filter( + item => item.specialArea === 41 + ) } }) },