会员标识
This commit is contained in:
parent
7ba9de08bf
commit
cae3d6bc75
|
@ -46,7 +46,9 @@
|
|||
</view>
|
||||
<view class="bgbox" style="" v-else>
|
||||
<view class="bgbox-top-show">
|
||||
<image src="../../static/vip/membership.png" mode=""></image>
|
||||
<image v-if="vipNameType=='0'" src="../../static/vip/membership2.png" mode=""></image>
|
||||
<image v-if="vipNameType=='1'" src="../../static/vip/membership.png" mode=""></image>
|
||||
<image v-if="vipNameType=='2'" src="../../static/vip/membership3.png" mode=""></image>
|
||||
<view class="bgbox-top-show-youxiao">
|
||||
到期时间 {{timeVipEnd}}
|
||||
</view>
|
||||
|
@ -123,7 +125,8 @@
|
|||
showpay: false,
|
||||
vipData:[],
|
||||
vipShow:false,
|
||||
rateStr:''
|
||||
rateStr:'',
|
||||
vipNameType:''
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
@ -179,8 +182,9 @@
|
|||
this.$Request.get("/app/UserVip/selectUserVip").then(res => {
|
||||
if (res.code == 0) {
|
||||
var data= res.data.endTime||{};
|
||||
this.$queue.setData('isVIP',res.data.isVip)
|
||||
this.vipData=res.data.isVip
|
||||
this.$queue.setData('isVIP',res.data.isVip);
|
||||
this.vipNameType=res.data.vipNameType
|
||||
this.vipData=res.data.isVip;
|
||||
console.log("isVIP------------------->",this.vipData)
|
||||
if(this.vipData=='1'){
|
||||
this.vipShow=true;
|
||||
|
|
|
@ -10,8 +10,10 @@
|
|||
<view class="my-head-top-text">
|
||||
<span>{{userName}}</span>
|
||||
<view class="my-head-top-id">
|
||||
<image class="my-head-vip" style="width:60rpx; height: 60rpx;" src="../../static/vipster.png"></image>
|
||||
<span>月会员</span>
|
||||
<image v-if="vipNameType=='0'" class="my-head-vip" style="width:60rpx; height: 60rpx;" src="../../static/vip/membership5.png"></image>
|
||||
<image v-if="vipNameType=='1'" class="my-head-vip" style="width:60rpx; height: 60rpx;" src="../../static/vip/membership6.png"></image>
|
||||
<image v-if="vipNameType=='2'" class="my-head-vip" style="width:60rpx; height: 60rpx;" src="../../static/vip/membership4.png"></image>
|
||||
<span>{{vipNameType=='0'?'月':vipNameType=='1'?'季':'年'}}会员</span>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
@ -149,7 +151,8 @@
|
|||
{urlImg:'../../static/my-gong-9.png',text:'我的团队',link:'/pages/my/myteam'},
|
||||
],
|
||||
token:'',
|
||||
vipData:[]
|
||||
vipData:[],
|
||||
vipNameType:''
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
|
@ -455,7 +458,8 @@
|
|||
getIsVip() {
|
||||
this.$Request.get("/app/UserVip/selectUserVip").then(res => {
|
||||
if (res.code == 0) {
|
||||
this.isVip = res.data.isVip
|
||||
this.vipNameType=res.data.vipNameType;
|
||||
this.isVip = res.data.isVip;
|
||||
this.$queue.setData('isVIP',this.isVip)
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue