This commit is contained in:
2024-09-25 16:34:51 +08:00
parent 94ec00c38c
commit 0092fffba3
4 changed files with 33 additions and 33 deletions

View File

@@ -65,10 +65,10 @@ function commonGetItemHtml(doc) {
if (data.file_html == '') { if (data.file_html == '') {
baseInfo.html_ = '' baseInfo.html_ = ''
} else { } else {
baseInfo.html_ = '<img src="img/link_2.png" width="14" height="16"><a href="' + imgFileUrl + 'articleHTML/' + data.file_html + '" target="_blank" class="txt_html" alt="' + data.article_id + '">HTML</a>&nbsp;(&nbsp;<span style="color: red">' + data.html_num + '</span>&nbsp;)' baseInfo.html_ = '<img src="img/link_2.png" width="14" height="16"><a href="' + imgFileUrl + 'articleHTML/' + data.file_html + '" target="_blank" class="txt_html" alt="' + data.article_id + '">HTML</a>&nbsp;(&nbsp;<span style="color: red">' + data.html_num + '</span>&nbsp;)&nbsp;&nbsp;'
} }
} else { } else {
baseInfo.html_ = '<img src="img/link_2.png" width="14" height="16"><a href="article.html?J_num=' + Jour_num + '&a_id=' + data.article_id + '&s_htm=1" target="_blank" class="txt_html" alt="' + data.article_id + '">HTML</a>&nbsp;(&nbsp;<span style="color: red">' + data.html_num + '</span>&nbsp;)' baseInfo.html_ = '<img src="img/link_2.png" width="14" height="16"><a href="article.html?J_num=' + Jour_num + '&a_id=' + data.article_id + '&s_htm=1" target="_blank" class="txt_html" alt="' + data.article_id + '">HTML</a>&nbsp;(&nbsp;<span style="color: red">' + data.html_num + '</span>&nbsp;)&nbsp;&nbsp;'
} }

View File

