修复组队返回游戏
This commit is contained in:
@@ -107,11 +107,11 @@ onLoad(async (options) => {
|
||||
}
|
||||
if (battleInfo.fireTime > 0) {
|
||||
const remain = Date.now() / 1000 - battleInfo.fireTime;
|
||||
console.log(`当前箭剩余${remain}秒`);
|
||||
console.log(`当前箭已过${remain}秒`);
|
||||
if (remain > 0 && remain <= 15) {
|
||||
// 等渲染好再通知
|
||||
setTimeout(() => {
|
||||
uni.$emit("update-ramain", remain);
|
||||
uni.$emit("update-ramain", 15 - remain);
|
||||
}, 300);
|
||||
}
|
||||
}
|
||||
@@ -286,7 +286,7 @@ onUnmounted(() => {
|
||||
/>
|
||||
<TestDistance v-if="!start" :guide="false" />
|
||||
<ShootProgress
|
||||
v-if="start"
|
||||
:show="start"
|
||||
:tips="tips"
|
||||
:seq="seq"
|
||||
:total="15"
|
||||
|
||||
Reference in New Issue
Block a user