From 7f3d9c0f107ab6fd6f75fe86f3415d0207b84f5c Mon Sep 17 00:00:00 2001
From: jinhhanhan <1683105490@qq.com>
Date: Fri, 6 Feb 2026 15:56:00 +0800
Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E5=B0=86=E6=9B=B4=E6=94=B9?=
=?UTF-8?q?=E5=A4=B4=E5=83=8F=E5=92=8C=E6=98=B5=E7=A7=B0=E7=9A=84=E6=8C=89?=
=?UTF-8?q?=E9=92=AE=E6=94=BE=E5=9C=A8...=E7=9A=84=E8=AE=BE=E7=BD=AE?=
=?UTF-8?q?=E4=B8=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages_tool/ai-chat/ai-chat-message.vue | 8 --
pages_tool/ai-chat/index.vue | 178 ++++++++++++++++++++++++-
2 files changed, 175 insertions(+), 11 deletions(-)
diff --git a/pages_tool/ai-chat/ai-chat-message.vue b/pages_tool/ai-chat/ai-chat-message.vue
index 7730b65..df83164 100644
--- a/pages_tool/ai-chat/ai-chat-message.vue
+++ b/pages_tool/ai-chat/ai-chat-message.vue
@@ -188,14 +188,6 @@
-
-
-
-
diff --git a/pages_tool/ai-chat/index.vue b/pages_tool/ai-chat/index.vue
index 76900e0..e3b65fc 100644
--- a/pages_tool/ai-chat/index.vue
+++ b/pages_tool/ai-chat/index.vue
@@ -44,6 +44,41 @@
@product-view="onProductView"
@input-change="onInputChange" />
+
+
+
@@ -81,6 +116,7 @@ export default {
showCustomNavbar: true, // 是否显示自定义导航栏
showBackButton: false, // 是否显示返回按钮
showMenuButton: true, // 是否显示设置菜单按钮
+ showSettingsPanel: false, // 是否显示设置面板
// --- 聊天内容区域 ---
scrollViewHeight: '0px',
@@ -330,9 +366,21 @@ export default {
},
showSettings() {
- uni.navigateTo({
- url: '/pages/settings/index'
- });
+ this.showSettingsPanel = true;
+ },
+
+ hideSettings() {
+ this.showSettingsPanel = false;
+ },
+
+ openAvatarSelector() {
+ this.hideSettings();
+ this.$refs.chat.openAvatarSelector();
+ },
+
+ openNicknameEditor() {
+ this.hideSettings();
+ this.$refs.chat.openNicknameEditor();
},
showHelp() {
@@ -611,4 +659,128 @@ export default {
width: 100%;
background-color: transparent;
}
+
+/* 设置面板 */
+.settings-popup {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ z-index: 1000;
+
+ .settings-mask {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ background-color: rgba(0, 0, 0, 0.4);
+ backdrop-filter: blur(6rpx);
+ }
+
+ .settings-panel {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ background-color: #ffffff;
+ border-radius: 24rpx;
+ padding: 32rpx;
+ width: calc(100% - 80rpx);
+ max-width: 520rpx;
+ box-shadow: 0 8rpx 36rpx rgba(0, 0, 0, 0.15);
+ box-sizing: border-box;
+
+ .settings-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 24rpx;
+ border-bottom: 2rpx solid #f0f4f8;
+ padding-bottom: 16rpx;
+
+ .settings-title {
+ font-size: 34rpx;
+ font-weight: 600;
+ color: #333;
+ }
+
+ .close-btn {
+ width: 56rpx;
+ height: 56rpx;
+ border-radius: 50%;
+ background-color: #f8fafc;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 32rpx;
+ color: #999;
+ transition: all 0.2s ease;
+
+ &:hover {
+ background-color: #e9edf2;
+ }
+ }
+ }
+
+ .settings-content {
+ display: flex;
+ flex-direction: column;
+ gap: 16rpx;
+
+ .setting-item {
+ display: flex;
+ align-items: center;
+ padding: 24rpx;
+ border-radius: 16rpx;
+ background-color: #f8fafc;
+ border: 2rpx solid #f0f4f8;
+ transition: all 0.2s ease;
+
+ &:hover {
+ background-color: #e9edf2;
+ border-color: #d9e3ed;
+ }
+
+ .setting-icon {
+ width: 72rpx;
+ height: 72rpx;
+ border-radius: 50%;
+ background-color: #c4e0ff;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 32rpx;
+ flex-shrink: 0;
+ }
+
+ .setting-info {
+ flex: 1;
+ margin-left: 20rpx;
+ display: flex;
+ flex-direction: column;
+ gap: 4rpx;
+
+ .setting-label {
+ font-size: 28rpx;
+ font-weight: 500;
+ color: #333;
+ }
+
+ .setting-desc {
+ font-size: 22rpx;
+ color: #999;
+ }
+ }
+
+ .iconfont.icon-right {
+ font-size: 36rpx;
+ color: #ccc;
+ flex-shrink: 0;
+ }
+ }
+ }
+ }
+}
\ No newline at end of file