Feat(云灵AI):县域AI和平台AI逻辑区分

This commit is contained in:
lifizer
2026-06-02 10:50:02 +08:00
parent 758d3a2127
commit e05ceb0f68
9 changed files with 311 additions and 231 deletions
+9 -5
View File
@@ -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)
},