修复bug
This commit is contained in:
@@ -408,7 +408,8 @@ body {
|
|||||||
background: url(../images/my.png) no-repeat;
|
background: url(../images/my.png) no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
margin-bottom: 0.02667rem;
|
margin-bottom: 0.02667rem;
|
||||||
left: 0;
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -416,7 +416,8 @@ body {
|
|||||||
background: url(../images/my.png) no-repeat;
|
background: url(../images/my.png) no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
margin-bottom: px2rem(2);
|
margin-bottom: px2rem(2);
|
||||||
left: 0;
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
|
||||||
.num {
|
.num {
|
||||||
|
@@ -74,10 +74,10 @@ function getRank () {
|
|||||||
top3.push(...arr)
|
top3.push(...arr)
|
||||||
}
|
}
|
||||||
top3.forEach((res, i) => {
|
top3.forEach((res, i) => {
|
||||||
$(`.page2 .top3Box .no${i} .tx`).attr('src', res.avatar);
|
$(`.page2 .top3Box .no${i + 1} .tx`).attr('src', res.avatar);
|
||||||
$(`.page2 .top3Box .no${i} .name`).text(res.nick);
|
$(`.page2 .top3Box .no${i + 1} .name`).text(res.nick);
|
||||||
$(`.page2 .top3Box .no${i} p`).text(`${rankType == 2 ? "守護值" : "女神值"}`);
|
$(`.page2 .top3Box .no${i + 1} p`).text(`${rankType == 2 ? "守護值" : "女神值"}`);
|
||||||
$(`.page2 .top3Box .no${i} .score`).text(unitProcessing(res.score, 10000, 1, 'w'));
|
$(`.page2 .top3Box .no${i + 1} .score`).text(unitProcessing(res.score, 10000, 1, 'w'));
|
||||||
})
|
})
|
||||||
// 非前三
|
// 非前三
|
||||||
$('.page2 ul li').remove();
|
$('.page2 ul li').remove();
|
||||||
@@ -92,6 +92,7 @@ function getRank () {
|
|||||||
</li>
|
</li>
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
|
console.log(str);
|
||||||
$('.page2 ul li').append(str);
|
$('.page2 ul li').append(str);
|
||||||
// 處理自己榜單
|
// 處理自己榜單
|
||||||
$('.page2 .my .num').text(res.data.meRank.ranking == 0 ? '未上榜' : res.data.meRank.ranking);
|
$('.page2 .my .num').text(res.data.meRank.ranking == 0 ? '未上榜' : res.data.meRank.ranking);
|
||||||
|
Reference in New Issue
Block a user