添加X环显示,比赛过程完善
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user