@@ -168,10 +168,10 @@ function bf_list() {
if (arr[i].file_html == '') { if (arr[i].file_html == '') {
var html_ = '' var html_ = ''
} else { } 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>&nbsp;(&nbsp;<span style="color: red">' + arr[i].html_num + '</span>&nbsp;)' 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>&nbsp;(&nbsp;<span style="color: red">' + arr[i].html_num + '</span>&nbsp;)&nbsp;&nbsp;'
} }
} else { } 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>&nbsp;(&nbsp;<span style="color: red">' + arr[i].html_num + '</span>&nbsp;)' 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>&nbsp;(&nbsp;<span style="color: red">' + arr[i].html_num + '</span>&nbsp;)&nbsp;&nbsp;'
} }
if (arr[i].file_pdf == '') { if (arr[i].file_pdf == '') {
var pdf_ = '' var pdf_ = ''

View File

@@ -67,10 +67,10 @@ function commonGetItemHtml(doc,maxwidth) {
if (data.file_html == '') { if (data.file_html == '') {
baseInfo.html_ = '' baseInfo.html_ = ''
} else { } else {
baseInfo.html_ = '<img src="img/link_2.png" width="14" height="16"><a href="' + imgFileUrl + 'articleHTML/' + data.file_html + '" target="_blank" class="txt_html" alt="' + data.article_id + '">HTML</a>&nbsp;(&nbsp;<span style="color: red">' + data.html_num + '</span>&nbsp;)' baseInfo.html_ = '<img src="img/link_2.png" width="14" height="16"><a href="' + imgFileUrl + 'articleHTML/' + data.file_html + '" target="_blank" class="txt_html" alt="' + data.article_id + '">HTML</a>&nbsp;(&nbsp;<span style="color: red">' + data.html_num + '</span>&nbsp;)&nbsp;&nbsp;'
} }
} else { } else {
baseInfo.html_ = '<img src="img/link_2.png" width="14" height="16"><a href="article.html?J_num=' + Jour_num + '&a_id=' + data.article_id + '&s_htm=1" target="_blank" class="txt_html" alt="' + data.article_id + '">HTML</a>&nbsp;(&nbsp;<span style="color: red">' +data.html_num + '</span>&nbsp;)' baseInfo.html_ = '<img src="img/link_2.png" width="14" height="16"><a href="article.html?J_num=' + Jour_num + '&a_id=' + data.article_id + '&s_htm=1" target="_blank" class="txt_html" alt="' + data.article_id + '">HTML</a>&nbsp;(&nbsp;<span style="color: red">' +data.html_num + '</span>&nbsp;)&nbsp;&nbsp;'
} }
// if (data.mains == '') { // if (data.mains == '') {
// if (data.file_html == '') { // if (data.file_html == '') {

View File

@@ -4,7 +4,7 @@ function bf_list() {
// 增加访问次数 // 增加访问次数
$.ajax({ $.ajax({
type: 'post', url: apiUrl + 'super/Publish/addVisitNum', type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
data: {'type': Jour_num}, data: { 'type': Jour_num },
success: function (result) { success: function (result) {
if (result.code == 0) { if (result.code == 0) {
@@ -183,10 +183,10 @@ function bf_list() {
if (arr[i].file_html == '') { if (arr[i].file_html == '') {
var html_ = '' var html_ = ''
} else { } 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>&nbsp;(&nbsp;<span style="color: red">' + arr[i].html_num + '</span>&nbsp;)' 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>&nbsp;(&nbsp;<span style="color: red">' + arr[i].html_num + '</span>&nbsp;)&nbsp;&nbsp;'
} }
} else { } 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>&nbsp;(&nbsp;<span style="color: red">' + arr[i].html_num + '</span>&nbsp;)' 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>&nbsp;(&nbsp;<span style="color: red">' + arr[i].html_num + '</span>&nbsp;)&nbsp;&nbsp;'
} }
if (arr[i].file_pdf == '') { if (arr[i].file_pdf == '') {
var pdf_ = '' var pdf_ = ''
@@ -252,14 +252,14 @@ function bf_list() {
var c_t_a = '<button class="txt_copy cite_txt_button">&nbsp;<img src="img/link_7.jpg" width="14" height="16">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>' var c_t_a = '<button class="txt_copy cite_txt_button">&nbsp;<img src="img/link_7.jpg" width="14" height="16">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>'
var link_ = '<img src="img/link_1.png" width="14" height="16"><a class="txt_zhaiyao" alt="' + arr[i].article_id + '">Abstract</a>&nbsp;(&nbsp;<span style="color: red">' + arr[i].abs_num + '</span>&nbsp;)&nbsp;&nbsp;&nbsp;' + var link_ = '<img src="img/link_1.png" width="14" height="16"><a class="txt_zhaiyao" alt="' + arr[i].article_id + '">Abstract</a>&nbsp;(&nbsp;<span style="color: red">' + arr[i].abs_num + '</span>&nbsp;)&nbsp;&nbsp;&nbsp;' +
html_ + pdf_ + mp4_ + c_t_a + cite_+ tong_geogle html_ + pdf_ + mp4_ + c_t_a + cite_ + tong_geogle
+ '<p class="txt_content">' + arr[i].cite + '</p><div>' + arr[i].abstract + '</div>'; + '<p class="txt_content">' + arr[i].cite + '</p><div>' + arr[i].abstract + '</div>';
var lr_top = '' var lr_top = ''
if (arr[i].topic && arr[i].topic.length > 0) { if (arr[i].topic && arr[i].topic.length > 0) {
for (var t = 0; t < arr[i].topic.length; t++) { 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>' 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>'
}
} }
}
if (arr[i].tradition_tag == '') { if (arr[i].tradition_tag == '') {
@@ -323,7 +323,7 @@ function bf_list() {
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
@@ -332,7 +332,7 @@ function bf_list() {
}) })
$.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) {
} }
}); });
@@ -343,7 +343,7 @@ function bf_list() {
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
@@ -352,7 +352,7 @@ function bf_list() {
}) })
$.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) {
} }
}); });
@@ -362,7 +362,7 @@ function bf_list() {
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
@@ -371,7 +371,7 @@ function bf_list() {
}) })
$.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) {
} }
}); });
@@ -417,7 +417,7 @@ function bf_list() {
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;
@@ -430,7 +430,7 @@ function bf_list() {
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;
@@ -443,7 +443,7 @@ function bf_list() {
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;
@@ -457,7 +457,7 @@ function bf_list() {
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;
@@ -488,19 +488,19 @@ function bf_list() {
$("#mask").hide(); $("#mask").hide();
$(".dingyue").fadeOut(); $(".dingyue").fadeOut();
document.body.removeEventListener('touchmove', bodyScroll, false); document.body.removeEventListener('touchmove', bodyScroll, false);
$("body").css({"position": "initial", "height": "auto"}); $("body").css({ "position": "initial", "height": "auto" });
}); });
$(".top .dingyue input.yue_close").click(function () { $(".top .dingyue input.yue_close").click(function () {
$("#mask").hide(); $("#mask").hide();
$(".dingyue").fadeOut(); $(".dingyue").fadeOut();
document.body.removeEventListener('touchmove', bodyScroll, false); document.body.removeEventListener('touchmove', bodyScroll, false);
$("body").css({"position": "initial", "height": "auto"}); $("body").css({ "position": "initial", "height": "auto" });
}); });
$(".top .jour_ts input.tishi_author").click(function () { $(".top .jour_ts input.tishi_author").click(function () {
$("#mask").hide(); $("#mask").hide();
$(".jour_ts").fadeOut(); $(".jour_ts").fadeOut();
document.body.removeEventListener('touchmove', bodyScroll, false); document.body.removeEventListener('touchmove', bodyScroll, false);
$("body").css({"position": "initial", "height": "auto"}); $("body").css({ "position": "initial", "height": "auto" });
}); });
function bodyScroll(event) { function bodyScroll(event) {
@@ -885,7 +885,7 @@ function bf_list() {
$('.ncon_tcrd_tmr>a').attr('href', 'article_list.html?J_num=' + Jour_num + '&cite_id=1'); $('.ncon_tcrd_tmr>a').attr('href', 'article_list.html?J_num=' + Jour_num + '&cite_id=1');
$('.ncon_tcrd_tmr>ul').html('<div id="Marquee_x"><ul><li>' + str + '</li></ul></div>'); $('.ncon_tcrd_tmr>ul').html('<div id="Marquee_x"><ul><li>' + str + '</li></ul></div>');
$('#Marquee_x').jcMarquee({'marquee': 'x', 'speed': 20}); $('#Marquee_x').jcMarquee({ 'marquee': 'x', 'speed': 20 });
$('.ncon_tcrd_tmr h4 span').click(function () { $('.ncon_tcrd_tmr h4 span').click(function () {
@@ -931,7 +931,7 @@ function bf_list() {
} }
$('.ncon_tcrd_tmr>ul').html('<div id="Marquee_x"><ul><li>' + str + '</li></ul></div>'); $('.ncon_tcrd_tmr>ul').html('<div id="Marquee_x"><ul><li>' + str + '</li></ul></div>');
$('#Marquee_x').jcMarquee({'marquee': 'x', 'speed': 20}); $('#Marquee_x').jcMarquee({ 'marquee': 'x', 'speed': 20 });
} }
} }
@@ -1010,12 +1010,12 @@ function bf_list() {
var new_arry = result.data.topic; var new_arry = result.data.topic;
new_arry = old_arry.map(o => { new_arry = old_arry.map(o => {
return {id: o.base_topic_id, text: o.title} return { id: o.base_topic_id, text: o.title }
}) })
for (var i = 0; i < old_arry.length; i++) { for (var i = 0; i < old_arry.length; i++) {
new_arry[i].children = old_arry[i].children.map(o => { new_arry[i].children = old_arry[i].children.map(o => {
return {id: o.base_topic_id, text: o.title} return { id: o.base_topic_id, text: o.title }
}) })
} }
@@ -1326,11 +1326,11 @@ function getCiteList(a_ID) {
</div> ` </div> `
} }
journalCiteStr += ` <div class="cite_triangle"></div>` journalCiteStr += ` <div class="cite_triangle"></div>`
$('.cite_box .export_cite').html(journalCiteStr); $('.cite_box .export_cite').html(journalCiteStr);
} }