diff --git a/view/molistar/activity/gameChallenge/js/index.js b/view/molistar/activity/gameChallenge/js/index.js index 6c43226..3bf872e 100644 --- a/view/molistar/activity/gameChallenge/js/index.js +++ b/view/molistar/activity/gameChallenge/js/index.js @@ -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 += `
${res.name}
+${res.nick}
ID:${res.erbanNo}