tijiao 20251027
This commit is contained in:
@@ -721,55 +721,57 @@ margin-top:15px;
|
|||||||
wh_topicd = 'top'
|
wh_topicd = 'top'
|
||||||
var st_top_tit = "";
|
var st_top_tit = "";
|
||||||
var st_top_con = "";
|
var st_top_con = "";
|
||||||
|
// 10
|
||||||
if (Jour_num == 1) {
|
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 {
|
} else {
|
||||||
var forLength = 5
|
var forLength = 5
|
||||||
}
|
}
|
||||||
if (wh_number == '1') {
|
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;
|
|
||||||
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 += '<li><a target="_blank" href="' + url_href + arr_topic[i].children[j].journal_topic_id + '">' +
|
|
||||||
'<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){
|
|
||||||
for (var j = 0; j < arr_topic[i].children.length; j++) {
|
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 (j == forLength) break;
|
||||||
if (arr_topic[i].children[j].is_final == '1') {
|
var url_href = '';
|
||||||
url_href = 'topic_list.html?J_num=' + Jour_num + '&t_id='
|
if (arr_topic[i].children[j].is_final == '1') {
|
||||||
} else (
|
url_href = 'topic_list.html?J_num=' + Jour_num + '&t_id='
|
||||||
url_href = 'topic.html?J_num=' + Jour_num + '&t_id='
|
} else (
|
||||||
)
|
url_href = 'topic.html?J_num=' + Jour_num + '&t_id='
|
||||||
st_top_con += '<li><a target="_blank" href="' + url_href + arr_topic[i].children[j].journal_topic_id + '">' +
|
)
|
||||||
'<img src="' + imgtopicUrl + arr_topic[i].children[j].icon + '" alt="">' +
|
st_top_con += '<li><a target="_blank" href="' + url_href + arr_topic[i].children[j].journal_topic_id + '">' +
|
||||||
'<h3>' + arr_topic[i].children[j].title + '</h3></a></li>'
|
'<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) {
|
||||||
|
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 += '<li><a target="_blank" href="' + url_href + arr_topic[i].children[j].journal_topic_id + '">' +
|
||||||
|
'<img src="' + imgtopicUrl + arr_topic[i].children[j].icon + '" alt="">' +
|
||||||
|
'<h3>' + arr_topic[i].children[j].title + '</h3></a></li>'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
// '<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 (Jour_num == 1) {
|
||||||
if (arr_topic[i].title == "Diseases") {
|
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>' +
|
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>' +
|
'<ul>' + st_top_con + '</ul></div>' +
|
||||||
'<p style="height: 1px;width: 97%;background-color: #ebf2f6;margin: 5px auto 0 auto;"></p>'
|
'<p style="height: 1px;width: 97%;background-color: #ebf2f6;margin: 5px auto 0 auto;"></p>'
|
||||||
} else {
|
} else {
|
||||||
@@ -795,43 +797,43 @@ if(arr_topic[i].children){
|
|||||||
// MDM 十个话题 // LF 十个话题 // BEC 十个话题 // cancer 十个话题
|
// MDM 十个话题 // LF 十个话题 // BEC 十个话题 // cancer 十个话题
|
||||||
if ([2, 25, 11, 14].includes(Number(Jour_num))) {
|
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++) {
|
for (var j = 0; j < arr_topic[i].children.length; j++) {
|
||||||
if (MDM_mark == 10) break;
|
if (MDM_mark == 10) break;
|
||||||
MDM_mark = MDM_mark + 1
|
MDM_mark = MDM_mark + 1
|
||||||
var url_href = '';
|
var url_href = '';
|
||||||
if (arr_topic[i].children[j].is_final == '1') {
|
if (arr_topic[i].children[j].is_final == '1') {
|
||||||
url_href = 'topic_list.html?J_num=' + Jour_num + '&t_id='
|
url_href = 'topic_list.html?J_num=' + Jour_num + '&t_id='
|
||||||
} else (
|
} else (
|
||||||
url_href = 'topic.html?J_num=' + Jour_num + '&t_id='
|
url_href = 'topic.html?J_num=' + Jour_num + '&t_id='
|
||||||
)
|
)
|
||||||
MDM_str += '<li><a target="_blank" href="' + url_href + arr_topic[i].children[j].journal_topic_id + '">' +
|
MDM_str += '<li><a target="_blank" href="' + url_href + arr_topic[i].children[j].journal_topic_id + '">' +
|
||||||
'<img src="' + imgtopicUrl + arr_topic[i].children[j].icon + '" alt="">' +
|
'<img src="' + imgtopicUrl + arr_topic[i].children[j].icon + '" alt="">' +
|
||||||
'<h3>' + arr_topic[i].children[j].title + '</h3></a></li>'
|
'<h3>' + arr_topic[i].children[j].title + '</h3></a></li>'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$('.art_top_topic>div>div.topics').html('<ul>' + MDM_str + '</ul>');
|
$('.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) {
|
} else if (arr_topic[i].position == "left" && arr_topic[i].title == "Diseases" && Jour_num == 1) {
|
||||||
if (panduan != '1') {
|
if (panduan != '1') {
|
||||||
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++) {
|
for (var j = 0; j < arr_topic[i].children.length; j++) {
|
||||||
if (j == 5) break;
|
if (j == 5) break;
|
||||||
var url_href = '';
|
var url_href = '';
|
||||||
if (arr_topic[i].children[j].is_final == '1') {
|
if (arr_topic[i].children[j].is_final == '1') {
|
||||||
url_href = 'topic_list.html?J_num=' + Jour_num + '&t_id='
|
url_href = 'topic_list.html?J_num=' + Jour_num + '&t_id='
|
||||||
} else (
|
} else (
|
||||||
url_href = 'topic.html?J_num=' + Jour_num + '&t_id='
|
url_href = 'topic.html?J_num=' + Jour_num + '&t_id='
|
||||||
)
|
)
|
||||||
st_left_con += '<li><a target="_blank" href="' + url_href + arr_topic[i].children[j].journal_topic_id + '">' +
|
st_left_con += '<li><a target="_blank" href="' + url_href + arr_topic[i].children[j].journal_topic_id + '">' +
|
||||||
'<img src="' + imgtopicUrl + arr_topic[i].children[j].icon + '"/></a>' +
|
'<img src="' + imgtopicUrl + arr_topic[i].children[j].icon + '"/></a>' +
|
||||||
'<h3 style="text-align: center"><a target="_blank" href="' + url_href + arr_topic[i].children[j].journal_topic_id + '">' + arr_topic[i].children[j].title + '</a></h3></li>'
|
'<h3 style="text-align: center"><a target="_blank" href="' + url_href + arr_topic[i].children[j].journal_topic_id + '">' + arr_topic[i].children[j].title + '</a></h3></li>'
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
st_left_tit = '<div class="topics" style="padding: 0 0 5px 0;"><h4 class="rgb_color" style="font-size: 16px">' + arr_topic[i].title + '</h4>' +
|
st_left_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_left_con + '</ul></div>'
|
'<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_left_con + '</ul></div>'
|
||||||
|
|||||||
@@ -1865,6 +1865,7 @@ async function initContentHtml(content, arr, refers, html_type, ArticleData) {
|
|||||||
}
|
}
|
||||||
// 二级的时间
|
// 二级的时间
|
||||||
var reviewers = ""
|
var reviewers = ""
|
||||||
|
|
||||||
if (ArticleData.data.track[tt].reviewers && ArticleData.data.track[tt].reviewers.length > 0) {
|
if (ArticleData.data.track[tt].reviewers && ArticleData.data.track[tt].reviewers.length > 0) {
|
||||||
shenCode = []
|
shenCode = []
|
||||||
for (var er = 0; er < ArticleData.data.track[tt].reviewers.length; er++) {
|
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 = ""
|
var finalStr = ""
|
||||||
if (ArticleData.data.track[tt].type == 8&&ArticleData.data.track[tt].response && ArticleData.data.track[tt].response.length > 0) {
|
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++) {
|
for (var er = 0; er < ArticleData.data.track[tt].response.length; er++) {
|
||||||
var finalneiTag = ''
|
var finalneiTag = ''
|
||||||
var finalState = ''
|
var finalState = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user