function initArticleP() { // Top cited / Top read / Top download点进去的文章列表 var J_ID = getQueryString('J_num'); //期刊 var p_ID = getQueryString('p_id'); //Online First // 分期时间的文章列表 // 分期时间的文章列表 if (p_ID != null) { // 分期时间 // commonInit() localStorage.setItem("Journals_num", p_ID); var urlList = { list: 'api/Main/getMoreArticles' } $.ajax({ type: 'post', url: apiUrl + urlList.list, data: {}, success: function (result) { if (result.code == 0) { $('.wenz_list>h4').html('New Papers'); var arr = result.data.articles; initArticle(arr) //生成分页 //有些参数是可选的,比如lang,若不传有默认值 } else { ShowDanger("请求失败!"); } }, error: function () { ShowDanger("error!"); } }) function initArticle(arr) { var str = ""; for (var i = 0; i < arr.length; i++) { if ((Math.round(Date.parse(new Date()) / 1000) - arr[i].ctime) / 86400 >= 21) { var tong_geogle = ' ' + 'Google Scholar' //搜索引用次数 } else { var tong_geogle = '' //少于21天隐藏 } if (arr[i].icon == '') { var img_i = 'img/baiss.png' } else { var img_i = imgarticleUrl + arr[i].icon } var baseInfo = commonGetItemHtml({ data: arr[i], i: i, img_i: img_i, c_t_a: '', tong_geogle: tong_geogle }) str += `
  • ${arr[i].type}${baseInfo.pub_date}
    ${baseInfo.lr_top}
    ${baseInfo.otStat}${arr[i].title}
    ${arr[i].authortitle}
    ${localStorage.getItem("Journals_title")} . ${arr[i].stage_year}, ${arr[i].stage_vol}${baseInfo.stage_}${baseInfo.npp_}${baseInfo.doi_}
    ${baseInfo.person_img}${baseInfo.trad_tion}
  • ` } $('.wenz_list>ul').html(str); $('.links_ .txt_copy').css('background', localStorage.Journals_color); commonHandleClickHtml() } } }