[去升级换字段判断用is_top判断]

This commit is contained in:
2021-10-27 09:53:29 +08:00
parent 61a417065a
commit 29f5a1e755
3 changed files with 13 additions and 9 deletions

View File

@@ -58,14 +58,14 @@
<view class="userVip-top-name" v-if="userIdentity.right">
{{ userData.identity.id == 1 ? '开通' + userIdentity.right.name : '到期时间' + userIdentity.times.ended_at}}
</view>
<view class="userVip-top-btn" v-if="userData.identity.id != 5"
@click="openVip(userIdentity.right.identity_id)">
{{ userData.identity.id == 1 ? '去开通' : '去升级'}}
<!-- v-if="userData.identity.id != 5" -->
<view class="userVip-top-btn" @click="openVip(userIdentity.right.identity_id)" >
{{ userData.identity.id == 1 ? '去开通' : userIdentity.is_top ?'已达成满级':'去升级'}}
<image class="userVip-top-arrow" src="/static/user/userVip_arrow.png"></image>
</view>
<view class="userVip-top-btn" v-else>
<!-- <view class="userVip-top-btn" v-else>
已达成满级
</view>
</view> -->
</view>
<!-- 已认证后显示 -->
<view class="userVip-rights">
@@ -75,10 +75,14 @@
全部更多 <image class="userVip-rightst-more-img" src="/static/user/userVip_more_arrow.png">
</image>
</view> -->
<view class="userVip-rightst-more" @click="openVip(userIdentity.right.identity_id)">
<view class="userVip-rightst-more" @click="openVip(userIdentity.right.identity_id)">
全部更多 <image class="userVip-rightst-more-img" src="/static/user/userVip_more_arrow.png">
</image>
</view>
<!-- <view class="userVip-rightst-more" v-else>
全部更多 <image class="userVip-rightst-more-img" src="/static/user/userVip_more_arrow.png">
</image>
</view> -->
</view>
<view class="userVip-rightst-list" v-if="userIdentity.right">
<view v-for="(item, index) in userIdentity.right.rights" :key="index"