Merge branch 'develop' of http://25.13.9.101:9000/K17_AITS/tra-app into develop
This commit is contained in:
@@ -99,8 +99,6 @@ const recordObjCom = ref({})
|
||||
const IsAndEnv = getPhoneEnvBool('AND')
|
||||
const initRecord = () => {
|
||||
recordObjCom.value = uni.getRecorderManager()
|
||||
// startRecord()
|
||||
// stopRecord()
|
||||
unref(recordObjCom)?.onStop((res, duration)=>{
|
||||
audioPath.value = res.tempFilePath
|
||||
if(!isOut.value){
|
||||
@@ -144,6 +142,7 @@ const startRecord = () => {
|
||||
}
|
||||
|
||||
const stopRecord = () => {
|
||||
// setTimeout(() => {
|
||||
try{
|
||||
if(unref(recordObjCom).stop){
|
||||
unref(recordObjCom).stop()
|
||||
@@ -153,12 +152,13 @@ const stopRecord = () => {
|
||||
}catch{
|
||||
closeModel()
|
||||
}
|
||||
// }, 500)
|
||||
}
|
||||
const closeModel = (cb = () => {}) => {
|
||||
setTimeout(() => {
|
||||
showTalkingModel.value = false
|
||||
cb && cb()
|
||||
},100)
|
||||
}, 350)
|
||||
}
|
||||
// #endif
|
||||
//#ifndef APP-PLUS
|
||||
|
||||
Reference in New Issue
Block a user