feat(邀请码页面): 修复未绑定别人跳转到自己私聊页的问题

This commit is contained in:
hzj 2025-11-03 11:40:42 +08:00
parent 080c609627
commit ca5020cf67

View File

@ -7,7 +7,7 @@
<!-- 确认邀请码 -->
<div style="padding: 87% 0 5%">
<img
v-if="!myInviter.expired && !myInviter.userId"
v-if="showBindingBt"
:src="images.enterCode"
alt=""
width="40%"
@ -15,11 +15,11 @@
style="display: block"
/>
<img
v-else-if="myInviter.userId"
v-else-if="myInviter.inviterInfo?.userId"
:src="images.privateChat"
alt=""
width="40%"
@click="gotoPrivateChat(myInviter.userId)"
@click="gotoPrivateChat(myInviter.inviterInfo?.userId)"
style="display: block"
/>
</div>
@ -488,6 +488,10 @@ const inviteAwardPool = ref({})
const showModule = ref('list') //
const showBindingBt = computed(() => {
return !myInviter.myInfo?.expired && !myInviter.inviterInfo
})
//
const maskLayerShow = computed(() => {
return helpInfoShow.value || enterCodeShow.value
@ -545,7 +549,7 @@ const apiGetMyInviteCode = async () => {
const apiGetMyInviter = async () => {
const resInviter = await getMyInviter()
if (resInviter.status && resInviter.body) {
myInviter.value = resInviter.body.myInfo || {}
myInviter.value = resInviter.body || {}
}
}