From cb0f23a1b7f445b2bf8c39f8288cd4b7474e35f7 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Thu, 23 Oct 2025 16:02:33 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=96=B0=E9=A1=B5=E9=9D=A2):=20=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E6=8F=90=E7=8E=B0=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 6 ++ src/utils/permissionManager.js | 1 + src/utils/routeGuard.js | 1 + src/views/Wallet/CashOut/CashOut.vue | 11 ++- src/views/Wallet/CashOut/Details.vue | 113 +++++++++++++++++++++++++++ 5 files changed, 129 insertions(+), 3 deletions(-) create mode 100644 src/views/Wallet/CashOut/Details.vue diff --git a/src/router/index.js b/src/router/index.js index cee757e..4723ce3 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -257,6 +257,12 @@ const router = createRouter({ component: () => import('../views/Wallet/CashOut/CashOut.vue'), meta: { requiresAuth: true }, }, + { + path: '/cash-out-details', + name: 'cash-out-details', + component: () => import('../views/Wallet/CashOut/Details.vue'), + meta: { requiresAuth: true }, + }, ], }) diff --git a/src/utils/permissionManager.js b/src/utils/permissionManager.js index d1e7d8a..a8c7317 100644 --- a/src/utils/permissionManager.js +++ b/src/utils/permissionManager.js @@ -121,6 +121,7 @@ export const ROLE_PERMISSIONS = { '/invitation-to-register', //邀请新用户注册页面 '/lottery', // 抽奖活动页面 '/cash-out', // 提现页面 + '/cash-out-details', //提现详情页面 ], // 加载页面 diff --git a/src/utils/routeGuard.js b/src/utils/routeGuard.js index ff9e275..6c93dd7 100644 --- a/src/utils/routeGuard.js +++ b/src/utils/routeGuard.js @@ -412,6 +412,7 @@ class RouteGuard { '/invitation-to-register', //邀请新用户注册页面 '/lottery', // 抽奖活动页面 '/cash-out', // 提现页面 + '/cash-out-details', //提现详情页面 ] return publicPages.includes(path) } diff --git a/src/views/Wallet/CashOut/CashOut.vue b/src/views/Wallet/CashOut/CashOut.vue index e7efc79..559720f 100644 --- a/src/views/Wallet/CashOut/CashOut.vue +++ b/src/views/Wallet/CashOut/CashOut.vue @@ -7,7 +7,7 @@ backImg="/src/assets/icon/arrowBackBlack.png" /> -
+
import GeneralHeader from '@/components/GeneralHeader.vue' import maskLayer from '@/components/MaskLayer.vue' - import { ref, onMounted, computed } from 'vue' +import { useRouter } from 'vue-router' +const router = useRouter() const maskLayerShow = ref(false) @@ -191,7 +192,11 @@ const hasBankCard = computed(() => { return Object.keys(bankCardInfo.value).length > 0 }) -// 点击按钮 +const lookDetails = () => { + router.push('/cash-out-details') +} + +// 提现按钮 const CashOut = () => { if (hasBankCard.value) { } else { diff --git a/src/views/Wallet/CashOut/Details.vue b/src/views/Wallet/CashOut/Details.vue new file mode 100644 index 0000000..9b72334 --- /dev/null +++ b/src/views/Wallet/CashOut/Details.vue @@ -0,0 +1,113 @@ + + + + +