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