From a80a580369a4d62da69f3ec37c7431bb12e1d9ff Mon Sep 17 00:00:00 2001 From: Dragon <13925835632@139.com> Date: Tue, 5 Dec 2023 15:58:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dui=E5=BC=82=E5=B8=B8=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/yinmeng/modules/roomRank/js/index.js | 6 ++---- view/yinmeng/modules/room_rank/hourRank.html | 2 +- view/yinmeng/modules/room_rank/hourRankLicense.html | 2 +- view/yinmeng/modules/room_rank/js/hourRank.js | 2 +- view/yinmeng/modules/room_rank/js/hourRankLicense.js | 2 +- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/view/yinmeng/modules/roomRank/js/index.js b/view/yinmeng/modules/roomRank/js/index.js index f87344a..973afee 100644 --- a/view/yinmeng/modules/roomRank/js/index.js +++ b/view/yinmeng/modules/roomRank/js/index.js @@ -88,7 +88,6 @@ $('.largestBox .dayTab div').click(function () { }) // 爱意榜接口 function getRankingsWealth () { - // $('.largestBox ul li').remove(); showLoading() networkRequest({ type: 'GEt', @@ -115,7 +114,6 @@ function getRankingsWealth () { } // 魅力榜接口 function getReciveRankingsWealth () { - $('.largestBox ul li').remove(); showLoading() networkRequest({ type: 'GEt', @@ -142,7 +140,7 @@ function getReciveRankingsWealth () { } // 渲染样式 function listDomFun (res, num) { - console.log(res); + $('.largestBox ul li').remove(); // 处理前三 var top3 = res.data.rankings.slice(0, 3); if (top3.length < 3) { @@ -191,7 +189,7 @@ function listDomFun (res, num) { ` }) - $('.largestBox ul li').append(str); + $('.largestBox ul').append(str); } // 点击前三跳转房间 $('.largestBox').on('click', '.top3 .no .box .ts', function () { diff --git a/view/yinmeng/modules/room_rank/hourRank.html b/view/yinmeng/modules/room_rank/hourRank.html index def1ed9..271557e 100644 --- a/view/yinmeng/modules/room_rank/hourRank.html +++ b/view/yinmeng/modules/room_rank/hourRank.html @@ -158,7 +158,7 @@

距上一名还差 0 -
打榜助力
+ diff --git a/view/yinmeng/modules/room_rank/hourRankLicense.html b/view/yinmeng/modules/room_rank/hourRankLicense.html index d5f672f..513d8b4 100644 --- a/view/yinmeng/modules/room_rank/hourRankLicense.html +++ b/view/yinmeng/modules/room_rank/hourRankLicense.html @@ -158,7 +158,7 @@

距上一名还差 0 -
打榜助力
+ diff --git a/view/yinmeng/modules/room_rank/js/hourRank.js b/view/yinmeng/modules/room_rank/js/hourRank.js index d242b43..89c801c 100644 --- a/view/yinmeng/modules/room_rank/js/hourRank.js +++ b/view/yinmeng/modules/room_rank/js/hourRank.js @@ -96,7 +96,7 @@ function getHourRank () { var str = ''; res.data.currHourRank.forEach((val, i) => { str += ` -
  • +
  • ${i > 2 ? i : ''}
    diff --git a/view/yinmeng/modules/room_rank/js/hourRankLicense.js b/view/yinmeng/modules/room_rank/js/hourRankLicense.js index d242b43..89c801c 100644 --- a/view/yinmeng/modules/room_rank/js/hourRankLicense.js +++ b/view/yinmeng/modules/room_rank/js/hourRankLicense.js @@ -96,7 +96,7 @@ function getHourRank () { var str = ''; res.data.currHourRank.forEach((val, i) => { str += ` -
  • +
  • ${i > 2 ? i : ''}