diff --git a/journalIndex/js/journal.js b/journalIndex/js/journal.js index fef2b4c..2989094 100644 --- a/journalIndex/js/journal.js +++ b/journalIndex/js/journal.js @@ -1,6 +1,7 @@ // 期刊基础、外链、分期、话题信息加载 var Journals_color = '#006699' +var cycle = '' function bf_list() { @@ -16,7 +17,9 @@ function bf_list() { }, success: function (result) { + if (result.code == 0) { + cycle = result.data.journal.cycle Journals_color = result.data.journal.system_color $('.border_title').css({ 'border-bottom': `1px solid ${Journals_color}`, @@ -116,19 +119,19 @@ margin-top:15px; .footer .daohang{ padding-bottom:30px; } - `; - document.head.appendChild(style); - if(Jour_num==1){ - $('.Special_Issues_box .more').css({ - 'top': '45px', - - }) - $('.ncon_hl .more').css({ - 'top': '45px', - - }) - } - + `; + document.head.appendChild(style); + if (Jour_num == 1) { + $('.Special_Issues_box .more').css({ + 'top': '45px', + + }) + $('.ncon_hl .more').css({ + 'top': '45px', + + }) + } + initJournalBaseInfo(result) var arr_stage = result.data.journalStage; @@ -353,11 +356,12 @@ margin-top:15px; `; } -{/*

*/} + {/*

*/ } str += `
  • ${arr[i].type} -
    ${lr_top}
    +
    ${lr_top}
    ${cycle == 0 && arr[i].pub_date ? arr[i].pub_date : ''} +
    @@ -874,7 +878,7 @@ margin-top:15px; if (result.data.count > 4) { $('.Special_Issues_box .more').css({ 'display': 'block', - + }) $('.Special_Issues_box .more').each(function () { $(this).attr('href', `/guest.html?J_num=${Jour_num}`); @@ -920,8 +924,8 @@ margin-top:15px; if (arr.length == 0 || Jour_num != 1) { $('.Special_Issues_box').css('display', 'none') - $('.ncon_hl').css({'margin-top':'-10px'}) - $('.ncon_hl .more').css({'top':'45px'}) + $('.ncon_hl').css({ 'margin-top': '-10px' }) + $('.ncon_hl .more').css({ 'top': '45px' }) } @@ -992,12 +996,12 @@ margin-top:15px; if (arr.length == 0) { $('.ment_sousuo_kuang').css('padding-top', '40px') - + $('.mes_all_section_other_online').css('display', 'none') $('.online_fr').css('display', 'none') $('.ment_sousuo_kuang').css({ - 'padding-top':'0px', - 'margin-top':'0px', + 'padding-top': '0px', + 'margin-top': '0px', }) } @@ -1203,9 +1207,9 @@ margin-top:15px; 'padding-bottom': '0px', }) $('.ncon_new_coment .more').css({ - + 'top': '45px', - + }) $('.ncon_new_coment ul').css({ 'background': '#fff', @@ -1872,7 +1876,7 @@ function initJournalBaseInfo(result) { $('.jour_base_info .jour_base_info_center .jour_base_info_center_left').html(leftStr); //头部左侧期刊其他信息 var otherStr1 = ` -
  • +
  • Editor-in-Chief: diff --git a/js/article_v2.js b/js/article_v2.js index 9148d8f..ddcf8c7 100644 --- a/js/article_v2.js +++ b/js/article_v2.js @@ -657,7 +657,7 @@ function article_con() { if (j_artc.doi == '') { var doi_ = '' } else { - var doi_ = 'DOI:' + j_artc.doi + var doi_ = 'DOI : ' + 'https://doi.org/' + j_artc.doi + '' } if (j_info.stage_no == '0') { var stage_ = ''