优化许愿之星刷新问题

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 {
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 {

View File

@@ -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 {

View File

@@ -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);
}
})