From 052d1a383d79b5bf5e62932abf8517dd0f0038aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Mon, 22 Dec 2025 17:08:32 +0800 Subject: [PATCH 1/3] =?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=9B=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/sparring/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/sparring/index.vue b/src/pages/sparring/index.vue index b478978f..6219a38a 100644 --- a/src/pages/sparring/index.vue +++ b/src/pages/sparring/index.vue @@ -642,8 +642,9 @@ text-align: center; background-color: #06f; height: 60rpx; - line-height: 58rpx; - border: 1rpx solid #06f; + line-height: 56rpx; + border: 2rpx solid #06f; + box-sizing: border-box; padding: 0 40rpx; color: #fff; border-radius: 8rpx; From 0986ec43f5bfd5f8671ede302aed7e21ec986417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Mon, 22 Dec 2025 17:56:35 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix=EF=BC=9A=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/sparring/components/touchBtn.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/sparring/components/touchBtn.vue b/src/pages/sparring/components/touchBtn.vue index 5b6baf85..67c69a9d 100644 --- a/src/pages/sparring/components/touchBtn.vue +++ b/src/pages/sparring/components/touchBtn.vue @@ -293,7 +293,6 @@ let _res = await getPermission() console.log(2, '取到权限结果:', _res) if (_res) { - hasPermission.value = true setTimeout(() => { if (!isGettingPermission.value) { showOverlayTalking(obj); @@ -327,6 +326,7 @@ return false } else { // isGettingPermission.value = false + hasPermission.value = true return true } } else { From 10cce3b601e6e81ce51516604e9a234f76d3569a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Tue, 23 Dec 2025 13:08:36 +0800 Subject: [PATCH 3/3] =?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:=20=E9=9F=B3=E9=A2=91=E9=95=BF?= =?UTF-8?q?=E5=BA=A6=E8=8E=B7=E5=8F=96=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/sparring/components/question.vue | 31 ++++++++++++++-------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/src/pages/sparring/components/question.vue b/src/pages/sparring/components/question.vue index b482c506..22453bcb 100644 --- a/src/pages/sparring/components/question.vue +++ b/src/pages/sparring/components/question.vue @@ -169,18 +169,27 @@ } const isTesting = ref(false) const setVoiceTime = (sum) => { - let _sum = sum + 1 - if (Math.ceil(talkUserVoiceObj.value.duration) > 0) { - voiceTime.value = (Math.ceil(talkUserVoiceObj.value.duration) || 1) + 's' - } else { - if (_sum === 25) { - voiceTime.value = (props.dataInfo.voiceTime|| 1) + 's' - return + plus.io.getAudioInfo({ + filePath: unref(dataInfo).talkingVoice, + success:(res)=>{ + voiceTime.value = (Math.floor(res.duration) || 1) + 's' + }, + fail:(res)=>{ + voiceTime.value = (props.dataInfo.voiceTime || 1) + 's' } - setTimeout(() => { - setVoiceTime(_sum) - }, 200) - } + }) + // let _sum = sum + 1 + // if (Math.ceil(talkUserVoiceObj.value.duration) > 0) { + // voiceTime.value = (Math.ceil(talkUserVoiceObj.value.duration) || 1) + 's' + // } else { + // if (_sum === 25) { + // voiceTime.value = (props.dataInfo.voiceTime|| 1) + 's' + // return + // } + // setTimeout(() => { + // setVoiceTime(_sum) + // }, 200) + // } } watch(() => props.dataInfo, () => {}, { deep: true,