细节完善
This commit is contained in:
@@ -38,6 +38,15 @@ const handleSelect = (index) => {
|
||||
}
|
||||
return false;
|
||||
});
|
||||
if (!myData.value.userId) {
|
||||
myData.value = {
|
||||
userId: user.value.id,
|
||||
TotalGames: 0,
|
||||
totalScore: 0,
|
||||
mvpCount: 0,
|
||||
TenRings: 0,
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -178,19 +187,19 @@ const subTitles = ["排位赛积分", "MVP次数", "十环次数"];
|
||||
<text class="rank-item-integral" v-if="selectedIndex === 0">
|
||||
<text
|
||||
:style="{ fontSize: '14px', color: '#fff', marginRight: '5px' }"
|
||||
>{{ myData.totalScore }}</text
|
||||
>{{ myData.totalScore || 0 }}</text
|
||||
>分</text
|
||||
>
|
||||
<text class="rank-item-integral" v-if="selectedIndex === 1">
|
||||
<text
|
||||
:style="{ fontSize: '14px', color: '#fff', marginRight: '5px' }"
|
||||
>{{ myData.mvpCount }}</text
|
||||
>{{ myData.mvpCount || 0 }}</text
|
||||
>次</text
|
||||
>
|
||||
<text class="rank-item-integral" v-if="selectedIndex === 2">
|
||||
<text
|
||||
:style="{ fontSize: '14px', color: '#fff', marginRight: '5px' }"
|
||||
>{{ myData.TenRings }}</text
|
||||
>{{ myData.TenRings || 0 }}</text
|
||||
>次</text
|
||||
>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user