update:优化新手教程
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup>
|
||||
import { ref, nextTick, onMounted, onBeforeUnmount } from "vue";
|
||||
import { computed, ref, nextTick, onMounted, onBeforeUnmount } from "vue";
|
||||
import { onHide, onLoad, onShow } from "@dcloudio/uni-app";
|
||||
import Container from "@/components/Container.vue";
|
||||
import ShootProgress from "@/components/ShootProgress.vue";
|
||||
@@ -46,6 +46,9 @@ const practiseId = ref("");
|
||||
const serverAddr = ref("");
|
||||
const showGuide = ref(false);
|
||||
const targetType = ref(1);
|
||||
const simulatorTargetType = computed(() =>
|
||||
[2, 40].includes(Number(targetType.value)) ? 40 : 20
|
||||
);
|
||||
const sharing = ref(false);
|
||||
const exiting = ref(false);
|
||||
const hiddenWhileActive = ref(false);
|
||||
@@ -461,6 +464,7 @@ onBeforeUnmount(() => {
|
||||
<view>
|
||||
<TestDistance
|
||||
v-if="!start && !practiseResult.id"
|
||||
:targetType="simulatorTargetType"
|
||||
:autoStart="true"
|
||||
@passed="onReady"
|
||||
/>
|
||||
@@ -486,6 +490,7 @@ onBeforeUnmount(() => {
|
||||
:totalRound="start ? total : 0"
|
||||
:scores="scores"
|
||||
:isSvip="isSvip"
|
||||
:targetType="simulatorTargetType"
|
||||
/>
|
||||
<ScorePanel
|
||||
v-if="start"
|
||||
|
||||
Reference in New Issue
Block a user