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); }) // 点击前三按钮