From 0092fffba357f90e36055f7d9fe519ebe42f66b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Wed, 25 Sep 2024 16:34:51 +0800 Subject: [PATCH] kongge --- js/articleJS/index.js | 4 ++-- js/journal.js | 4 ++-- js/scientist/index.js | 4 ++-- jstmr/journal.js | 54 +++++++++++++++++++++---------------------- 4 files changed, 33 insertions(+), 33 deletions(-) diff --git a/js/articleJS/index.js b/js/articleJS/index.js index 5580d50..96e64ee 100644 --- a/js/articleJS/index.js +++ b/js/articleJS/index.js @@ -65,10 +65,10 @@ function commonGetItemHtml(doc) { if (data.file_html == '') { baseInfo.html_ = '' } else { - baseInfo.html_ = 'HTML ( ' + data.html_num + ' )' + baseInfo.html_ = 'HTML ( ' + data.html_num + ' )  ' } } else { - baseInfo.html_ = 'HTML ( ' + data.html_num + ' )' + baseInfo.html_ = 'HTML ( ' + data.html_num + ' )  ' } diff --git a/js/journal.js b/js/journal.js index 18c8638..5f88469 100644 --- a/js/journal.js +++ b/js/journal.js @@ -168,10 +168,10 @@ function bf_list() { if (arr[i].file_html == '') { var html_ = '' } else { - var html_ = 'HTML ( ' + arr[i].html_num + ' )' + var html_ = 'HTML ( ' + arr[i].html_num + ' )  ' } } else { - var html_ = 'HTML ( ' + arr[i].html_num + ' )' + var html_ = 'HTML ( ' + arr[i].html_num + ' )  ' } if (arr[i].file_pdf == '') { var pdf_ = '' diff --git a/js/scientist/index.js b/js/scientist/index.js index 324a0f8..b08a100 100644 --- a/js/scientist/index.js +++ b/js/scientist/index.js @@ -67,10 +67,10 @@ function commonGetItemHtml(doc,maxwidth) { if (data.file_html == '') { baseInfo.html_ = '' } else { - baseInfo.html_ = 'HTML ( ' + data.html_num + ' )' + baseInfo.html_ = 'HTML ( ' + data.html_num + ' )  ' } } else { - baseInfo.html_ = 'HTML ( ' +data.html_num + ' )' + baseInfo.html_ = 'HTML ( ' +data.html_num + ' )  ' } // if (data.mains == '') { // if (data.file_html == '') { diff --git a/jstmr/journal.js b/jstmr/journal.js index 6d7166b..6123372 100644 --- a/jstmr/journal.js +++ b/jstmr/journal.js @@ -4,7 +4,7 @@ function bf_list() { // 增加访问次数 $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': Jour_num}, + data: { 'type': Jour_num }, success: function (result) { if (result.code == 0) { @@ -183,10 +183,10 @@ function bf_list() { if (arr[i].file_html == '') { var html_ = '' } else { - var html_ = 'HTML ( ' + arr[i].html_num + ' )' + var html_ = 'HTML ( ' + arr[i].html_num + ' )  ' } } else { - var html_ = 'HTML ( ' + arr[i].html_num + ' )' + var html_ = 'HTML ( ' + arr[i].html_num + ' )  ' } if (arr[i].file_pdf == '') { var pdf_ = '' @@ -252,14 +252,14 @@ function bf_list() { var c_t_a = '' var link_ = 'Abstract ( ' + arr[i].abs_num + ' )   ' + - html_ + pdf_ + mp4_ + c_t_a + cite_+ tong_geogle + html_ + pdf_ + mp4_ + c_t_a + cite_ + tong_geogle + '

' + arr[i].cite + '

' + arr[i].abstract + '
'; var lr_top = '' if (arr[i].topic && arr[i].topic.length > 0) { - for (var t = 0; t < arr[i].topic.length; t++) { - lr_top += '' + arr[i].topic[t].title + '' + for (var t = 0; t < arr[i].topic.length; t++) { + lr_top += '' + arr[i].topic[t].title + '' + } } - } if (arr[i].tradition_tag == '') { @@ -323,7 +323,7 @@ function bf_list() { var num = $(this).next().html(); $.ajax({ 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) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -332,7 +332,7 @@ function bf_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': Jour_num, 'is_detail': '1'}, + data: { 'type': Jour_num, 'is_detail': '1' }, success: function (result) { } }); @@ -343,7 +343,7 @@ function bf_list() { var num = $(this).next().html(); $.ajax({ 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) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -352,7 +352,7 @@ function bf_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': Jour_num, 'is_detail': '1'}, + data: { 'type': Jour_num, 'is_detail': '1' }, success: function (result) { } }); @@ -362,7 +362,7 @@ function bf_list() { var num = $(this).next().html(); $.ajax({ 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) { if (result.code == 0) { num = num * 1 + 1 * 1 @@ -371,7 +371,7 @@ function bf_list() { }) $.ajax({ type: 'post', url: apiUrl + 'super/Publish/addVisitNum', - data: {'type': Jour_num, 'is_detail': '1'}, + data: { 'type': Jour_num, 'is_detail': '1' }, success: function (result) { } }); @@ -417,7 +417,7 @@ function bf_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -430,7 +430,7 @@ function bf_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -443,7 +443,7 @@ function bf_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -457,7 +457,7 @@ function bf_list() { 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}, + data: { "article_id": ecx_id }, success: function (result) { var a = document.createElement('a'); a.href = result.data.url; @@ -488,19 +488,19 @@ function bf_list() { $("#mask").hide(); $(".dingyue").fadeOut(); 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 () { $("#mask").hide(); $(".dingyue").fadeOut(); 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 () { $("#mask").hide(); $(".jour_ts").fadeOut(); document.body.removeEventListener('touchmove', bodyScroll, false); - $("body").css({"position": "initial", "height": "auto"}); + $("body").css({ "position": "initial", "height": "auto" }); }); 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>ul').html('
'); - $('#Marquee_x').jcMarquee({'marquee': 'x', 'speed': 20}); + $('#Marquee_x').jcMarquee({ 'marquee': 'x', 'speed': 20 }); $('.ncon_tcrd_tmr h4 span').click(function () { @@ -931,7 +931,7 @@ function bf_list() { } $('.ncon_tcrd_tmr>ul').html('
'); - $('#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; 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++) { 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) { ` } journalCiteStr += `
` - - $('.cite_box .export_cite').html(journalCiteStr); + + $('.cite_box .export_cite').html(journalCiteStr); + - }