From ab8aa08a35e550d44f2d656bd55b8b78642fca6b Mon Sep 17 00:00:00 2001 From: kron Date: Tue, 17 Jun 2025 19:35:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BowTarget.vue | 65 ++++++++++++++++++++---------------- src/pages/melee-match.vue | 21 ++++++------ src/pages/practise-one.vue | 3 +- src/pages/practise-two.vue | 7 ++-- src/pages/team-match.vue | 3 +- 5 files changed, 55 insertions(+), 44 deletions(-) diff --git a/src/components/BowTarget.vue b/src/components/BowTarget.vue index d5f3d05..ad96e48 100644 --- a/src/components/BowTarget.vue +++ b/src/components/BowTarget.vue @@ -38,6 +38,10 @@ const props = defineProps({ type: Boolean, default: true, }, + showE: { + type: Boolean, + default: true, + }, }); const showRoundTips = ref(false); @@ -84,7 +88,7 @@ function calcRealY(num) { 经验 +1 @@ -93,34 +97,37 @@ function calcRealY(num) { class="round-tip fade-in" >{{ scores[scores.length - 1].ring }} - - + + + + + + + diff --git a/src/pages/melee-match.vue b/src/pages/melee-match.vue index 7c99f9c..1594459 100644 --- a/src/pages/melee-match.vue +++ b/src/pages/melee-match.vue @@ -36,20 +36,17 @@ onLoad((options) => { teamSize.value = options.teamSize; }); async function startMatch() { - if (gameType.value && teamSize.value) { - await matchGameAPI(true, gameType.value, teamSize.value); - startMatch.value = true; - } + await matchGameAPI(true, gameType.value, teamSize.value); + matching.value = true; } async function stopMatch() { - if (gameType.value && teamSize.value) { - await matchGameAPI(false, gameType.value, teamSize.value); - startMatch.value = false; - } + await matchGameAPI(false, gameType.value, teamSize.value); + matching.value = false; } async function readyToGo() { if (battleId.value) { await readyGameAPI(battleId.value); + scores.value = []; start.value = true; timerSeq.value = 0; } @@ -118,7 +115,7 @@ onUnmounted(() => { - + 请预先射几箭测试 @@ -128,13 +125,15 @@ onUnmounted(() => { - + { await createPractiseAPI(total); start.value = true; + currentRound.value = 0; scores.value = []; }; @@ -82,7 +83,7 @@ onUnmounted(() => { - + 请预先射几箭测试 @@ -163,6 +163,7 @@ onUnmounted(() => { :redTeam="redTeam" />