细节更新

This commit is contained in:
kron
2025-10-11 15:37:05 +08:00
parent 5bf3bbccdb
commit eef113902e
3 changed files with 34 additions and 38 deletions

View File

@@ -234,7 +234,7 @@ onShow(() => {
height: 14px; height: 14px;
border-radius: 50%; border-radius: 50%;
margin-right: 10px; margin-right: 10px;
border: 1px solid #fff; border: 1rpx solid #fff;
} }
.protocol > view:last-child { .protocol > view:last-child {
display: flex; display: flex;

View File

@@ -179,17 +179,16 @@ onShareTimeline(() => {
<view class="ranking-players" @click="toRankListPage"> <view class="ranking-players" @click="toRankListPage">
<img src="../static/juezhanbang.png" mode="widthFix" /> <img src="../static/juezhanbang.png" mode="widthFix" />
<view class="divide-line"></view> <view class="divide-line"></view>
<view class="player-avatars">
<view <view
class="player-avatars" v-for="i in 6"
v-if="rankData.rank && rankData.rank.length" :key="i"
>
<block v-for="i in 6" :key="i">
<block v-if="rankData.rank && rankData.rank[i - 1]">
<view
class="player-avatar" class="player-avatar"
:style="{ :style="{
zIndex: 8 - i, zIndex: 8 - i,
borderColor: topThreeColors[i - 1] || '#000', borderColor: rankData.rank[i - 1]
? topThreeColors[i - 1] || '#000'
: '#000',
}" }"
> >
<image v-if="i === 1" src="../static/champ1.png" /> <image v-if="i === 1" src="../static/champ1.png" />
@@ -198,20 +197,17 @@ onShareTimeline(() => {
<view v-if="i > 3">{{ i }}</view> <view v-if="i > 3">{{ i }}</view>
<image <image
:src=" :src="
rankData.rank[i - 1].avatar || '../static/user-icon.png' rankData.rank[i - 1]
? rankData.rank[i - 1].avatar
: '../static/user-icon-dark.png'
" "
mode="aspectFill" mode="aspectFill"
/> />
</view> </view>
</block> <view class="more-players">
</block>
<view v-show="rankData.rank.length" class="more-players">
<text>{{ rankData.rank.length }}</text> <text>{{ rankData.rank.length }}</text>
</view> </view>
</view> </view>
<view>
<text :style="{ color: '#fff',fontSize: '30rpx',marginLeft:'20rpx' }">虚位以待 ~</text>
</view>
</view> </view>
<view class="my-data"> <view class="my-data">
<view @click="() => toPage('/pages/my-growth')"> <view @click="() => toPage('/pages/my-growth')">
@@ -376,7 +372,7 @@ onShareTimeline(() => {
align-items: center; align-items: center;
padding-bottom: 20px; padding-bottom: 20px;
margin-top: 42%; margin-top: 42%;
border-bottom: 1px solid rgba(255, 255, 255, 0.2); border-bottom: 1rpx solid rgba(255, 255, 255, 0.2);
} }
.ranking-players > image:first-child { .ranking-players > image:first-child {
@@ -401,8 +397,8 @@ onShareTimeline(() => {
width: 82rpx; width: 82rpx;
height: 82rpx; height: 82rpx;
border-radius: 50%; border-radius: 50%;
margin-right: -10px; margin-right: -20rpx;
border: 1px solid #312f35; border: 1rpx solid #312f35;
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
} }
@@ -410,10 +406,10 @@ onShareTimeline(() => {
.player-avatar > image:first-child, .player-avatar > image:first-child,
.player-avatar > view:first-child { .player-avatar > view:first-child {
position: absolute; position: absolute;
top: -10px; top: -24rpx;
left: 12px; left: 22rpx;
width: 16px; width: 32rpx;
height: 16px; height: 32rpx;
} }
.player-avatar > view:first-child { .player-avatar > view:first-child {
border-radius: 50%; border-radius: 50%;

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB