feat(special-area-wrapper): 修复升级、复购专区不展示的问题
This commit is contained in:
parent
b628a54816
commit
6a7ffe2c24
|
@ -1,7 +1,11 @@
|
|||
<template>
|
||||
<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">
|
||||
<area-product-list
|
||||
:list="registList"
|
||||
|
@ -11,7 +15,7 @@
|
|||
</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">
|
||||
<area-product-list
|
||||
:list="upgradeList"
|
||||
|
@ -21,7 +25,8 @@
|
|||
</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">
|
||||
<area-product-list
|
||||
:list="repurchaseList"
|
||||
|
@ -31,7 +36,11 @@
|
|||
</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">
|
||||
<area-product-list
|
||||
:list="rescissionList"
|
||||
|
@ -76,11 +85,11 @@ export default {
|
|||
},
|
||||
created() {
|
||||
if (!this.isZeroLevel) {
|
||||
this.getAreaListById(UPGRADE_AREA.id, this.upgradeList)
|
||||
this.getAreaListById(REPURCHASE_AREA.id, this.repurchaseList)
|
||||
this.getAreaListById(REISSUE_AREA.id, this.rescissionList)
|
||||
this.getAreaListById(REGIEST_AREA.id, this.registList)
|
||||
}
|
||||
this.getAreaListById(REISSUE_AREA.id, this.rescissionList)
|
||||
this.getAreaListById(REGIEST_AREA.id, this.registList)
|
||||
this.getAreaListById(UPGRADE_AREA.id, this.upgradeList)
|
||||
this.getAreaListById(REPURCHASE_AREA.id, this.repurchaseList)
|
||||
},
|
||||
methods: {
|
||||
getAreaListById(areaId, list) {
|
||||
|
|
|
@ -183,7 +183,7 @@
|
|||
</view>
|
||||
|
||||
<!-- 市场动态 -->
|
||||
<view class="my_order" v-if="actMenu">
|
||||
<view class="my_order" v-if="marketWrapperVisible">
|
||||
<view class="my_title">
|
||||
<text class="thetitle">{{ '市场动态' }}</text>
|
||||
</view>
|
||||
|
@ -300,6 +300,7 @@
|
|||
import clTabbar from '@/components/cl-tabbar.vue'
|
||||
import * as min from '@/config/balance.js'
|
||||
import * as api from '@/config/login.js'
|
||||
import { MEMBER_SIGN } from '@/util/common.js'
|
||||
// import talentList from "@/components/talentList.vue";
|
||||
export default {
|
||||
components: {
|
||||
|
@ -532,6 +533,9 @@ export default {
|
|||
rawPercentage: clampedPercentage,
|
||||
}
|
||||
},
|
||||
marketWrapperVisible() {
|
||||
return this.userInfo.memberSign == MEMBER_SIGN.V5_LEVEL
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
Loading…
Reference in New Issue