From 59a2b173a6b2318b45a85927735a989a067cedac Mon Sep 17 00:00:00 2001 From: kron Date: Tue, 11 Nov 2025 16:31:47 +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/pages.json | 5 +---- src/pages/calibration.vue | 8 ++++---- src/pages/first-try.vue | 8 +++++++- src/pages/melee-match.vue | 11 +++++++---- src/pages/my-device.vue | 13 +++++++------ src/pages/point-book-detail.vue | 4 ++-- src/pages/point-book-edit.vue | 17 +++++++++++------ src/pages/team-battle.vue | 12 +++++++----- 8 files changed, 46 insertions(+), 32 deletions(-) diff --git a/src/pages.json b/src/pages.json index 1a87bc9..ffdb1ff 100644 --- a/src/pages.json +++ b/src/pages.json @@ -88,10 +88,7 @@ "path": "pages/friend-battle" }, { - "path": "pages/battle-room", - "style": { - "disableSwipeBack": true - } + "path": "pages/battle-room" }, { "path": "pages/ranking" diff --git a/src/pages/calibration.vue b/src/pages/calibration.vue index 5395d1b..194a7a6 100644 --- a/src/pages/calibration.vue +++ b/src/pages/calibration.vue @@ -5,11 +5,11 @@ import SButton from "@/components/SButton.vue"; import { laserAimAPI, laserCloseAPI } from "@/apis"; import { MESSAGETYPES } from "@/constants"; -import audioManager from "@/audioManager"; +// import audioManager from "@/audioManager"; const guides = [ { - title: "箭头面向墙面,直至语音提示激光坐标已校准", + title: "箭头面向靶子", src: "https://static.shelingxingqiu.com/attachment/2025-10-30/ddv9p5fk5wscg7hrfo.png", }, { @@ -34,7 +34,7 @@ function onReceiveMessage(messages = []) { if (msg.constructor === MESSAGETYPES.Calibration) { done.value = true; uni.setStorageSync("calibration", true); - audioManager.play("激光已校准"); + // audioManager.play("激光已校准"); } }); } @@ -109,7 +109,7 @@ onBeforeUnmount(async () => { height: 250rpx; } .container > text { - font-size: 20rpx; + font-size: 24rpx; color: #fff9; margin: 30rpx; } diff --git a/src/pages/first-try.vue b/src/pages/first-try.vue index d29fe3e..52a6c80 100644 --- a/src/pages/first-try.vue +++ b/src/pages/first-try.vue @@ -167,7 +167,13 @@ const onClose = () => { : 0 " > - + hi,{{ user.nickName }} ,这是新人必刷小任务,0基础小白也能快速掌握弓箭技巧和游戏规则哦~:) diff --git a/src/pages/melee-match.vue b/src/pages/melee-match.vue index d7a08cb..2fe8016 100644 --- a/src/pages/melee-match.vue +++ b/src/pages/melee-match.vue @@ -102,6 +102,12 @@ onLoad(async (options) => { setTimeout(getCurrentGameAPI, 2000); } } + uni.enableAlertBeforeUnload({ + message: "离开比赛可能导致比赛失败,是否继续?", + success: (res) => { + console.log("已启用离开提示"); + }, + }); }); async function onReceiveMessage(messages = []) { @@ -149,9 +155,6 @@ async function onReceiveMessage(messages = []) { } }); } -const onBack = () => { - uni.$showHint(2); -}; onMounted(async () => { uni.setKeepScreenOn({ keepScreenOn: true, @@ -188,7 +191,7 @@ onHide(() => {