From 602f9c7d11e5961e485d6a0a42c7c984e6c662c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Mon, 27 Oct 2025 14:47:31 +0800 Subject: [PATCH] tijiao 20251027 --- journalIndex/js/journal.js | 130 +++++++++++++++++++------------------ js/article_v2.js | 3 +- 2 files changed, 68 insertions(+), 65 deletions(-) diff --git a/journalIndex/js/journal.js b/journalIndex/js/journal.js index 96dabb1..4444c36 100644 --- a/journalIndex/js/journal.js +++ b/journalIndex/js/journal.js @@ -721,55 +721,57 @@ margin-top:15px; wh_topicd = 'top' var st_top_tit = ""; var st_top_con = ""; + // 10 if (Jour_num == 1) { - var forLength = arr_topic[i].title == "Diseases" ? 10 : 5 + var forLength = arr_topic[i].title == "Diseases" ? arr_topic[i].children.length : 5 } else { var forLength = 5 } if (wh_number == '1') { -if(arr_topic[i].children){ - for (var j = 0; j < arr_topic[i].children.length; j++) { - - if (j == forLength) break; - var url_href = ''; - if (arr_topic[i].children[j].is_final == '1') { - url_href = 'topic_list.html?J_num=' + Jour_num + '&t_id=' - } else ( - url_href = 'topic.html?J_num=' + Jour_num + '&t_id=' - ) - st_top_con += '
  • ' + - '' + - '

    ' + arr_topic[i].children[j].title + '

  • ' - } -} - - } else { - if(arr_topic[i].children){ + if (arr_topic[i].children) { for (var j = 0; j < arr_topic[i].children.length; j++) { - if (Jour_num == 1) { - if (j == forLength) break; - } else { - if (j == forLength - 1) break; - } - var url_href = ''; - if (arr_topic[i].children[j].is_final == '1') { - url_href = 'topic_list.html?J_num=' + Jour_num + '&t_id=' - } else ( - url_href = 'topic.html?J_num=' + Jour_num + '&t_id=' - ) - st_top_con += '
  • ' + - '' + - '

    ' + arr_topic[i].children[j].title + '

  • ' + if (j == forLength) break; + var url_href = ''; + if (arr_topic[i].children[j].is_final == '1') { + url_href = 'topic_list.html?J_num=' + Jour_num + '&t_id=' + } else ( + url_href = 'topic.html?J_num=' + Jour_num + '&t_id=' + ) + st_top_con += '
  • ' + + '' + + '

    ' + arr_topic[i].children[j].title + '

  • ' + } } + + } else { + if (arr_topic[i].children) { + for (var j = 0; j < arr_topic[i].children.length; j++) { + if (Jour_num == 1) { + if (j == forLength) break; + } else { + if (j == forLength - 1) break; + } + + var url_href = ''; + if (arr_topic[i].children[j].is_final == '1') { + url_href = 'topic_list.html?J_num=' + Jour_num + '&t_id=' + } else ( + url_href = 'topic.html?J_num=' + Jour_num + '&t_id=' + ) + st_top_con += '
  • ' + + '' + + '

    ' + arr_topic[i].children[j].title + '

  • ' + } } - + } + // 'More' + if (Jour_num == 1) { if (arr_topic[i].title == "Diseases") { st_top_tit = '

    ' + arr_topic[i].title + '

    ' + - 'More' + + '
    ' + '

    ' } else { @@ -795,43 +797,43 @@ if(arr_topic[i].children){ // MDM 十个话题 // LF 十个话题 // BEC 十个话题 // cancer 十个话题 if ([2, 25, 11, 14].includes(Number(Jour_num))) { -if(arr_topic[i].children){ - for (var j = 0; j < arr_topic[i].children.length; j++) { - if (MDM_mark == 10) break; - MDM_mark = MDM_mark + 1 - var url_href = ''; - if (arr_topic[i].children[j].is_final == '1') { - url_href = 'topic_list.html?J_num=' + Jour_num + '&t_id=' - } else ( - url_href = 'topic.html?J_num=' + Jour_num + '&t_id=' - ) - MDM_str += '
  • ' + - '' + - '

    ' + arr_topic[i].children[j].title + '

  • ' + if (arr_topic[i].children) { + for (var j = 0; j < arr_topic[i].children.length; j++) { + if (MDM_mark == 10) break; + MDM_mark = MDM_mark + 1 + var url_href = ''; + if (arr_topic[i].children[j].is_final == '1') { + url_href = 'topic_list.html?J_num=' + Jour_num + '&t_id=' + } else ( + url_href = 'topic.html?J_num=' + Jour_num + '&t_id=' + ) + MDM_str += '
  • ' + + '' + + '

    ' + arr_topic[i].children[j].title + '

  • ' + } } -} - + $('.art_top_topic>div>div.topics').html(''); } } else if (arr_topic[i].position == "left" && arr_topic[i].title == "Diseases" && Jour_num == 1) { if (panduan != '1') { panduan = '1'; - if(arr_topic[i].children){ - for (var j = 0; j < arr_topic[i].children.length; j++) { - if (j == 5) break; - var url_href = ''; - if (arr_topic[i].children[j].is_final == '1') { - url_href = 'topic_list.html?J_num=' + Jour_num + '&t_id=' - } else ( - url_href = 'topic.html?J_num=' + Jour_num + '&t_id=' - ) - st_left_con += '
  • ' + - '' + - '

    ' + arr_topic[i].children[j].title + '

  • ' + if (arr_topic[i].children) { + for (var j = 0; j < arr_topic[i].children.length; j++) { + if (j == 5) break; + var url_href = ''; + if (arr_topic[i].children[j].is_final == '1') { + url_href = 'topic_list.html?J_num=' + Jour_num + '&t_id=' + } else ( + url_href = 'topic.html?J_num=' + Jour_num + '&t_id=' + ) + st_left_con += '
  • ' + + '' + + '

    ' + arr_topic[i].children[j].title + '

  • ' + } } - } - + st_left_tit = '

    ' + arr_topic[i].title + '

    ' + 'More
    ' diff --git a/js/article_v2.js b/js/article_v2.js index 16a65ec..29d7ac5 100644 --- a/js/article_v2.js +++ b/js/article_v2.js @@ -1865,6 +1865,7 @@ async function initContentHtml(content, arr, refers, html_type, ArticleData) { } // 二级的时间 var reviewers = "" + if (ArticleData.data.track[tt].reviewers && ArticleData.data.track[tt].reviewers.length > 0) { shenCode = [] for (var er = 0; er < ArticleData.data.track[tt].reviewers.length; er++) { @@ -1909,7 +1910,7 @@ async function initContentHtml(content, arr, refers, html_type, ArticleData) { } var finalStr = "" if (ArticleData.data.track[tt].type == 8&&ArticleData.data.track[tt].response && ArticleData.data.track[tt].response.length > 0) { - shenCode = [] + for (var er = 0; er < ArticleData.data.track[tt].response.length; er++) { var finalneiTag = '' var finalState = ''