修复pk排行榜bug

This commit is contained in:
dragon
2024-06-20 15:43:28 +08:00
parent 986a9681cb
commit bcb54ec277
5 changed files with 16 additions and 4 deletions

View File

@@ -436,6 +436,11 @@ body {
top: 12.50667rem;
left: 50%;
transform: translateX(-50%);
overflow-y: scroll;
}
.page2 ul::-webkit-scrollbar {
display: none;
}
.page2 ul li {
@@ -443,6 +448,7 @@ body {
background-size: 100% 100%;
width: 100%;
height: 1.92rem;
margin-bottom: 0.1rem;
}
.page2 ul li .num {

View File

@@ -446,12 +446,17 @@ body {
top: px2rem(938);
left: 50%;
transform: translateX(-50%);
overflow-y: scroll;
&::-webkit-scrollbar{
display: none;
}
li {
background: url(../images/page2Li.png) no-repeat;
background-size: 100% 100%;
width: 100%;
height: px2rem(144);
margin-bottom: 0.1rem;
.num {
width: px2rem(69);

View File

@@ -96,7 +96,7 @@ function getRank() {
networkRequest({
type: 'get',
url: urlPrefix + '/act/singleCrossRoomPk/getRank',
data: { pageNum: pageNum, pageSize: 10 },
data: { pageNum: pageNum, pageSize: 50 },
success(res) {
if (res.code === 200) {
var str = '';
@@ -123,7 +123,7 @@ function getRank() {
res.data.forEach((res, i) => {
str += `
<li class="li${i < 3 ? i + 1 : ''}">
<div class="num">${i + 1}</div>
<div class="num">${i < 3 ? '' : i + 1}</div>
<img src="${res.avatar}" alt="" class="tx">
<div class="user">
<p>${res.nick}</p>
@@ -154,6 +154,7 @@ function getRank() {
}
// 排行榜滚动监听
$('.page2 ul').scroll(function () {
return
let scrollTop = $(this).scrollTop()
let scrollHeight = $('.page2 ul')[0].scrollHeight
let ulHeight = $(this).innerHeight()

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
const ar = {
rank: {
"爱意榜": "قائمة الحب",
"爱意榜": "قائمة الأغنياء",
"魅力榜": "قائمة السحر",
"房间榜": "قائمة الغرف",
"公会榜": "قائمة الوكالات",