[去升级换字段判断用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

@@ -703,11 +703,11 @@
<input type="digit" v-model="skus_price" placeholder="0.00"/> <input type="digit" v-model="skus_price" placeholder="0.00"/>
<text class="units">{{skus_unit != '' ? '/' + skus_unit : ''}}</text> <text class="units">{{skus_unit != '' ? '/' + skus_unit : ''}}</text>
</view> </view>
<view class="form-box inputs-flex input-unit"> <!-- <view class="form-box inputs-flex input-unit">
<label class="form-label">分销佣金</label> <label class="form-label">分销佣金</label>
<input type="digit" v-model="skus_charge" placeholder="0.00"/> <input type="digit" v-model="skus_charge" placeholder="0.00"/>
<text class="units">{{skus_unit != '' ? '/' + skus_unit : ''}}</text> <text class="units">{{skus_unit != '' ? '/' + skus_unit : ''}}</text>
</view> </view> -->
</view> </view>
<!-- 商品详情介绍 --> <!-- 商品详情介绍 -->
<view class="form-block"> <view class="form-block">

View File

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

View File

@@ -178,7 +178,7 @@
this.identitie = res.identities this.identitie = res.identities
if (type === 'cre') { if (type === 'cre') {
let Index = res.identities.findIndex(val => val.identity_id == this.$Route.query.identity_id) let Index = res.identities.findIndex(val => val.identity_id == this.$Route.query.identity_id)
if(Index+1 === res.identities){ if(Index+1 === res.identities.length){
this.tabsIndex = Index this.tabsIndex = Index
}else{ }else{
this.tabsIndex = Index+1 this.tabsIndex = Index+1