字段更改
This commit is contained in:
@@ -136,7 +136,7 @@ function getInit() {
|
||||
if (listTo3.length < 3) {
|
||||
let arr = new Array(3 - listTo3.length).fill({
|
||||
avatar: './images/null.png',
|
||||
name: langReplace(localLang.demoModule.waiting),
|
||||
nick: langReplace(localLang.demoModule.waiting),
|
||||
erbanNo: null,
|
||||
score: null
|
||||
})
|
||||
@@ -144,7 +144,7 @@ function getInit() {
|
||||
}
|
||||
listTo3.forEach((res, i) => {
|
||||
$(`.page1 .top .top${i + 1} .tx`).attr('src', res.avatar);
|
||||
$(`.page1 .top .top${i + 1} .name`).html(res.name);
|
||||
$(`.page1 .top .top${i + 1} .name`).html(res.nick);
|
||||
$(`.page1 .top .top${i + 1} .icon`).attr('src', res.vipLevel ? `./images/vip/${res.vipLevel}.png` : '');
|
||||
$(`.page1 .top .top${i + 1} .id`).html('ID:' + res.erbanNo);
|
||||
$(`.page1 .top .top${i + 1} .score b`).html(langReplace(localLang.demoModule.Behind) + unitProcessingAr(res.score, 2));
|
||||
@@ -187,18 +187,18 @@ function loadMore() {
|
||||
let str = '';
|
||||
|
||||
// 拼接 HTML
|
||||
nextItems.forEach(res => {
|
||||
nextItems.forEach((res,i) => {
|
||||
str += `
|
||||
<li>
|
||||
<div class="num">${res.rank}</div>
|
||||
<div class="num">${i+4}</div>
|
||||
<img src="${res.avatar}" alt="" class="tx">
|
||||
<img src="./images/vip/${res.vipLevel}.png" alt="" class="icon" style="display: ${res.vipLevel == 0 ? 'none' : 'block'}">
|
||||
<div class="info">
|
||||
<p>${res.name}</p>
|
||||
<p>${res.nick}</p>
|
||||
<span>ID:${res.erbanNo}</span>
|
||||
</div>
|
||||
<div class="score">
|
||||
<b>${unitProcessingAr(res.totalNum, 2)}</b>
|
||||
<b>${langReplace(localLang.demoModule.Behind) + unitProcessingAr(res.score, 2)}</b>
|
||||
<img src="./images/m.png" alt="">
|
||||
</div>
|
||||
</li>
|
||||
|
Reference in New Issue
Block a user