From 094386a61315a7b3b6f7644aa441b8edd5e55622 Mon Sep 17 00:00:00 2001 From: teukkk Date: Thu, 26 Jun 2025 18:51:09 +0800 Subject: [PATCH] feat: mobile chat left menu --- ui/src/locales/lang/zh-CN/ai-chat.ts | 3 + .../mobile/component/ResetPasswordDrawer.vue | 114 ++++++++++++ .../chat/mobile/component/UserCenter.vue | 115 ++++++++++++ ui/src/views/chat/mobile/index.vue | 176 +++++++++--------- 4 files changed, 323 insertions(+), 85 deletions(-) create mode 100644 ui/src/views/chat/mobile/component/ResetPasswordDrawer.vue create mode 100644 ui/src/views/chat/mobile/component/UserCenter.vue diff --git a/ui/src/locales/lang/zh-CN/ai-chat.ts b/ui/src/locales/lang/zh-CN/ai-chat.ts index 76bb53d4f..b518c03e5 100644 --- a/ui/src/locales/lang/zh-CN/ai-chat.ts +++ b/ui/src/locales/lang/zh-CN/ai-chat.ts @@ -1,4 +1,7 @@ export default { + mine: '我的', + logoutContent: '退出登录不会丢失任何数据,你仍可以登录此账号。', + confirmModification: '确认修改', noHistory: '暂无历史记录', createChat: '新建对话', history: '历史记录', diff --git a/ui/src/views/chat/mobile/component/ResetPasswordDrawer.vue b/ui/src/views/chat/mobile/component/ResetPasswordDrawer.vue new file mode 100644 index 000000000..493d46d13 --- /dev/null +++ b/ui/src/views/chat/mobile/component/ResetPasswordDrawer.vue @@ -0,0 +1,114 @@ + + + + + \ No newline at end of file diff --git a/ui/src/views/chat/mobile/component/UserCenter.vue b/ui/src/views/chat/mobile/component/UserCenter.vue new file mode 100644 index 000000000..5b14ec38d --- /dev/null +++ b/ui/src/views/chat/mobile/component/UserCenter.vue @@ -0,0 +1,115 @@ + + + + + \ No newline at end of file diff --git a/ui/src/views/chat/mobile/index.vue b/ui/src/views/chat/mobile/index.vue index 07a8221f3..e779a5c66 100644 --- a/ui/src/views/chat/mobile/index.vue +++ b/ui/src/views/chat/mobile/index.vue @@ -3,19 +3,17 @@ class="chat-mobile layout-bg" v-loading="loading" :style="{ - '--el-color-primary': applicationDetail?.custom_theme?.theme_color, - '--el-color-primary-light-9': hexToRgba(applicationDetail?.custom_theme?.theme_color, 0.1), + '--el-color-primary': applicationDetail?.custom_theme?.theme_color, + '--el-color-primary-light-9': hexToRgba(applicationDetail?.custom_theme?.theme_color, 0.1), }" >
-
- + +
+ @@ -48,53 +46,44 @@
- -
- -
- - -
-
- {{ $t('chat.history') }} + +
+
+
+ + + + +
+

{{ applicationDetail?.name }}

+ + + {{ $t('chat.createChat') }} + +

{{ $t('chat.history') }}

+
- -
- +
+ +
+