添加mvp榜数据
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user