From 6d704f7f5ad64b3a318c411409b1487b31ac62bf Mon Sep 17 00:00:00 2001
From: ZF sun <34314687@qq.com>
Date: Mon, 18 May 2026 11:18:56 +0800
Subject: [PATCH] =?UTF-8?q?refactor(ai-chat):=20=E9=87=8D=E6=9E=84AI?=
=?UTF-8?q?=E8=81=8A=E5=A4=A9=E6=B6=88=E6=81=AF=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages_tool/ai-chat/ai-chat-message.vue | 7925 +++++++----------
.../components/ai-chat-avatar-selector.vue | 226 +
.../components/ai-chat-emoji-panel.vue | 160 +
.../components/ai-chat-nickname-editor.vue | 234 +
.../ai-chat/components/ai-chat-search.vue | 400 +
.../components/ai-chat-tools-panel.vue | 276 +
.../components/ai-chat-voice-panel.vue | 241 +
pages_tool/ai-chat/styles/ai-chat-global.scss | 13 +
8 files changed, 4901 insertions(+), 4574 deletions(-)
create mode 100644 pages_tool/ai-chat/components/ai-chat-avatar-selector.vue
create mode 100644 pages_tool/ai-chat/components/ai-chat-emoji-panel.vue
create mode 100644 pages_tool/ai-chat/components/ai-chat-nickname-editor.vue
create mode 100644 pages_tool/ai-chat/components/ai-chat-search.vue
create mode 100644 pages_tool/ai-chat/components/ai-chat-tools-panel.vue
create mode 100644 pages_tool/ai-chat/components/ai-chat-voice-panel.vue
create mode 100644 pages_tool/ai-chat/styles/ai-chat-global.scss
diff --git a/pages_tool/ai-chat/ai-chat-message.vue b/pages_tool/ai-chat/ai-chat-message.vue
index 7b227eb..6f44e1a 100644
--- a/pages_tool/ai-chat/ai-chat-message.vue
+++ b/pages_tool/ai-chat/ai-chat-message.vue
@@ -1,4574 +1,3351 @@
-
-
-
-
- 🔍
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ formatTime(message.timestamp) }}
- {{ localUserNickname }}
-
-
-
- {{ formatTime(message.timestamp) }}
-
-
-
- {{ message.content }}
-
-
-
-
-
-
-
-
-
- 🤖
-
-
-
-
- 智能助手
- {{ formatTime(message.timestamp) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ message.fileName }}
- {{ formatFileSize(message.fileSize) }}
-
-
-
-
-
-
-
-
-
-
-
- {{ message.title || '语音消息' }}
- {{ formatDuration(message.duration) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ message.title || '视频消息' }}
- {{ formatDuration(message.duration) }}
-
-
-
-
-
-
-
-
-
-
-
- {{ message.title }}
- {{ message.description }}
- {{ message.url }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ message.loadingText || 'AI正在思考' }}
-
- .
- .
- .
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ✕
-
- 🔍
-
-
-
- {{ searchResultIndex + 1 }}/{{ searchResults.length }}
- ↑
- ↓
-
- 清空
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 编辑内容
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formatTime(message.timestamp) }}
+ {{ localUserNickname }}
+
+
+ {{ formatTime(message.timestamp) }}
+
+
+
+ {{ message.content }}
+
+
+
+
+
+
+
+
+
+ 🤖
+
+
+
+
+ 智能助手
+ {{ formatTime(message.timestamp) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ message.fileName }}
+ {{ formatFileSize(message.fileSize) }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ message.title || '语音消息' }}
+ {{ formatDuration(message.duration) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ message.title || '视频消息' }}
+ {{ formatDuration(message.duration) }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ message.title }}
+ {{ message.description }}
+ {{ message.url }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ message.loadingText || 'AI正在思考' }}
+
+ .
+ .
+ .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑内容
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages_tool/ai-chat/components/ai-chat-avatar-selector.vue b/pages_tool/ai-chat/components/ai-chat-avatar-selector.vue
new file mode 100644
index 0000000..1930694
--- /dev/null
+++ b/pages_tool/ai-chat/components/ai-chat-avatar-selector.vue
@@ -0,0 +1,226 @@
+
+
+
+
+
+
+
diff --git a/pages_tool/ai-chat/components/ai-chat-emoji-panel.vue b/pages_tool/ai-chat/components/ai-chat-emoji-panel.vue
new file mode 100644
index 0000000..f37770a
--- /dev/null
+++ b/pages_tool/ai-chat/components/ai-chat-emoji-panel.vue
@@ -0,0 +1,160 @@
+
+
+
+
+
+
+
diff --git a/pages_tool/ai-chat/components/ai-chat-nickname-editor.vue b/pages_tool/ai-chat/components/ai-chat-nickname-editor.vue
new file mode 100644
index 0000000..ccec878
--- /dev/null
+++ b/pages_tool/ai-chat/components/ai-chat-nickname-editor.vue
@@ -0,0 +1,234 @@
+
+
+
+
+
+
+
diff --git a/pages_tool/ai-chat/components/ai-chat-search.vue b/pages_tool/ai-chat/components/ai-chat-search.vue
new file mode 100644
index 0000000..0c119f3
--- /dev/null
+++ b/pages_tool/ai-chat/components/ai-chat-search.vue
@@ -0,0 +1,400 @@
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+ ✕
+
+
+ {{ searchResultIndex + 1 }}/{{ searchResults.length }}
+
+ ▲
+ ▼
+
+
+ 完成
+
+
+
+
+
+
+
+
diff --git a/pages_tool/ai-chat/components/ai-chat-tools-panel.vue b/pages_tool/ai-chat/components/ai-chat-tools-panel.vue
new file mode 100644
index 0000000..cf5dbbb
--- /dev/null
+++ b/pages_tool/ai-chat/components/ai-chat-tools-panel.vue
@@ -0,0 +1,276 @@
+
+
+
+
+
+
+
diff --git a/pages_tool/ai-chat/components/ai-chat-voice-panel.vue b/pages_tool/ai-chat/components/ai-chat-voice-panel.vue
new file mode 100644
index 0000000..74016bb
--- /dev/null
+++ b/pages_tool/ai-chat/components/ai-chat-voice-panel.vue
@@ -0,0 +1,241 @@
+
+
+
+
+
+
+
diff --git a/pages_tool/ai-chat/styles/ai-chat-global.scss b/pages_tool/ai-chat/styles/ai-chat-global.scss
new file mode 100644
index 0000000..40e74f0
--- /dev/null
+++ b/pages_tool/ai-chat/styles/ai-chat-global.scss
@@ -0,0 +1,13 @@
+/* 全局变量:高级低饱和配色 */
+$bg-main: #f5f7fa;
+$bg-card: #ffffff;
+$color-primary: #6c8ebf;
+$color-primary-light: #8a9fb8;
+$color-user: #8675a9;
+$color-text: #4e5969;
+$color-text-light: #8492a6;
+$shadow-sm: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
+$shadow-md: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
+$radius-sm: 12rpx;
+$radius-md: 24rpx;
+$radius-lg: 36rpx;