比赛详情添加决金箭部分
This commit is contained in:
@@ -20,7 +20,7 @@ const data = ref({
|
||||
|
||||
onLoad(async (options) => {
|
||||
if (options.id) {
|
||||
battleId.value = options.id || "BATTLE-1750946182966867665-941";
|
||||
battleId.value = options.id || "BATTLE-1751732742024840058-732";
|
||||
const result = await getGameAPI(battleId.value);
|
||||
data.value = result;
|
||||
if (result.mode === 1) {
|
||||
@@ -76,30 +76,53 @@ const checkBowData = () => {
|
||||
:redTeam="redTeam"
|
||||
:players="data.players"
|
||||
/>
|
||||
<!-- <view class="score-header">
|
||||
<text>决金箭轮(环数)</text>
|
||||
<view>
|
||||
<text>查看靶纸</text>
|
||||
<image src="../static/back.png" mode="widthFix" />
|
||||
<block v-if="data.goldenRound">
|
||||
<view class="score-header">
|
||||
<text>决金箭轮(环数)</text>
|
||||
<view @click="checkBowData">
|
||||
<text>查看靶纸</text>
|
||||
<image src="../static/back.png" mode="widthFix" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="score-row">
|
||||
<view>
|
||||
<Avatar src="../static/avatar.png" :size="25" :borderColor="1" />
|
||||
<text>9环</text>
|
||||
<text>10环</text>
|
||||
<text>7环</text>
|
||||
<view class="score-row">
|
||||
<view>
|
||||
<Avatar
|
||||
:src="blueTeam[0].avatar"
|
||||
:size="25"
|
||||
borderColor="#64BAFF"
|
||||
/>
|
||||
<text
|
||||
v-if="data.goldenRound.blueTotal"
|
||||
v-for="(arrow, index) in data.goldenRound.arrowHistory"
|
||||
:key="index"
|
||||
>
|
||||
{{ arrow.ring }}环
|
||||
</text>
|
||||
</view>
|
||||
<image
|
||||
v-if="data.goldenRound.winner === 1"
|
||||
src="../static/winner-badge.png"
|
||||
mode="widthFix"
|
||||
/>
|
||||
</view>
|
||||
<image src="../static/winner-badge.png" mode="widthFix" />
|
||||
</view>
|
||||
<view class="score-row" :style="{ marginBottom: '5px' }">
|
||||
<view>
|
||||
<Avatar src="../static/avatar.png" :size="25" :borderColor="2" />
|
||||
<text>9环</text>
|
||||
<text>10环</text>
|
||||
<text>7环</text>
|
||||
<view class="score-row" :style="{ marginBottom: '5px' }">
|
||||
<view>
|
||||
<Avatar :src="redTeam[0].avatar" :size="25" borderColor="#FF6767" />
|
||||
<text
|
||||
v-if="data.goldenRound.redTotal"
|
||||
v-for="(arrow, index) in data.goldenRound.arrowHistory"
|
||||
:key="index"
|
||||
>
|
||||
{{ arrow.ring }}环
|
||||
</text>
|
||||
</view>
|
||||
<image
|
||||
v-if="data.goldenRound.winner === 0"
|
||||
src="../static/winner-badge.png"
|
||||
mode="widthFix"
|
||||
/>
|
||||
</view>
|
||||
</view> -->
|
||||
</block>
|
||||
<view
|
||||
v-if="data.players && data.players.length"
|
||||
class="score-header"
|
||||
|
||||
Reference in New Issue
Block a user