From c83c6e0240ef2c893c9d55003ea54236c59fb505 Mon Sep 17 00:00:00 2001 From: Dragon <13925835632@139.com> Date: Wed, 28 Feb 2024 18:12:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AE=B8=E6=84=BF=E4=B9=8B?= =?UTF-8?q?=E6=98=9F=E5=88=B7=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/peko/modules/act-wishingStar/css/index.css | 10 +++++----- view/peko/modules/act-wishingStar/css/index.scss | 13 ++++++++----- view/peko/modules/act-wishingStar/js/index.js | 5 +++++ 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/view/peko/modules/act-wishingStar/css/index.css b/view/peko/modules/act-wishingStar/css/index.css index e3326bb..01dbe39 100644 --- a/view/peko/modules/act-wishingStar/css/index.css +++ b/view/peko/modules/act-wishingStar/css/index.css @@ -108,11 +108,11 @@ body { } .page1 .update { - width: 0.86667rem; - height: 0.86667rem; - position: fixed; - right: 0.45rem; - bottom: 0.45rem; + width: 1.06667rem; + height: 1.06667rem; + position: absolute; + right: 0.7rem; + bottom: 10rem; } .page1 .top { diff --git a/view/peko/modules/act-wishingStar/css/index.scss b/view/peko/modules/act-wishingStar/css/index.scss index 2ec15fe..0a1ea73 100644 --- a/view/peko/modules/act-wishingStar/css/index.scss +++ b/view/peko/modules/act-wishingStar/css/index.scss @@ -115,11 +115,14 @@ body { overflow: hidden; .update { - width: px2rem(65); - height: px2rem(65); - position: fixed; - right: 0.45rem; - bottom: 0.45rem; + width: px2rem(80); + height: px2rem(80); + position: absolute; + right: 0.7rem; + bottom: 10rem; + // border: px2rem(3) solid rgb(230, 101, 16); + // border-radius: px2rem(25); + // box-sizing: border-box; } .top { diff --git a/view/peko/modules/act-wishingStar/js/index.js b/view/peko/modules/act-wishingStar/js/index.js index b9a9f6e..ad10f68 100644 --- a/view/peko/modules/act-wishingStar/js/index.js +++ b/view/peko/modules/act-wishingStar/js/index.js @@ -49,6 +49,7 @@ $(function () { } }) getConfig(); + $(window).scrollTop(275) }, 100) }) // 配置接口 @@ -152,7 +153,11 @@ $('.header .tabBox').on('click', ' div', function () { $(this).addClass(`act${i}`); $('.page1,.page2').hide(); $(`.page${i}`).show(); + if (i == 1) { + $(window).scrollTop(275) + } if (i == 2) { + $(window).scrollTop(275) getRank(getRankType); } })