From 09deb8248bc8e54df932f07084856d29e5c265c9 Mon Sep 17 00:00:00 2001 From: "@fawn-nine" <1271023382@qq.com> Date: Mon, 17 Jul 2023 10:29:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E7=AB=A0=E9=A1=B5=E9=9D=A2=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=EF=BC=9Ahtml=20=E7=A8=BF=E4=BB=B6=E8=BF=BD=E8=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- article.html | 2 + js/article.js | 155 +++++++++++++++++++++++++++++++++++++++++++++--- style/style.css | 22 +++++++ 3 files changed, 171 insertions(+), 8 deletions(-) diff --git a/article.html b/article.html index af5d511..5b76371 100644 --- a/article.html +++ b/article.html @@ -134,6 +134,7 @@
PDF
HTML
  • Supplementary Material
  • +
  • Manuscript processing
  • @@ -193,6 +194,7 @@
    +
    diff --git a/js/article.js b/js/article.js index 0a96794..9644862 100644 --- a/js/article.js +++ b/js/article.js @@ -6501,6 +6501,29 @@ function at_list() { } +// 时间戳格式化 + +function timestampToTime(str) { + //str = str * 1000 + var oDate = new Date(str*1000), + oYear = oDate.getFullYear(), + oMonth = oDate.getMonth()+1, + oDay = oDate.getDate(), + oHour = oDate.getHours(), + oMin = oDate.getMinutes(), + oSen = oDate.getSeconds(), + oTime = oYear +'-'+ getzf(oMonth) +'-'+ getzf(oDay) +' '+ getzf(oHour) +':'+ + getzf(oMin) +':'+getzf(oSen);//最后拼接时间 + return oTime; +}; +//补0操作 +function getzf(num){ +if(parseInt(num) < 10){ + num = '0'+num; +} + return num; +} + // 文章内容 function article_con() { // 获取地址栏信息 @@ -6866,21 +6889,112 @@ function article_con() { var refs = '' var xuhao = 0 for(var rr = 0; rr < result.data.refers.length; rr++){ - - if(result.data.refers[rr].author == ''){ // 如果格式不正确,或者信息不全 - continue; - }else{ + // 如果格式不正确,或者信息不全 + let item= '' + if(result.data.refers[rr].refer_type=='journal' && result.data.refers[rr].doilink != '' ){ + // journal xuhao ++ - let item = "

    "+ xuhao + '.' + result.data.refers[rr].author + result.data.refers[rr].title + "" + result.data.refers[rr].joura +"" + result.data.refers[rr].dateno + ". Available at:"+ result.data.refers[rr].doilink +"

    " + item = "

    "+ xuhao + '.' + result.data.refers[rr].author + result.data.refers[rr].title + "" + result.data.refers[rr].joura +"" + result.data.refers[rr].dateno + ".
    Available at:"+ result.data.refers[rr].doilink +"

    " refs += item - } - + }else if(result.data.refers[rr].refer_type=='book' && result.data.refers[rr].isbn != ''){ + // book + xuhao ++ + item = "

    "+ xuhao + '.' + result.data.refers[rr].author + result.data.refers[rr].title + result.data.refers[rr].dateno + ".
    Available at:

    " + refs += item + + }else if(result.data.refers[rr].refer_type=='other' && result.data.refers[rr].refer_frag != '' && result.data.refers[rr].refer_frag.length > 15){ + // other + xuhao ++ + item = "

    "+ xuhao + '.' + result.data.refers[rr].refer_frag +"

    " + refs += item + }else{ + continue; + } } // console.log(refs) $('.wen_rong .content-box .conthtmn').append('

    References

    '+ refs +'
    ') } } + // 稿件跟踪 + var lis = '' + + if(result.data.track && result.data.track.length > 0 ){ + // console.log(result.data.track.length,33) + // $('.wen_rong #tablist .tarrecord').css('display', 'block'); + // $('.wen_rong .content-box .conterecord').text(333) + for(var tt = 0; tt 0){ + for(var er=0; er < result.data.track[tt].reviewers.length; er++){ + var neiTag = '' + var reviewerState = '' + var reviewerItem = '' + var time1 = '' // 创建时间 + var time2 = '' // 回应时间 + switch (result.data.track[tt].reviewers[er].state) { + case (1): + reviewerState = 'Accept with major revision' + break; + case (2): + reviewerState = 'Reject' + break; + case (3): + reviewerState = 'Accept with minor revision' + break; + } + time1 = timestampToTime(result.data.track[tt].reviewers[er].ctime) + time2 = timestampToTime(result.data.track[tt].reviewers[er].qtime) + reviewerItem = "
    Invitation time:
    "+time1+"
    "+reviewerState+"Score: "+result.data.track[tt].reviewers[er].rated+"reviewer: "+result.data.track[tt].reviewers[er].reviewer_name+"Review comments received: "+time2+"
    " + reviewers += reviewerItem + } + } + // 获得时间 + ttime = timestampToTime(result.data.track[tt].time) + + li = "
    "+ttime+"
    " + ttypeName + ""+reviewers+"
    " + lis += li + } + $('.wen_rong .content-box .conterecord').html(lis) + + }else{ + // console.log(result.data.track.length) + + $('.wen_rong #tablist .tarrecord').css('display', 'none'); + } if (j_artc.file_pdf == '') { $('.wen_rong #tablist .tarfipdf').css('display', 'none'); @@ -6922,7 +7036,32 @@ function article_con() { var pdf_list = '' if (j_artc.file_sub != '') { - pdf_list += '
  • PDF
    ' + + var fileType = '' + var imgLink = '' + var fileTypeArr = j_artc.file_sub.split('.') + fileType = fileTypeArr[fileTypeArr.length -1] + // console.log(fileType) + switch (fileType) { + case 'xlsx': + imgLink = 'img/xlsx.png' + break; + case 'zip': + imgLink = 'img/zip.png' + break; + case 'rar': + imgLink = 'img/zip.png' + break; + case 'docx': + imgLink = 'img/link_1.png' + break; + case 'pdf': + imgLink = 'img/link_3.jpg' + break; + default: + imgLink = 'img/otherfile.png' + break; + } + pdf_list += '
  • ' + fileType + '
    ' + '

    Supplementary Material for doi: ' + j_artc.doi + '----Download

  • '; } if (j_artc.file_sub2 != '') { diff --git a/style/style.css b/style/style.css index 4a730dc..956f112 100644 --- a/style/style.css +++ b/style/style.css @@ -4906,3 +4906,25 @@ ul li .ab_tad { display: block; } +/* 稿件跟踪 */ +.conterecord{position: relative; overflow: hidden; margin: 20px 0;} +.conterecord:after{ + position: absolute; left: 123px; top:0; content: ''; width:2px; height: 100%; background-color: #2894ef; z-index: 0; +} +.trackItem .time{display: inline-block;width: 90px; text-align: right; padding-right: 30px; position: relative; color: #7b869f; } +.trackItem .time:after{position: absolute; right: 0; top: 14px; content: ''; width: 9px; height: 9px; border: 2px solid #2894ef; border-radius: 20px; z-index: 1; background-color: #FFF;} +.trackItem .type{display: inline-block; padding-left: 30px; vertical-align: top; padding: 10px; color: #888; width: 534px; + border: 1px solid #2894ef; margin-bottom: 15px; transition: all 0.5s; + margin-left: 23px; + border-radius: 7px;} +.trackItem .title{ font-size: 16px; background: #dfeefb; font-weight: bold; + display: inline-block !important; + padding: 5px; + border-radius: 5px;} +.trackItem .type:hover{ box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.4);margin-top: -2px; } +.reviewerBox{font-size: 14px; position: relative; } +.reviewerBox .time{width: 124px;} +.reviewerBox .box{display: inline-block; padding: 10px;} +.reviewerBox .box span{display: block; margin-bottom: 5px;} +.reviewerBox:after{position: absolute; left: 145px; top:0; content: ''; width:2px; height: 100%; border-right: 2px dashed #2894ef; z-index: 0;} +.trackItem .reviewerBox:first-child{padding-top: 15px;} \ No newline at end of file