细节完善

This commit is contained in:
kron
2025-07-18 22:17:17 +08:00
parent 115e0cefbb
commit c8728786e6
12 changed files with 41 additions and 51 deletions

View File

@@ -106,8 +106,8 @@ onLoad(async (options) => {
}
}
if (battleInfo.fireTime > 0) {
console.log(`当前箭剩余${remain}`);
const remain = Date.now() / 1000 - battleInfo.fireTime;
console.log(`当前箭剩余${remain}`);
if (remain > 0 && remain <= 15) {
// 等渲染好再通知
setTimeout(() => {
@@ -342,9 +342,9 @@ onUnmounted(() => {
/>
</block>
</view>
<view :style="{ marginBottom: '20px' }">
<!-- <view :style="{ marginBottom: '20px' }">
<SButton v-if="battleId && !start" :onClick="readyToGo">准备完毕</SButton>
</view>
</view> -->
</Container>
</template>