From af6ec7a70265b953dff747c0c9995c65e4c6f055 Mon Sep 17 00:00:00 2001 From: ningbo <3301955438@qq.com> Date: Fri, 15 Aug 2025 09:04:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E7=82=B9=E8=B5=9E?= =?UTF-8?q?=E7=82=B9=E8=B8=A9=E6=B6=88=E6=81=AF=E7=9A=84=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=EF=BC=8C=E4=BD=BF=E5=BE=97=E5=85=B6=E8=A1=A8=E7=8E=B0=E6=9B=B4?= =?UTF-8?q?=E5=8A=A0=E7=9B=B4=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/aitutor/chathistory/index.vue | 73 ++++++++++++++++++++----- 1 file changed, 58 insertions(+), 15 deletions(-) diff --git a/src/views/aitutor/chathistory/index.vue b/src/views/aitutor/chathistory/index.vue index 42c9e8c..2222a3d 100644 --- a/src/views/aitutor/chathistory/index.vue +++ b/src/views/aitutor/chathistory/index.vue @@ -54,7 +54,6 @@ - @@ -114,14 +113,6 @@
{{ parseTime(message.created_at * 1000, '{y}-{m}-{d} {h}:{i}:{s}') }} -
@@ -132,10 +123,25 @@
AI回答:
-
+
+
+ + + +
@@ -170,7 +176,6 @@ import { getMessagesToAdmin } from "@/api/aitutor/chat"; import { listGrade } from "@/api/stuCQS/basedata/grade"; import { getDeptName } from "@/api/system/dept"; import { marked } from 'marked'; - export default { name: "ChatHistory", dicts: ['srs_stu_status'], @@ -412,7 +417,8 @@ export default { }; return marked(content, { renderer }); - } + }, + } }; @@ -874,4 +880,41 @@ export default { .el-divider--horizontal { margin: 16px 0; } + + + +/* AI消息容器样式 */ +.ai-message-container { + position: relative; +} + +/* 反馈图标样式 */ +.feedback-icon { + position: absolute; + bottom: 8px; + right: 8px; + z-index: 10; +} +.feedback-like-icon { + width: 16px; + height: 16px; + opacity: 0.8; + transition: all 0.3s ease; +} +.feedback-like-icon:hover { + opacity: 1; + transform: scale(1.1); +} + +.feedback-dislike-icon { + width: 16px; + height: 16px; + opacity: 0.8; + transition: all 0.3s ease; +} + +.feedback-dislike-icon:hover { + opacity: 1; + transform: scale(1.1); +} \ No newline at end of file