feat(gloabl): v0会员只能看到升级专区,且升级专区展示为会员专区
This commit is contained in:
parent
53413462a9
commit
0ee7347883
|
@ -28,7 +28,11 @@
|
|||
</view>
|
||||
<!-- 复购 -->
|
||||
|
||||
<view key="repurchase" v-if="repurchaseList.length > 0" class="goods-flexs">
|
||||
<view
|
||||
key="repurchase"
|
||||
v-if="repurchaseList.length > 0 && !isZeroLevel"
|
||||
class="goods-flexs"
|
||||
>
|
||||
<view class="goods-view">
|
||||
<area-product-list
|
||||
:list="repurchaseList"
|
||||
|
@ -75,6 +79,10 @@ export default {
|
|||
default: 'normal', // 'normal' or 'small'
|
||||
validator: value => ['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: {
|
||||
|
|
|
@ -28,59 +28,10 @@
|
|||
</swiper>
|
||||
</view>
|
||||
</view>
|
||||
<special-area-wrapper size="small" />
|
||||
<view class="goods-sort">
|
||||
<view class="goods_content" style="padding-bottom: 130rpx">
|
||||
<view
|
||||
class="goods-center-lists"
|
||||
v-for="item in goodsList"
|
||||
:key="item.waresId"
|
||||
@click="goDetails(item)"
|
||||
>
|
||||
<view
|
||||
class="fly"
|
||||
v-show="item.preSaleStatus == 3 || item.isSale == 1"
|
||||
></view>
|
||||
<view class="goods-flex-s">
|
||||
<view class="goods-img">
|
||||
<image :src="item.cover1"></image>
|
||||
</view>
|
||||
<view class="padding_s goods-info">
|
||||
<view class="goods-name">{{ item.waresName }}</view>
|
||||
<view class="goods-sales-wrapper">
|
||||
<view class="goods-sales"
|
||||
>累计销量{{ formatSales(item.sales) }}</view
|
||||
>
|
||||
<view
|
||||
class="goods-price"
|
||||
v-if="item.specialArea == 31 && userInfo.isMakerSpace == 1"
|
||||
>
|
||||
<span v-if="priceSymbolVisible" class="price-symbol">
|
||||
{{ priceSymbol }}
|
||||
</span>
|
||||
<span>{{ formatCurrency(item.vipPrice) }}</span>
|
||||
</view>
|
||||
<view class="goods-price" v-if="item.specialArea != 31">
|
||||
<span v-if="priceSymbolVisible" class="price-symbol">
|
||||
{{ priceSymbol }}
|
||||
</span>
|
||||
<span>{{ formatCurrency(item.waresPrice) }}</span>
|
||||
</view>
|
||||
<view
|
||||
class="goods-price"
|
||||
v-if="item.specialArea == 31 && userInfo.isMakerSpace == 0"
|
||||
>
|
||||
<span v-if="priceSymbolVisible" class="price-symbol">
|
||||
{{ priceSymbol }}
|
||||
</span>
|
||||
<span>{{ formatCurrency(item.waresPrice) }}</span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="padding-bottom: 140rpx">
|
||||
<special-area-wrapper :userInfo="userInfo" size="small" />
|
||||
</view>
|
||||
|
||||
<cl-tabbar :current="0"></cl-tabbar>
|
||||
<div>
|
||||
<!-- 公告弹窗 -->
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
-->
|
||||
<template>
|
||||
<view class="content">
|
||||
<special-area-wrapper />
|
||||
<special-area-wrapper :userInfo="userInfo" />
|
||||
|
||||
<cl-tabbar :current="1"></cl-tabbar>
|
||||
</view>
|
||||
|
@ -22,7 +22,9 @@ export default {
|
|||
},
|
||||
|
||||
data() {
|
||||
return {}
|
||||
return {
|
||||
userInfo: uni.getStorageSync('User'),
|
||||
}
|
||||
},
|
||||
onLoad() {},
|
||||
|
||||
|
|
|
@ -249,9 +249,17 @@ export default {
|
|||
// })
|
||||
// }
|
||||
// 修改标题
|
||||
|
||||
// 获取一级分类并获取商品列表
|
||||
// this.getClassIfy()
|
||||
|
||||
this.userInfo = uni.getStorageSync('User')
|
||||
const areaMap = {
|
||||
[REGIEST_AREA.id]: REGIEST_AREA.name,
|
||||
[UPGRADE_AREA.id]: UPGRADE_AREA.name,
|
||||
[UPGRADE_AREA.id]:
|
||||
this.userInfo.memberSign == MEMBER_SIGN.ZERO_LEVEL
|
||||
? '会员专区'
|
||||
: UPGRADE_AREA.name,
|
||||
[REPURCHASE_AREA.id]: REPURCHASE_AREA.name,
|
||||
[REISSUE_AREA.id]: REISSUE_AREA.name,
|
||||
}
|
||||
|
@ -260,11 +268,6 @@ export default {
|
|||
title: this.titLabel,
|
||||
success: () => {},
|
||||
})
|
||||
// 获取一级分类并获取商品列表
|
||||
// this.getClassIfy()
|
||||
|
||||
this.userInfo = uni.getStorageSync('User')
|
||||
|
||||
this.pkCountry = this.userInfo.pkCountry || 1
|
||||
this.setSpecial({
|
||||
value: this.specialArea,
|
||||
|
|
|
@ -337,6 +337,7 @@ import mustAgreeMent from '@/components/mustAgreeMent.vue'
|
|||
import * as api from '@/config/regiest'
|
||||
import agreement from '@/components/agreement.vue'
|
||||
import { upgradeOrder } from '@/config/order'
|
||||
import { MEMBER_SIGN } from '@/util/common'
|
||||
import {
|
||||
REGIEST_AREA,
|
||||
UPGRADE_AREA,
|
||||
|
@ -372,7 +373,7 @@ export default {
|
|||
isTrans: false,
|
||||
countryIndex: 0,
|
||||
isCountry: false,
|
||||
userInfo: '',
|
||||
userInfo: uni.getStorageSync('User'),
|
||||
countryList: [],
|
||||
isClick: 0,
|
||||
specialArea: '',
|
||||
|
@ -528,9 +529,9 @@ export default {
|
|||
// 幂等性
|
||||
this.getGenerate()
|
||||
// 登录信息
|
||||
this.userInfo = uni.getStorageSync('User')
|
||||
this.$set(this.form, 'memberCode', this.userInfo.memberCode)
|
||||
this.$set(this.form, 'memberName', this.userInfo.memberName)
|
||||
console.log(this.userInfo, '...a?')
|
||||
this.setPageTitle(this.specialArea)
|
||||
},
|
||||
onShow() {
|
||||
|
@ -547,7 +548,10 @@ export default {
|
|||
]
|
||||
const title = areaList.find(item => item.id == areaId)?.name
|
||||
uni.setNavigationBarTitle({
|
||||
title,
|
||||
title:
|
||||
this.userInfo.memberSign == MEMBER_SIGN.ZERO_LEVEL
|
||||
? '会员专区'
|
||||
: title,
|
||||
})
|
||||
},
|
||||
toAgree() {
|
||||
|
|
Loading…
Reference in New Issue