优化许愿之星刷新问题

This commit is contained in:
Dragon
2024-02-28 18:12:07 +08:00
parent abf5178c62
commit c83c6e0240
3 changed files with 18 additions and 10 deletions

View File

@@ -108,11 +108,11 @@ body {
} }
.page1 .update { .page1 .update {
width: 0.86667rem; width: 1.06667rem;
height: 0.86667rem; height: 1.06667rem;
position: fixed; position: absolute;
right: 0.45rem; right: 0.7rem;
bottom: 0.45rem; bottom: 10rem;
} }
.page1 .top { .page1 .top {

View File

@@ -115,11 +115,14 @@ body {
overflow: hidden; overflow: hidden;
.update { .update {
width: px2rem(65); width: px2rem(80);
height: px2rem(65); height: px2rem(80);
position: fixed; position: absolute;
right: 0.45rem; right: 0.7rem;
bottom: 0.45rem; bottom: 10rem;
// border: px2rem(3) solid rgb(230, 101, 16);
// border-radius: px2rem(25);
// box-sizing: border-box;
} }
.top { .top {

View File

@@ -49,6 +49,7 @@ $(function () {
} }
}) })
getConfig(); getConfig();
$(window).scrollTop(275)
}, 100) }, 100)
}) })
// 配置接口 // 配置接口
@@ -152,7 +153,11 @@ $('.header .tabBox').on('click', ' div', function () {
$(this).addClass(`act${i}`); $(this).addClass(`act${i}`);
$('.page1,.page2').hide(); $('.page1,.page2').hide();
$(`.page${i}`).show(); $(`.page${i}`).show();
if (i == 1) {
$(window).scrollTop(275)
}
if (i == 2) { if (i == 2) {
$(window).scrollTop(275)
getRank(getRankType); getRank(getRankType);
} }
}) })