tijiao 20251027

This commit is contained in:
2025-10-27 14:47:31 +08:00
parent d70b7a5e6d
commit 602f9c7d11
2 changed files with 68 additions and 65 deletions

View File

@@ -721,14 +721,15 @@ 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){
if (arr_topic[i].children) {
for (var j = 0; j < arr_topic[i].children.length; j++) {
if (j == forLength) break;
@@ -742,10 +743,10 @@ if(arr_topic[i].children){
'<img src="' + imgtopicUrl + arr_topic[i].children[j].icon + '" alt="">' +
'<h3>' + arr_topic[i].children[j].title + '</h3></a></li>'
}
}
}
} 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;
@@ -766,10 +767,11 @@ if(arr_topic[i].children){
}
}
// '<a target="_blank" href="topic.html?J_num=' + Jour_num + '&t_id=' + arr_topic[i].journal_topic_id + '" class="more" target="_blank">More</a>' +
if (Jour_num == 1) {
if (arr_topic[i].title == "Diseases") {
st_top_tit = '<div class="topics" style="padding: 0 0 5px 0;"><h4 class="rgb_color" style="font-size: 16px">' + arr_topic[i].title + '</h4>' +
'<a target="_blank" href="topic.html?J_num=' + Jour_num + '&t_id=' + arr_topic[i].journal_topic_id + '" class="more" target="_blank">More</a>' +
'<ul>' + st_top_con + '</ul></div>' +
'<p style="height: 1px;width: 97%;background-color: #ebf2f6;margin: 5px auto 0 auto;"></p>'
} else {
@@ -795,7 +797,7 @@ if(arr_topic[i].children){
// MDM 十个话题 // LF 十个话题 // BEC 十个话题 // cancer 十个话题
if ([2, 25, 11, 14].includes(Number(Jour_num))) {
if(arr_topic[i].children){
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
@@ -809,14 +811,14 @@ if(arr_topic[i].children){
'<img src="' + imgtopicUrl + arr_topic[i].children[j].icon + '" alt="">' +
'<h3>' + arr_topic[i].children[j].title + '</h3></a></li>'
}
}
}
$('.art_top_topic>div>div.topics').html('<ul>' + MDM_str + '</ul>');
}
} 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){
if (arr_topic[i].children) {
for (var j = 0; j < arr_topic[i].children.length; j++) {
if (j == 5) break;
var url_href = '';

View File

@@ -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 = ''