From f40a1b1798993aa7317fd1f52daba70582409671 Mon Sep 17 00:00:00 2001
From: hzj <1304805162@qq.com>
Date: Fri, 5 Dec 2025 15:02:24 +0800
Subject: [PATCH] =?UTF-8?q?chore(=E9=82=80=E8=AF=B7=E6=96=B0=E7=94=A8?=
=?UTF-8?q?=E6=88=B7=E9=A1=B5):=20=E8=B0=83=E6=95=B4=E5=AD=97=E4=BD=93?=
=?UTF-8?q?=E5=A4=A7=E5=B0=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/Invitation/InviteToRegister.vue | 148 +++++++++++++++-------
1 file changed, 99 insertions(+), 49 deletions(-)
diff --git a/src/views/Invitation/InviteToRegister.vue b/src/views/Invitation/InviteToRegister.vue
index e7ff6f1..46a2f1a 100644
--- a/src/views/Invitation/InviteToRegister.vue
+++ b/src/views/Invitation/InviteToRegister.vue
@@ -13,7 +13,7 @@
![]()
-
{{ myInviteInfo.inviteCode || '' }}
+
{{ myInviteInfo.inviteCode || '' }}

-
{{ t('total_invitations') }}
-
{{ myInviteIncome.validInviteCount || 0 }}
+
{{ t('total_invitations') }}
+
+ {{ myInviteIncome.validInviteCount || 0 }}
+
@@ -144,8 +147,10 @@
padding: 2vw;
"
>
- {{ t('todays_invitation') }}
- {{ myInviteIncome.todayInviteCount || 0 }}
+ {{ t('todays_invitation') }}
+
+ {{ myInviteIncome.todayInviteCount || 0 }}
+
@@ -158,16 +163,17 @@
padding: 2vw;
"
>
- {{ t('invitation_total_income') }}
+ {{ t('invitation_total_income') }}

-
{{ myInviteIncome.totalIncome || 0 }}
+
+ {{ myInviteIncome.totalIncome || 0 }}
+
@@ -181,16 +187,17 @@
padding: 2vw;
"
>
- {{ t('todays_income') }}
+ {{ t('todays_income') }}

-
{{ myInviteIncome.todayIncome || 0 }}
+
+ {{ myInviteIncome.todayIncome || 0 }}
+
@@ -217,7 +224,12 @@
>
-
{{ t('users') }}
+
+
+ {{ t('users') }}
+
+
+
+
-
{{ t('remaining_time') }}
+
+
+ {{ t('remaining_time') }}
+
+
+
-
+
+
+
{{ t('prowide_income') }}
@@ -262,7 +290,7 @@
v-for="user in myInviteUsers"
style="width: 100%; display: flex; align-items: center"
>
-
+
{{ t('user_id_prefix') }}{{ user.invitedUserAccount || '-' }}
-
+
{{ user.remainingDays || 0 }}{{ t('day_unit') }}
-

-
+

+
{{ user.provideIncome || 0 }}
@@ -513,8 +546,24 @@ const bindingUserRewards = ref([]) //绑定用户奖励
const showModule = ref('process') //显示模块
-const showBindingBt = computed(() => {
- return !myInviter.value.myInfo?.expired && !myInviter.value.inviterInfo
+const leftBtType = computed(() => {
+ // 数据还未加载完成
+ if (!myInviter.value || Object.keys(myInviter.value).length === 0) {
+ return null
+ }
+
+ // 优先级1: 如果有邀请人信息且有userId,则显示私聊按钮
+ if (myInviter.value.inviterInfo?.userId) {
+ return 'privateChat'
+ }
+
+ // 优先级2: 如果没有过期且没有邀请人,则显示输入邀请码按钮
+ if (!myInviter.value.myInfo?.expired && !myInviter.value.inviterInfo) {
+ return 'enterCode'
+ }
+
+ // 其他情况不显示按钮
+ return null
})
// 展示遮罩层
@@ -728,7 +777,7 @@ onMounted(() => {