细节完善
This commit is contained in:
@@ -69,9 +69,7 @@ onLoad(async (options) => {
|
||||
scores.value = p.arrows;
|
||||
}
|
||||
});
|
||||
tips.value = `${
|
||||
scores.value.length ? "下半场-" : "上半场-"
|
||||
}请连续射出6支箭`;
|
||||
tips.value = `${scores.value.length ? "下半场-" : "上半场-"}请连续射6箭`;
|
||||
const remain = Date.now() / 1000 - battleInfo.startTime;
|
||||
console.log(`当前局剩余${remain}秒`);
|
||||
if (remain <= 90) {
|
||||
@@ -137,9 +135,7 @@ async function onReceiveMessage(messages = []) {
|
||||
startCount.value = true;
|
||||
seq.value += 1;
|
||||
timerSeq.value = 0;
|
||||
tips.value = `${
|
||||
scores.value.length ? "下半场-" : "上半场-"
|
||||
}请连续射出6支箭`;
|
||||
tips.value = `${scores.value.length ? "下半场-" : "上半场-"}请连续射6箭`;
|
||||
halfTimeTip.value = false;
|
||||
}
|
||||
if (msg.constructor === MESSAGETYPES.ShootResult) {
|
||||
@@ -208,7 +204,7 @@ onUnmounted(() => {
|
||||
>
|
||||
<view class="container">
|
||||
<block v-if="battleId">
|
||||
<BattleHeader :players="players" />
|
||||
<BattleHeader v-if="!start" :players="players" />
|
||||
<TestDistance v-if="!start" :guide="false" />
|
||||
<ShootProgress
|
||||
v-if="start"
|
||||
@@ -260,9 +256,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