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')