From 2d4e7db7720fec6dc471df4e17ee01b1f57dee1f Mon Sep 17 00:00:00 2001 From: ctw Date: Mon, 24 Nov 2025 14:19:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=97=AE=E9=A2=98=E5=8F=8D=E9=A6=88?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 1 + src/pages.json | 7 +++++ src/pages/profile/feedback.vue | 50 ++++++++++++++++++++++++++++++++++ src/pages/profile/profile.vue | 9 +++++- src/sheep/api/member/recent.ts | 12 ++++++++ 5 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 src/pages/profile/feedback.vue diff --git a/src/main.ts b/src/main.ts index 15ba577f..0e5b25e1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -29,6 +29,7 @@ export function createApp() { const i18n = createI18n({ // 使用localStorage存储语言状态是为了保证页面刷新之后还是保持原来选择的语言状态 locale: getItem('lang') ? getItem('lang') : 'zh-CN', // 定义默认语言为中文 + // allowComposition: true, messages: { 'zh-CN': zhCNLang, 'zh-TW': zhTWLang, diff --git a/src/pages.json b/src/pages.json index 58dd4ebb..3fd684f2 100644 --- a/src/pages.json +++ b/src/pages.json @@ -237,6 +237,13 @@ "navigationBarTitleText": "开通VIP", "navigationStyle": "custom" } + }, + { + "path": "feedback", + "style": { + "navigationBarTitleText": "问题反馈", + "navigationStyle": "custom" + } } ] }, diff --git a/src/pages/profile/feedback.vue b/src/pages/profile/feedback.vue new file mode 100644 index 00000000..72fac35e --- /dev/null +++ b/src/pages/profile/feedback.vue @@ -0,0 +1,50 @@ + + + diff --git a/src/pages/profile/profile.vue b/src/pages/profile/profile.vue index ab89da85..ad7e985b 100644 --- a/src/pages/profile/profile.vue +++ b/src/pages/profile/profile.vue @@ -194,6 +194,13 @@ curtainShow.value = true; }; + // 问题反馈 + const goFeedback = () => { + uni.navigateTo({ + url: '/pages/profile/feedback', + }); + }; + // 退出登录 const handleLogout = () => { message @@ -215,7 +222,7 @@ { title: '认证中心', value: '', icon: 'user', to: '' }, { title: '我的动态√', value: '', icon: 'star', to: '/pages/profile/my-moment' }, { title: '我的评价√', value: '', icon: 'view-module', to: '', click: lookMyEvaluation }, - { title: '问题反馈', value: '', icon: 'backtop-rectangle', to: '' }, + { title: '问题反馈√', value: '', icon: 'backtop-rectangle', to: '', click: goFeedback }, { title: '客服助手', value: '', icon: 'service', to: '' }, { title: '关注公众号√', value: '获取最新消息', icon: 'qrcode', to: '', click: subOfficial }, { title: '设置', value: '', icon: 'setting1', to: '' }, diff --git a/src/sheep/api/member/recent.ts b/src/sheep/api/member/recent.ts index e2b97abb..715567ff 100644 --- a/src/sheep/api/member/recent.ts +++ b/src/sheep/api/member/recent.ts @@ -167,6 +167,18 @@ const RecentApi = { }, }); }, + // 提交反馈 + feedback: (data: any) => { + return request({ + url: '/member/feedback/create', + method: 'POST', + data, + custom: { + showLoading: true, + loadingMsg: '提交中', + }, + }); + }, }; export default RecentApi;