添加X环显示,比赛过程完善

This commit is contained in:
kron
2026-02-09 17:27:44 +08:00
parent b355f4e009
commit a3fea0bb1f
18 changed files with 82 additions and 104 deletions

View File

@@ -16,7 +16,7 @@ const players = ref([]);
onLoad(async (options) => {
if (!options.battleId) return;
battleId.value = options.battleId || "59090720979554304";
battleId.value = options.battleId || "60143330377469952";
const result = await getBattleAPI(battleId.value);
data.value = result;
if (result.mode > 3) {
@@ -116,8 +116,12 @@ const checkBowData = (selected) => {
mode="widthFix"
/>
</view>
<text v-for="(arrow, index2) in round.shoots[team]" :key="index2">
{{ arrow.ring }}
<text
v-for="(arrow, index2) in round.shoots[team]"
:key="index2"
:style="{ color: arrow.ringX ? '#fed847' : '#ccc' }"
>
{{ arrow.ringX ? "X" : `${arrow.ring}` }}
</text>
</view>
<view>