From 9f72bfb9b1877411b375d1a07c44249eee8ad19a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Tue, 13 Jan 2026 10:48:48 +0800 Subject: [PATCH 1/2] =?UTF-8?q?JLBA202505130001=5F=E5=85=B3=E4=BA=8E?= =?UTF-8?q?=E5=90=89=E6=9E=97=E9=93=B6=E8=A1=8C=E6=96=B0=E5=BB=BAAI?= =?UTF-8?q?=E6=99=BA=E8=83=BD=E5=9F=B9=E8=AE=AD=E7=B3=BB=E7=BB=9F=E7=9A=84?= =?UTF-8?q?=E9=9C=80=E6=B1=82=5Ffix=EF=BC=9A=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/components/question.vue | 31 ++++++++++++++++--------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/src/pages/index/components/question.vue b/src/pages/index/components/question.vue index 1d59196a..e95e15bb 100644 --- a/src/pages/index/components/question.vue +++ b/src/pages/index/components/question.vue @@ -126,18 +126,27 @@ import { onUnload } from '@dcloudio/uni-app'; } } const setVoiceTime = (sum) => { - sum += 1 - if(Math.ceil(talkVoiceObj.value.duration)>0){ - voiceTime.value = (Math.ceil(talkVoiceObj.value.duration) || 1 ) + 's' - }else{ - if(sum === 20) { - voiceTime.value = (unref(dataInfo).voiceTime || 0) + 's'; - return + plus.io.getAudioInfo({ + filePath: unref(dataInfo).talkingVoice, + success:(res)=>{ + voiceTime.value = (Math.floor(res.duration) || 1) + 's' + }, + fail:(res)=>{ + voiceTime.value = (unref(dataInfo).voiceTime || 1) + 's' } - setTimeout(()=>{ - setVoiceTime(sum) - },200) - } + }) + // sum += 1 + // if(Math.ceil(talkVoiceObj.value.duration)>0){ + // voiceTime.value = (Math.ceil(talkVoiceObj.value.duration) || 1 ) + 's' + // }else{ + // if(sum === 20) { + // voiceTime.value = (unref(dataInfo).voiceTime || 0) + 's'; + // return + // } + // setTimeout(()=>{ + // setVoiceTime(sum) + // },200) + // } } From 218dff6707b1c0838419a4fb895ce53aaa10ba63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Tue, 13 Jan 2026 13:36:13 +0800 Subject: [PATCH 2/2] =?UTF-8?q?JLBA202505130001=5F=E5=85=B3=E4=BA=8E?= =?UTF-8?q?=E5=90=89=E6=9E=97=E9=93=B6=E8=A1=8C=E6=96=B0=E5=BB=BAAI?= =?UTF-8?q?=E6=99=BA=E8=83=BD=E5=9F=B9=E8=AE=AD=E7=B3=BB=E7=BB=9F=E7=9A=84?= =?UTF-8?q?=E9=9C=80=E6=B1=82=5F=E4=BF=AE=E5=A4=8Dsitbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/components/touchBtn.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/course/components/touchBtn.vue b/src/pages/course/components/touchBtn.vue index 4137c550..3ef49789 100644 --- a/src/pages/course/components/touchBtn.vue +++ b/src/pages/course/components/touchBtn.vue @@ -16,7 +16,7 @@ + mode="" @click.stop="showKeyboard()">