From 9aed05e0ec2e3089bce99c80c70839591524007f Mon Sep 17 00:00:00 2001 From: Dragon <13925835632@139.com> Date: Thu, 28 Dec 2023 17:39:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/yinmeng/activity/2023-year/js/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/view/yinmeng/activity/2023-year/js/index.js b/view/yinmeng/activity/2023-year/js/index.js index 4c716a7..9de9ca8 100644 --- a/view/yinmeng/activity/2023-year/js/index.js +++ b/view/yinmeng/activity/2023-year/js/index.js @@ -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)