修复明厅房间展示异常问题

This commit is contained in:
Dragon
2023-12-29 18:55:30 +08:00
parent a9200835c9
commit 98a39deb05
3 changed files with 19 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View File

@@ -259,7 +259,7 @@
<span>01.12-01.14</span>
</div>
<div class="tab">
<p>冲刺</p>
<p>半决</p>
<span>01.15-01.17</span>
</div>
<div class="tab">

View File

@@ -1062,11 +1062,11 @@ $('.page4 .page3tabBox .tabBox .tab').click(function () {
var i = $(this).index() + 1;
roomGetRankRound = $(this).attr('round');
$(this).addClass('act').siblings().removeClass('act');
if (roomGetRankRound >= 3) {
$('.page4 .page4Title2').show();
} else {
$('.page4 .page4Title2').hide();
}
// if (roomGetRankRound >= 4) {
// $('.page4 .page4Title2').show();
// } else {
// $('.page4 .page4Title2').hide();
// }
roomGetRank();
})
// 获取人气榜
@@ -1083,6 +1083,16 @@ function roomGetRank () {
console.log(res.data.roundList[res.data.curRound - 1].endTime - res.timestamp);
roomGetRankCountup(res.data.roundList[res.data.curRound - 1].endTime - res.timestamp);
}
if (res.data.rankType == 4) {
$('.page4_pop .page3_pop_in .page4_popTop').attr('src', './images/page4_popTop.png')
} else if (res.data.rankType == 5) {
$('.page4_pop .page3_pop_in .page4_popTop').attr('src', './images/page4_popTop2.png')
}
if (res.data.rankType >= 4) {
$('.page4 .page4Title2').show();
} else {
$('.page4 .page4Title2').hide();
}
// 渲染赛事时间
roundList = res.data.roundList ? res.data.roundList : roundList;
roundList.forEach((val, i) => {
@@ -1320,10 +1330,12 @@ $('.rule .rule_in .tabs div').click(function () {
arr1.forEach((res, i) => {
$('.rule .rule_in .content_tabBox .tab span').eq(i).text(res);
})
$('.rule .rule_in .content_tabBox .tab p').eq(3).text('冲刺赛');
} else if (i == 4) {
arr2.forEach((res, i) => {
$('.rule .rule_in .content_tabBox .tab span').eq(i).text(res);
})
$('.rule .rule_in .content_tabBox .tab p').eq(3).text('半决赛');
}
return false;
})