feat(邀请码页面): 修复未绑定别人跳转到自己私聊页的问题
This commit is contained in:
parent
080c609627
commit
ca5020cf67
@ -7,7 +7,7 @@
|
|||||||
<!-- 确认邀请码 -->
|
<!-- 确认邀请码 -->
|
||||||
<div style="padding: 87% 0 5%">
|
<div style="padding: 87% 0 5%">
|
||||||
<img
|
<img
|
||||||
v-if="!myInviter.expired && !myInviter.userId"
|
v-if="showBindingBt"
|
||||||
:src="images.enterCode"
|
:src="images.enterCode"
|
||||||
alt=""
|
alt=""
|
||||||
width="40%"
|
width="40%"
|
||||||
@ -15,11 +15,11 @@
|
|||||||
style="display: block"
|
style="display: block"
|
||||||
/>
|
/>
|
||||||
<img
|
<img
|
||||||
v-else-if="myInviter.userId"
|
v-else-if="myInviter.inviterInfo?.userId"
|
||||||
:src="images.privateChat"
|
:src="images.privateChat"
|
||||||
alt=""
|
alt=""
|
||||||
width="40%"
|
width="40%"
|
||||||
@click="gotoPrivateChat(myInviter.userId)"
|
@click="gotoPrivateChat(myInviter.inviterInfo?.userId)"
|
||||||
style="display: block"
|
style="display: block"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -488,6 +488,10 @@ const inviteAwardPool = ref({})
|
|||||||
|
|
||||||
const showModule = ref('list') //显示模块
|
const showModule = ref('list') //显示模块
|
||||||
|
|
||||||
|
const showBindingBt = computed(() => {
|
||||||
|
return !myInviter.myInfo?.expired && !myInviter.inviterInfo
|
||||||
|
})
|
||||||
|
|
||||||
// 展示遮罩层
|
// 展示遮罩层
|
||||||
const maskLayerShow = computed(() => {
|
const maskLayerShow = computed(() => {
|
||||||
return helpInfoShow.value || enterCodeShow.value
|
return helpInfoShow.value || enterCodeShow.value
|
||||||
@ -545,7 +549,7 @@ const apiGetMyInviteCode = async () => {
|
|||||||
const apiGetMyInviter = async () => {
|
const apiGetMyInviter = async () => {
|
||||||
const resInviter = await getMyInviter()
|
const resInviter = await getMyInviter()
|
||||||
if (resInviter.status && resInviter.body) {
|
if (resInviter.status && resInviter.body) {
|
||||||
myInviter.value = resInviter.body.myInfo || {}
|
myInviter.value = resInviter.body || {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user