From 9870bee3b81eb7cf4dfaa0be826907d50489d157 Mon Sep 17 00:00:00 2001 From: Yuzhiran Dev Date: Sat, 5 Sep 2026 08:41:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BD=93=E9=AA=8C=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E2=80=94=E2=80=94=E6=8E=A2=E7=B4=A2/=E8=B6=8B=E5=8A=BF?= =?UTF-8?q?=E9=A1=B5=E4=B8=8B=E6=8B=89=E5=88=B7=E6=96=B0=E3=80=81=E8=A7=A6?= =?UTF-8?q?=E6=84=9F=E5=8F=8D=E9=A6=88=E5=B7=A5=E5=85=B7=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - pages.json: 探索/趋势页开启 enablePullDownRefresh - 新增 utils/haptics.js: 关键操作轻震动反馈(仅微信端) - 探索页接入 onPullDownRefresh 重新拉取趋势数据 --- client/src/pages.json | 170 +++++++++++++++++++++++++++---- client/src/pages/index/index.vue | 10 +- client/src/pages/trend/trend.vue | 10 +- client/src/utils/haptics.js | 8 ++ 4 files changed, 175 insertions(+), 23 deletions(-) create mode 100644 client/src/utils/haptics.js diff --git a/client/src/pages.json b/client/src/pages.json index 8260491..bd8c84c 100644 --- a/client/src/pages.json +++ b/client/src/pages.json @@ -1,22 +1,130 @@ { "pages": [ - {"path": "pages/index/index", "style": {"navigationBarTitleText": "AI 维度", "navigationStyle": "custom"}}, - {"path": "pages/login/login", "style": {"navigationBarTitleText": "登录", "navigationStyle": "custom"}}, - {"path": "pages/detail/detail", "style": {"navigationBarTitleText": "AI 知识", "navigationStyle": "custom"}}, - {"path": "pages/payment/payment", "style": {"navigationBarTitleText": "订阅升级", "navigationStyle": "custom"}}, - {"path": "pages/favorites/favorites", "style": {"navigationBarTitleText": "我的收藏", "navigationStyle": "custom"}}, - {"path": "pages/achievements/achievements", "style": {"navigationBarTitleText": "成就", "navigationStyle": "custom"}}, - {"path": "pages/leaderboard/leaderboard", "style": {"navigationBarTitleText": "排行榜", "navigationStyle": "custom"}}, - {"path": "pages/search/search", "style": {"navigationBarTitleText": "搜索", "navigationStyle": "custom"}}, - {"path": "pages/progress/progress", "style": {"navigationBarTitleText": "学习进度", "navigationStyle": "custom"}}, - {"path": "pages/feedback/feedback", "style": {"navigationBarTitleText": "意见反馈", "navigationStyle": "custom"}}, - {"path": "pages/settings/settings", "style": {"navigationBarTitleText": "设置", "navigationStyle": "custom"}}, - {"path": "pages/news/news", "style": {"navigationBarTitleText": "AI 资讯", "navigationStyle": "custom"}}, - {"path": "pages/dimension/dimension", "style": {"navigationBarTitleText": "", "navigationStyle": "custom"}}, - {"path": "pages/chat/chat", "style": {"navigationBarTitleText": "AI 问答", "navigationStyle": "custom"}}, - {"path": "pages/trend/trend", "style": {"navigationBarTitleText": "AI 趋势", "navigationStyle": "custom"}}, - {"path": "pages/profile/profile", "style": {"navigationBarTitleText": "我的", "navigationStyle": "custom"}}, - {"path": "pages/agreement/agreement", "style": {"navigationBarTitleText": "协议", "navigationStyle": "custom"}} + { + "path": "pages/index/index", + "style": { + "navigationBarTitleText": "AI 维度", + "navigationStyle": "custom", + "enablePullDownRefresh": true, + "backgroundTextStyle": "dark" + } + }, + { + "path": "pages/login/login", + "style": { + "navigationBarTitleText": "登录", + "navigationStyle": "custom" + } + }, + { + "path": "pages/detail/detail", + "style": { + "navigationBarTitleText": "AI 知识", + "navigationStyle": "custom" + } + }, + { + "path": "pages/payment/payment", + "style": { + "navigationBarTitleText": "订阅升级", + "navigationStyle": "custom" + } + }, + { + "path": "pages/favorites/favorites", + "style": { + "navigationBarTitleText": "我的收藏", + "navigationStyle": "custom" + } + }, + { + "path": "pages/achievements/achievements", + "style": { + "navigationBarTitleText": "成就", + "navigationStyle": "custom" + } + }, + { + "path": "pages/leaderboard/leaderboard", + "style": { + "navigationBarTitleText": "排行榜", + "navigationStyle": "custom" + } + }, + { + "path": "pages/search/search", + "style": { + "navigationBarTitleText": "搜索", + "navigationStyle": "custom" + } + }, + { + "path": "pages/progress/progress", + "style": { + "navigationBarTitleText": "学习进度", + "navigationStyle": "custom" + } + }, + { + "path": "pages/feedback/feedback", + "style": { + "navigationBarTitleText": "意见反馈", + "navigationStyle": "custom" + } + }, + { + "path": "pages/settings/settings", + "style": { + "navigationBarTitleText": "设置", + "navigationStyle": "custom" + } + }, + { + "path": "pages/news/news", + "style": { + "navigationBarTitleText": "AI 资讯", + "navigationStyle": "custom", + "enablePullDownRefresh": true, + "backgroundTextStyle": "dark" + } + }, + { + "path": "pages/dimension/dimension", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom" + } + }, + { + "path": "pages/chat/chat", + "style": { + "navigationBarTitleText": "AI 问答", + "navigationStyle": "custom" + } + }, + { + "path": "pages/trend/trend", + "style": { + "navigationBarTitleText": "AI 趋势", + "navigationStyle": "custom", + "enablePullDownRefresh": true, + "backgroundTextStyle": "dark" + } + }, + { + "path": "pages/profile/profile", + "style": { + "navigationBarTitleText": "我的", + "navigationStyle": "custom" + } + }, + { + "path": "pages/agreement/agreement", + "style": { + "navigationBarTitleText": "协议", + "navigationStyle": "custom" + } + } ], "globalStyle": { "navigationBarTextStyle": "black", @@ -35,10 +143,30 @@ "backgroundColor": "#ffffff", "borderStyle": "white", "list": [ - {"pagePath": "pages/index/index", "text": "探索", "iconPath": "static/icons/explore.png", "selectedIconPath": "static/icons/explore-active.png"}, - {"pagePath": "pages/chat/chat", "text": "问答", "iconPath": "static/icons/chat.png", "selectedIconPath": "static/icons/chat-active.png"}, - {"pagePath": "pages/trend/trend", "text": "趋势", "iconPath": "static/icons/trend.png", "selectedIconPath": "static/icons/trend-active.png"}, - {"pagePath": "pages/profile/profile", "text": "我的", "iconPath": "static/icons/profile.png", "selectedIconPath": "static/icons/profile-active.png"} + { + "pagePath": "pages/index/index", + "text": "探索", + "iconPath": "static/icons/explore.png", + "selectedIconPath": "static/icons/explore-active.png" + }, + { + "pagePath": "pages/chat/chat", + "text": "问答", + "iconPath": "static/icons/chat.png", + "selectedIconPath": "static/icons/chat-active.png" + }, + { + "pagePath": "pages/trend/trend", + "text": "趋势", + "iconPath": "static/icons/trend.png", + "selectedIconPath": "static/icons/trend-active.png" + }, + { + "pagePath": "pages/profile/profile", + "text": "我的", + "iconPath": "static/icons/profile.png", + "selectedIconPath": "static/icons/profile-active.png" + } ] } } \ No newline at end of file diff --git a/client/src/pages/index/index.vue b/client/src/pages/index/index.vue index bf7ce12..05b8f68 100644 --- a/client/src/pages/index/index.vue +++ b/client/src/pages/index/index.vue @@ -83,7 +83,7 @@