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(() => {