From b645616a4a29c2cbb771a04f5734a25c565dec6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=98=B1=E8=BE=BE?= Date: Tue, 12 Aug 2025 14:46:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(AI):=20=E6=B7=BB=E5=8A=A0=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E6=8E=A8=E8=8D=90=E5=92=8C=E7=9F=A5=E8=AF=86=E9=97=AE?= =?UTF-8?q?=E7=AD=94=E5=9C=BA=E6=99=AF=E7=9A=84=E5=88=9D=E5=A7=8B=E6=B6=88?= =?UTF-8?q?=E6=81=AF-=20=E5=9C=A8=E5=BC=80=E5=A7=8B=E6=96=B0=E5=AF=B9?= =?UTF-8?q?=E8=AF=9D=E6=97=B6=EF=BC=8C=E6=A0=B9=E6=8D=AE=20action=20?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=8F=91=E9=80=81=E4=B8=8D=E5=90=8C=E7=9A=84?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E6=B6=88=E6=81=AF-=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=BA=A7=E5=93=81=E6=8E=A8=E8=8D=90=E5=B0=8F=E5=8A=A9=E6=89=8B?= =?UTF-8?q?=E5=92=8C=E4=BA=A7=E5=93=81=E7=9F=A5=E8=AF=86=E5=B0=8F=E5=8A=A9?= =?UTF-8?q?=E6=89=8B=E7=9A=84=E6=AC=A2=E8=BF=8E=E8=AF=AD=E5=92=8C=E6=8C=87?= =?UTF-8?q?=E5=AF=BC=E4=BF=A1=E6=81=AF-=E4=BC=98=E5=8C=96=E4=BA=86?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E5=BC=80=E5=A7=8B=E7=9A=84=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E9=AB=98=E4=BA=86=E7=94=A8=E6=88=B7=E4=BD=93?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AI-new/components/chat-new.vue | 28 +++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/src/views/AI-new/components/chat-new.vue b/src/views/AI-new/components/chat-new.vue index a2e4920..6edd06d 100644 --- a/src/views/AI-new/components/chat-new.vue +++ b/src/views/AI-new/components/chat-new.vue @@ -166,7 +166,33 @@ export default { startNewConversation() { this.cancelSend() this.$emit('initBotMessage') - this.$emit('update:messages', []) + if (this.action === 'product_recommend') { + this.$emit('update:messages', [ + { + type: 'bot', + text: `这里是产品推荐小助手,请告诉我以下客户的信息, 我帮您精准推荐:\n\n1.如果您需要推荐保障类产品,您可以告诉我以下信息: + \n\n• 客户需要哪类保障?(重疾/医疗/意外) + \n\n• 客户的年龄、性别、有无既往病症 + \n\n• 客户的保障场景(住院医疗/百万医疗/出行意外/综合意外/交通意外) + \n\n2.如果您需要推荐理财储蓄类产品,您可以告诉我以下信息: + \n\n• 客户主要目标是什么?(财富升值/子女教育/资产传承/养老保障) + \n\n• 客户的年龄、性别、年收入、风险承受能力`, + messageEnd: true, + }, + ]) + } + + if (this.action === 'chat') { + this.$emit('update:messages', [ + { + type: 'bot', + text: `这里是产品知识小助手,请告诉我您想要了解哪个产品?也可以输入以下信息,我帮您进行精准查询:\n\n1.投保规则\n\n2.保障责任\n\n3.增值服务\n\n您可以直接向我提问~`, + messageEnd: true, + }, + ]) + } + + // this.$emit('update:messages', []) this.$emit('update:conversationId', '') this.$emit('update:productName', '') this.$emit('update:messageStatus', 'stop')