From 0ee7347883db663ef24c9d452af9b8f539cbd851 Mon Sep 17 00:00:00 2001 From: woody Date: Sat, 5 Jul 2025 09:42:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(gloabl)=EF=BC=9A=20v0=E4=BC=9A=E5=91=98?= =?UTF-8?q?=E5=8F=AA=E8=83=BD=E7=9C=8B=E5=88=B0=E5=8D=87=E7=BA=A7=E4=B8=93?= =?UTF-8?q?=E5=8C=BA=EF=BC=8C=E4=B8=94=E5=8D=87=E7=BA=A7=E4=B8=93=E5=8C=BA?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E4=B8=BA=E4=BC=9A=E5=91=98=E4=B8=93=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../special-area-wrapper.vue | 22 ++++++-- pages/index/index.vue | 55 +------------------ pages/specialArea/index.vue | 6 +- pages/specialArea/list.vue | 15 +++-- pages/upgrade/index.vue | 10 +++- 5 files changed, 39 insertions(+), 69 deletions(-) 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 @@ -->