feat(special-area-wrapper): 修复升级、复购专区不展示的问题

This commit is contained in:
woody 2025-06-10 16:33:12 +08:00
parent b628a54816
commit 6a7ffe2c24
2 changed files with 22 additions and 9 deletions

View File

@ -1,7 +1,11 @@
<template> <template>
<view class="goods-sort"> <view class="goods-sort">
<!-- 注册 --> <!-- 注册 -->
<view v-if="registList.length > 0 && !isZeroLevel" class="goods-flexs"> <view
key="regist"
v-if="registList.length > 0 && !isZeroLevel"
class="goods-flexs"
>
<view class="goods-view"> <view class="goods-view">
<area-product-list <area-product-list
:list="registList" :list="registList"
@ -11,7 +15,7 @@
</view> </view>
</view> </view>
<!-- 升级 --> <!-- 升级 -->
<view v-if="upgradeList.length > 0" class="goods-flexs"> <view key="upgrade" v-if="upgradeList.length > 0" class="goods-flexs">
<view class="goods-view"> <view class="goods-view">
<area-product-list <area-product-list
:list="upgradeList" :list="upgradeList"
@ -21,7 +25,8 @@
</view> </view>
</view> </view>
<!-- 复购 --> <!-- 复购 -->
<view v-if="repurchaseList.length > 0" class="goods-flexs">
<view key="repurchase" v-if="repurchaseList.length > 0" class="goods-flexs">
<view class="goods-view"> <view class="goods-view">
<area-product-list <area-product-list
:list="repurchaseList" :list="repurchaseList"
@ -31,7 +36,11 @@
</view> </view>
</view> </view>
<!-- 重消 --> <!-- 重消 -->
<view v-if="!isZeroLevel && rescissionList.length > 0" class="goods-flexs"> <view
key="rescission"
v-if="!isZeroLevel && rescissionList.length > 0"
class="goods-flexs"
>
<view class="goods-view"> <view class="goods-view">
<area-product-list <area-product-list
:list="rescissionList" :list="rescissionList"
@ -76,11 +85,11 @@ export default {
}, },
created() { created() {
if (!this.isZeroLevel) { if (!this.isZeroLevel) {
this.getAreaListById(UPGRADE_AREA.id, this.upgradeList) this.getAreaListById(REISSUE_AREA.id, this.rescissionList)
this.getAreaListById(REPURCHASE_AREA.id, this.repurchaseList) this.getAreaListById(REGIEST_AREA.id, this.registList)
} }
this.getAreaListById(REISSUE_AREA.id, this.rescissionList) this.getAreaListById(UPGRADE_AREA.id, this.upgradeList)
this.getAreaListById(REGIEST_AREA.id, this.registList) this.getAreaListById(REPURCHASE_AREA.id, this.repurchaseList)
}, },
methods: { methods: {
getAreaListById(areaId, list) { getAreaListById(areaId, list) {

View File

@ -183,7 +183,7 @@
</view> </view>
<!-- 市场动态 --> <!-- 市场动态 -->
<view class="my_order" v-if="actMenu"> <view class="my_order" v-if="marketWrapperVisible">
<view class="my_title"> <view class="my_title">
<text class="thetitle">{{ '市场动态' }}</text> <text class="thetitle">{{ '市场动态' }}</text>
</view> </view>
@ -300,6 +300,7 @@
import clTabbar from '@/components/cl-tabbar.vue' import clTabbar from '@/components/cl-tabbar.vue'
import * as min from '@/config/balance.js' import * as min from '@/config/balance.js'
import * as api from '@/config/login.js' import * as api from '@/config/login.js'
import { MEMBER_SIGN } from '@/util/common.js'
// import talentList from "@/components/talentList.vue"; // import talentList from "@/components/talentList.vue";
export default { export default {
components: { components: {
@ -532,6 +533,9 @@ export default {
rawPercentage: clampedPercentage, rawPercentage: clampedPercentage,
} }
}, },
marketWrapperVisible() {
return this.userInfo.memberSign == MEMBER_SIGN.V5_LEVEL
},
}, },
methods: { methods: {