From 410d83865b6a28c2414be5cb9bde68dfa1b97c24 Mon Sep 17 00:00:00 2001 From: dragon <3013557874@qq.com> Date: Wed, 31 Jul 2024 18:25:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A6=9C=E5=8D=95-=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E5=90=8D=E5=B1=95=E7=A4=BA=E6=95=B0=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/molistar/modules/newRank/css/index.css | 20 ++++++++++++++++++++ view/molistar/modules/newRank/css/index.scss | 19 +++++++++++++++++++ view/molistar/modules/newRank/index.html | 6 +++--- view/molistar/modules/newRank/js/index.js | 11 ++++++----- 4 files changed, 48 insertions(+), 8 deletions(-) diff --git a/view/molistar/modules/newRank/css/index.css b/view/molistar/modules/newRank/css/index.css index a7698b19..1e487786 100644 --- a/view/molistar/modules/newRank/css/index.css +++ b/view/molistar/modules/newRank/css/index.css @@ -164,6 +164,26 @@ body { bottom: -2.88rem; } +.header .top .top1 .score { + width: 100%; + height: 0.42667rem; + line-height: 0.42667rem; + color: #fff; + font-size: 0.34667rem; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: -2.26667rem; + text-align: center; +} + +.header .top .top1 .score img { + display: inline-block; + width: 0.45333rem; + height: 0.45333rem; + margin-top: -0.04rem; +} + .header .top .top2 { position: absolute; top: -1.52rem; diff --git a/view/molistar/modules/newRank/css/index.scss b/view/molistar/modules/newRank/css/index.scss index 6dd4f1c1..7808f741 100644 --- a/view/molistar/modules/newRank/css/index.scss +++ b/view/molistar/modules/newRank/css/index.scss @@ -164,6 +164,25 @@ body { transform: translateX(-50%); bottom: px2rem(-216); } + .score { + width: 100%; + height: px2rem(32); + line-height: px2rem(32); + color: #fff; + font-size: px2rem(26); + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: px2rem(-170); + text-align: center; + + img { + display: inline-block; + width: px2rem(34); + height: px2rem(34); + margin-top: -0.04rem; + } + } } .top2 { diff --git a/view/molistar/modules/newRank/index.html b/view/molistar/modules/newRank/index.html index 56ecc334..e33bc781 100644 --- a/view/molistar/modules/newRank/index.html +++ b/view/molistar/modules/newRank/index.html @@ -33,10 +33,10 @@
- +
@@ -96,5 +96,5 @@ - + \ No newline at end of file diff --git a/view/molistar/modules/newRank/js/index.js b/view/molistar/modules/newRank/js/index.js index b7482234..078733ec 100644 --- a/view/molistar/modules/newRank/js/index.js +++ b/view/molistar/modules/newRank/js/index.js @@ -73,7 +73,8 @@ function geth5() { $('.header .sTab').show(); $('.my').show() $('.header .top .top2 .score,.header .top .top3 .score').show(); - $('.header .top .top1 .fist').show(); + // $('.header .top .top1 .fist').show(); + $('.header .top .top1 .fist').hide(); $('ul li .score').show(); // showLoading() networkRequest({ @@ -103,9 +104,9 @@ function geth5() { $(`.header .top .top${i + 1} .ts`).attr('uid', res.uid); $(`.header .top .top${i + 1} .tx`).attr('src', res.avatar); $(`.header .top .top${i + 1} .nick`).text(res.nick); - if (i > 0) { + // if (i > 0) { $(`.header .top .top${i + 1} .score span`).text(unitProcessingAr(res.totalNum, 1)); - } + // } }); // 非前三 var str = ''; @@ -169,9 +170,9 @@ function listRank() { $(`.header .top .top${i + 1} .ts`).attr('uid', res.clanElderUid); $(`.header .top .top${i + 1} .tx`).attr('src', res.avatar); $(`.header .top .top${i + 1} .nick`).text(res.name); - if (i > 0) { + // if (i > 0) { $(`.header .top .top${i + 1} .score span`).text(unitProcessingAr(res.income, 1)); - } + // } }); // 非前三 var str = '';