完成大乱斗流程调试
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user