From 592d5da683254110c867aa2d0088158e105d22f0 Mon Sep 17 00:00:00 2001 From: Dragon <13925835632@139.com> Date: Tue, 7 Mar 2023 17:57:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=A8=E6=88=BF=EF=BC=9A=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=A6=9C=E5=8D=95=E9=97=B4=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/peko/activity/act-ocean/css/index.css | 8 ++++++-- view/peko/activity/act-ocean/css/index.scss | 8 ++++++-- view/peko/activity/act-ocean/js/index.js | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/view/peko/activity/act-ocean/css/index.css b/view/peko/activity/act-ocean/css/index.css index 54d8c22..40657b9 100644 --- a/view/peko/activity/act-ocean/css/index.css +++ b/view/peko/activity/act-ocean/css/index.css @@ -901,7 +901,7 @@ body { overflow: auto; position: absolute; width: 100%; - height: 6.7rem; + height: 6.9rem; padding: 0.4rem 0.2666666667rem 0; box-sizing: border-box; margin-top: 0.25rem; @@ -955,7 +955,7 @@ body { height: 1.3333333333rem; background: url(../images/mineBg.png) no-repeat; background-size: 100% 100%; - padding: 0 0.2rem; + padding: 0 0.7rem 0 0.2rem; box-sizing: border-box; display: flex; align-items: center; @@ -981,6 +981,10 @@ body { font-size: 0.3733333333rem; font-weight: bold; color: white; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + width: 3.5rem; } .wrap .shade-mask-rank .shade-content-rank .mine .mine-diamond-num { font-size: 0.3466666667rem; diff --git a/view/peko/activity/act-ocean/css/index.scss b/view/peko/activity/act-ocean/css/index.scss index 20e671d..4b05305 100644 --- a/view/peko/activity/act-ocean/css/index.scss +++ b/view/peko/activity/act-ocean/css/index.scss @@ -1178,7 +1178,7 @@ body { overflow: auto; position: absolute; width: 100%; - height: 6.7rem; + height: 6.9rem; // background-color: white; padding: px2rem(30) px2rem(20) 0; box-sizing: border-box; @@ -1247,7 +1247,7 @@ body { // background-color: rgba($color: #000000, $alpha: .8); background: url(../images/mineBg.png) no-repeat; background-size: 100% 100%; - padding: 0 px2rem(15); + padding: 0 0.7rem 0 0.2rem; box-sizing: border-box; display: flex; align-items: center; @@ -1275,6 +1275,10 @@ body { font-size: px2rem(28); font-weight: bold; color: white; + overflow: hidden; //超出隐藏 + white-space: nowrap; //不折行 + text-overflow: ellipsis; + width: 3.5rem; } } diff --git a/view/peko/activity/act-ocean/js/index.js b/view/peko/activity/act-ocean/js/index.js index 12e70ee..2c00689 100644 --- a/view/peko/activity/act-ocean/js/index.js +++ b/view/peko/activity/act-ocean/js/index.js @@ -811,7 +811,7 @@ const renderMyInfo = () => { num = myInfoD.num } // $('.mine-diamond-num').html('今日獎勵' + num) - $('.mine-diamond-num').html(num) + $('.mine-diamond-num').html(num == 0 ? '—— ——' : num) } else { let erbanNo = myInfoN.erbanNo let myIndex = rankListN.findIndex((item, index) => {