From 2a4cd12fe0ed8c78fd415677edae41927aa2d579 Mon Sep 17 00:00:00 2001 From: Dragon <13925835632@139.com> Date: Tue, 14 Nov 2023 16:32:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8A=E6=9C=9F=E5=89=8D?= =?UTF-8?q?=E4=B8=89=E5=BC=82=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/yinmeng/modules/ranks/css/index.css | 3 +++ view/yinmeng/modules/ranks/css/index.scss | 3 +++ view/yinmeng/modules/ranks/js/index.js | 10 +++++----- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/view/yinmeng/modules/ranks/css/index.css b/view/yinmeng/modules/ranks/css/index.css index a75a8b8..55a22a5 100644 --- a/view/yinmeng/modules/ranks/css/index.css +++ b/view/yinmeng/modules/ranks/css/index.css @@ -968,6 +968,7 @@ body { bottom: -0.53333rem; vertical-align: middle; text-align: center; + white-space: nowrap; } .lastTopThree .lastTopThree_in .box .no1 p span { @@ -1095,6 +1096,7 @@ body { vertical-align: middle; white-space: nowrap; text-align: center; + white-space: nowrap; } .lastTopThree .lastTopThree_in .box .no2 p span { @@ -1210,6 +1212,7 @@ body { vertical-align: middle; white-space: nowrap; text-align: center; + white-space: nowrap; } .lastTopThree .lastTopThree_in .box .no3 p span { diff --git a/view/yinmeng/modules/ranks/css/index.scss b/view/yinmeng/modules/ranks/css/index.scss index 2f42cf5..8b0d6f4 100644 --- a/view/yinmeng/modules/ranks/css/index.scss +++ b/view/yinmeng/modules/ranks/css/index.scss @@ -977,6 +977,7 @@ body { // text-overflow: ellipsis; //超出文本省略号 vertical-align: middle; text-align: center; + white-space: nowrap; span { display: inline-block; @@ -1104,6 +1105,7 @@ body { vertical-align: middle; white-space: nowrap; text-align: center; + white-space: nowrap; span { display: inline-block; width: px2rem(28); @@ -1218,6 +1220,7 @@ body { vertical-align: middle; white-space: nowrap; text-align: center; + white-space: nowrap; span { display: inline-block; width: px2rem(28); diff --git a/view/yinmeng/modules/ranks/js/index.js b/view/yinmeng/modules/ranks/js/index.js index 13e8ac8..9835272 100644 --- a/view/yinmeng/modules/ranks/js/index.js +++ b/view/yinmeng/modules/ranks/js/index.js @@ -209,6 +209,11 @@ function getlastTop (type, datetype) { $(`.lastTopThree .lastTopThree_in .box .no${i + 1} i`).show(); $(`.lastTopThree .lastTopThree_in .box .no${i + 1} .icon_gh`).show(); } + if (listType == 3 || listType == 2) { + $('.lastTopThree .lastTopThree_in .box .no .icon_gh').show(); + } else { + $('.lastTopThree .lastTopThree_in .box .no .icon_gh').hide(); + } $(`.lastTopThree .lastTopThree_in .box .no${i + 1} .icon_gh`).attr('src', res.assist ? res.assist.avatar : './images/logo.png') $(`.lastTopThree .lastTopThree_in .box .no${i + 1} .ts`).attr('uid', res.uid); $(`.lastTopThree .lastTopThree_in .box .no${i + 1} .ts`).attr('inRoomUid', res.inRoomUid); @@ -401,11 +406,6 @@ $('.lastTopThree').click(function () { }) // 打开上期前三 $('.header .listLast').click(function () { - if (listType == 3 || listType == 2) { - $('.lastTopThree .lastTopThree_in .box .no .icon_gh').show(); - } else { - $('.lastTopThree .lastTopThree_in .box .no .icon_gh').hide(); - } getlastTop(type, datetype); }) // 点击前三按钮