From 02599694304a362997cd1d9955665e30de855f08 Mon Sep 17 00:00:00 2001 From: franktrue Date: Thu, 18 May 2023 18:29:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A8=E5=B9=BF=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 9 +++++ src/views/index.vue | 66 +++++++++++++++++++++++++--------- src/views/register.vue | 5 ++- src/views/user/money/index.vue | 6 +++- 4 files changed, 68 insertions(+), 18 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 03b9960..9455112 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -26,6 +26,15 @@ import Layout from '@/layout' // 公共路由 export const constantRoutes = [ + { + path: '/m/:code', + redirect: (to) => { + // 保存参数到本地缓存或 cookie + localStorage.setItem('inviteCode', to.params.code) + // 如果需要使用 cookie,可以使用 document.cookie = 'inviteCode=' + to.params.code + return '/' + } + }, { path: '/redirect', component: Layout, diff --git a/src/views/index.vue b/src/views/index.vue index 60eed3e..8590e22 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -15,6 +15,19 @@ 帐户等级:1 +
+ + +

推荐用户首次充值成功后将获得佣金奖励:{{ rewardDesc }},奖励可在充值记录中查看

+ + + +
+
-
- - - -
-
- - - -
-
- - - -
-
+
+ + + +
+
+ + + +
+
+ + + +
+
@@ -69,6 +82,7 @@