diff --git a/components/area-product-list/special-area-wrapper.vue b/components/area-product-list/special-area-wrapper.vue
index 7a992a9..e2477ee 100644
--- a/components/area-product-list/special-area-wrapper.vue
+++ b/components/area-product-list/special-area-wrapper.vue
@@ -65,6 +65,13 @@ import { getAreaGoods } from '@/config/special-area'
import { mapGetters } from 'vuex'
export default {
name: 'SpecialAreaWrapper',
+ props: {
+ size: {
+ type: String,
+ default: 'normal', // 'normal' or 'small'
+ validator: value => ['normal', 'small'].includes(value),
+ },
+ },
components: {
'area-product-list': areaProductList,
},
@@ -84,7 +91,8 @@ export default {
...mapGetters(['isZeroLevel']),
},
created() {
- if (!this.isZeroLevel) {
+ 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)
}
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 59fcc14..d1ddac9 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -28,7 +28,7 @@
-
+
state.system.priceSymbol,
priceDecimal: state => state.system.priceDecimal,
priceSymbolVisible: state => state.system.priceSymbolVisible,
- isZeroLevel: state => state.user?.user?.memberSign === MEMBER_SIGN.ZERO_LEVEL,
+ isZeroLevel: state =>
+ state.user?.user?.memberSign === MEMBER_SIGN.ZERO_LEVEL ||
+ (!state.user?.user?.memberSign && state.user?.user?.memberSign !== 0),
}
export default getters