提交 has

This commit is contained in:
2024-09-23 13:19:35 +08:00
parent a46d0dafb6
commit 59afa15c9c
38 changed files with 13248 additions and 9456 deletions

View File

@@ -0,0 +1,76 @@
function initNewid() {
// News点进去的文章列表
var new_ID = getQueryString('new_id'); //News
// Top cited点进去的文章列表
if (new_ID != null) {
localStorage.setItem("Journals_num", new_ID);
$('.art_side').css('display', 'none');
$('.art_main_con').css('width', '1070px');
$('.new_art > h4').css('padding', ' 0 4px 16px 6px');
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('<p style="margin-bottom: 15px;padding: 10px 20px;background-color: #fff">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.</p>');
}
$('.wenz_list>h4').html('News');
initArticle(result.data.articlelist)
} else {
ShowDanger("请求失败!");
}
},
error: function () {
ShowDanger("error");
}
})
function initArticle(arr) {
var str = "";
for (var i = 0; i < arr.length; i++) {
if (arr[i].icon == '') {
continue
}
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: '' })
var lr_top = ''
if (arr[i].type == 'News') {
str += `
<li>
<a id="${arr[i].article_id}" target="_blank"
href="article.html?J_num=${arr[i].journal_id}&a_id=${arr[i].article_id}"
class="txt_biaoti">${baseInfo.otStat}${arr[i].title}</a>
<div class="authorList">${arr[i].authortitle}<br>
${arr[i].journal_title}.&nbsp;${arr[i].stage_year},&nbsp;${arr[i].stage_vol}${baseInfo.stage_}${baseInfo.npp_}<a
target="_blank" href="https://doi.org/${arr[i].doi}">${baseInfo.doi_}</a>
</div>
<div class="links_">${baseInfo.link_}</div>
<div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">${baseInfo.person_img}</a>
<div><h3>${arr[i].tradition_tag} </h3><p>
${baseInfo.trad_tion}</p></div><br clear="both"></div>
</li>
`
}
}
$('.wenz_list>ul').html(str);
$('.links_ .txt_copy').css('background', localStorage.Journals_color);
commonHandleClickHtml()
}
}
}