update:优化精准射箭语音

This commit is contained in:
2026-08-20 17:57:22 +08:00
parent 6363dda204
commit 962596e510
6 changed files with 132 additions and 20 deletions
+7
View File
@@ -41,6 +41,7 @@ const { user } = storeToRefs(store);
const sound = ref(true);
const start = ref(false);
const practiceStarting = ref(false);
const pageStages = Object.freeze({
DISTANCE: "distance",
SHOOTING: "shooting",
@@ -1031,6 +1032,7 @@ onLoad((options = {}) => {
});
const onReady = async () => {
if (practiceStarting.value) return;
if (
!practiseId.value ||
practiceEnded.value ||
@@ -1044,6 +1046,7 @@ const onReady = async () => {
return;
}
practiceStarting.value = true;
pageStage.value = pageStages.LOADING;
clearHighlightTestTimer();
useHighlightTest.value = false;
@@ -1066,6 +1069,8 @@ const onReady = async () => {
pageStage.value = pageStages.DISTANCE;
setPracticeAppHideResumable(true);
throw error;
} finally {
practiceStarting.value = false;
}
};
@@ -1332,6 +1337,8 @@ onBeforeUnmount(() => {
<TestDistance
v-if="isDistanceStage"
:targetType="practiceInfo.targetType"
:autoStart="true"
@passed="onReady"
/>
<view v-else-if="isShootingStage" class="shooting-layout">
<view class="shooting-fixed">