From d28977202a628ba1c539333df5477430c31f2208 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Fri, 5 Dec 2025 11:39:52 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=82=80=E8=AF=B7=E6=96=B0=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E9=A1=B5):=20=E5=AF=B9=E6=8E=A5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/invitation.js | 8 +- src/main.js | 1 - src/views/Invitation/InviteToRegister.vue | 763 ++++++++++++---------- 3 files changed, 429 insertions(+), 343 deletions(-) diff --git a/src/api/invitation.js b/src/api/invitation.js index a253cac..31f783f 100644 --- a/src/api/invitation.js +++ b/src/api/invitation.js @@ -60,13 +60,13 @@ export const getMyInviteUsers = async () => { } } -// 邀请用户奖励池 -export const getInviteAwardPool = async () => { +// 获取绑定用户奖励 +export const apiGetBindingUserRewards = async (data) => { try { - const response = await get(`/activity/invite/user/award/pool`) + const response = await post(`/props-activity/reward/client/map/config-info`, data) return response } catch (error) { - console.error('Failed to fetch get my invite award pool:', error) + console.error('Failed to fetch get binding user rewards:', error) console.error('error:' + error.response.errorMsg) throw error } diff --git a/src/main.js b/src/main.js index 0086a96..e2935d8 100644 --- a/src/main.js +++ b/src/main.js @@ -43,7 +43,6 @@ const RankingPage = [ // 活动页面 const ACTIVITIES = [ - '/invitation-to-register', //邀请新用户(邀请码) '/recharge-reward', //充值奖励页面 '/Lebanon-independence-day', //黎巴嫩独立日 diff --git a/src/views/Invitation/InviteToRegister.vue b/src/views/Invitation/InviteToRegister.vue index 6fb0709..c4fe3f2 100644 --- a/src/views/Invitation/InviteToRegister.vue +++ b/src/views/Invitation/InviteToRegister.vue @@ -11,11 +11,11 @@ -
+
-
-
My invitation code:
-
- *Copy your invitation code and send it to your new friends. -
-
+
+ +
+ + +
+
- - -
- - -
-
+
-
-
- -
+ + +
+
Total invitations:
+
{{ myInviteIncome.validInviteCount || 0 }}
+
+ + +
+
Today's invitation:
+
{{ myInviteIncome.todayInviteCount || 0 }}
+
+ + +
+
Total income:
+
{{ myInviteIncome.totalIncome || 0 }}
-
- -
+ + +
+
Today's income:
+
{{ myInviteIncome.todayIncome || 0 }}
-
- - -
-
-
- Number of valid users invited: {{ myInviteIncome.validInviteCount || 0 }} -
-
+ -
- -
-
Users
-
-
-
Remaining time
-
-
-
- Prowide income -
-
- - -
-
- ID:{{ user.invitedUserAccount || '-' }} -
-
-
-
{{ user.remainingDays || 0 }}Day
-
-
-
- -
- {{ user.provideIncome || 0 }} -
-
-
-
-
- - -
-
-
-
+ +
+
Users
-
+
Remaining time
+
+
+
+ Prowide income +
+
+ + +
+
+
+ ID:{{ user.invitedUserAccount || '-' }} +
+
- -
{{ showAwardText(award) }}
+
+
+ {{ user.remainingDays || 0 }}Day +
+
+
+
+ +
+ {{ user.provideIncome || 0 }} +
-
- - -
-
+ +
+ + +
+
@@ -380,11 +336,13 @@
- -
+
@@ -394,53 +352,95 @@ width: 100vw; height: 100vh; display: flex; + flex-direction: column; justify-content: center; align-items: center; " @click="closedPopup" > -
-
Enter Invitation Code
-
- -
- +
+ + + + +
+
+ + +
+
+
-
+ min-width: 0; + aspect-ratio: 1/1; - - + display: flex; + justify-content: center; + align-items: center; + " + > + +
+
+ {{ showDetail(reward) }} +
+
-
- *Only users who registered within 72 hours can fill in the invitation code. Once the - invitation code is flled in, itcannot be modifed. -
-
+
@@ -459,27 +459,42 @@