From 1eab5a151e735e9b8e360047780e6679c5785409 Mon Sep 17 00:00:00 2001 From: kron Date: Mon, 2 Jun 2025 14:42:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis.js | 7 -- src/components/Container.vue | 4 + src/pages/first-try.vue | 197 ++++++++++++++++++----------------- src/pages/index.vue | 18 +--- src/pages/user.vue | 5 +- src/store.js | 6 +- 6 files changed, 118 insertions(+), 119 deletions(-) diff --git a/src/apis.js b/src/apis.js index 32e87a1..5e785ea 100644 --- a/src/apis.js +++ b/src/apis.js @@ -119,10 +119,3 @@ export const readyGameAPI = (battleId) => { battleId, }); }; - -export const finishGameAPI = (battleId, arrow) => { - return request("POST", "/user/game/shoot", { - battleId, - arrow, - }); -}; diff --git a/src/components/Container.vue b/src/components/Container.vue index 7a76c57..11f0253 100644 --- a/src/components/Container.vue +++ b/src/components/Container.vue @@ -28,5 +28,9 @@ defineProps({ width: 100%; height: calc(100vh - 96px); overflow: auto; + display: flex; + flex-direction: column; + align-items: center; + justify-content: space-between; } diff --git a/src/pages/first-try.vue b/src/pages/first-try.vue index 1631d1b..39105af 100644 --- a/src/pages/first-try.vue +++ b/src/pages/first-try.vue @@ -46,6 +46,7 @@ onMounted(() => { if (scores.value.length === total) { showScore.value = true; } + // if (step.value === 2 && msg.target.dst / 100 > 5) { if (step.value === 2 && msg.target.dst > 5) { btnDisabled.value = false; } @@ -68,7 +69,6 @@ const nextStep = async () => { if (step.value === 0) { step.value = 1; } else if (step.value === 1) { - await createPractise(1); btnDisabled.value = true; step.value = 2; } else if (step.value === 2) { @@ -95,109 +95,116 @@ const onClose = () => {