修复明厅房间展示异常问题
This commit is contained in:
BIN
view/yinmeng/activity/2023-year/images/page4_popTop2.png
Normal file
BIN
view/yinmeng/activity/2023-year/images/page4_popTop2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
@@ -259,7 +259,7 @@
|
|||||||
<span>01.12-01.14</span>
|
<span>01.12-01.14</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab">
|
<div class="tab">
|
||||||
<p>冲刺赛</p>
|
<p>半决赛</p>
|
||||||
<span>01.15-01.17</span>
|
<span>01.15-01.17</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab">
|
<div class="tab">
|
||||||
|
@@ -1024,7 +1024,7 @@ function hourCountup (leftTime) {
|
|||||||
hourCountup(leftTime)
|
hourCountup(leftTime)
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
$('.page3_pop .page3_pop_in .lastTop3 .ts').click(function(){
|
$('.page3_pop .page3_pop_in .lastTop3 .ts').click(function () {
|
||||||
var uid = $(this).attr('uid');
|
var uid = $(this).attr('uid');
|
||||||
// 跳转个人资料页
|
// 跳转个人资料页
|
||||||
if (browser.ios) {
|
if (browser.ios) {
|
||||||
@@ -1062,11 +1062,11 @@ $('.page4 .page3tabBox .tabBox .tab').click(function () {
|
|||||||
var i = $(this).index() + 1;
|
var i = $(this).index() + 1;
|
||||||
roomGetRankRound = $(this).attr('round');
|
roomGetRankRound = $(this).attr('round');
|
||||||
$(this).addClass('act').siblings().removeClass('act');
|
$(this).addClass('act').siblings().removeClass('act');
|
||||||
if (roomGetRankRound >= 3) {
|
// if (roomGetRankRound >= 4) {
|
||||||
$('.page4 .page4Title2').show();
|
// $('.page4 .page4Title2').show();
|
||||||
} else {
|
// } else {
|
||||||
$('.page4 .page4Title2').hide();
|
// $('.page4 .page4Title2').hide();
|
||||||
}
|
// }
|
||||||
roomGetRank();
|
roomGetRank();
|
||||||
})
|
})
|
||||||
// 获取人气榜
|
// 获取人气榜
|
||||||
@@ -1083,6 +1083,16 @@ function roomGetRank () {
|
|||||||
console.log(res.data.roundList[res.data.curRound - 1].endTime - res.timestamp);
|
console.log(res.data.roundList[res.data.curRound - 1].endTime - res.timestamp);
|
||||||
roomGetRankCountup(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 = res.data.roundList ? res.data.roundList : roundList;
|
||||||
roundList.forEach((val, i) => {
|
roundList.forEach((val, i) => {
|
||||||
@@ -1320,10 +1330,12 @@ $('.rule .rule_in .tabs div').click(function () {
|
|||||||
arr1.forEach((res, i) => {
|
arr1.forEach((res, i) => {
|
||||||
$('.rule .rule_in .content_tabBox .tab span').eq(i).text(res);
|
$('.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) {
|
} else if (i == 4) {
|
||||||
arr2.forEach((res, i) => {
|
arr2.forEach((res, i) => {
|
||||||
$('.rule .rule_in .content_tabBox .tab span').eq(i).text(res);
|
$('.rule .rule_in .content_tabBox .tab span').eq(i).text(res);
|
||||||
})
|
})
|
||||||
|
$('.rule .rule_in .content_tabBox .tab p').eq(3).text('半决赛');
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user