修复bug
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 622 KiB After Width: | Height: | Size: 617 KiB |
@@ -145,7 +145,7 @@ function listFun(type) {
|
||||
let arr = new Array(3 - listTo3.length).fill({
|
||||
avatar: './images/logo.png',
|
||||
nick: '虛位以待',
|
||||
score: "0"
|
||||
totalNum: "0"
|
||||
})
|
||||
listTo3.push(...arr)
|
||||
}
|
||||
@@ -210,9 +210,9 @@ function listFun(type) {
|
||||
}
|
||||
$(`.list_pub .list_pub_in .top${i + 1} .tx`).attr("src", res.avatar);
|
||||
$(`.list_pub .list_pub_in .top${i + 1} .name`).text(res.nick);
|
||||
$(`.list_pub .list_pub_in .top${i + 1} .score`).text('搜捕值:' + res.score);
|
||||
$(`.list_pub .list_pub_in .top${i + 1} .score`).text(`${type == 2 ? '童趣值:' : "童年值:"}`+res.score);
|
||||
});
|
||||
notListTo3.forEach(res => {
|
||||
notListTo3.forEach((res,i) => {
|
||||
if (res.score > 10000) {
|
||||
res.score = ((Math.floor(res.score / 1000)) / 10).toFixed(1) + 'W'
|
||||
}
|
||||
@@ -221,7 +221,7 @@ function listFun(type) {
|
||||
<div class="num">${i + 4 > 30 ? '30+' : i + 4}</div>
|
||||
<img src="${res.avatar}" alt="" class="tx">
|
||||
<div class="name">${res.nick}</div>
|
||||
<div class="score">搜捕值:${res.score}</div>
|
||||
<div class="score">${type == 2 ? '童趣值:' : "童年值:" }${res.score}</div>
|
||||
</li>
|
||||
`
|
||||
})
|
||||
@@ -314,7 +314,7 @@ $('.game .result .view').click(function () {
|
||||
$('.game .result2 .view').click(function () {
|
||||
$('.result,.result2').hide();
|
||||
})
|
||||
$('.game .result,.game .result2').click(function(){
|
||||
$('.game .result,.game .result2').click(function () {
|
||||
$('.result,.result2').hide();
|
||||
})
|
||||
// 關閉記錄彈窗
|
||||
|
Reference in New Issue
Block a user