From 03dd7e47a6081fcac08c252b9e277a845ada0f43 Mon Sep 17 00:00:00 2001 From: dragon <3013557874@qq.com> Date: Fri, 21 Jun 2024 17:07:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A6=9C=E5=8D=95=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/molistar/modules/pkRank/js/index.js | 2 +- .../modules/room_rank/hourRankLicense.html | 2 +- .../modules/room_rank/js/hourRankLicense.js | 21 +++++++------------ 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/view/molistar/modules/pkRank/js/index.js b/view/molistar/modules/pkRank/js/index.js index ebbf842a..900eac19 100644 --- a/view/molistar/modules/pkRank/js/index.js +++ b/view/molistar/modules/pkRank/js/index.js @@ -178,7 +178,7 @@ function getRecord() { success(res) { if (res.code === 200) { var str = ''; - if (res.data.length == 0 && pageNumPk == 1) { + if (res.data.length == 0) { lockPk = false; } else { res.data.forEach((res, i) => { diff --git a/view/molistar/modules/room_rank/hourRankLicense.html b/view/molistar/modules/room_rank/hourRankLicense.html index e47ae90b..1d39e07c 100644 --- a/view/molistar/modules/room_rank/hourRankLicense.html +++ b/view/molistar/modules/room_rank/hourRankLicense.html @@ -59,5 +59,5 @@ - + \ No newline at end of file diff --git a/view/molistar/modules/room_rank/js/hourRankLicense.js b/view/molistar/modules/room_rank/js/hourRankLicense.js index a6430187..6ac5d366 100644 --- a/view/molistar/modules/room_rank/js/hourRankLicense.js +++ b/view/molistar/modules/room_rank/js/hourRankLicense.js @@ -88,9 +88,6 @@ const renderLastHourThree = () => { } let str = '' lastHourRank.map((item, index) => { - if (item.score > 10000) { - item.score = (Math.floor(item.score / 1000)) / 10 + 'W' - } str += `
@@ -101,7 +98,7 @@ const renderLastHourThree = () => {
${index == 0 ? '' : - `${item.score}
${langReplace(localLang.demoModule.hour_text8)}` + `${unitProcessingAr(item.score,1)}
${langReplace(localLang.demoModule.hour_text8)}` }
@@ -156,9 +153,6 @@ const renderCurrentList = () => { } let str = '' currHourRank.map((item, index) => { - if (item.score > 10000) { - item.score = (Math.floor(item.score / 1000)) / 10 + 'W' - } str += `
  • ${index + 1}
    @@ -169,7 +163,7 @@ const renderCurrentList = () => {
    ${index === 0 ? `${langReplace(localLang.demoModule.hour_text10)}` : - `${langReplace(localLang.demoModule.hour_text8)}
    ${item.score}` + `${langReplace(localLang.demoModule.hour_text8)}
    ${unitProcessingAr(item.score,1)}` }
  • @@ -184,11 +178,12 @@ const renderCurrentRoomInfo = () => { currHourRank.forEach((item, index) => { if (item.uid == currRoomInfo.uid) { rank = index + 1 - if (item.score > 10000) { - score = (Math.floor(item.score / 1000)) / 10 + 'W' - } else { - score = item.score - } + // if (item.score > 10000) { + // score = (Math.floor(item.score / 1000)) / 10 + 'W' + // } else { + // score = item.score + // } + score = unitProcessingAr(item.score,1) } }) $('.mine_index').html(rank ? rank : `${langReplace(localLang.demoModule.hour_text11)}`)