|
|
@ -17,13 +17,20 @@ |
|
|
|
<view class="user-base-top"> |
|
|
|
<view class="user-name">{{ userInfo.nickName}}</view> |
|
|
|
<view class="member-level"> |
|
|
|
<image v-if="userInfo.role == 1" :src="configList.vip_user" mode="aspectFill" class="level"> |
|
|
|
<!-- <image v-if="userInfo.role == 0" :src="configList.vip_user" mode="aspectFill" class="level"> |
|
|
|
</image> |
|
|
|
<image v-if="userInfo.role == 2" src="@/static/image/center/gold-min.png" mode="aspectFill" |
|
|
|
class="level"> |
|
|
|
</image> |
|
|
|
<image v-if="userInfo.role == 3" src="@/static/image/center/sliver-min.png" |
|
|
|
mode="aspectFill" class="level"> |
|
|
|
</image> --> |
|
|
|
|
|
|
|
<image |
|
|
|
v-if="userInfo.role != 0" |
|
|
|
:src="configList[vipImage[userInfo.role]]" |
|
|
|
mode="aspectFill" |
|
|
|
class="level"> |
|
|
|
</image> |
|
|
|
</view> |
|
|
|
<view class="user-tag"> |
|
|
@ -48,9 +55,8 @@ |
|
|
|
|
|
|
|
<!-- 会员卡片 --> |
|
|
|
<view @click="$utils.navigateTo({url : '/pages_order/mine/memberCenter' })" |
|
|
|
v-if="userInfo.role != 0" |
|
|
|
class="earnings"> |
|
|
|
<view v-if="index + 1 == userInfo.role" v-for="(item,index) in vipList" :key="item.id" class="member-item"> |
|
|
|
<view v-if="index == userInfo.role" v-for="(item,index) in vipList" :key="item.id" class="member-item"> |
|
|
|
<image :src="item.headImage" mode="aspectFill" class="member-image"></image> |
|
|
|
|
|
|
|
<view class="member-info"> |
|
|
@ -199,10 +205,11 @@ |
|
|
|
data() { |
|
|
|
return { |
|
|
|
vipType: ['普通会员', '黄金会员', '渠道商'], |
|
|
|
vipImage: ['vip_vip', 'vip_user', 'vip_shop'], |
|
|
|
vipImage: ['', 'vip_vip', 'vip_user', 'vip_shop'], |
|
|
|
vipList: [], |
|
|
|
showAdvertising: true, |
|
|
|
userRole: ['会员', '用户', '渠道'], |
|
|
|
userRole: ['用户', '会员', '渠道'], |
|
|
|
// userRole: ['会员', '用户', '渠道'], |
|
|
|
indicatorDots: true, |
|
|
|
duration: 500 |
|
|
|
} |
|
|
|