初步完成返回游戏功能,待测试完善
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user