From 990d600c563d679f1a5eb605caaed3cbee9db253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=98=B1=E8=BE=BE?= Date: Fri, 13 Jun 2025 15:31:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(AI):=20=E5=AE=9E=E7=8E=B0=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E5=AF=B9=E6=AF=94=E5=8A=9F=E8=83=BD=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E9=A1=B5=E9=9D=A2=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 sticky 组件中添加 conversationId属性,用于记录对话 ID - 在 AI 页面中添加导航栏,提升用户体验 - 新增产品对比页面,展示对比结果 -优化对比表格样式,增加返回按钮 - 在客服页面中添加导航栏,与 AI 页面保持一致 --- src/views/AI/components/sticky.vue | 17 ++++++++++++++++ src/views/AI/index.vue | 32 +++++++++++++++++++++++------- src/views/comparison/index.vue | 25 ++++++++++++++++++----- src/views/comparison/table.vue | 25 ++++++++++++++++++----- src/views/customer/index.vue | 4 +++- 5 files changed, 85 insertions(+), 18 deletions(-) diff --git a/src/views/AI/components/sticky.vue b/src/views/AI/components/sticky.vue index d7b2940..fac6bfc 100644 --- a/src/views/AI/components/sticky.vue +++ b/src/views/AI/components/sticky.vue @@ -63,6 +63,10 @@ export default { type: String, default: '', }, + conversationId: { + type: String, + default: '', + }, }, watch: { productName: { @@ -77,6 +81,7 @@ export default { if (val) { this.options = val.map((item) => { return { + ...item, text: item.productName, value: item.productName, } @@ -123,6 +128,18 @@ export default { case '2': this.$emit('setProductName', '') break + case '3': + let id = this.options.find((item) => item.productName === this.productName).productId + + this.$router.push({ + path: '/comparison', + query: { + // productName: this.productName, + id: id, + conversationId: this.conversationId || null, + }, + }) + break } this.value2 = '' diff --git a/src/views/AI/index.vue b/src/views/AI/index.vue index 27a4ea1..0bc24cc 100644 --- a/src/views/AI/index.vue +++ b/src/views/AI/index.vue @@ -1,5 +1,6 @@