细节修改

This commit is contained in:
kron
2025-07-25 09:59:54 +08:00
parent 553e23ed46
commit 85f1f7e33d
9 changed files with 52 additions and 32 deletions

View File

@@ -162,23 +162,13 @@ async function onReceiveMessage(messages = []) {
tips.value = "准备下半场";
}
if (msg.constructor === MESSAGETYPES.MatchOver) {
isEnded.value = true;
uni.setStorageSync("last-battle", msg.endStatus);
if (msg.endStatus.noSaved) {
uni.showToast({
title: "本场比赛无人射箭,已取消",
icon: "none",
setTimeout(() => {
uni.redirectTo({
url: "/pages/battle-result",
});
setTimeout(() => {
uni.navigateBack();
}, 1500);
} else {
isEnded.value = true;
setTimeout(() => {
uni.redirectTo({
url: "/pages/battle-result",
});
}, 1500);
}
}, 1500);
}
if (msg.constructor === MESSAGETYPES.BackToGame) {
uni.$emit("update-header-loading", false);