Commit 13ceb338 by 李伟康

Merge branch 'SAAS+V4.44' into 'SAAS+V4.44.1'

录音异常

See merge request !10
2 parents 53623087 c7a9c461
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-08 11:28:48
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-08-15 16:31:04
* @LastEditTime: 2024-08-30 17:49:04
* @FilePath: \gl_tape\mixin\click.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -133,6 +133,9 @@ export default {
startAudio: utils.throttle(async function () {
if (this.audioInfo.audioStatus == 'start') return
this.setAudioInfo({ audioList: [], audioStatus: 'start' })
this.setBooks([])
this.$store.dispatch('clearCustomerInfo')
this.setReceptionStatus(1)
this.initTime()
recorderManager.start({
duration: 600000,
......@@ -180,13 +183,10 @@ export default {
if (file) {
this.setAudioInfo({ audioList })
}
if (this.audioInfo.audioStatus != 'end') {
if (this.audioInfo.audioStatus != 'end' && this.audioInfo.audioStatus != 'finish') {
return
}
this.saveRecord()
this.setBooks([])
this.$store.dispatch('clearCustomerInfo')
this.setReceptionStatus(1)
this.setAudioInfo({ endReasonType: 0, audioStatus: 'finish' })
},
/**保存记录*/
......@@ -200,6 +200,9 @@ export default {
file: path + i.split('/').pop()
}
})
if (recordUrlList.length) {
this.$store.dispatch('clearCustomerInfo')
}
uni.$recordManager.addRecord({
...params,
id: utils.uuid(),
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!