修复样式问题

This commit is contained in:
dragon
2025-02-07 14:45:08 +08:00
parent 10c063c659
commit f03ed537fa
4 changed files with 14 additions and 15 deletions

View File

@@ -650,7 +650,7 @@ body::-webkit-scrollbar {
.page2 .c {
width: 10rem;
height: auto;
min-height: 19rem;
background: url(../images/c.png) no-repeat;
background-size: 100% 100%;
margin: 0 auto 0;
@@ -1077,7 +1077,7 @@ body::-webkit-scrollbar {
.page3 .c {
width: 10rem;
height: auto;
min-height: 19rem;
background: url(../images/c.png) no-repeat;
background-size: 100% 100%;
margin: 0 auto 0;

View File

@@ -660,7 +660,7 @@ body {
.c {
width: px2rem(750);
height: auto;
min-height: 19rem;
background: url(../images/c.png) no-repeat;
background-size: 100% 100%;
margin: 0 auto 0;
@@ -1087,7 +1087,7 @@ body {
.c {
width: px2rem(750);
height: auto;
min-height: 19rem;
background: url(../images/c.png) no-repeat;
background-size: 100% 100%;
margin: 0 auto 0;

View File

@@ -141,7 +141,6 @@
<div class="top2">
<img src="./images/top22.png" alt="" class="ts">
<img src="./images/logo.png" alt="" class="tx">
<img src="./images/SS.png" alt="" class="leve">
<div class="name">名字</div>
<div class="id">ID:123123</div>
<div class="score">Behind:0</div>
@@ -196,7 +195,6 @@
<div class="top2">
<img src="./images/top22.png" alt="" class="ts">
<img src="./images/logo.png" alt="" class="tx">
<img src="./images/SS.png" alt="" class="leve">
<div class="name">名字</div>
<div class="id">ID:123123</div>
<div class="score">Behind:0</div>

View File

@@ -99,10 +99,11 @@ function ssAgencyRank() {
},
success(res) {
if (res.code === 200) {
if (rankType == 1) {
// 处理倒计时
countup(res.data.monthEndTime - res.timestamp);
}
let date = new Date(res.data.endDateTimeStr);
let timestamp = date.getTime();
console.log(timestamp);
countup(timestamp - res.timestamp);
// 处理页面
rankType == 1 ? monthlyFun(res) : rankType == 2 ? quarterFun(res) : yearFun(res)
@@ -134,7 +135,7 @@ function monthlyFun(res) {
listTo3.forEach((res, i) => {
$(`.page1 .page1_in .t .top${i + 1} .name`).text(res.guildName);
$(`.page2 .c .top${i + 1} .tx`).attr('src', res.avatar);
$(`.page1 .page1_in .t .top${i + 1} .tx`).attr('src', res.avatar);
if (res.ownerErbanNo == null) {
$(`.page1 .page1_in .t .top${i + 1} .id`).hide();
$(`.page1 .page1_in .t .top${i + 1} .score`).hide();
@@ -178,7 +179,7 @@ function monthlyFun(res) {
} else {
$('.page1 .page1_in .my .right .leve').attr('src', `./images/${my.markScore}.png`);
}
$('.page1 .page1_in .my .right span').text(`${localLang.demoModule.text18}:` + unitProcessingAr(my.ownerErbanNo, 1));
$('.page1 .page1_in .my .right span').text(`${localLang.demoModule.text18}:` + unitProcessingAr(my.diffNum, 1));
} else {
$('.page1 .page1_in .my').hide();
}
@@ -239,7 +240,7 @@ function quarterFun(res) {
} else {
$('.page2 .c .my .right .leve').attr('src', `./images/${my.markScore}.png`);
}
$('.page2 .c .my .right span').text(`${localLang.demoModule.text18}:` + unitProcessingAr(my.ownerErbanNo, 1));
$('.page2 .c .my .right span').text(`${localLang.demoModule.text18}:` + unitProcessingAr(my.diffNum, 1));
} else {
$('.page2 .c .my').hide();
}
@@ -300,7 +301,7 @@ function yearFun(res) {
} else {
$('.page3 .c .my .right .leve').attr('src', `./images/${my.markScore}.png`);
}
$('.page3 .c .my .right span').text(`${localLang.demoModule.text18}:` + unitProcessingAr(my.ownerErbanNo, 1));
$('.page3 .c .my .right span').text(`${localLang.demoModule.text18}:` + unitProcessingAr(my.diffNum, 1));
} else {
$('.page3 .c .my').hide();
}
@@ -355,7 +356,7 @@ function countup(leftTime) {
m = getzf(Math.floor(leftTime / 1000 / 60 % 60));
s = getzf(Math.floor(leftTime / 1000 % 60));
//將倒計時賦值到div中
$('.time .day b').text(d);
$('.time .days b').text(d);
$('.time .hour b').text(h);
$('.time .min b').text(m);
$('.time .sec b').text(s);