From e05ceb0f68a230e4b2e1a8e8d9034b030f26c3b2 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Tue, 2 Jun 2026 10:50:02 +0800 Subject: [PATCH] =?UTF-8?q?Feat(=E4=BA=91=E7=81=B5AI):=E5=8E=BF=E5=9F=9FAI?= =?UTF-8?q?=E5=92=8C=E5=B9=B3=E5=8F=B0AI=E9=80=BB=E8=BE=91=E5=8C=BA?= =?UTF-8?q?=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aiChat/components/bottomSend.vue | 14 +- aiChat/components/historyList.vue | 21 +- aiChat/mixins/chatMixinsV2.js | 147 +++++++----- aiChat/views/history.vue | 21 +- aiChat/views/index.vue | 276 ++++++++++------------- api/chat/index.js | 26 +++ api/public.js | 10 + components/aiChat/entrance.vue | 22 +- pkg_product/views/famousQianxianShop.vue | 5 +- 9 files changed, 311 insertions(+), 231 deletions(-) diff --git a/aiChat/components/bottomSend.vue b/aiChat/components/bottomSend.vue index 0b47eba..f8a0142 100644 --- a/aiChat/components/bottomSend.vue +++ b/aiChat/components/bottomSend.vue @@ -112,6 +112,10 @@ export default { keyboardHeight: { type: Number, default: 0 + }, + voiceException: { + type: String, + default: '没有听清您说了什么,请再说一遍' } }, data() { @@ -262,11 +266,11 @@ export default { fail: err => { console.log(err) uni.hideLoading() - _this.$toast('没有听清您说了什么,请再说一遍') + _this.$toast(_this.voiceException) } }) } else { - _this.$toast('没有听清您说了什么,请再说一遍') + _this.$toast(_this.voiceException) } }) } @@ -282,7 +286,7 @@ export default { _this.getTransResultReq() }).catch(() => { uni.hideLoading() - _this.$toast('没有听清您说了什么,请再说一遍') + _this.$toast(_this.voiceException) }) }, getTransResultReq() { @@ -296,7 +300,7 @@ export default { uni.hideLoading() _this.clearIntervalFn() if (data === '__NULL__') { - _this.$toast('没有听清您说了什么,请再说一遍') + _this.$toast(_this.voiceException) } else { if (data.length > 0) { const prompt = data[0].Text @@ -308,7 +312,7 @@ export default { } }).catch(() => { uni.hideLoading() - _this.$toast('没有听清您说了什么,请再说一遍') + _this.$toast(_this.voiceException) }) }, 1000) }, diff --git a/aiChat/components/historyList.vue b/aiChat/components/historyList.vue index 7635202..bdcb3c1 100644 --- a/aiChat/components/historyList.vue +++ b/aiChat/components/historyList.vue @@ -112,7 +112,8 @@