fix:全部对战页面对接新结算页面

This commit is contained in:
2026-05-09 15:51:51 +08:00
parent eaa1950a18
commit 834841a3d5
5 changed files with 25 additions and 41 deletions

View File

@@ -30,10 +30,6 @@ const playersScores = ref([]);
const halfTimeTip = ref(false);
const halfRest = ref(false);
const navigateToResult = () => {
uni.redirectTo({ url: `/pages/battle-result?battleId=${battleId.value}` });
};
function recoverData(battleInfo, { force = false } = {}) {
if (!battleInfo) return;
try {
@@ -126,16 +122,10 @@ async function onReceiveMessage(msg) {
tips.value = "准备下半场";
} else if (msg.type === MESSAGETYPESV2.BattleEnd) {
setTimeout(() => {
// 好友约战way=1跳转新结算页,其余跳旧结算页
if (way.value === 1) {
uni.redirectTo({
url: "/pages/friend-battle-result?battleId=" + msg.matchId,
});
} else {
uni.redirectTo({
url: "/pages/battle-result?battleId=" + msg.matchId,
});
}
// 全部跳转新结算页
uni.redirectTo({
url: "/pages/friend-battle-result?battleId=" + msg.matchId,
});
}, 1000);
}
}