fix: youhua
This commit is contained in:
@@ -23,7 +23,13 @@
|
|||||||
:key="item.id"
|
:key="item.id"
|
||||||
@tap="handleItemTap(item.id)"
|
@tap="handleItemTap(item.id)"
|
||||||
>
|
>
|
||||||
<text class="rank-num" :class="'rank-' + (index + 1)">{{ index + 1 }}</text>
|
<image
|
||||||
|
v-if="index < 3"
|
||||||
|
class="rank-icon"
|
||||||
|
:src="`/static/images/icon/${index + 1}.png`"
|
||||||
|
mode="aspectFit"
|
||||||
|
/>
|
||||||
|
<text v-else class="rank-num" :class="'rank-' + (index + 1)">{{ index + 1 }}</text>
|
||||||
<image class="item-avatar" :src="FILE_BASE_URL + item.avatarUrl" mode="aspectFill"></image>
|
<image class="item-avatar" :src="FILE_BASE_URL + item.avatarUrl" mode="aspectFill"></image>
|
||||||
<text class="item-name">{{ item.name }}</text>
|
<text class="item-name">{{ item.name }}</text>
|
||||||
<text class="item-score" :class="'score-' + (index + 1)">{{ item.scoreAvg }}</text>
|
<text class="item-score" :class="'score-' + (index + 1)">{{ item.scoreAvg }}</text>
|
||||||
@@ -152,6 +158,13 @@ const handleItemTap = (itemId) => {
|
|||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rank-icon {
|
||||||
|
width: 44rpx;
|
||||||
|
height: 44rpx;
|
||||||
|
margin-right: 16rpx;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.rank-1 {
|
.rank-1 {
|
||||||
color: #2953ff;
|
color: #2953ff;
|
||||||
font-size: 40rpx;
|
font-size: 40rpx;
|
||||||
|
|||||||
BIN
static/images/icon/1.png
Normal file
BIN
static/images/icon/1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.4 KiB |
BIN
static/images/icon/2.png
Normal file
BIN
static/images/icon/2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
BIN
static/images/icon/3.png
Normal file
BIN
static/images/icon/3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.2 KiB |
Reference in New Issue
Block a user