修复分页排行榜问题
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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}`);
|
||||
|
Reference in New Issue
Block a user