首页没有模块 News & Comment 暂时注释掉接口 api/Main/getNewsArticles
This commit is contained in:
144
js/scientist.js
144
js/scientist.js
@@ -7,7 +7,7 @@ $('.footer').load('footer_in.html')
|
|||||||
|
|
||||||
// 首页内容
|
// 首页内容
|
||||||
function scien_list() {
|
function scien_list() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -169,27 +169,27 @@ function sy_index() {
|
|||||||
// + arr[i].title + '</p></a></div>'
|
// + arr[i].title + '</p></a></div>'
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
$('.sy_npar div.tpoce_con3').css({
|
$('.sy_npar div.tpoce_con3').css({
|
||||||
'margin-top':'10px'
|
'margin-top': '10px'
|
||||||
})
|
})
|
||||||
$('.npar_one .tpoce_con2').css({
|
$('.npar_one .tpoce_con2').css({
|
||||||
'margin':'30px 0px 0 15px',
|
'margin': '30px 0px 0 15px',
|
||||||
'width':'755px',
|
'width': '755px',
|
||||||
'height':'580px',
|
'height': '580px',
|
||||||
'display':'grid',
|
'display': 'grid',
|
||||||
'grid-template-columns':'repeat(3, 1fr)',
|
'grid-template-columns': 'repeat(3, 1fr)',
|
||||||
'gap':'15px',
|
'gap': '15px',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
$('.sy_npar>div>a').attr('href', 'artihom_list_pid.html?J_num=' + Jour_num + '&p_id=' + Jour_num);
|
$('.sy_npar>div>a').attr('href', 'artihom_list_pid.html?J_num=' + Jour_num + '&p_id=' + Jour_num);
|
||||||
$('.sy_npar .tpoce_con1').html(str1);
|
$('.sy_npar .tpoce_con1').html(str1);
|
||||||
$('.sy_npar .tpoce_con2').html(str2_1 + str2_2 + '<br clear="both">');
|
$('.sy_npar .tpoce_con2').html(str2_1 + str2_2 + '<br clear="both">');
|
||||||
$('.sy_npar div.tpoce_con2 > div').css({
|
$('.sy_npar div.tpoce_con2 > div').css({
|
||||||
'width':'100%'
|
'width': '100%'
|
||||||
})
|
})
|
||||||
$('.sy_npar div.tpoce_con2 > div img').css({
|
$('.sy_npar div.tpoce_con2 > div img').css({
|
||||||
'height':'140px'
|
'height': '140px'
|
||||||
})
|
})
|
||||||
// $('.sy_npar .tpoce_con3').html(str3);
|
// $('.sy_npar .tpoce_con3').html(str3);
|
||||||
if (arr == '') {
|
if (arr == '') {
|
||||||
@@ -249,73 +249,73 @@ $('.npar_one .tpoce_con2').css({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 暂时注释掉接口调用 api/Main/getNewsArticles 2026/05/09
|
||||||
// 中下侧News & Comment文章
|
// 中下侧News & Comment文章
|
||||||
$.ajax({
|
// $.ajax({
|
||||||
type: 'post', url: apiUrl + 'api/Main/getNewsArticles',
|
// type: 'post', url: apiUrl + 'api/Main/getNewsArticles',
|
||||||
data: {
|
// data: {
|
||||||
"type": 'News'
|
// "type": 'News'
|
||||||
},
|
// },
|
||||||
success: function (result) {
|
// success: function (result) {
|
||||||
if (result.code == 0) {
|
// if (result.code == 0) {
|
||||||
|
|
||||||
var arr = result.data.articles;
|
// var arr = result.data.articles;
|
||||||
var str = "";
|
// var str = "";
|
||||||
var j = 0;
|
// var j = 0;
|
||||||
for (var i = 0; i < arr.length; i++) {
|
// for (var i = 0; i < arr.length; i++) {
|
||||||
if (j == 2) break;
|
// if (j == 2) break;
|
||||||
str += '<li><a target="_blank" href="article.html?J_num=' + arr[i].journal_id + '&a_id=' + arr[i].article_id + '"><img src="' + imgarticleUrl + arr[i].icon + '" alt=""></a>' +
|
// str += '<li><a target="_blank" href="article.html?J_num=' + arr[i].journal_id + '&a_id=' + arr[i].article_id + '"><img src="' + imgarticleUrl + arr[i].icon + '" alt=""></a>' +
|
||||||
'<h6><a target="_blank" href="article.html?J_num=' + arr[i].journal_id + '&a_id=' + arr[i].article_id + '">' + arr[i].title + '</a></h6>' +
|
// '<h6><a target="_blank" href="article.html?J_num=' + arr[i].journal_id + '&a_id=' + arr[i].article_id + '">' + arr[i].title + '</a></h6>' +
|
||||||
'<div>' + arr[i].abbr + ' | ' + arr[i].stage_year + ' | <span><a style="color: #006699" target="_blank" href="/' + arr[i].usx + '">' + arr[i].journal_short + '</a><span></div></li>'
|
// '<div>' + arr[i].abbr + ' | ' + arr[i].stage_year + ' | <span><a style="color: #006699" target="_blank" href="/' + arr[i].usx + '">' + arr[i].journal_short + '</a><span></div></li>'
|
||||||
j += 1;
|
// j += 1;
|
||||||
}
|
// }
|
||||||
|
|
||||||
$('.sy_nct>div>div>a').attr('href', 'artihom_list_newid.html?J_num=' + Jour_num + '&new_id=' + Jour_num);
|
// $('.sy_nct>div>div>a').attr('href', 'artihom_list_newid.html?J_num=' + Jour_num + '&new_id=' + Jour_num);
|
||||||
$('.sy_nct>div>div:nth-child(1)>ul').html(str);
|
// $('.sy_nct>div>div:nth-child(1)>ul').html(str);
|
||||||
|
|
||||||
} else {
|
// } else {
|
||||||
// ShowDanger("请求失败!");
|
// // ShowDanger("请求失败!");
|
||||||
$('.sy_nct').css('display', 'none')
|
// $('.sy_nct').css('display', 'none')
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
error: function () {
|
// error: function () {
|
||||||
ShowDanger("error!");
|
// ShowDanger("error!");
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
|
|
||||||
$.ajax({
|
// $.ajax({
|
||||||
type: 'post', url: apiUrl + 'api/Main/getNewsArticles',
|
// type: 'post', url: apiUrl + 'api/Main/getNewsArticles',
|
||||||
data: {
|
// data: {
|
||||||
"type": 'Comment'
|
// "type": 'Comment'
|
||||||
},
|
// },
|
||||||
success: function (result) {
|
// success: function (result) {
|
||||||
if (result.code == 0) {
|
// if (result.code == 0) {
|
||||||
|
|
||||||
var arr = result.data.articles;
|
// var arr = result.data.articles;
|
||||||
var str = "";
|
// var str = "";
|
||||||
var j = 0;
|
// var j = 0;
|
||||||
for (var i = 0; i < arr.length; i++) {
|
// for (var i = 0; i < arr.length; i++) {
|
||||||
if (j == 2) break;
|
// if (j == 2) break;
|
||||||
str += '<li><a target="_blank" href="article.html?J_num=' + arr[i].journal_id + '&a_id=' + arr[i].article_id + '"><img src="' + imgarticleUrl + arr[i].icon + '" alt=""></a>' +
|
// str += '<li><a target="_blank" href="article.html?J_num=' + arr[i].journal_id + '&a_id=' + arr[i].article_id + '"><img src="' + imgarticleUrl + arr[i].icon + '" alt=""></a>' +
|
||||||
'<h6><a target="_blank" href="article.html?J_num=' + arr[i].journal_id + '&a_id=' + arr[i].article_id + '">' + arr[i].title + '</a></h6>' +
|
// '<h6><a target="_blank" href="article.html?J_num=' + arr[i].journal_id + '&a_id=' + arr[i].article_id + '">' + arr[i].title + '</a></h6>' +
|
||||||
'<div>' + arr[i].abbr + ' | ' + arr[i].stage_year + ' | <span><a style="color: #006699" target="_blank" href="/' + arr[i].usx + '">' + arr[i].journal_short + '</a><span></div></li>'
|
// '<div>' + arr[i].abbr + ' | ' + arr[i].stage_year + ' | <span><a style="color: #006699" target="_blank" href="/' + arr[i].usx + '">' + arr[i].journal_short + '</a><span></div></li>'
|
||||||
j += 1;
|
// j += 1;
|
||||||
}
|
// }
|
||||||
|
|
||||||
$('.sy_nct>div>div>a').attr('href', 'artihom_list_conid.html?J_num=' + Jour_num + '&con_id=' + Jour_num);
|
// $('.sy_nct>div>div>a').attr('href', 'artihom_list_conid.html?J_num=' + Jour_num + '&con_id=' + Jour_num);
|
||||||
$('.sy_nct>div>div:nth-child(2)>ul').html(str);
|
// $('.sy_nct>div>div:nth-child(2)>ul').html(str);
|
||||||
|
|
||||||
} else {
|
|
||||||
// ShowDanger("请求失败!");
|
|
||||||
$('.sy_nct').css('display', 'none')
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error: function () {
|
|
||||||
ShowDanger("error!");
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
// } else {
|
||||||
|
// // ShowDanger("请求失败!");
|
||||||
|
// $('.sy_nct').css('display', 'none')
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
// error: function () {
|
||||||
|
// ShowDanger("error!");
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
|
||||||
|
// 暂时注释掉接口调用 2026/05/09
|
||||||
// 中下侧News & Comment文章
|
// 中下侧News & Comment文章
|
||||||
// $.ajax({
|
// $.ajax({
|
||||||
// type: 'post', url: apiUrl + 'api/Main/getNewsArticles',
|
// type: 'post', url: apiUrl + 'api/Main/getNewsArticles',
|
||||||
|
|||||||
86
js/search.js
86
js/search.js
@@ -54,6 +54,20 @@ function scout_home() {
|
|||||||
|
|
||||||
// 期刊列表搜索
|
// 期刊列表搜索
|
||||||
function scout_jour() {
|
function scout_jour() {
|
||||||
|
const style = document.createElement('style');
|
||||||
|
style.innerHTML = `.article{
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
}
|
||||||
|
.footer .daohang ul{
|
||||||
|
width: 26% !important;
|
||||||
|
|
||||||
|
}
|
||||||
|
.footer .daohang ul:nth-child(4) {
|
||||||
|
width: 12% !important;
|
||||||
|
}
|
||||||
|
`
|
||||||
|
document.head.appendChild(style);
|
||||||
// 获取地址栏信息
|
// 获取地址栏信息
|
||||||
function getQueryString(name) {
|
function getQueryString(name) {
|
||||||
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||||||
@@ -169,7 +183,7 @@ function scout_jour() {
|
|||||||
if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||||||
var maxwidth = 500;//显示多少字符
|
var maxwidth = 500;//显示多少字符
|
||||||
if (arr[i].abstract.length > maxwidth) {
|
if (arr[i].abstract.length > maxwidth) {
|
||||||
var abstNew= arr[i].abstract.replace(/<.*?>/ig,"")
|
var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||||||
abstNew = abstNew.substring(0, maxwidth)
|
abstNew = abstNew.substring(0, maxwidth)
|
||||||
abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||||||
var trad_tion = '<div>' + abstNew + '...</div>'
|
var trad_tion = '<div>' + abstNew + '...</div>'
|
||||||
@@ -191,7 +205,7 @@ function scout_jour() {
|
|||||||
+ localStorage.getItem("Journals_title") + '. ' + arr[i].stage.stage_year + ', ' + arr[i].stage.stage_vol + stage_ + npp_ +
|
+ localStorage.getItem("Journals_title") + '. ' + arr[i].stage.stage_year + ', ' + arr[i].stage.stage_vol + stage_ + npp_ +
|
||||||
'<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
'<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"><img src="' + img_i + '" alt=""></a>'
|
'</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv"><img src="' + img_i + '" alt=""></a>'
|
||||||
+ trad_tion +'<br clear="both"></div></li>'
|
+ trad_tion + '<br clear="both"></div></li>'
|
||||||
}
|
}
|
||||||
$('.wenz_list>ul').html(str);
|
$('.wenz_list>ul').html(str);
|
||||||
$('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
$('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||||||
@@ -203,7 +217,7 @@ function scout_jour() {
|
|||||||
var num = $(this).next().html();
|
var num = $(this).next().html();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||||||
data: {"article_id": $(this).attr('alt'), "type": 'abs'},
|
data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
if (result.code == 0) {
|
if (result.code == 0) {
|
||||||
num = num * 1 + 1 * 1
|
num = num * 1 + 1 * 1
|
||||||
@@ -212,7 +226,7 @@ function scout_jour() {
|
|||||||
})
|
})
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||||||
data: {'type': Jour_num, 'is_detail': '1'},
|
data: { 'type': Jour_num, 'is_detail': '1' },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -222,7 +236,7 @@ function scout_jour() {
|
|||||||
var num = $(this).next().html();
|
var num = $(this).next().html();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||||||
data: {"article_id": $(this).attr('alt'), "type": 'html'},
|
data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
if (result.code == 0) {
|
if (result.code == 0) {
|
||||||
num = num * 1 + 1 * 1
|
num = num * 1 + 1 * 1
|
||||||
@@ -231,7 +245,7 @@ function scout_jour() {
|
|||||||
})
|
})
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||||||
data: {'type': Jour_num, 'is_detail': '1'},
|
data: { 'type': Jour_num, 'is_detail': '1' },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -241,7 +255,7 @@ function scout_jour() {
|
|||||||
var num = $(this).next().html();
|
var num = $(this).next().html();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||||||
data: {"article_id": $(this).attr('alt'), "type": 'pdf'},
|
data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
if (result.code == 0) {
|
if (result.code == 0) {
|
||||||
num = num * 1 + 1 * 1
|
num = num * 1 + 1 * 1
|
||||||
@@ -250,7 +264,7 @@ function scout_jour() {
|
|||||||
})
|
})
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||||||
data: {'type': Jour_num, 'is_detail': '1'},
|
data: { 'type': Jour_num, 'is_detail': '1' },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -284,7 +298,7 @@ function scout_jour() {
|
|||||||
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||||||
data: {"article_id": ecx_id},
|
data: { "article_id": ecx_id },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
var a = document.createElement('a');
|
var a = document.createElement('a');
|
||||||
a.href = result.data.url;
|
a.href = result.data.url;
|
||||||
@@ -297,7 +311,7 @@ function scout_jour() {
|
|||||||
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||||||
data: {"article_id": ecx_id},
|
data: { "article_id": ecx_id },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
var a = document.createElement('a');
|
var a = document.createElement('a');
|
||||||
a.href = result.data.url;
|
a.href = result.data.url;
|
||||||
@@ -310,7 +324,7 @@ function scout_jour() {
|
|||||||
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||||||
data: {"article_id": ecx_id},
|
data: { "article_id": ecx_id },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
var a = document.createElement('a');
|
var a = document.createElement('a');
|
||||||
a.href = result.data.url;
|
a.href = result.data.url;
|
||||||
@@ -323,7 +337,7 @@ function scout_jour() {
|
|||||||
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||||||
data: {"article_id": ecx_id},
|
data: { "article_id": ecx_id },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
var a = document.createElement('a');
|
var a = document.createElement('a');
|
||||||
a.href = result.data.url;
|
a.href = result.data.url;
|
||||||
@@ -437,7 +451,7 @@ function scout_jour() {
|
|||||||
if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||||||
var maxwidth = 500;//显示多少字符
|
var maxwidth = 500;//显示多少字符
|
||||||
if (arr[i].abstract.length > maxwidth) {
|
if (arr[i].abstract.length > maxwidth) {
|
||||||
var abstNew= arr[i].abstract.replace(/<.*?>/ig,"")
|
var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||||||
abstNew = abstNew.substring(0, maxwidth)
|
abstNew = abstNew.substring(0, maxwidth)
|
||||||
abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||||||
var trad_tion = '<div>' + abstNew + '...</div>'
|
var trad_tion = '<div>' + abstNew + '...</div>'
|
||||||
@@ -459,7 +473,7 @@ function scout_jour() {
|
|||||||
+ localStorage.getItem("Journals_title") + '. ' + arr[i].stage.stage_year + ', ' + arr[i].stage.stage_vol + stage_ + npp_ +
|
+ localStorage.getItem("Journals_title") + '. ' + arr[i].stage.stage_year + ', ' + arr[i].stage.stage_vol + stage_ + npp_ +
|
||||||
'<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
'<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"><img src="' + img_i + '" alt=""></a>'
|
'</div><div class="links_">' + link_ + '</div><div class="apwrap"><a onclick="imgbig(this)" class="imgdiv"><img src="' + img_i + '" alt=""></a>'
|
||||||
+ trad_tion +'<br clear="both"></div></li>'
|
+ trad_tion + '<br clear="both"></div></li>'
|
||||||
}
|
}
|
||||||
$('.wenz_list>ul').html(str);
|
$('.wenz_list>ul').html(str);
|
||||||
$('.goup-container').click();
|
$('.goup-container').click();
|
||||||
@@ -474,7 +488,7 @@ function scout_jour() {
|
|||||||
type: 'post',
|
type: 'post',
|
||||||
url: apiUrl + 'yuan/Article/addArticleNum',
|
url: apiUrl + 'yuan/Article/addArticleNum',
|
||||||
async: false,
|
async: false,
|
||||||
data: {"article_id": $(this).attr('alt'), "type": 'abs'},
|
data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
if (result.code == 0) {
|
if (result.code == 0) {
|
||||||
num = num * 1 + 1 * 1
|
num = num * 1 + 1 * 1
|
||||||
@@ -483,7 +497,7 @@ function scout_jour() {
|
|||||||
})
|
})
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||||||
data: {'type': Jour_num, 'is_detail': '1'},
|
data: { 'type': Jour_num, 'is_detail': '1' },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -494,7 +508,7 @@ function scout_jour() {
|
|||||||
var num = $(this).next().html();
|
var num = $(this).next().html();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||||||
data: {"article_id": $(this).attr('alt'), "type": 'html'},
|
data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
if (result.code == 0) {
|
if (result.code == 0) {
|
||||||
num = num * 1 + 1 * 1
|
num = num * 1 + 1 * 1
|
||||||
@@ -503,7 +517,7 @@ function scout_jour() {
|
|||||||
})
|
})
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||||||
data: {'type': Jour_num, 'is_detail': '1'},
|
data: { 'type': Jour_num, 'is_detail': '1' },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -513,7 +527,7 @@ function scout_jour() {
|
|||||||
var num = $(this).next().html();
|
var num = $(this).next().html();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||||||
data: {"article_id": $(this).attr('alt'), "type": 'pdf'},
|
data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
if (result.code == 0) {
|
if (result.code == 0) {
|
||||||
num = num * 1 + 1 * 1
|
num = num * 1 + 1 * 1
|
||||||
@@ -522,7 +536,7 @@ function scout_jour() {
|
|||||||
})
|
})
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||||||
data: {'type': Jour_num, 'is_detail': '1'},
|
data: { 'type': Jour_num, 'is_detail': '1' },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -556,7 +570,7 @@ function scout_jour() {
|
|||||||
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||||||
data: {"article_id": ecx_id},
|
data: { "article_id": ecx_id },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
var a = document.createElement('a');
|
var a = document.createElement('a');
|
||||||
a.href = result.data.url;
|
a.href = result.data.url;
|
||||||
@@ -569,7 +583,7 @@ function scout_jour() {
|
|||||||
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||||||
data: {"article_id": ecx_id},
|
data: { "article_id": ecx_id },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
var a = document.createElement('a');
|
var a = document.createElement('a');
|
||||||
a.href = result.data.url;
|
a.href = result.data.url;
|
||||||
@@ -582,7 +596,7 @@ function scout_jour() {
|
|||||||
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||||||
data: {"article_id": ecx_id},
|
data: { "article_id": ecx_id },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
var a = document.createElement('a');
|
var a = document.createElement('a');
|
||||||
a.href = result.data.url;
|
a.href = result.data.url;
|
||||||
@@ -595,7 +609,7 @@ function scout_jour() {
|
|||||||
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||||||
data: {"article_id": ecx_id},
|
data: { "article_id": ecx_id },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
var a = document.createElement('a');
|
var a = document.createElement('a');
|
||||||
a.href = result.data.url;
|
a.href = result.data.url;
|
||||||
@@ -745,7 +759,7 @@ function scout_jour() {
|
|||||||
if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||||||
var maxwidth = 500;//显示多少字符
|
var maxwidth = 500;//显示多少字符
|
||||||
if (arr[i].abstract.length > maxwidth) {
|
if (arr[i].abstract.length > maxwidth) {
|
||||||
var abstNew= arr[i].abstract.replace(/<.*?>/ig,"")
|
var abstNew = arr[i].abstract.replace(/<.*?>/ig, "")
|
||||||
abstNew = abstNew.substring(0, maxwidth)
|
abstNew = abstNew.substring(0, maxwidth)
|
||||||
abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
abstNew = abstNew.substring(0, maxwidth - abstNew.split(" ").pop().length)
|
||||||
var trad_tion = '<div>' + abstNew + '...</div>'
|
var trad_tion = '<div>' + abstNew + '...</div>'
|
||||||
@@ -767,7 +781,7 @@ function scout_jour() {
|
|||||||
+ localStorage.getItem("Journals_title") + '. ' + arr[i].stage.stage_year + ', ' + arr[i].stage.stage_vol + stage_ + npp_ +
|
+ localStorage.getItem("Journals_title") + '. ' + arr[i].stage.stage_year + ', ' + arr[i].stage.stage_vol + stage_ + npp_ +
|
||||||
'<a target="_blank" href="https://doi.org/' + arr[i].doi + '">' + doi_ + '</a>' +
|
'<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>'
|
'</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>'
|
+ trad_tion + '<br clear="both"></div></li>'
|
||||||
}
|
}
|
||||||
$('.wenz_list>ul').html(str);
|
$('.wenz_list>ul').html(str);
|
||||||
$('.goup-container').click();
|
$('.goup-container').click();
|
||||||
@@ -782,7 +796,7 @@ function scout_jour() {
|
|||||||
type: 'post',
|
type: 'post',
|
||||||
url: apiUrl + 'yuan/Article/addArticleNum',
|
url: apiUrl + 'yuan/Article/addArticleNum',
|
||||||
async: false,
|
async: false,
|
||||||
data: {"article_id": $(this).attr('alt'), "type": 'abs'},
|
data: { "article_id": $(this).attr('alt'), "type": 'abs' },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
if (result.code == 0) {
|
if (result.code == 0) {
|
||||||
num = num * 1 + 1 * 1
|
num = num * 1 + 1 * 1
|
||||||
@@ -791,7 +805,7 @@ function scout_jour() {
|
|||||||
})
|
})
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||||||
data: {'type': Jour_num, 'is_detail': '1'},
|
data: { 'type': Jour_num, 'is_detail': '1' },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -802,7 +816,7 @@ function scout_jour() {
|
|||||||
var num = $(this).next().html();
|
var num = $(this).next().html();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||||||
data: {"article_id": $(this).attr('alt'), "type": 'html'},
|
data: { "article_id": $(this).attr('alt'), "type": 'html' },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
if (result.code == 0) {
|
if (result.code == 0) {
|
||||||
num = num * 1 + 1 * 1
|
num = num * 1 + 1 * 1
|
||||||
@@ -811,7 +825,7 @@ function scout_jour() {
|
|||||||
})
|
})
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||||||
data: {'type': Jour_num, 'is_detail': '1'},
|
data: { 'type': Jour_num, 'is_detail': '1' },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -821,7 +835,7 @@ function scout_jour() {
|
|||||||
var num = $(this).next().html();
|
var num = $(this).next().html();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||||||
data: {"article_id": $(this).attr('alt'), "type": 'pdf'},
|
data: { "article_id": $(this).attr('alt'), "type": 'pdf' },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
if (result.code == 0) {
|
if (result.code == 0) {
|
||||||
num = num * 1 + 1 * 1
|
num = num * 1 + 1 * 1
|
||||||
@@ -830,7 +844,7 @@ function scout_jour() {
|
|||||||
})
|
})
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||||||
data: {'type': Jour_num, 'is_detail': '1'},
|
data: { 'type': Jour_num, 'is_detail': '1' },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -864,7 +878,7 @@ function scout_jour() {
|
|||||||
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
type: 'post', url: apiUrl + 'api/Article/getArticleenw', async: false,
|
||||||
data: {"article_id": ecx_id},
|
data: { "article_id": ecx_id },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
var a = document.createElement('a');
|
var a = document.createElement('a');
|
||||||
a.href = result.data.url;
|
a.href = result.data.url;
|
||||||
@@ -877,7 +891,7 @@ function scout_jour() {
|
|||||||
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
type: 'post', url: apiUrl + 'api/Article/getArticleRis', async: false,
|
||||||
data: {"article_id": ecx_id},
|
data: { "article_id": ecx_id },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
var a = document.createElement('a');
|
var a = document.createElement('a');
|
||||||
a.href = result.data.url;
|
a.href = result.data.url;
|
||||||
@@ -890,7 +904,7 @@ function scout_jour() {
|
|||||||
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
type: 'post', url: apiUrl + 'api/Article/getArticlebib', async: false,
|
||||||
data: {"article_id": ecx_id},
|
data: { "article_id": ecx_id },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
var a = document.createElement('a');
|
var a = document.createElement('a');
|
||||||
a.href = result.data.url;
|
a.href = result.data.url;
|
||||||
@@ -903,7 +917,7 @@ function scout_jour() {
|
|||||||
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
var ecx_id = $(this).parents('.links_').siblings('.txt_biaoti').attr('id')
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
type: 'post', url: apiUrl + 'api/Article/getArticletext', async: false,
|
||||||
data: {"article_id": ecx_id},
|
data: { "article_id": ecx_id },
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
var a = document.createElement('a');
|
var a = document.createElement('a');
|
||||||
a.href = result.data.url;
|
a.href = result.data.url;
|
||||||
|
|||||||
Reference in New Issue
Block a user