初步完成返回游戏功能,待测试完善

This commit is contained in:
kron
2025-07-05 17:24:52 +08:00
parent c269a4b431
commit 1ea3f19238
8 changed files with 126 additions and 33 deletions

View File

@@ -67,6 +67,14 @@ onLoad(async (options) => {
redPoints.value = battleInfo.redScore;
totalRounds.value = battleInfo.maxRound;
roundResults.value = battleInfo.roundResults;
currentShooterId.value = battleInfo.firePlayerIndex;
const remain = Date.now() / 1000 - battleInfo.fireTime;
if (remain > 0 && remain < 15) {
// 等渲染好再通知
setTimeout(() => {
uni.$emit("update-ramain", remain);
}, 300);
}
}
}
if (options.roomNumber) {