细节修改
This commit is contained in:
@@ -18,7 +18,12 @@ const roundsName = ["第一轮", "第二轮", "第三轮", "第四轮"];
|
||||
<text>{{ scores.reduce((last, next) => last + next, 0) }}环</text>
|
||||
</view>
|
||||
<view
|
||||
v-for="(_, index) in new Array(Math.ceil(scores.length / 3)).fill(1)"
|
||||
v-for="(_, index) in new Array(
|
||||
Math.min(
|
||||
Math.ceil(scores.length / 3) + (scores.length % 3 === 0 ? 1 : 0),
|
||||
4
|
||||
)
|
||||
).fill(1)"
|
||||
:key="index"
|
||||
>
|
||||
<text>{{ roundsName[index] }}</text>
|
||||
|
||||
@@ -83,6 +83,7 @@ async function onComplete() {
|
||||
) {
|
||||
uni.navigateBack();
|
||||
} else {
|
||||
practiseId.value = "";
|
||||
practiseResult.value = {};
|
||||
start.value = false;
|
||||
scores.value = [];
|
||||
|
||||
@@ -77,6 +77,7 @@ async function onComplete() {
|
||||
) {
|
||||
uni.navigateBack();
|
||||
} else {
|
||||
practiseId.value = "";
|
||||
practiseResult.value = {};
|
||||
start.value = false;
|
||||
scores.value = [];
|
||||
|
||||
Reference in New Issue
Block a user