细节完善
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user