样式优化
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user