文章引用
This commit is contained in:
471
js/article.js
471
js/article.js
@@ -2271,21 +2271,41 @@ function at_list() {
|
||||
|
||||
// News & Commentdian点进去的文章列表
|
||||
if (n_ID != null) {
|
||||
// News & Commentdian
|
||||
// Highlights
|
||||
$('.art_side').css('display', 'none');
|
||||
$('.art_main_con').css('width', '1070px');
|
||||
$('.new_art > h4').css('padding', ' 0 4px 16px 6px');
|
||||
|
||||
localStorage.setItem("Journals_num", n_ID);
|
||||
$('.art_main_con').append('<div id="kkpager"></div>')
|
||||
$('.wenz_list').append('<div style="font-size: 12px;text-align: right;padding-top: 10px;padding-right: 27px;" class="gue_chinese_tot">all total <b class="tioashu"></b> </div>')
|
||||
|
||||
var high_top = {};
|
||||
high_top.page = 1;
|
||||
high_top.limit = 10;
|
||||
high_top.journal_id = n_ID;
|
||||
|
||||
var totalPage;//总页码
|
||||
var totalRecords;//总数据条数
|
||||
var pageNo = high_top.page;//当前页码
|
||||
|
||||
$.ajax({
|
||||
type: 'post', url: apiUrl + 'api/Journal/getNewsArticle',
|
||||
type: 'post', url: apiUrl + 'api/Journal/getNewsArticleNew',
|
||||
data: {
|
||||
"journal_id": n_ID
|
||||
"journal_id": n_ID,
|
||||
"limit": 10,
|
||||
"page": 1
|
||||
},
|
||||
success: function (result) {
|
||||
if (result.code == 0) {
|
||||
|
||||
$('.wenz_list>h4').html('News & Comment');
|
||||
totalPage = result.data.count % high_top.limit == 0 ? (result.data.count / high_top.limit) : (Math.ceil(result.data.count / high_top.limit));
|
||||
totalRecords = result.data.count;
|
||||
$('.wenz_list .tioashu').html(result.data.count);
|
||||
|
||||
|
||||
|
||||
var arr = result.data.articlelist;
|
||||
var str = "";
|
||||
var sgr = "";
|
||||
@@ -2310,7 +2330,7 @@ function at_list() {
|
||||
} else {
|
||||
var stage_ = ' (' + arr[i].stage_no + ')'
|
||||
}
|
||||
if (arr[i].mains == '') {
|
||||
if (arr[i].html_num == 0) {
|
||||
if (arr[i].file_html == '') {
|
||||
var html_ = ''
|
||||
} else {
|
||||
@@ -2495,7 +2515,6 @@ function at_list() {
|
||||
}
|
||||
|
||||
|
||||
|
||||
var lr_top = ''
|
||||
for (var t = 0; t < arr[i].topic.length; t++) {
|
||||
lr_top += '<a href="topic_list.html?J_num=' + Jour_num + '&t_id=' + arr[i].topic[t].journal_topic_id + '" target="_blank">' + arr[i].topic[t].title + '</a>'
|
||||
@@ -2665,6 +2684,447 @@ function at_list() {
|
||||
})
|
||||
})
|
||||
|
||||
//生成分页
|
||||
//有些参数是可选的,比如lang,若不传有默认值
|
||||
|
||||
// var totalPage;//总页码
|
||||
// var totalRecords;//总数据条数
|
||||
// var pageNo = high_top.pageIndex;//当前页码
|
||||
|
||||
kkpager.generPageHtml({
|
||||
pno: pageNo,
|
||||
//总页码
|
||||
total: totalPage,
|
||||
//总数据条数
|
||||
totalRecords: totalPage,
|
||||
mode: 'click',//默认值是link,可选link或者click
|
||||
click: function (n) {
|
||||
this.selectPage(n);
|
||||
|
||||
//除了第一页写逻辑跳转
|
||||
high_top.page = n;
|
||||
$.ajax({
|
||||
type: 'post', url: apiUrl + 'api/Journal/getNewsArticleNew',
|
||||
data: high_top,
|
||||
success: function (result) {
|
||||
if (result.code == 0) {
|
||||
|
||||
totalRecords = result.data.count;
|
||||
|
||||
$('.wenz_list .tioashu').html(result.data.count);
|
||||
|
||||
var arr = result.data.articlelist;
|
||||
var str = "";
|
||||
var sgr = "";
|
||||
var n_ = "0";
|
||||
var c_ = "0";
|
||||
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (arr[i].type == 'News') {
|
||||
n_ = '1';
|
||||
if (arr[i].doi == '') {
|
||||
var doi_ = ''
|
||||
} else {
|
||||
var doi_ = 'https://doi.org/' + arr[i].doi
|
||||
}
|
||||
if (arr[i].npp == '') {
|
||||
var npp_ = ''
|
||||
} else {
|
||||
var npp_ = ': ' + arr[i].npp + '. '
|
||||
}
|
||||
if (arr[i].stage_no == '0') {
|
||||
var stage_ = ''
|
||||
} else {
|
||||
var stage_ = ' (' + arr[i].stage_no + ')'
|
||||
}
|
||||
if (arr[i].html_num == 0) {
|
||||
if (arr[i].file_html == '') {
|
||||
var html_ = ''
|
||||
} else {
|
||||
var html_ = '<img src="img/link_2.png" width="14" height="16"><a href="' + imgFileUrl + 'articleHTML/' + arr[i].file_html + '" target="_blank" class="txt_html" alt="' + arr[i].article_id + '">HTML</a> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||||
}
|
||||
} else {
|
||||
var html_ = '<img src="img/link_2.png" width="14" height="16"><a href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '&s_htm=1" target="_blank" class="txt_html" alt="' + arr[i].article_id + '">HTML</a> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||||
}
|
||||
if (arr[i].file_pdf == '') {
|
||||
var pdf_ = ''
|
||||
} else {
|
||||
var pdf_ = '<img src="img/link_3.jpg" width="14" height="16"><a href="' + imgFileUrl + 'articlePDF/' + arr[i].file_pdf + '" target="_blank" class="txt_pdf" alt="' + arr[i].article_id + '">PDF</a> ( <span style="color: red">' + arr[i].pdf_num + '</span> )'
|
||||
}
|
||||
if ((Math.round(Date.parse(new Date()) / 1000) - arr[i].ctime) / 86400 >= 21) {
|
||||
var tong_geogle = '<a href = "https://scholar.google.com/scholar?&q=' + arr[i].title.replace('<i>', '').replace('</i>', '').replace(new RegExp('"', "g"), '') + '"' +
|
||||
'target = "_blank" style="color: ' + localStorage.Journals_color + ';margin-left: 10px;font-weight: 600;"> ' +
|
||||
'Google Scholar</a>' //搜索引用次数
|
||||
} else {
|
||||
var tong_geogle = '' //少于21天隐藏
|
||||
}
|
||||
if (arr[i].article_id == '172') {
|
||||
var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||||
} else {
|
||||
var mp4_ = ''
|
||||
}
|
||||
if (arr[i].icon == '') {
|
||||
var img_i = 'img/baiss.png'
|
||||
} else {
|
||||
var img_i = imgarticleUrl + arr[i].icon
|
||||
}
|
||||
|
||||
if (arr[i].other_state == 0) {
|
||||
var otStat = ''
|
||||
} else if (arr[i].other_state == 1) {
|
||||
var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||||
} else if (arr[i].other_state == 2) {
|
||||
var otStat = '<span class="otStat">Retracted</span>'
|
||||
}
|
||||
|
||||
if (arr[i].isShowOtime == 1) {
|
||||
if (arr[i].pub_date == '') {
|
||||
var pub_date = ''
|
||||
} else {
|
||||
var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||||
}
|
||||
} else {
|
||||
var pub_date = ''
|
||||
}
|
||||
if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||||
var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||||
} else {
|
||||
var person_img = '<img src="' + img_i + '" alt="">'
|
||||
}
|
||||
|
||||
arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||||
|
||||
var link_ = '<img src="img/link_1.png" width="14" height="16"><a class="txt_zhaiyao" alt="' + arr[i].article_id + '">Abstract</a> ( <span style="color: red">' + arr[i].abs_num + '</span> ) ' +
|
||||
html_ + pdf_ + mp4_ +
|
||||
'<button class="txt_copy">Cite this article<ul class="export"><li id="txt_copy_' + i + '" class="Exc_1">>> Copy citation information</li><li class="Exc_2"><i class="fa fa-download"></i> Export citation to EndNote</li><li class="Exc_3"><i class="fa fa-download"></i> Export citation to RIS</li><li class="Exc_4"><i class="fa fa-download"></i> Export citation to BibTex</li><li class="Exc_5"><i class="fa fa-download"></i> Export citation to txt</li><div class="triangle"></div></ul></button>' +
|
||||
tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||||
'<div>' + arr[i].abstract + '</div>';
|
||||
|
||||
if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||||
var maxwidth = 500;//显示多少字符
|
||||
if (arr[i].abstract.length > maxwidth) {
|
||||
var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||||
abstNew = abstNew.substring(0, maxwidth)
|
||||
abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||||
var trad_tion = '<div>' + abstNew + '...</div>'
|
||||
} else {
|
||||
var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||||
}
|
||||
} else {
|
||||
var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||||
}
|
||||
|
||||
var lr_top = ''
|
||||
for (var t = 0; t < arr[i].topic.length; t++) {
|
||||
lr_top += '<a href="topic_list.html?J_num=' + Jour_num + '&t_id=' + arr[i].topic[t].journal_topic_id + '" target="_blank">' + arr[i].topic[t].title + '</a>'
|
||||
}
|
||||
|
||||
str += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||||
'<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||||
'<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||||
+ localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||||
'<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||||
'</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||||
+ trad_tion + '<br clear="both"></div></li>'
|
||||
|
||||
} else if (arr[i].type == 'Comment') {
|
||||
c_ = '1';
|
||||
if (arr[i].doi == '') {
|
||||
var doi_ = ''
|
||||
} else {
|
||||
var doi_ = 'https://doi.org/' + arr[i].doi
|
||||
}
|
||||
if (arr[i].npp == '') {
|
||||
var npp_ = ''
|
||||
} else {
|
||||
var npp_ = ': ' + arr[i].npp + '. '
|
||||
}
|
||||
if (arr[i].stage_no == '0') {
|
||||
var stage_ = ''
|
||||
} else {
|
||||
var stage_ = ' (' + arr[i].stage_no + ')'
|
||||
}
|
||||
if (arr[i].mains == '') {
|
||||
if (arr[i].file_html == '') {
|
||||
var html_ = ''
|
||||
} else {
|
||||
var html_ = '<img src="img/link_2.png" width="14" height="16"><a href="' + imgFileUrl + 'articleHTML/' + arr[i].file_html + '" target="_blank" class="txt_html" alt="' + arr[i].article_id + '">HTML</a> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||||
}
|
||||
} else {
|
||||
var html_ = '<img src="img/link_2.png" width="14" height="16"><a href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '&s_htm=1" target="_blank" class="txt_html" alt="' + arr[i].article_id + '">HTML</a> ( <span style="color: red">' + arr[i].html_num + '</span> ) '
|
||||
}
|
||||
if (arr[i].file_pdf == '') {
|
||||
var pdf_ = ''
|
||||
} else {
|
||||
var pdf_ = '<img src="img/link_3.jpg" width="14" height="16"><a href="' + imgFileUrl + 'articlePDF/' + arr[i].file_pdf + '" target="_blank" class="txt_pdf" alt="' + arr[i].article_id + '">PDF</a> ( <span style="color: red">' + arr[i].pdf_num + '</span> )'
|
||||
}
|
||||
if ((Math.round(Date.parse(new Date()) / 1000) - arr[i].ctime) / 86400 >= 21) {
|
||||
var tong_geogle = '<a href = "https://scholar.google.com/scholar?&q=' + arr[i].title.replace('<i>', '').replace('</i>', '').replace(new RegExp('"', "g"), '') + '"' +
|
||||
'target = "_blank" style="color: ' + localStorage.Journals_color + ';margin-left: 10px;font-weight: 600;"> ' +
|
||||
'Google Scholar</a>' //搜索引用次数
|
||||
} else {
|
||||
var tong_geogle = '' //少于21天隐藏
|
||||
}
|
||||
if (arr[i].article_id == '172') {
|
||||
var mp4_ = '<a href="https://youtu.be/3eDbnHRkFKQ" target="_blank"><img src="img/link_5.png" width="50" height="16" style="margin-left: 10px"></a>'
|
||||
} else {
|
||||
var mp4_ = ''
|
||||
}
|
||||
if (arr[i].icon == '') {
|
||||
var img_i = 'img/baiss.png'
|
||||
} else {
|
||||
var img_i = imgarticleUrl + arr[i].icon
|
||||
}
|
||||
|
||||
if (arr[i].other_state == 0) {
|
||||
var otStat = ''
|
||||
} else if (arr[i].other_state == 1) {
|
||||
var otStat = '<span class="otStat">Editorial Expression of Concern</span>'
|
||||
} else if (arr[i].other_state == 2) {
|
||||
var otStat = '<span class="otStat">Retracted</span>'
|
||||
}
|
||||
|
||||
if (arr[i].isShowOtime == 1) {
|
||||
if (arr[i].pub_date == '') {
|
||||
var pub_date = ''
|
||||
} else {
|
||||
var pub_date = '<div class="url_data">Published Date: ' + arr[i].pub_date + '</div>'
|
||||
}
|
||||
} else {
|
||||
var pub_date = ''
|
||||
}
|
||||
if (arr[i].article_id == '86' || arr[i].article_id == '176' || arr[i].article_id == '455' || arr[i].article_id == '400' || arr[i].article_id == '145' || arr[i].article_id == '116' || arr[i].article_id == '717' || arr[i].article_id == '632' || arr[i].article_id == '24') {
|
||||
var person_img = '<img src="' + img_i + '" alt="" style="width: 120px">'
|
||||
} else {
|
||||
var person_img = '<img src="' + img_i + '" alt="">'
|
||||
}
|
||||
|
||||
arr[i].abstract = arr[i].abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||||
|
||||
var link_ = '<img src="img/link_1.png" width="14" height="16"><a class="txt_zhaiyao" alt="' + arr[i].article_id + '">Abstract</a> ( <span style="color: red">' + arr[i].abs_num + '</span> ) ' +
|
||||
html_ + pdf_ + mp4_ +
|
||||
'<button class="txt_copy">Cite this article<ul class="export"><li id="txt_copy_' + i + '" class="Exc_1">>> Copy citation information</li><li class="Exc_2"><i class="fa fa-download"></i> Export citation to EndNote</li><li class="Exc_3"><i class="fa fa-download"></i> Export citation to RIS</li><li class="Exc_4"><i class="fa fa-download"></i> Export citation to BibTex</li><li class="Exc_5"><i class="fa fa-download"></i> Export citation to txt</li><div class="triangle"></div></ul></button>' +
|
||||
tong_geogle + '<p class="txt_content">' + arr[i].cite + '</p>' +
|
||||
'<div>' + arr[i].abstract + '</div>';
|
||||
|
||||
if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||||
var maxwidth = 500;//显示多少字符
|
||||
if (arr[i].abstract.length > maxwidth) {
|
||||
var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||||
abstNew = abstNew.substring(0, maxwidth)
|
||||
abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||||
var trad_tion = '<div>' + abstNew + '...</div>'
|
||||
} else {
|
||||
var trad_tion = '<div>' + arr[i].abstract + '</div>'
|
||||
}
|
||||
} else {
|
||||
var trad_tion = '<div><h3>' + arr[i].tradition_tag + '</h3><p>' + arr[i].tradition + '</p></div>'
|
||||
}
|
||||
|
||||
|
||||
var lr_top = ''
|
||||
for (var t = 0; t < arr[i].topic.length; t++) {
|
||||
lr_top += '<a href="topic_list.html?J_num=' + Jour_num + '&t_id=' + arr[i].topic[t].journal_topic_id + '" target="_blank">' + arr[i].topic[t].title + '</a>'
|
||||
}
|
||||
|
||||
sgr += '<li><div class="dbt_header">' + arr[i].type + pub_date + '<div class="url_top">' + lr_top + '</div></div>' +
|
||||
'<a id="' + arr[i].article_id + '" target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '" class="txt_biaoti">' + otStat + arr[i].title + '</a>' +
|
||||
'<div class="authorList"><span class="fo_fam">' + arr[i].authortitle + ' </span><br>'
|
||||
+ localStorage.getItem("Journals_title") + '. ' + arr[i].stage_year + ', ' + arr[i].stage_vol + stage_ + npp_ +
|
||||
'<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
||||
'</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv">' + person_img + '</a>'
|
||||
+ trad_tion + '<br clear="both"></div></li>'
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if (n_ == "0") {
|
||||
str = ''
|
||||
} else {
|
||||
str = '<h4 class="rgb_color" style="color: ' + localStorage.Journals_color + '">News</h4><ul>' + str + '</ul>' + '<div style="height: 15px;background-color: #f4fafd;margin-left: -15px;margin-right: -15px;">'
|
||||
}
|
||||
if (c_ == "0") {
|
||||
sgr = ''
|
||||
} else {
|
||||
sgr = '</div><h4 class="rgb_color" style="color: ' + localStorage.Journals_color + '">Comment</h4><ul>' + sgr + '</ul>'
|
||||
}
|
||||
|
||||
|
||||
$('.wenz_list').html(str + sgr);
|
||||
$('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||||
|
||||
// 点击Abstract显示隐藏
|
||||
$('.txt_zhaiyao').click(function () {
|
||||
$(this).nextAll('div').toggle();
|
||||
if ($(this).nextAll('div').css("display") == 'block') {
|
||||
var num = $(this).next().html();
|
||||
$.ajax({
|
||||
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||||
data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||||
success: function (result) {
|
||||
if (result.code == 0) {
|
||||
num = num * 1 + 1 * 1
|
||||
}
|
||||
}
|
||||
})
|
||||
$.ajax({
|
||||
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||||
data: { 'type': Jour_num, 'is_detail': '1' },
|
||||
success: function (result) {
|
||||
}
|
||||
});
|
||||
$(this).next().html(num);
|
||||
}
|
||||
})
|
||||
$('.txt_html').click(function () {
|
||||
var num = $(this).next().html();
|
||||
$.ajax({
|
||||
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||||
data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||||
success: function (result) {
|
||||
if (result.code == 0) {
|
||||
num = num * 1 + 1 * 1
|
||||
}
|
||||
}
|
||||
})
|
||||
$.ajax({
|
||||
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||||
data: { 'type': Jour_num, 'is_detail': '1' },
|
||||
success: function (result) {
|
||||
}
|
||||
});
|
||||
$(this).next().html(num);
|
||||
})
|
||||
$('.txt_pdf').click(function () {
|
||||
var num = $(this).next().html();
|
||||
$.ajax({
|
||||
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||||
data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||||
success: function (result) {
|
||||
if (result.code == 0) {
|
||||
num = num * 1 + 1 * 1
|
||||
}
|
||||
}
|
||||
})
|
||||
$.ajax({
|
||||
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||||
data: { 'type': Jour_num, 'is_detail': '1' },
|
||||
success: function (result) {
|
||||
}
|
||||
});
|
||||
$(this).next().html(num);
|
||||
})
|
||||
|
||||
// 点击弹窗出现 复制和下载
|
||||
$('.txt_content').css('display', 'none');
|
||||
$('.export').css('display', 'none');
|
||||
$(document).click(function (e) {
|
||||
if (!$(e.target).is('.export') && !$(e.target).is('.txt_copy')) {
|
||||
$('.export').hide();
|
||||
}
|
||||
})
|
||||
$('.txt_copy').click(function () {
|
||||
$('.export').css('display', 'none');
|
||||
$(this).find('.export').fadeIn(200);
|
||||
})
|
||||
$('.Exc_1').click(function () {
|
||||
var content_ = $(this).parents('.txt_copy').nextAll('.txt_content').text();
|
||||
var clipboard = new Clipboard('#' + $(this).attr('id'), {
|
||||
text: function () {
|
||||
return content_;
|
||||
}
|
||||
})
|
||||
clipboard.on('success', function (e) {
|
||||
ShowSuccess("Citation information has been copied!");
|
||||
});
|
||||
})
|
||||
$('.Exc_2').click(function () {
|
||||
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||||
$.ajax({
|
||||
type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||||
data: { "article_id": ecx_id },
|
||||
success: function (result) {
|
||||
var a = document.createElement('a');
|
||||
a.href = result.data.url;
|
||||
a.download = ''
|
||||
a.click();
|
||||
}
|
||||
})
|
||||
})
|
||||
$('.Exc_3').click(function () {
|
||||
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||||
$.ajax({
|
||||
type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||||
data: { "article_id": ecx_id },
|
||||
success: function (result) {
|
||||
var a = document.createElement('a');
|
||||
a.href = result.data.url;
|
||||
a.download = ''
|
||||
a.click();
|
||||
}
|
||||
})
|
||||
})
|
||||
$('.Exc_4').click(function () {
|
||||
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||||
$.ajax({
|
||||
type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||||
data: { "article_id": ecx_id },
|
||||
success: function (result) {
|
||||
var a = document.createElement('a');
|
||||
a.href = result.data.url;
|
||||
a.download = ''
|
||||
a.click();
|
||||
}
|
||||
})
|
||||
})
|
||||
$('.Exc_5').click(function () {
|
||||
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||||
$.ajax({
|
||||
type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||||
data: { "article_id": ecx_id },
|
||||
success: function (result) {
|
||||
var a = document.createElement('a');
|
||||
a.href = result.data.url;
|
||||
a.download = ''
|
||||
a.click();
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
} else {
|
||||
ShowDanger("请求失败!");
|
||||
}
|
||||
},
|
||||
error: function () {
|
||||
ShowDanger("error!");
|
||||
}
|
||||
})
|
||||
return false;
|
||||
}, lang: {
|
||||
firstPageText: 'First page',
|
||||
firstPageTipText: 'First page',
|
||||
lastPageText: 'Last page',
|
||||
lastPageTipText: 'Last page',
|
||||
prePageText: 'Previous page',
|
||||
prePageTipText: 'Previous page',
|
||||
nextPageText: 'Next page',
|
||||
nextPageTipText: 'Next page',
|
||||
totalPageBeforeText: '',
|
||||
totalPageAfterText: '',
|
||||
currPageBeforeText: 'on page ',
|
||||
currPageAfterText: '',
|
||||
totalInfoSplitStr: ' of ',
|
||||
totalRecordsBeforeText: '',
|
||||
totalRecordsAfterText: '',
|
||||
gopageBeforeText: ' Go to page',
|
||||
gopageButtonOkText: 'Go',
|
||||
gopageAfterText: 'page',
|
||||
buttonTipBeforeText: '第',
|
||||
buttonTipAfterText: '页'
|
||||
}
|
||||
});
|
||||
|
||||
} else {
|
||||
ShowDanger("请求失败!");
|
||||
}
|
||||
@@ -2675,7 +3135,6 @@ function at_list() {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// News点进去的文章列表
|
||||
if (new_ID != null) {
|
||||
// News
|
||||
|
||||
Reference in New Issue
Block a user