细节完善
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user