BUG修复
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user