function initArticleNew() { // News点进去的文章列表 var J_ID = getQueryString('J_num'); //期刊 var new_ID = getQueryString('new_id'); if (new_ID != null) { commonInit() localStorage.setItem("Journals_num", new_ID); var urlList = { list: 'api/Journal/getNewsArticle' } $.ajax({ type: 'post', url: apiUrl + urlList.list, data: { "journal_id": new_ID}, success: function (result) { if (result.code == 0) { if (Jour_num == 1) { $('.wenz_list>h4').after('
News should focus on policy, science and society or purely scientific issues related to traditional medicine around the world. They should be of immediate interest to a broad readership and should be written in an accessible, non-technical style. Figures and diagrams are encouraged, but are not a requirement. News articles are not peer-reviewed, but undergo editing after consultation with the author.
'); } $('.wenz_list>h4').html('News'); var arr = result.data.articlelist; 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 }) if (arr[i].type == 'News') { str += `