样式优化

This commit is contained in:
kron
2025-05-30 17:34:59 +08:00
parent b7d64396ef
commit 0ee2eb7f51
2 changed files with 20 additions and 3 deletions

View File

@@ -34,6 +34,12 @@ const onReady = async () => {
});
};
const roundsName = {
1: "一",
2: "二",
3: "三",
};
onUnmounted(() => {
websocket.closeWebSocket();
});
@@ -43,7 +49,11 @@ onUnmounted(() => {
<view class="container">
<AppBackground :type="1" />
<Header title="个人单组练习" />
<ShootProgress tips="请开始射箭第一轮" :start="start" :total="120" />
<ShootProgress
:tips="`请开始射箭第${roundsName[Math.ceil((scores.length + 1) / 4)]}轮`"
:start="start"
:total="120"
/>
<BowTarget
:totalRound="total"
:currentRound="scores.length + 1"