fix:全部对战页面对接新结算页面
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user