Merge branch 'develop' of http://25.13.9.101:9000/K17_AITS/tra-app into develop

This commit is contained in:
2025-07-22 17:42:38 +08:00
+3 -3
View File
@@ -99,8 +99,6 @@ const recordObjCom = ref({})
const IsAndEnv = getPhoneEnvBool('AND') const IsAndEnv = getPhoneEnvBool('AND')
const initRecord = () => { const initRecord = () => {
recordObjCom.value = uni.getRecorderManager() recordObjCom.value = uni.getRecorderManager()
// startRecord()
// stopRecord()
unref(recordObjCom)?.onStop((res, duration)=>{ unref(recordObjCom)?.onStop((res, duration)=>{
audioPath.value = res.tempFilePath audioPath.value = res.tempFilePath
if(!isOut.value){ if(!isOut.value){
@@ -144,6 +142,7 @@ const startRecord = () => {
} }
const stopRecord = () => { const stopRecord = () => {
// setTimeout(() => {
try{ try{
if(unref(recordObjCom).stop){ if(unref(recordObjCom).stop){
unref(recordObjCom).stop() unref(recordObjCom).stop()
@@ -153,12 +152,13 @@ const stopRecord = () => {
}catch{ }catch{
closeModel() closeModel()
} }
// }, 500)
} }
const closeModel = (cb = () => {}) => { const closeModel = (cb = () => {}) => {
setTimeout(() => { setTimeout(() => {
showTalkingModel.value = false showTalkingModel.value = false
cb && cb() cb && cb()
},100) }, 350)
} }
// #endif // #endif
//#ifndef APP-PLUS //#ifndef APP-PLUS