BUG修复

This commit is contained in:
kron
2025-06-18 13:50:33 +08:00
parent a040a60987
commit 256efcb04b

View File

@@ -53,10 +53,15 @@ onMounted(() => {
<text class="level-tag level-tag-first">{{ user.lvlName }}</text> <text class="level-tag level-tag-first">{{ user.lvlName }}</text>
<text class="level-tag level-tag-second">L{{ user.lvl }}</text> <text class="level-tag level-tag-second">L{{ user.lvl }}</text>
<view class="rank-tag"> <view class="rank-tag">
<view class="rank-tag-progress" :style="{ width: '40%' }" /> <view
<text class="rank-tag-text" class="rank-tag-progress"
>{{ user.scores }}/{{ user.nextLvlPoints }}</text :style="{
> width: `${(Math.max(user.scores, 0) / nextLvlPoints) * 100}%`,
}"
/>
<text class="rank-tag-text">
{{ Math.max(user.scores, 0) }}/{{ nextLvlPoints }}
</text>
</view> </view>
</view> </view>
</view> </view>