From 269c4830c6cd15be4e38cf3db5e2c9b123c78762 Mon Sep 17 00:00:00 2001 From: qf Date: Mon, 26 Dec 2022 11:31:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=B9=B4=E6=B4=BB=E5=8A=A8=EF=BC=9A?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E6=8E=92=E5=90=8D=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/peko/activity/act-newYear-2022/css/index.css | 1 + view/peko/activity/act-newYear-2022/css/index.scss | 1 + view/peko/activity/act-newYear-2022/js/index.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/view/peko/activity/act-newYear-2022/css/index.css b/view/peko/activity/act-newYear-2022/css/index.css index b93dba9..91249af 100644 --- a/view/peko/activity/act-newYear-2022/css/index.css +++ b/view/peko/activity/act-newYear-2022/css/index.css @@ -394,6 +394,7 @@ body { } .wrap .rank-wrap .myRank .num { float: left; + width: 1rem; margin-left: 0.2666666667rem; font-size: 0.2933333333rem; color: #AD4868; diff --git a/view/peko/activity/act-newYear-2022/css/index.scss b/view/peko/activity/act-newYear-2022/css/index.scss index 307139d..abb868e 100644 --- a/view/peko/activity/act-newYear-2022/css/index.scss +++ b/view/peko/activity/act-newYear-2022/css/index.scss @@ -454,6 +454,7 @@ body { .num { float: left; + width: 1rem; margin-left: px2rem(20, ); font-size: px2rem(22, ); color: #AD4868; diff --git a/view/peko/activity/act-newYear-2022/js/index.js b/view/peko/activity/act-newYear-2022/js/index.js index 3a461b6..a616aab 100644 --- a/view/peko/activity/act-newYear-2022/js/index.js +++ b/view/peko/activity/act-newYear-2022/js/index.js @@ -256,7 +256,7 @@ function getRank(type) { } // 自己排名 - $('.rank-wrap .myRank num').text(res.data.meRank.ranking == 0 ? '未上榜' : res.data.meRank.ranking); + $('.rank-wrap .myRank .num').html(res.data.meRank.ranking == 0 ? '未上榜' : res.data.meRank.ranking); $('.rank-wrap .myRank .tx').attr('src', res.data.meRank.avatar); $('.rank-wrap .myRank .nick').text(res.data.meRank.nick.length > 5 ? res.data.meRank.nick.slice(0, 5) + '...' : res.data.meRank.nick) $('.rank-wrap .myRank .score').html(`${value + ':'}${res.data.meRank.score > 10000 ? (Math.floor(res.data.meRank.score / 1000) / 10).toFixed(1) + 'w' : res.data.meRank.score}`);