From 6af876a8f4bff0c6002a5e7609c0a1a2bef43478 Mon Sep 17 00:00:00 2001 From: wangxiaogang <1433729587@qq.com> Date: Mon, 8 Jun 2026 10:59:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=93=81=E7=89=8C=E6=96=87=E6=A1=88?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=8C=96=20+=20=E5=85=A8=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 configStore 管理品牌文案(appName, appSlogan, appDescription) - 关于弹窗、分享标题使用 configStore 读取品牌名 - 所有数据页面添加下拉刷新功能 - 所有数据页面 onShow 时自动刷新数据 --- client/src/App.vue | 3 +++ client/src/pages.json | 23 ++++++++++------ client/src/pages/admin/config.vue | 21 +++++++++++++++ client/src/pages/admin/feedback.vue | 7 ++++- client/src/pages/admin/index.vue | 21 +++++++++++++++ client/src/pages/admin/users.vue | 15 ++++++++++- client/src/pages/budget/index.vue | 11 +++++++- client/src/pages/category-manage/index.vue | 7 ++++- client/src/pages/group-manage/index.vue | 11 ++++++-- client/src/pages/profile/index.vue | 31 +++++++++++++++------- client/src/pages/stats/index.vue | 4 ++- client/src/stores/config.ts | 31 ++++++++++++++++++++++ 12 files changed, 161 insertions(+), 24 deletions(-) create mode 100644 client/src/stores/config.ts diff --git a/client/src/App.vue b/client/src/App.vue index 209f30e..529eba9 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -2,6 +2,7 @@ import { onLaunch } from '@dcloudio/uni-app' import { wxLogin, demoLogin } from '@/api/auth' import { useGroupStore } from '@/stores/group' +import { useConfigStore } from '@/stores/config' import { saveLoginResult } from '@/utils/request' import { markReady } from '@/utils/app-ready' @@ -25,7 +26,9 @@ async function loginWithRetry(loginFn: () => Promise, retries = 3): Promise onLaunch(() => { const groupStore = useGroupStore() + const configStore = useConfigStore() groupStore.init() + configStore.fetchConfig() // #ifdef MP-WEIXIN uni.login({ diff --git a/client/src/pages.json b/client/src/pages.json index e0b8cbc..c6ec7cb 100644 --- a/client/src/pages.json +++ b/client/src/pages.json @@ -35,21 +35,24 @@ "path": "pages/profile/index", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "我的" + "navigationBarTitleText": "我的", + "enablePullDownRefresh": true } }, { "path": "pages/category-manage/index", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "分类管理" + "navigationBarTitleText": "分类管理", + "enablePullDownRefresh": true } }, { "path": "pages/budget/index", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "预算设置" + "navigationBarTitleText": "预算设置", + "enablePullDownRefresh": true } }, { @@ -63,7 +66,8 @@ "path": "pages/group-manage/index", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "一起记" + "navigationBarTitleText": "一起记", + "enablePullDownRefresh": true } }, { @@ -78,7 +82,8 @@ "path": "pages/admin/index", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "管理后台" + "navigationBarTitleText": "管理后台", + "enablePullDownRefresh": true } }, { @@ -86,7 +91,7 @@ "style": { "navigationStyle": "custom", "navigationBarTitleText": "用户管理", - "enablePullDownRefresh": false + "enablePullDownRefresh": true } }, { @@ -115,14 +120,16 @@ "path": "pages/admin/feedback", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "反馈管理" + "navigationBarTitleText": "反馈管理", + "enablePullDownRefresh": true } }, { "path": "pages/admin/config", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "系统配置" + "navigationBarTitleText": "系统配置", + "enablePullDownRefresh": true } } ], diff --git a/client/src/pages/admin/config.vue b/client/src/pages/admin/config.vue index 99d6c3f..f6fbe92 100644 --- a/client/src/pages/admin/config.vue +++ b/client/src/pages/admin/config.vue @@ -52,6 +52,7 @@