细节调整

This commit is contained in:
kron
2025-07-23 16:01:16 +08:00
parent cfb1b8cd7f
commit 46ec2ade9a
7 changed files with 75 additions and 47 deletions

View File

@@ -165,15 +165,19 @@ async function onReceiveMessage(messages = []) {
uni.setStorageSync("last-battle", msg.endStatus);
if (msg.endStatus.noSaved) {
uni.showToast({
title: "游戏结束",
title: "本场比赛无人射箭,已取消",
icon: "none",
});
uni.navigateBack();
setTimeout(() => {
uni.navigateBack();
}, 1500);
} else {
isEnded.value = true;
uni.redirectTo({
url: `/pages/battle-result?battleId=${msg.id}`,
});
setTimeout(() => {
uni.redirectTo({
url: `/pages/battle-result?battleId=${msg.id}`,
});
}, 1500);
}
}
if (msg.constructor === MESSAGETYPES.BackToGame) {