数据显示修改

This commit is contained in:
kron
2025-08-27 18:41:42 +08:00
parent 01f05f4824
commit f076065550
2 changed files with 8 additions and 4 deletions

View File

@@ -78,7 +78,10 @@ onBeforeUnmount(() => {
}"
>
<image src="../static/score-bg.png" mode="widthFix" />
<text>{{ scores[index] }}</text>
<text
:style="{ fontWeight: scores[index] !== undefined ? 'bold' : 'normal' }"
>{{ scores[index] !== undefined ? scores[index] : "-" }}</text
>
</view>
</view>
</template>
@@ -111,7 +114,6 @@ onBeforeUnmount(() => {
}
.score-item > text {
position: relative;
font-weight: bold;
margin-top: 2px;
}
.complete-light {