修复bug
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user