BUG修复
This commit is contained in:
@@ -19,6 +19,10 @@ defineProps({
|
||||
type: Number,
|
||||
default: 0,
|
||||
},
|
||||
goldenRound: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -43,7 +47,21 @@ defineProps({
|
||||
<view class="players">
|
||||
<view>
|
||||
<view v-for="(result, index) in roundResults" :key="index">
|
||||
<image :src="RoundImages[`round${index + 1}`]" mode="widthFix" />
|
||||
<block
|
||||
v-if="goldenRound > 0 && index >= roundResults.length - goldenRound"
|
||||
>
|
||||
<image
|
||||
:src="
|
||||
RoundImages[
|
||||
`gold${index + 1 - (roundResults.length - goldenRound)}`
|
||||
]
|
||||
"
|
||||
mode="widthFix"
|
||||
/>
|
||||
</block>
|
||||
<block v-else>
|
||||
<image :src="RoundImages[`round${index + 1}`]" mode="widthFix" />
|
||||
</block>
|
||||
<view>
|
||||
<text>{{
|
||||
result.blueArrows.length
|
||||
@@ -70,7 +88,21 @@ defineProps({
|
||||
</view>
|
||||
<view>
|
||||
<view v-for="(result, index) in roundResults" :key="index">
|
||||
<image :src="RoundImages[`round${index + 1}`]" mode="widthFix" />
|
||||
<block
|
||||
v-if="goldenRound > 0 && index >= roundResults.length - goldenRound"
|
||||
>
|
||||
<image
|
||||
:src="
|
||||
RoundImages[
|
||||
`gold${index + 1 - (roundResults.length - goldenRound)}`
|
||||
]
|
||||
"
|
||||
mode="widthFix"
|
||||
/>
|
||||
</block>
|
||||
<block v-else>
|
||||
<image :src="RoundImages[`round${index + 1}`]" mode="widthFix" />
|
||||
</block>
|
||||
<view>
|
||||
<text>{{
|
||||
result.redArrows.length
|
||||
|
||||
Reference in New Issue
Block a user