diff --git a/article.html b/article.html index b532b5c..d95be59 100644 --- a/article.html +++ b/article.html @@ -702,10 +702,13 @@ + + + diff --git a/journalIndex/index2.html b/bmec.html similarity index 76% rename from journalIndex/index2.html rename to bmec.html index bbe8b1e..c5e4384 100644 --- a/journalIndex/index2.html +++ b/bmec.html @@ -5,7 +5,7 @@ Traditional Medicine Research - + diff --git a/bmec/index.html b/bmec/index.html index 0552307..7cd8da5 100644 --- a/bmec/index.html +++ b/bmec/index.html @@ -5,7 +5,7 @@ Biomedical Engineering Communications - + diff --git a/cancer/index.html b/cancer/index.html index 5ff0302..36c85be 100644 --- a/cancer/index.html +++ b/cancer/index.html @@ -5,7 +5,7 @@ Cancer Advances - + diff --git a/for_author.html b/for_author.html index df7ba75..aa26e43 100644 --- a/for_author.html +++ b/for_author.html @@ -140,6 +140,7 @@ initForAuthor(Jour_num,arr_jour)//临时改的 合刊在删 放开 + initForAuthorHtml(Jour_num) // $('.for_mess div .fr_APC').html(apcStr); $('.for_mess div .fr_board').attr('href', arr_jour.board_url); // 编委会 $('.for_mess div a.fr_subtem').attr('href', arr_jour.submission_url);//投稿 @@ -190,41 +191,41 @@ } }); + + // $.ajax({ + // type: 'post', url: apiUrl + 'api/Journal/getForAuthors', + // data: { 'journal_id': getQueryString('J_num') }, + // success: function (result) { + // if (result.code == 0) { + // var arr = result.data.forAuthors; + // var str = ""; + // var sgl = ""; + // for (var i in arr) { + // str += '
  • ' + arr[i].jfa_title + '
  • ' + // sgl += '

    ' + arr[i].jfa_title + '

    ' + // for (var j = 0; j < arr[i].children.length; j++) { + // str += '
  • ·' + arr[i].children[j].jfa_title + '
  • ' + // sgl += '

    ·' + arr[i].children[j].jfa_title + '

    ' + arr[i].children[j].content + '
    ' + // } + // } - $.ajax({ - type: 'post', url: apiUrl + 'api/Journal/getForAuthors', - data: { 'journal_id': getQueryString('J_num') }, - success: function (result) { - if (result.code == 0) { - var arr = result.data.forAuthors; - var str = ""; - var sgl = ""; - for (var i in arr) { - str += '
  • ' + arr[i].jfa_title + '
  • ' - sgl += '

    ' + arr[i].jfa_title + '

    ' - for (var j = 0; j < arr[i].children.length; j++) { - str += '
  • ·' + arr[i].children[j].jfa_title + '
  • ' - sgl += '

    ·' + arr[i].children[j].jfa_title + '

    ' + arr[i].children[j].content + '
    ' - } - } + // $('#for_nag').html(str); + // $('#for_nag li:nth-child(1) a').addClass('active'); + // $('#for_main').html(sgl); - $('#for_nag').html(str); - $('#for_nag li:nth-child(1) a').addClass('active'); - $('#for_main').html(sgl); + // //以window为顶,设置离顶和回调 + // var snf = simpleNavFollow({ + // leaveTop: 10, + // }); - //以window为顶,设置离顶和回调 - var snf = simpleNavFollow({ - leaveTop: 10, - }); - - } else { - ShowDanger(result.msg); - } - }, - error: function () { - ShowDanger("error!"); - } - }) + // } else { + // ShowDanger(result.msg); + // } + // }, + // error: function () { + // ShowDanger("error!"); + // } + // }) // var snf = simpleNavFollow({ // parentElement: "#main",//内容类的父元素 diff --git a/hpm/index.html b/hpm/index.html index 6049cef..38b2854 100644 --- a/hpm/index.html +++ b/hpm/index.html @@ -5,7 +5,7 @@ History and Philosophy of Medicine - + diff --git a/idr/index.html b/idr/index.html index 996a04e..5b580e4 100644 --- a/idr/index.html +++ b/idr/index.html @@ -5,7 +5,7 @@ Infectious Diseases Research - + diff --git a/im/index.html b/im/index.html index 215a765..28c6d40 100644 --- a/im/index.html +++ b/im/index.html @@ -5,7 +5,7 @@ Integrative Medicine Discovery - + diff --git a/img/h2bmec2.png b/img/h2bmec2.png new file mode 100644 index 0000000..fb5a2d8 Binary files /dev/null and b/img/h2bmec2.png differ diff --git a/img/h2bmec3.png b/img/h2bmec3.png new file mode 100644 index 0000000..6a28583 Binary files /dev/null and b/img/h2bmec3.png differ diff --git a/img/h2cancer.png b/img/h2cancer.png new file mode 100644 index 0000000..772c53e Binary files /dev/null and b/img/h2cancer.png differ diff --git a/img/h2cancer2.png b/img/h2cancer2.png new file mode 100644 index 0000000..9718e3e Binary files /dev/null and b/img/h2cancer2.png differ diff --git a/img/h2cancer3.png b/img/h2cancer3.png new file mode 100644 index 0000000..2408102 Binary files /dev/null and b/img/h2cancer3.png differ diff --git a/img/h2mdm.png b/img/h2mdm.png new file mode 100644 index 0000000..f84cc22 Binary files /dev/null and b/img/h2mdm.png differ diff --git a/img/h2mdm3.png b/img/h2mdm3.png new file mode 100644 index 0000000..342bf3e Binary files /dev/null and b/img/h2mdm3.png differ diff --git a/img/h2open.png b/img/h2open.png new file mode 100644 index 0000000..3f6fca1 Binary files /dev/null and b/img/h2open.png differ diff --git a/img/h2tmr5.png b/img/h2tmr5.png new file mode 100644 index 0000000..d083e42 Binary files /dev/null and b/img/h2tmr5.png differ diff --git a/img/h2tmr6.png b/img/h2tmr6.png new file mode 100644 index 0000000..89dc398 Binary files /dev/null and b/img/h2tmr6.png differ diff --git a/in/index.html b/in/index.html index c331023..dc6c39f 100644 --- a/in/index.html +++ b/in/index.html @@ -5,7 +5,7 @@ Nursing Communications - + diff --git a/journalIndex/bmec3.html b/journalIndex/bmec3.html new file mode 100644 index 0000000..ad3f214 --- /dev/null +++ b/journalIndex/bmec3.html @@ -0,0 +1,16 @@ + + + + + Traditional Medicine Research + + + + + + + + + + + \ No newline at end of file diff --git a/journalIndex/index.html b/journalIndex/cancer3.html similarity index 76% rename from journalIndex/index.html rename to journalIndex/cancer3.html index 77f2049..27d448d 100644 --- a/journalIndex/index.html +++ b/journalIndex/cancer3.html @@ -5,7 +5,7 @@ Traditional Medicine Research - + diff --git a/journalIndex/hpm3.html b/journalIndex/hpm3.html new file mode 100644 index 0000000..a0b5f0d --- /dev/null +++ b/journalIndex/hpm3.html @@ -0,0 +1,16 @@ + + + + + Traditional Medicine Research + + + + + + + + + + + \ No newline at end of file diff --git a/journalIndex/idr3.html b/journalIndex/idr3.html new file mode 100644 index 0000000..c00576c --- /dev/null +++ b/journalIndex/idr3.html @@ -0,0 +1,16 @@ + + + + + Traditional Medicine Research + + + + + + + + + + + \ No newline at end of file diff --git a/journalIndex/im3.html b/journalIndex/im3.html new file mode 100644 index 0000000..4ef56de --- /dev/null +++ b/journalIndex/im3.html @@ -0,0 +1,16 @@ + + + + + Traditional Medicine Research + + + + + + + + + + + \ No newline at end of file diff --git a/journalIndex/in3.html b/journalIndex/in3.html new file mode 100644 index 0000000..9486108 --- /dev/null +++ b/journalIndex/in3.html @@ -0,0 +1,16 @@ + + + + + Traditional Medicine Research + + + + + + + + + + + \ No newline at end of file diff --git a/journalIndex/js/journal.js b/journalIndex/js/journal.js index cfd3d8e..54d30a1 100644 --- a/journalIndex/js/journal.js +++ b/journalIndex/js/journal.js @@ -1,18 +1,9 @@ // 期刊基础、外链、分期、话题信息加载 -var Journals_color = localStorage.getItem('Journals_color') +var Journals_color = '#006699' function bf_list() { - $('.border_title').css({ - 'border-bottom': `1px solid ${Journals_color}`, - }) - $('.border_title_top').css({ - 'border-top': `5px solid ${Journals_color}`, - }) - $('.article_info_box .tradition-box .tradition-text .article_info_Highlights').css({ - 'color': `${Journals_color} !important`, - }) $('.article_ .bgv_san .alls_issue').css({ 'background': 'none' }) @@ -23,8 +14,21 @@ function bf_list() { "journal_id": Jour_num }, success: function (result) { + if (result.code == 0) { + Journals_color = result.data.journal.system_color + $('.border_title').css({ + 'border-bottom': `1px solid ${Journals_color}`, + }) + $('.border_title_top').css({ + 'border-top': `5px solid ${Journals_color}`, + }) + $('.article_info_box .tradition-box .tradition-text .article_info_Highlights').css({ + 'color': `${Journals_color} !important`, + + }) initJournalBaseInfo(result) + var arr_stage = result.data.journalStage; var str = ""; for (var i = 0; i < result.data.journalStage.length; i++) { @@ -75,232 +79,6 @@ function bf_list() { ShowDanger("error!"); } }) - - // 增加访问次数 - $.ajax({ - type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: { 'type': Jour_num }, - success: function (result) { - if (result.code == 0) { - - } else { - // ShowDanger("请求失败!"); - } - }, - error: function () { - // ShowDanger("error!"); - } - }); - - // 上侧话题列表数据 - $.ajax({ - type: 'post', url: apiUrl + 'api/Journal/getJournalTopic', - data: { - "journal_id": Jour_num - }, - success: function (result) { - Jour_num = localStorage.Journals_num; - if (result.code == 0) { - // 话题列表 - var arr_topic = result.data.topicList; - var wh_topicd = ''; - var wh_number = 0; - var panduan = ''; - var st_left_tit = ""; - var st_left_con = ""; - for (var i = 0; i < arr_topic.length; i++) { - if (arr_topic[i].position == "top") { - wh_number += 1; - wh_topicd = 'top' - var st_top_tit = ""; - var st_top_con = ""; - var forLength = arr_topic[i].title == "Diseases" ? 10 : 5 - if (wh_number == '1') { - - 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 { - 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 + '

  • ' - } - } - if (arr_topic[i].title == "Diseases") { - st_top_tit = '

    ' + arr_topic[i].title + '

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

    ' - } else { - st_top_tit = '

    ' + arr_topic[i].title + '

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

    ' - } - if (wh_number == '1') { - $('.art_top_topic>div>div.topics').html(''); - } else { - - $('.tmr_article>.bng_topic_bei>.art_main_con_topic>div').append(st_top_tit); - - } - - - } else if (arr_topic[i].position == "left" && arr_topic[i].title == "Diseases") { - if (panduan != '1') { - panduan = '1'; - 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
    ' - - } - - $('.tmr_article>.bng_topic_bei>.art_main_con_topic>div').append(st_left_tit); - - } - - - } - - - $('.tmr_article>.bng_topic_bei>.art_main_con_topic>div h4').css('color', localStorage.Journals_color); - - $('.tmr_article>.bng_topic_bei>.art_main_con_topic>div').children().eq(1).addClass('top_ics'); - - if (wh_number == '1') { - $('.art_main_con_topic').css('border-bottom', '0'); - $('.wh_topicd').css('display', 'none') - } - if (Jour_num == '1') { - $('.art_top_topic').addClass('art_top_topic_tmr') - } - - if (wh_topicd == '') { - $('.art_main_con_topic').css('display', 'none') - $('.wh_topicd').css('display', 'none') - } - - if (localStorage.Journals_title == '经典中医研究') { - $('.more').html('更多'); - } - - } else { - // ShowDanger("请求失败!"); - } - }, - error: function () { - ShowDanger("error!"); - } - }); - - // 左侧客座列表数据 - $.ajax({ - type: 'post', url: apiUrl + 'api/Special/getSpecials', - data: { - "journal_id": Jour_num - }, - success: function (result) { - if (result.code == 0) { - if (!result.data.is_show || result.data.is_show == "false") { - $('.jour_base_info .jour_base_info_center .mes_all .mes_all_section .mes_all_section_Gue_special').each(function () { - this.style.setProperty('display', 'none', 'important'); - }); - $('.jour_guest h4 a').css('display', 'none'); - - - } - - // 客座列表 - var arr = result.data.specials; - var str = ''; - for (var i = 0; i < arr.length; i++) { - if (arr[i].icon == '') { - var img_i = '' - } else { - var img_i = '' - } - str += '
  • ' + - '' + - - '' + - `
    ' + arr[i].title + '
    ' + - '
    ' + arr[i].editor + '. | ' + arr[i].deadline + '
  • ' - } - // $('.Special_Issues_box>a').attr('href', '/gue_cont.html?J_num=' + Jour_num + '&Gu_num=' + arr[i].journal_special_id); - $('.Special_Issues_box>ul').html(str + '
    '); - if (arr == '') { - $('.Special_Issues_box').css('display', 'none') - } - - - // for (var i = 0; i < arr.length; i++) { - // if (i == 3) break; - // str += '
  • ' + arr[i].title + '
    ' + - // 'Guest Editor: ' + arr[i].editor + '
    ' + - // 'Deadline: ' + arr[i].deadline + '' + - // '
    Submit Article' + - // 'Guest Editor Application
  • ' - // } - // $('.jour_guest ul').html('

    Open Special Issues

    ' + str); - // $('.jour_guest>a').attr('href', 'gue_edit.html?J_num=' + Jour_num); - // $('.jour_guest h4 a').attr('href', 'guest.html?J_num=' + Jour_num); - // if (str == '') { - // $('.gue_is_lis').css('display', 'none'); - // } - - - // $('.jour_guest ul li a.gue_submin').click(function () { - // // 判断是否有身份 - // if ($.cookie("username") != undefined && $.cookie("user_id") != undefined) { - // window.open('contribu_list.html?J_num=' + Jour_num + '&&special_id=' + $(this).attr('alt')); - // } else { - // window.open('contribu_login.html?J_num=' + Jour_num + '&&special_id=' + $(this).attr('alt')); - // } - // }) - // $('.jour_guest ul li a.gue_appli').click(function () { - // window.open('gue_cont_gea.html?J_num=' + Jour_num + '&&Gu_num=' + $(this).attr('alt')); - // }) - - } else { - ShowDanger("请求失败!"); - } - }, - error: function () { - ShowDanger("error!"); - } - }) // 中侧推广文章 $.ajax({ type: 'post', url: apiUrl + 'api/Journal/getJournalArticles', @@ -357,7 +135,7 @@ function bf_list() { var cite_ = '' } else { var cite_ = ` WOS Citations ( ${arr[i].cite_num}  ) - ` + ` } if ((Math.round(Date.parse(new Date()) / 1000) - arr[i].ctime) / 86400 >= 21) { var tong_geogle = '' + arr[i].topic[t].title + '' } - } - var trad_tion = ''; - var maxTradHeight = 220; // 设置最大高度 + } + var trad_tion = ''; + var maxTradHeight = 220; // 设置最大高度 if (Jour_num == 1) { if (arr[i].tradition_tag == '') { - + } else { var traditionText = arr[i].tradition; - + trad_tion = `
    -
    ${arr[i].tradition_tag}: ${traditionText}
    -
    `; +
    ${arr[i].tradition_tag}: ${traditionText}
    + `; setTimeout(() => { let traditionElement = document.querySelector('.tradition-text:last-of-type'); @@ -466,32 +244,32 @@ function bf_list() { var textContent = '' + arr[i].tradition_tag + ': ' + arr[i].tradition; } - + trad_tion = `
    -
    ${textContent}
    -
    `; +
    ${textContent}
    + `; } str += `
  • -
    - ${arr[i].type} -
    ${lr_top}
    -
    - -
    - ${person_img1} - -
    -
    -
  • ` +
    + ${arr[i].type} +
    ${lr_top}
    +
    + +
    + ${person_img1} +
    + + ${otStat}${arr[i].title} +
    ${processAuthors(arr[i].authortitle)}
    + + ${trad_tion} +
    +
    +
    + ` } @@ -776,6 +554,311 @@ function bf_list() { } }) + // 增加访问次数 + $.ajax({ + type: 'post', url: apiUrl + 'super/Publish/addVisitNum', + data: { 'type': Jour_num }, + success: function (result) { + if (result.code == 0) { + + } else { + // ShowDanger("请求失败!"); + } + }, + error: function () { + // ShowDanger("error!"); + } + }); + + // 上侧话题列表数据 + $.ajax({ + type: 'post', url: apiUrl + 'api/Journal/getJournalTopic', + data: { + "journal_id": Jour_num + }, + success: function (result) { + Jour_num = localStorage.Journals_num; + if (result.code == 0) { + // 话题列表 + var arr_topic = result.data.topicList; + var wh_topicd = ''; + var wh_number = 0; + var panduan = ''; + var st_left_tit = ""; + var st_left_con = ""; + for (var i = 0; i < arr_topic.length; i++) { + if (arr_topic[i].position == "top") { + wh_number += 1; + wh_topicd = 'top' + var st_top_tit = ""; + var st_top_con = ""; + if (Jour_num == 1) { + var forLength = arr_topic[i].title == "Diseases" ? 10 : 5 + + } else { + var forLength = 5 + } + if (wh_number == '1') { + + 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 { + 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 (Jour_num == 1) { + if (arr_topic[i].title == "Diseases") { + st_top_tit = '

    ' + arr_topic[i].title + '

    ' + + 'More' + + '
    ' + + '

    ' + } else { + st_top_tit = '

    ' + arr_topic[i].title + '

    ' + + '
    ' + + '

    ' + } + } else { + st_top_tit = '

    ' + arr_topic[i].title + '

    ' + + '
    ' + + '

    ' + + } + + if (wh_number == '1') { + $('.art_top_topic>div>div.topics').html(''); + } else { + $('.tmr_article>.bng_topic_bei>.art_main_con_topic>div').append(st_top_tit); + } + var MDM_mark = 0 + var MDM_str = '' + // MDM 十个话题 // LF 十个话题 // BEC 十个话题 // cancer 十个话题 + if ([2, 25, 11, 14].includes(Number(Jour_num))) { + + + 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'; + 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
    ' + + } + + $('.tmr_article>.bng_topic_bei>.art_main_con_topic>div').append(st_left_tit); + + } + + + } + + + $('.tmr_article>.bng_topic_bei>.art_main_con_topic>div h4').css('color', localStorage.Journals_color); + + $('.tmr_article>.bng_topic_bei>.art_main_con_topic>div').children().eq(1).addClass('top_ics'); + + if (wh_number == '1') { + $('.art_main_con_topic').css('border-bottom', '0'); + $('.wh_topicd').css('display', 'none') + } + if (Jour_num == '1') { + $('.art_top_topic').addClass('art_top_topic_tmr') + } + + if (wh_topicd == '') { + $('.art_main_con_topic').css('display', 'none') + $('.wh_topicd').css('display', 'none') + } + + if (localStorage.Journals_title == '经典中医研究') { + $('.more').html('更多'); + } + if (Jour_num != 1) { + $('.bng_topic_bei').css({ + 'display': 'none' + }) + $('.topics_box').css({ + 'background-color': 'transparent' + }) + $('.topics_box .topics').css({ + 'background-color': 'transparent' + }) + } + + } else { + // ShowDanger("请求失败!"); + } + }, + error: function () { + ShowDanger("error!"); + } + }); + + // 左侧客座列表数据 + $.ajax({ + type: 'post', url: apiUrl + 'api/Special/getSpecialsNew', + data: { + "journal_id": Jour_num + }, + success: function (result) { + if (result.code == 0) { + + if (!result.data.is_show || result.data.is_show == "false") { + $('.jour_base_info .jour_base_info_center .mes_all .mes_all_section .mes_all_section_Gue_special').each(function () { + this.style.setProperty('display', 'none', 'important'); + }); + $('.jour_guest h4 a').css('display', 'none'); + + + } + var specialIssuesBox = document.querySelector('.Special_Issues_box'); + var ulElement = specialIssuesBox.querySelector('ul'); + var newDiv = document.createElement('div'); + newDiv.classList.add('Special_Issues_div_box'); // 可替换为你希望的类名 + newDiv.appendChild(ulElement); + specialIssuesBox.appendChild(newDiv); + if (result.data.count > 4) { + $('.Special_Issues_box .more').css({ + 'display': 'block', + 'top': '30px', + }) + $('.Special_Issues_box .more').each(function () { + $(this).attr('href', `/guest.html?J_num=${Jour_num}`); + }); + // guest.html?J_num=1 + } + // 客座列表 + var arr = result.data.specials; + var str = ''; + for (var i = 0; i < arr.length; i++) { + if (new Date(arr[i].deadline).getTime() > new Date().getTime()) { + var mark_k = 1 + } else { + var mark_k = 0 + } + if (arr[i].icon == '') { + var img_i = '' + } else { + var img_i = '' + } + str += `
  • + + ${mark_k == 1 ? `

    ${mark_k == 1 ? 'Open' : ''}

    ` : ''} +
    +
    ${arr[i].title} +
    ${arr[i].editor}. | ${arr[i].deadline}
    + +
  • ` + } + // $('.Special_Issues_box>a').attr('href', '/gue_cont.html?J_num=' + Jour_num + '&Gu_num=' + arr[i].journal_special_id); + $('.Special_Issues_box ul').css({ + 'width': '1102px', + 'background-color': 'transparent', + 'overflow-x': 'auto', + }); + + $('.Special_Issues_box ul').html(str + '
    ');; // 设置默认的 margin-right + // $('.Special_Issues_box ul li:nth-child(4n)').css('margin-right', '0'); // 每4个 li 的 margin-right 为 0 + + if (arr.length == 0 || Jour_num != 1) { + $('.Special_Issues_box').css('display', 'none') + } + + + // for (var i = 0; i < arr.length; i++) { + // if (i == 3) break; + // str += '
  • ' + arr[i].title + '
    ' + + // 'Guest Editor: ' + arr[i].editor + '
    ' + + // 'Deadline: ' + arr[i].deadline + '' + + // '
    Submit Article' + + // 'Guest Editor Application
  • ' + // } + // $('.jour_guest ul').html('

    Open Special Issues

    ' + str); + // $('.jour_guest>a').attr('href', 'gue_edit.html?J_num=' + Jour_num); + // $('.jour_guest h4 a').attr('href', 'guest.html?J_num=' + Jour_num); + // if (str == '') { + // $('.gue_is_lis').css('display', 'none'); + // } + + + // $('.jour_guest ul li a.gue_submin').click(function () { + // // 判断是否有身份 + // if ($.cookie("username") != undefined && $.cookie("user_id") != undefined) { + // window.open('contribu_list.html?J_num=' + Jour_num + '&&special_id=' + $(this).attr('alt')); + // } else { + // window.open('contribu_login.html?J_num=' + Jour_num + '&&special_id=' + $(this).attr('alt')); + // } + // }) + // $('.jour_guest ul li a.gue_appli').click(function () { + // window.open('gue_cont_gea.html?J_num=' + Jour_num + '&&Gu_num=' + $(this).attr('alt')); + // }) + + } else { + ShowDanger("请求失败!"); + } + }, + error: function () { + ShowDanger("error!"); + } + }) + // 中下侧Online First文章 $.ajax({ @@ -803,7 +886,10 @@ function bf_list() { } $('.online_fr>a').attr('href', 'article_list.html?J_num=' + Jour_num + '&o_id=' + Jour_num); $('.online_fr>ul').html(str + '
    '); - if (arr == '') { + if (arr.length == 0) { + + $('.ment_sousuo_kuang').css('padding-top', '40px') + $('.mes_all_section_other_online').css('display', 'none') $('.online_fr').css('display', 'none') } @@ -973,59 +1059,58 @@ function bf_list() { // TMR 中下侧News & conmment文章 - $.ajax({ - type: 'post', url: apiUrl + 'api/Journal/getNewsArticle', - data: { - "journal_id": Jour_num - }, - success: function (result) { - if (result.code == 0) { + if (Jour_num != 1) { + $.ajax({ + type: 'post', url: apiUrl + 'api/Journal/getNewsArticleNew', + data: { + "journal_id": Jour_num, + "limit": 4, + "page": 1 + }, + success: function (result) { + if (result.code == 0) { + var arr = result.data.articlelist; + var str = ""; - var arr = result.data.articlelist; - var str = ""; - var sgr = ""; + for (var i = 0; i < arr.length; i++) { - var j = 0; - var q = 0; - for (var i = 0; i < arr.length; i++) { - if (arr[i].type == 'News') { - if (j < 2) { - j++; - str += '
  • ' + - '' + - '' + - '
    ' + arr[i].title + '
    ' + - '
    ' + arr[i].abbr + '. | ' + arr[i].stage_year + '
  • ' - } - } else if (arr[i].type == 'Comment') { - if (q < 2) { - q++; - sgr += '
  • ' + - '' + - '' + - '
    ' + arr[i].title + '
    ' + - '
    ' + arr[i].abbr + '. | ' + arr[i].stage_year + '
  • ' + if (i == 4) break; + if (arr[i].icon == '') { + var img_i = '' + } else { + var img_i = '' } + str += '
  • ' + img_i + + '
    ' + arr[i].title + '
    ' + + '
    ' + arr[i].abbr + '. | ' + arr[i].stage_year + '
  • ' + } + + $('.ncon_new_coment>a').attr('href', '/article_list.html?J_num=' + Jour_num + '&n_id=' + Jour_num); + $('.ncon_new_coment>ul').html(str + '
    '); + if (arr.length > 0) { + $('.ncon_new_coment').css({ + 'display': 'block', + }) + $('.ncon_new_coment ul').css({ + 'background': '#fff', + }) + } else { + $('.ncon_new_coment').css('display', 'none') + } + + + } else { + // ShowDanger("请求失败!"); + $('.ncon_new_coment').css('display', 'none') } - - $('.ment_news>div>div:nth-child(1)>ul').html(str); - $('.ment_news>div>div:nth-child(1) h4 a.m_new').attr('href', 'article_list.html?J_num=' + Jour_num + '&new_id=1'); - - $('.ment_news>div>div:nth-child(2)>ul').html(sgr + '
    '); - $('.ment_news>div>div:nth-child(2) h4 a.m_con').attr('href', 'article_list.html?J_num=' + Jour_num + '&con_id=1'); - - } else { - // ShowDanger("请求失败!"); - $('.ncon_fr_tmr').css('display', 'none') + }, + error: function () { + ShowDanger("error!"); } - }, - error: function () { - ShowDanger("error!"); - } - }) + }) + } + // 中下侧Highlights文章 @@ -1165,50 +1250,65 @@ function bf_list() { // 下侧Call for Paper文章 - $.ajax({ - type: 'post', url: apiUrl + 'api/Journal/getJournalCfp', - data: { - "journal_id": Jour_num - }, - success: function (result) { - if (result.code == 0) { + if (Jour_num != 1) { + $.ajax({ + type: 'post', url: apiUrl + 'api/Journal/getJournalCfp', + data: { + "journal_id": Jour_num + }, + success: function (result) { + if (result.code == 0) { - var arr = result.data.cfps; - var str = ""; - for (var i = 0; i < arr.length; i++) { - if (i == 2) break; + var arr = result.data.cfps; + var str = ""; + for (var i = 0; i < arr.length; i++) { + if (i == 2) break; - str += '
  • ' + arr[i].showtime + '
    ' + - '' + arr[i].title + '
    ' + - '
    ' + arr[i].content + '
    ' + - '
  • ' + str += '
  • ' + arr[i].showtime + '
    ' + + '' + arr[i].title + '
    ' + + '
    ' + arr[i].content + '
    ' + + '
  • ' - } - $('.ncon_aper>a').attr('href', 'notice_list.html?J_num=' + Jour_num + '&paper_id=' + Jour_num); - $('.ncon_aper>ul').html(str + '
    '); - if (arr == '') { + } + $('.ncon_aper>a').attr('href', '/notice_list.html?J_num=' + Jour_num + '&paper_id=' + Jour_num); + $('.ncon_aper>ul').html(str + '
    '); + + if (arr.length > 0) { + $('.ncon_aper').css({ + 'display': 'block', + }) + $('.ncon_aper .more').css({ + 'top': '65px', + }) + $('.ncon_aper ul li').css({ + 'background': '#fff', + }) + } else { + $('.ncon_aper').css('display', 'none') + } + + + $(".ncon_aper ul .cfp_con").each(function () { + var maxwidth = 150;//显示多少字符 + if ($(this).text().length > maxwidth) { + $(this).text($(this).text().substring(0, maxwidth)); + $(this).text($(this).text().substring(0, maxwidth - $(this).text().split(" ").pop().length)); + $(this).html($(this).html() + '...'); + } + }); + + + } else { + // ShowDanger("请求失败!"); $('.ncon_aper').css('display', 'none') } - - $(".ncon_aper ul .cfp_con").each(function () { - var maxwidth = 150;//显示多少字符 - if ($(this).text().length > maxwidth) { - $(this).text($(this).text().substring(0, maxwidth)); - $(this).text($(this).text().substring(0, maxwidth - $(this).text().split(" ").pop().length)); - $(this).html($(this).html() + '...'); - } - }); - - - } else { - // ShowDanger("请求失败!"); - $('.ncon_aper').css('display', 'none') + }, + error: function () { + ShowDanger("error!"); } - }, - error: function () { - ShowDanger("error!"); - } - }) + }) + } + // 下面新增加社区内容 @@ -1529,7 +1629,18 @@ function initJournalBaseInfo(result) { //tmr case 1: ImpactFactor = '1.3' - CiteScore = '1.8' + CiteScore = '1.9' + break; + //bmec + case 25: + + CiteScore = '1.5' + break; + //mdm + + case 11: + + CiteScore = '0.3' break; case 2: case 17: @@ -1541,19 +1652,14 @@ function initJournalBaseInfo(result) { - var ImpactFactorStr = Jour_num == 1 ? `
    - - Impact Factor - ${ImpactFactor} - -
    `: '' + var ImpactFactorStr = Jour_num == 1 ? + `
    + + Impact Factor + ${ImpactFactor} + +
    ` + : '' var CiteScoreStr = `
    ${CiteScore}
    ` - $('#top_bar .rgb_color_background h1').css({ - 'position': 'relative' + $('#top_bar .rgb_color_background h1').css({ 'position': 'relative' }) + if (ImpactFactor || CiteScore) { + $('#top_bar .rgb_color_background h1 a').after(`
    ${ImpactFactorStr}${CiteScoreStr}
    `) + } + if (Jour_num == 1) { + // $('.nav_ban h2').html(''); + $('.nav_ban h2').html(''); + } else if (Jour_num == 2) { + //cancer + $('.nav_ban h2').html(''); - }) - $('#top_bar .rgb_color_background h1 a').after(`
    ${ImpactFactorStr}${CiteScoreStr}
    `) + } else if (Jour_num == 11) { + //mdm + $('.nav_ban h2').html(''); + } + else if (Jour_num == 25) { + //bmec + $('.nav_ban h2').html(''); + } // 外链信息 var arr_Abc = result.data.journalAbs.filter(e => e.is_show == 1); @@ -1590,11 +1710,48 @@ function initJournalBaseInfo(result) { } else { apcStr = arr_jour.apc + `( 2025 - 2026 )`; } + //是否显示地图 + var isShowAuthorship = 0; + if ([1, 14, 8].includes(Number(Jour_num))) { + isShowAuthorship = 1 + } + var ISSNDirection = 'left'; + var ISSNColor = '#7a2702'; + var ISSNBottom = '6px'; + if ([14, 11, 17].includes(Number(Jour_num))) { + ISSNDirection = 'right' + ISSNColor = '#e9e9e9' + + } + else if ([18].includes(Number(Jour_num))) { + ISSNDirection = 'right' + ISSNColor = '#fff' + + } + + else + //hpm + if ([8].includes(Number(Jour_num))) { + ISSNDirection = 'right' + ISSNColor = '#333' + ISSNBottom = '4px' + + } else if ([2].includes(Number(Jour_num))) { + + ISSNColor = '#e9e9e9' + + } else if ([4].includes(Number(Jour_num))) { + + ISSNColor = '#fff' + + } + var leftStr = ` -

    ISSN: ${arr_jour.issn}

    +

    ISSN: ${arr_jour.issn}

    + ` $('.jour_base_info .jour_base_info_center .jour_base_info_center_left').html(leftStr); //头部左侧期刊其他信息 @@ -1614,12 +1771,12 @@ function initJournalBaseInfo(result) {

    -

    Impact Factor (Clarivate): ${ImpactFactor}

    -

    CiteScore (Scopus): ${CiteScore}

    +

    Impact Factor (Clarivate): ${ImpactFactor}

    +

    CiteScore (Scopus): ${CiteScore}

    Acceptance: ${arr_jour.acceptance}

    Final Decision: ${arr_jour.finaldecision}

    -

    APC: ${apcStr}APC: ${apcStr} + ${arr_jour.email}

    Follow Us: -
    -
    - facebook-white sharing button -
    -
    - twitter-white sharing button -
    -
    - linkedin-white sharing button -
    - -
    + ${Jour_num == 1 ? `
    + facebook-white sharing button +
    +
    + twitter-white sharing button +
    +
    + linkedin-white sharing button +
    `: '
    '} + +
    ` var otherStr2 = ` -
  • +
  • Archiving

    Current Issue

    -

    -

    Online First

    +

    +

    Online First

    Archiving

    -

    Special Issues

    +

    Special Issues

    Highlights

    +

    News & Comment

    Topics

    +
  • ` var otherStr3 = `
  • Publish

    About Journal

    -
    +
  • ` + let pCount = 0; + + // 一定会显示的

    (About Journal、Guide for Authors、Peer-review、Submission、Ethics、Contact) + pCount += 6; + + // 判断 Authorship 是否显示 + if (isShowAuthorship) { + pCount += 1; + } + + // 判断 Special Issue Proposal 是否显示 + if (Jour_num == 1 || Jour_num == 25) { + pCount += 1; + } - + var normalLength = pCount - 1 var otherStr4 = `

  • Abstracting & Indexing
  • ` $('.jour_base_info .jour_base_info_center .mes_all .mes_all_section').html(otherStr1 + otherStr2 + otherStr3 + otherStr4); - $('.mes_Abs li:gt(6)').hide(); + setTimeout(() => { + if (window.__sharethis__) { + __sharethis__.initialize(); + } + + }, 50) + + + + $(`.mes_Abs li:gt(${normalLength - 1})`).hide(); $(".wl_click").bind('click', function (e) { var Abstractingcontent = `