update:优化精准射箭语音
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user