完成大乱斗流程调试

This commit is contained in:
kron
2025-06-09 01:17:18 +08:00
parent 80e0b07c0e
commit e49de0e288
11 changed files with 308 additions and 107 deletions

View File

@@ -23,16 +23,22 @@ const rowCount = new Array(6).fill(0);
<view>
<view>
<view v-for="(_, index) in rowCount" :key="index">
<text>{{ scores[index + 6] ? `${scores[index + 6]}` : "-" }}</text>
<text>{{ scores[index] ? `${scores[index].ring}` : "-" }}</text>
</view>
</view>
<view>
<view v-for="(_, index) in rowCount" :key="index">
<text>{{ scores[index + 6] ? `${scores[index + 6]}` : "-" }}</text>
<text>{{
scores[index + 6] ? `${scores[index + 6].ring}` : "-"
}}</text>
</view>
</view>
</view>
<text>{{ scores.reduce((last, next) => last + next) }}</text>
<text
>{{
scores.map((s) => s.ring).reduce((last, next) => last + next, 0)
}}</text
>
</view>
</template>
@@ -52,6 +58,7 @@ const rowCount = new Array(6).fill(0);
}
.container > image:first-child {
width: 30px;
height: 30px;
border: 1px solid #fff3;
border-radius: 50%;
margin-right: 10px;
@@ -80,7 +87,7 @@ const rowCount = new Array(6).fill(0);
border-bottom: 1px solid #fff3;
}
.container > text:nth-child(4) {
width: 50px;
width: 40px;
text-align: right;
}
</style>