From e2ecc9411f861fc3581612d9c485cbeb4310196a Mon Sep 17 00:00:00 2001 From: qiaofie Date: Thu, 6 Mar 2025 11:27:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/molistar/activity/gameChallenge/js/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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.rank}
    +
    ${i+4}
    -

    ${res.name}

    +

    ${res.nick}

    ID:${res.erbanNo}
    - ${unitProcessingAr(res.totalNum, 2)} + ${langReplace(localLang.demoModule.Behind) + unitProcessingAr(res.score, 2)}