From b66cd95bda17882ff0254a4d23982d5c1ff9624c Mon Sep 17 00:00:00 2001 From: aaron <> Date: Sun, 9 Mar 2025 13:41:40 +0800 Subject: [PATCH] update --- src/layouts/AdminLayout.vue | 16 +- src/router/index.js | 12 + src/utils/config.js | 6 +- src/views/BankCard.vue | 288 +++++++++++++++++++ src/views/Finance.vue | 544 ++++++++++++++++++++++++++++++++++++ 5 files changed, 863 insertions(+), 3 deletions(-) create mode 100644 src/views/BankCard.vue create mode 100644 src/views/Finance.vue diff --git a/src/layouts/AdminLayout.vue b/src/layouts/AdminLayout.vue index e022783..8a98a56 100644 --- a/src/layouts/AdminLayout.vue +++ b/src/layouts/AdminLayout.vue @@ -16,6 +16,14 @@ 仪表盘 + + + 财务管理 + + + + 银行卡管理 + @@ -71,14 +79,18 @@ import { useStore } from 'vuex'; import { useRoute, useRouter } from 'vue-router'; import { DashboardOutlined, - HomeOutlined + HomeOutlined, + DollarOutlined, + CreditCardOutlined } from '@ant-design/icons-vue'; export default { name: 'AdminLayout', components: { DashboardOutlined, - HomeOutlined + HomeOutlined, + DollarOutlined, + CreditCardOutlined }, setup() { const store = useStore(); diff --git a/src/router/index.js b/src/router/index.js index fb6133a..1ed109e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -12,6 +12,18 @@ const routes = [ name: 'Dashboard', component: () => import('../views/Dashboard.vue'), meta: { title: '仪表盘', icon: 'dashboard' } + }, + { + path: 'finance', + name: 'Finance', + component: () => import('../views/Finance.vue'), + meta: { title: '财务管理', icon: 'money' } + }, + { + path: 'bank-card', + name: 'BankCard', + component: () => import('../views/BankCard.vue'), + meta: { title: '银行卡管理', icon: 'credit-card' } } ] }, diff --git a/src/utils/config.js b/src/utils/config.js index b2e501c..085e2b7 100644 --- a/src/utils/config.js +++ b/src/utils/config.js @@ -28,7 +28,11 @@ export default { BASE_URL, BUILD_TIMESTAMP, API: { - LOGIN: '/api/user/password-login' + LOGIN: '/api/user/password-login', + ACCOUNT_SUMMARY: '/api/account/summary', + ACCOUNT_WITHDRAWALS: '/api/withdraw/user', + BANK_CARDS: '/api/bank-cards', + WITHDRAW: '/api/withdraw' }, // 添加时间戳参数到 URL,用于破除缓存 addTimestamp: (url) => { diff --git a/src/views/BankCard.vue b/src/views/BankCard.vue new file mode 100644 index 0000000..3a8e07c --- /dev/null +++ b/src/views/BankCard.vue @@ -0,0 +1,288 @@ + + + + + \ No newline at end of file diff --git a/src/views/Finance.vue b/src/views/Finance.vue new file mode 100644 index 0000000..74b0346 --- /dev/null +++ b/src/views/Finance.vue @@ -0,0 +1,544 @@ + + + + + \ No newline at end of file