修复分页排行榜问题

This commit is contained in:
dragon
2024-09-30 17:47:14 +08:00
parent cdf647b793
commit 56b8a00b92
3 changed files with 3 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ body {
.box {
width: 10rem;
height: 16.72rem;
height: 17.72rem;
background: url(../images/rankBg.png) no-repeat;
background-size: 100% 14.72rem;
overflow: hidden;

View File

@@ -34,7 +34,7 @@ body {
.box {
width: px2rem(750);
height: 16.72rem;
height: 17.72rem;
background: url(../images/rankBg.png) no-repeat;
background-size: 100% px2rem(1104);
overflow: hidden;

View File

@@ -50,7 +50,6 @@ $(function () {
})
// 配置接口
function rank(type, page) {
$('.box ul li').remove()
showLoading()
networkRequest({
type: 'get',
@@ -93,6 +92,7 @@ function rank(type, page) {
}
// 切換
$('.box .tab div').click(function () {
$('.box ul li').remove()
var i = $(this).index();
$('.box .tab div').removeClass('act0').removeClass('act1');
$(this).addClass(`act${i}`);