UI兼容调整

This commit is contained in:
kron
2025-06-15 22:01:06 +08:00
parent c2b2d0bf99
commit 9ffcf67948
6 changed files with 47 additions and 10 deletions

View File

@@ -39,7 +39,11 @@ const toUserPage = () => {
<view class="user-details">
<view class="user-name">
<text>{{ user.nickName }}</text>
<image class="user-name-image" src="../static/vip1.png" mode="widthFix" />
<image
class="user-name-image"
src="../static/vip1.png"
mode="widthFix"
/>
</view>
<view class="user-stats">
<text class="level-tag level-tag-first">钻石1级</text>
@@ -51,9 +55,17 @@ const toUserPage = () => {
</view>
</view>
<view v-if="showRank === true" class="rank-info">
<image class="rank-info-image" src="../static/global-rank.png" mode="widthFix" />
<image
class="rank-info-image"
src="../static/global-rank.png"
mode="widthFix"
/>
<text>本赛季全国</text>
<text class="rank-number"><text :style="{ color: '#ffd700' }">{{ user.points }}/{{ user.rankLvl }}</text></text>
<text class="rank-number"
><text :style="{ color: '#ffd700' }"
>{{ user.points }}/{{ user.rankLvl }}</text
></text
>
</view>
</view>
</template>
@@ -79,6 +91,14 @@ const toUserPage = () => {
margin-bottom: 5px;
}
.user-name > text:first-child {
font-size: 16px;
max-width: 100px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.user-name-image {
margin-left: 5px;
width: 20px;