完成打乱斗数据调试

This commit is contained in:
kron
2026-02-07 10:52:56 +08:00
parent 09d8e7b3da
commit 6101cd80ce
20 changed files with 444 additions and 473 deletions

View File

@@ -9,7 +9,7 @@ defineProps({
type: String,
default: "",
},
scores: {
arrows: {
type: Array,
default: () => [],
},
@@ -21,10 +21,6 @@ defineProps({
type: Number,
default: 0,
},
totalRing: {
type: Number,
default: 0,
},
});
const rowCount = new Array(6).fill(0);
</script>
@@ -60,19 +56,19 @@ const rowCount = new Array(6).fill(0);
<view>
<view>
<view v-for="(_, index) in rowCount" :key="index">
<text>{{ scores[index] ? `${scores[index].ring}` : "-" }}</text>
<text>{{ arrows[index] ? `${arrows[index].ring}` : "-" }}</text>
</view>
</view>
<view>
<view v-for="(_, index) in rowCount" :key="index">
<text>{{
scores[index + 6] ? `${scores[index + 6].ring}` : "-"
arrows[index + 6] ? `${arrows[index + 6].ring}` : "-"
}}</text>
</view>
</view>
</view>
<view>
<text>{{ totalRing }}</text>
<text>{{ arrows.reduce((last, next) => last + next.ring, 0) }}</text>
<text>积分{{ totalScore }}</text>
</view>
</view>