From 5e0157b16225b927094dc18f4c6d3cd845faca83 Mon Sep 17 00:00:00 2001 From: no99 <17663930442@163.com> Date: Sat, 16 Aug 2025 17:49:49 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95=E7=9A=84?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=94=B9=E4=B8=BAkeyword=E3=80=82=202.?= =?UTF-8?q?=E5=8F=91=E9=80=81=E7=9A=84=E6=B6=88=E6=81=AF=E4=B8=8D=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E6=97=B6=E9=97=B4=E3=80=82=203.=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E7=AB=AF=E5=9C=A8=E6=89=93=E5=BC=80=E5=8E=86=E5=8F=B2=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E6=97=B6=E6=89=93=E5=BC=80=E6=BB=9A=E5=8A=A8=E9=94=81?= =?UTF-8?q?=E5=AE=9A=E3=80=82=204.=E5=BD=93=E5=8E=86=E5=8F=B2=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=88=86=E7=B1=BB=E6=B2=A1=E6=9C=89=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E4=B8=8D=E5=B1=95=E7=A4=BA=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E5=90=8D=E3=80=82=205.=E6=89=8B=E6=9C=BA=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95=E5=90=8E=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AIchat.vue | 4 ++-- src/views/components/HistoryRecord.vue | 14 ++++++++++++-- src/views/homePage.vue | 6 +++++- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/views/AIchat.vue b/src/views/AIchat.vue index 6b5025b..876fd81 100644 --- a/src/views/AIchat.vue +++ b/src/views/AIchat.vue @@ -2467,7 +2467,7 @@ watch( chatStore.messages.push({ sender: "user", timestamp: clickRecord.value.createdTime, - content: clickRecord.value.stockName+'('+clickRecord.value.stockCode+')', + content: clickRecord.value.keyword, audioArray: [ clickRecord.value.wokeFlowData.One.url, clickRecord.value.wokeFlowData.Two.url, @@ -4477,7 +4477,7 @@ onUnmounted(() => {
-
+
{{ moment(msg.timestamp).format("YYYY-MM-DD HH:mm:ss") }}
diff --git a/src/views/components/HistoryRecord.vue b/src/views/components/HistoryRecord.vue index e0d0cbd..50d31ef 100644 --- a/src/views/components/HistoryRecord.vue +++ b/src/views/components/HistoryRecord.vue @@ -78,7 +78,7 @@
-
+
{{ history.name }}
-
+
{{ history.name }}
{ }); if (result && result.data) { + if (props.isMobile) { + // 如果手机,收起历史记录 + isCollapsed.value = true; + if (props.currentType == "AIchat") { + chatStore.aiChatCall = false; + } else if (props.currentType == "AiEmotion") { + chatStore.aiEmotionCall = false; + } + } historyData.value = result.data; chatStore.dbqbClickRecord = historyData.value; // 构造股票数据对象,保持与现有结构一致 @@ -908,6 +917,7 @@ onMounted(() => { width: 100%; /* padding: 20px; */ overflow: hidden; + min-height: 0; } .head-container { diff --git a/src/views/homePage.vue b/src/views/homePage.vue index fee536e..82d85e4 100644 --- a/src/views/homePage.vue +++ b/src/views/homePage.vue @@ -256,7 +256,6 @@ const sendMessage = async () => { { sender: "user", content: messageContent, - timestamp: new Date().toISOString(), audioArray: [], audioStatus: false, }, @@ -596,6 +595,11 @@ const onBlur = function () { let touchmoveHandlerRef = null; const touchmoveHandler = (e) => { if (!dataStore.isFeedback) { + if (historyRecordRef) { + if (!historyRecordRef.value.isCollapsed) { + return; + } + } // 判断触摸目标是否在可滚动区域内 const isScrollableArea = e.target.closest(".tab-content");