3
0
Fork 0

fix(specialArea): 首页专区展示问题修复

This commit is contained in:
woody 2025-09-18 11:36:21 +08:00
parent 9108eb14dd
commit 5252879a3d
2 changed files with 12 additions and 15 deletions

View File

@ -103,9 +103,8 @@ export default {
...mapGetters(['isZeroLevel']), ...mapGetters(['isZeroLevel']),
}, },
created() { created() {
const userInfo = Object.keys(this.userInfo).length this.$store.dispatch('GetInfo').then(user => {
? this.userInfo const userInfo = user
: uni.getStorageSync('userInfo')
if (userInfo.memberSign == MEMBER_SIGN.ZERO_LEVEL) { if (userInfo.memberSign == MEMBER_SIGN.ZERO_LEVEL) {
this.upgrade.name = '会员专区' this.upgrade.name = '会员专区'
} else { } else {
@ -114,6 +113,7 @@ export default {
this.getAreaListById(REPURCHASE_AREA.id, this.repurchaseList) this.getAreaListById(REPURCHASE_AREA.id, this.repurchaseList)
} }
this.getAreaListById(UPGRADE_AREA.id, this.upgradeList) this.getAreaListById(UPGRADE_AREA.id, this.upgradeList)
})
}, },
methods: { methods: {
getAreaListById(areaId, list) { getAreaListById(areaId, list) {

View File

@ -29,7 +29,7 @@
</swiper> </swiper>
</view> </view>
</view> </view>
<view v-if="specialAreaVisble" style="padding-bottom: 140rpx"> <view style="padding-bottom: 140rpx">
<special-area-wrapper :userInfo="userInfo" size="small" /> <special-area-wrapper :userInfo="userInfo" size="small" />
</view> </view>
<cl-tabbar :current="0"></cl-tabbar> <cl-tabbar :current="0"></cl-tabbar>
@ -128,9 +128,6 @@ export default {
}, },
computed: { computed: {
...mapGetters(['priceSymbol', 'priceSymbolVisible', 'isZeroLevel']), ...mapGetters(['priceSymbol', 'priceSymbolVisible', 'isZeroLevel']),
specialAreaVisble() {
return this.userInfo && Object.keys(this.userInfo).length
},
}, },
onLoad() { onLoad() {
// this.getLanguage(); // this.getLanguage();