细节完善

This commit is contained in:
kron
2025-08-21 09:36:00 +08:00
parent 70b3a25369
commit d9c9319d24
3 changed files with 15 additions and 6 deletions

View File

@@ -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>