当用户信息rate>0时展示团队

This commit is contained in:
YeMingfei666 2024-12-17 18:49:24 +08:00
parent dee181749b
commit a03f005009
1 changed files with 5 additions and 7 deletions

View File

@ -184,7 +184,7 @@
观看历史
</view>
</view>
<!-- <view v-if="rate>0" class="tool-box-content-item flex align-center justify-center flex-wrap"
<view v-if="rate>0" class="tool-box-content-item flex align-center justify-center flex-wrap"
@click="goNav('/me/invite/inviteDet')">
<view class="tool-box-content-item-img">
<image src="../../static/images/me/vtd.png" mode=""></image>
@ -192,7 +192,7 @@
<view class="tool-box-content-item-txt">
我的团队
</view>
</view> -->
</view>
<view class="tool-box-content-item flex align-center justify-center flex-wrap" @click="goMsg()">
<view class="tool-box-content-item-img">
<image src="../../static/images/me/vkf.png" mode=""></image>
@ -288,6 +288,7 @@
showCard: false,
numCount: 0,
rate: 0,
twoRate:0,
kmPaySel: '否',
isWxIosPay: true, //
userInfo: {},
@ -315,11 +316,8 @@
this.userName = res.data.userName
this.avatar = res.data.avatar
this.invitationCode = res.data.invitationCode
if (res.data.rate) {
this.rate = (Number(res.data.rate) * 100).toFixed(0)
} else {
this.rate = 0
}
this.rate = res.data.rate||0
this.twoRate = res.data.twoRate||0
}
})