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";
|
||||
@@ -47,6 +47,9 @@ const serverAddr = ref("");
|
||||
const showGuide = ref(false);
|
||||
const tips = ref("");
|
||||
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);
|
||||
@@ -447,6 +450,7 @@ onBeforeUnmount(() => {
|
||||
<view>
|
||||
<TestDistance
|
||||
v-if="!start && !practiseResult.id"
|
||||
:targetType="simulatorTargetType"
|
||||
:autoStart="true"
|
||||
@passed="onReady"
|
||||
/>
|
||||
@@ -477,6 +481,7 @@ onBeforeUnmount(() => {
|
||||
:currentRound="scores.length % 3"
|
||||
:scores="scores"
|
||||
:isSvip="isSvip"
|
||||
:targetType="simulatorTargetType"
|
||||
stable-shot-effect
|
||||
/>
|
||||
<ScorePanel2 :arrows="scores" />
|
||||
|
||||
Reference in New Issue
Block a user