This commit is contained in:
kron
2025-07-17 17:24:23 +08:00
parent cdddf57cc5
commit 84be88182a
4 changed files with 19 additions and 15 deletions

View File

@@ -103,12 +103,14 @@ onLoad(async (options) => {
tips.value = `请蓝队射箭-第${roundsName[currentRound.value]}`;
}
}
const remain = Date.now() / 1000 - battleInfo.fireTime;
if (remain > 0 && remain <= 15) {
// 等渲染好再通知
setTimeout(() => {
uni.$emit("update-ramain", remain);
}, 300);
if (battleInfo.fireTime > 0) {
const remain = Date.now() / 1000 - battleInfo.fireTime;
if (remain > 0 && remain <= 15) {
// 等渲染好再通知
setTimeout(() => {
uni.$emit("update-ramain", remain);
}, 300);
}
}
}
} else {