修复bug

This commit is contained in:
Dragon
2023-12-28 17:39:57 +08:00
parent 4005614234
commit 9aed05e0ec

View File

@@ -842,6 +842,7 @@ function popularGetRank () {
// 处理自己榜单
$('.page3 .my .num').text(res.data.meRank.ranking == 0 ? '未上榜' : res.data.meRank.ranking);
$('.page3 .my .ts .tx').attr('src', res.data.meRank.avatar);
$('.page3 .my .name').text(res.data.meRank.nick);
$('.page3 .my .score').text(`人气值: ${unitProcessing(res.data.meRank.score, 10000, 1, 'w')}`)
} else {
toastMsg(res.message)
@@ -944,7 +945,7 @@ function getHourRank () {
// 渲染小时榜时间
$('.page3_pop .page3_pop_in .timeBox .div1').text(`${res.data.curHour}点小时榜`);
if (res.data.curHourEndTime) {
hourCountup(res.data.curHourEndTime - res.timestamp);
hourCountup(res.data.curHourEndTime - res.timestamp);
} else {
toastMsg('小时榜仅在每晚19:00-23:59开启')
hideLoading(layerIndex)
@@ -1011,7 +1012,7 @@ function hourCountup (leftTime) {
m = getzf(Math.floor(leftTime / 1000 / 60 % 60));
s = getzf(Math.floor(leftTime / 1000 % 60));
//将倒计时赋值到div中
$('.page3_pop .page3_pop_in .timeBox .div1').text(`剩余${m}${s}`);
$('.page3_pop .page3_pop_in .timeBox .div2').text(`剩余${m}${s}`);
} else {
getHourRank();
}
@@ -1099,6 +1100,7 @@ function roomGetRank () {
// 处理自己榜单
$('.page4 .my .num').text(res.data.meRank.ranking == 0 ? '未上榜' : res.data.meRank.ranking);
$('.page4 .my .ts .tx').attr('src', res.data.meRank.avatar);
$('.page4 .my .name').text(res.data.meRank.nick);
$('.page4 .my .score').text(`荣耀值: ${unitProcessing(res.data.meRank.score, 10000, 1, 'w')}`)
} else {
toastMsg(res.message)