From 0ca7f44e379a7cb81c87d0cce92db0761cfb0367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=AF=9A?= Date: Tue, 6 Jan 2026 20:55:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A2=84=E7=AE=97=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=8A=9F=E8=83=BD=EF=BC=8C=E9=87=8D=E6=9E=84=E8=B4=A6?= =?UTF-8?q?=E5=8D=95=E5=92=8C=E6=B6=88=E6=81=AF=E8=A7=86=E5=9B=BE=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B7=AF=E7=94=B1=E5=92=8C=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/src/App.vue | 22 +- Web/src/router/index.js | 8 +- Web/src/views/BalanceView.vue | 31 +- Web/src/views/BudgetView.vue | 769 ++++++++++++++++++++++++++++++++++ Web/src/views/MessageView.vue | 12 +- 5 files changed, 827 insertions(+), 15 deletions(-) create mode 100644 Web/src/views/BudgetView.vue diff --git a/Web/src/App.vue b/Web/src/App.vue index 3b34c61..35a8cd2 100644 --- a/Web/src/App.vue +++ b/Web/src/App.vue @@ -9,11 +9,17 @@ 统计 - - 账单 + + 预算 - - 消息 + + 账单 设置 @@ -69,7 +75,8 @@ const showTabbar = computed(() => { route.path === '/calendar' || route.path === '/message' || route.path === '/setting' || - route.path === '/balance' + route.path === '/balance' || + route.path === '/budget' }) const active = ref('') @@ -105,11 +112,12 @@ const setActive = (path) => { case '/calendar': return 'ccalendar' case '/balance': - return 'balance' case '/message': - return 'message' + return 'balance' case '/setting': return 'setting' + case '/budget': + return 'budget' default: return 'statistics' } diff --git a/Web/src/router/index.js b/Web/src/router/index.js index edbed60..6227ad9 100644 --- a/Web/src/router/index.js +++ b/Web/src/router/index.js @@ -73,7 +73,7 @@ const router = createRouter({ { path: '/message', name: 'message', - component: () => import('../views/MessageView.vue'), + redirect: { path: '/balance', query: { tab: 'message' } }, meta: { requiresAuth: true }, }, { @@ -87,6 +87,12 @@ const router = createRouter({ name: 'log', component: () => import('../views/LogView.vue'), meta: { requiresAuth: true }, + }, + { + path: '/budget', + name: 'budget', + component: () => import('../views/BudgetView.vue'), + meta: { requiresAuth: true }, } ], }) diff --git a/Web/src/views/BalanceView.vue b/Web/src/views/BalanceView.vue index 0e252b0..1c1de8b 100644 --- a/Web/src/views/BalanceView.vue +++ b/Web/src/views/BalanceView.vue @@ -1,7 +1,7 @@  diff --git a/Web/src/views/MessageView.vue b/Web/src/views/MessageView.vue index b56ae32..aad16b4 100644 --- a/Web/src/views/MessageView.vue +++ b/Web/src/views/MessageView.vue @@ -1,6 +1,6 @@