添加mvp榜数据

This commit is contained in:
kron
2025-08-15 16:15:36 +08:00
parent 7242475735
commit b2abcc71b1
2 changed files with 13 additions and 0 deletions

View File

@@ -25,6 +25,9 @@ const handleSelect = (index) => {
if (index === 0) {
currentList.value = rankData.value.rank;
if (rankData.value.myRankPos) myData.value = rankData.value.myRankPos;
} else if (index === 1) {
currentList.value = rankData.value.mvpRank;
if (rankData.value.myMvpRankPos) myData.value = rankData.value.myMvpRankPos;
} else if (index === 2) {
currentList.value = rankData.value.ringRank;
if (rankData.value.myRingRankPos)
@@ -143,6 +146,11 @@ const subTitles = ["排位赛积分", "本周MVP次数", "本周十环次数"];
>{{ item.totalScore }} </text
>
</text>
<text class="rank-item-integral" v-if="selectedIndex === 1">
<text :style="{ fontSize: '14px', color: '#fff', marginRight: '5px' }"
>{{ item.mvpCount }} </text
>
</text>
<text class="rank-item-integral" v-if="selectedIndex === 2">
<text :style="{ fontSize: '14px', color: '#fff', marginRight: '5px' }"
>{{ item.TenRings }} </text

View File

@@ -31,6 +31,8 @@ const handleSelect = (index) => {
selectedIndex.value = index;
if (index === 0 && rankData.value.rank) {
currentList.value = rankData.value.rank.slice(0, 10);
} else if (index === 1 && rankData.value.mvpRank) {
currentList.value = rankData.value.mvpRank.slice(0, 10);
} else if (index === 2 && rankData.value.ringRank) {
currentList.value = rankData.value.ringRank.slice(0, 10);
} else {
@@ -355,6 +357,9 @@ onShow(async () => {
<text v-if="selectedIndex === 0">
{{ item.totalScore }}<text>分</text>
</text>
<text v-if="selectedIndex === 1">
{{ item.mvpCount }}<text>次</text>
</text>
<text v-if="selectedIndex === 2">
{{ item.TenRings }}<text>次</text>
</text>