细节完善

This commit is contained in:
kron
2025-07-25 15:18:46 +08:00
parent e5b1194882
commit 10af25c254
7 changed files with 129 additions and 81 deletions

View File

@@ -121,7 +121,7 @@ const updateData = () => {
currentSeasonData.value[keyName] = {
totalGames: item.totalGames,
winCount: item.winCount,
winRate: Number(((item.winCount / item.totalGames) * 100).toFixed(2)),
winRate: Number(((item.winCount / item.totalGames) * 100).toFixed(1)),
};
}
});
@@ -195,7 +195,7 @@ onShow(async () => {
<view>
<text>赛季胜率</text>
<text :style="{ color: '#FF507E' }">{{
rankData.user.avg_win ? rankData.user.avg_win + "%" : "-"
rankData.user.avg_win ? rankData.user.avg_win * 100 + "%" : "-"
}}</text>
</view>
</view>