diff --git a/components/area-product-list/special-area-wrapper.vue b/components/area-product-list/special-area-wrapper.vue index 91e92fc..fcf78d5 100644 --- a/components/area-product-list/special-area-wrapper.vue +++ b/components/area-product-list/special-area-wrapper.vue @@ -28,7 +28,11 @@ - + ['normal', 'small'].includes(value), }, + userInfo: { + type: Object, + default: () => {}, + }, }, components: { 'area-product-list': areaProductList, @@ -95,12 +103,14 @@ export default { ...mapGetters(['isZeroLevel']), }, created() { - const userInfo = uni.getStorageSync('userInfo') - if (userInfo.memberSign != MEMBER_SIGN.ZERO_LEVEL) { - this.getAreaListById(REISSUE_AREA.id, this.rescissionList) - this.getAreaListById(REGIEST_AREA.id, this.registList) + const userInfo = uni.getStorageSync('userInfo') || this.userInfo + if (userInfo.memberSign == MEMBER_SIGN.ZERO_LEVEL) { + this.getAreaListById(UPGRADE_AREA.id, this.upgradeList) + this.upgrade.name = '会员专区' + return } - this.getAreaListById(UPGRADE_AREA.id, this.upgradeList) + this.getAreaListById(REISSUE_AREA.id, this.rescissionList) + this.getAreaListById(REGIEST_AREA.id, this.registList) this.getAreaListById(REPURCHASE_AREA.id, this.repurchaseList) }, methods: { diff --git a/pages/index/index.vue b/pages/index/index.vue index a42e698..6dd4eb7 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -28,59 +28,10 @@ - - - - - - - - - - - {{ item.waresName }} - - 累计销量{{ formatSales(item.sales) }} - - - {{ priceSymbol }} - - {{ formatCurrency(item.vipPrice) }} - - - - {{ priceSymbol }} - - {{ formatCurrency(item.waresPrice) }} - - - - {{ priceSymbol }} - - {{ formatCurrency(item.waresPrice) }} - - - - - - + + +
diff --git a/pages/specialArea/index.vue b/pages/specialArea/index.vue index a673037..3fa8a08 100644 --- a/pages/specialArea/index.vue +++ b/pages/specialArea/index.vue @@ -6,7 +6,7 @@ -->