From 1c70471959a3380c9804ab8876281ced4bbf0e14 Mon Sep 17 00:00:00 2001 From: kron Date: Sat, 5 Jul 2025 14:52:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E6=B5=8B=E8=B7=9D=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BowTarget.vue | 12 --- src/components/ShootProgress.vue | 3 +- src/components/StartCountdown.vue | 2 +- src/components/TestDistance.vue | 124 ++++++++++++++++++++++++++++++ src/pages/battle-room.vue | 27 +------ src/pages/first-try.vue | 33 +++----- src/pages/melee-match.vue | 19 +---- src/pages/practise-one.vue | 78 +++++++++---------- src/pages/practise-two.vue | 82 ++++++++++---------- src/pages/team-match.vue | 23 +----- 10 files changed, 224 insertions(+), 179 deletions(-) create mode 100644 src/components/TestDistance.vue diff --git a/src/components/BowTarget.vue b/src/components/BowTarget.vue index fdfc48c..f3d07b9 100644 --- a/src/components/BowTarget.vue +++ b/src/components/BowTarget.vue @@ -25,10 +25,6 @@ const props = defineProps({ type: Number, default: 0, }, - tips: { - type: String, - default: "", - }, scores: { type: Array, default: () => [], @@ -183,7 +179,6 @@ const simulShoot = async () => { - {{ tips }} 模拟射箭 @@ -263,13 +258,6 @@ const simulShoot = async () => { border-radius: 50%; border: 1px solid #fff; } -.container > text { - width: 100%; - color: #fed847; - text-align: center; - line-height: 40px; - display: block; -} .simul { position: absolute; bottom: 20px; diff --git a/src/components/ShootProgress.vue b/src/components/ShootProgress.vue index cc0079e..6ea8372 100644 --- a/src/components/ShootProgress.vue +++ b/src/components/ShootProgress.vue @@ -56,11 +56,10 @@ watch( (newVal, oldVal) => { if (newVal === false) { if (timer.value) clearInterval(timer.value); - remain.value = props.total; } if (!oldVal && newVal === true) { + remain.value = props.total; setTimeout(() => { - remain.value = props.total; timer.value = setInterval(() => { if (remain.value > 0) { remain.value--; diff --git a/src/components/StartCountdown.vue b/src/components/StartCountdown.vue index e3998a6..f3e3806 100644 --- a/src/components/StartCountdown.vue +++ b/src/components/StartCountdown.vue @@ -38,7 +38,7 @@ onUnmounted(() => {