From a571a5aed1ad461ea9c27c7e4165f6cba74cd61a 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: Tue, 28 Oct 2025 11:43:27 +0800
Subject: [PATCH] 1
---
header_in.html | 36 ++++---
js/article_v1.js | 4 +-
js/article_v2.js | 5 +
js/commonHomePage.js | 243 +++++++++++++++++++++----------------------
4 files changed, 152 insertions(+), 136 deletions(-)
diff --git a/header_in.html b/header_in.html
index 69ba2e1..61bc179 100644
--- a/header_in.html
+++ b/header_in.html
@@ -1,12 +1,24 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/js/article_v1.js b/js/article_v1.js
index de19b6e..3d0beaa 100644
--- a/js/article_v1.js
+++ b/js/article_v1.js
@@ -384,8 +384,8 @@ padding-right:0px;
}
.v4-art-top #st-2 .st-btn > img{
- width:19px !important;
- height: 19px !important;
+ width:16px !important;
+ height: 16px !important;
}
.v4-art-top #st-2 .st-btn{
diff --git a/js/article_v2.js b/js/article_v2.js
index 29d7ac5..5915b7c 100644
--- a/js/article_v2.js
+++ b/js/article_v2.js
@@ -23,6 +23,11 @@ style.innerHTML = `
font-weight: bold;
+}
+.v4-art-top #st-2 .st-btn > img{
+
+ width:16px !important;
+ height: 16px !important;
}
.pos_ter>a {
width: 23%;
diff --git a/js/commonHomePage.js b/js/commonHomePage.js
index 9ac862e..3471f0f 100644
--- a/js/commonHomePage.js
+++ b/js/commonHomePage.js
@@ -1,6 +1,6 @@
-function commonHomePage(){
+function commonHomePage() {
const style = document.createElement('style');
-style.innerHTML = `
+ style.innerHTML = `
// .sy_fr,.sy_tcrd,ncon_SCom{
// background-color: #fff !important;
// }
@@ -163,90 +163,89 @@ style.innerHTML = `
`
-document.head.appendChild(style);
-var SubmissionStr = `
-
-Submission System
+ document.head.appendChild(style);
+ // var SubmissionStr = `
+ //
+ // Submission System
+ // `
+ // $('#index_top .nav .clear').prepend(SubmissionStr);
+ $.ajax({
+ type: 'get', url: apiUrl + 'api/Journal/getJournalList',
+ data: {},
+ success: function (result) {
+ if (result.code == 0) {
-`
-$('#index_top .nav .clear').prepend(SubmissionStr);
-$.ajax({
- type: 'get', url: apiUrl + 'api/Journal/getJournalList',
- data: {},
- success: function (result) {
- if (result.code == 0) {
-
- var arr = result.data.journalList;
- var str = "";
- for(let i=0;i( 2025–2026 )`;
- }
- // 获取当前期刊独有的journalAbs数据(假设通过journal_id关联)
- var arr_Abc =arr[i].journalAbs? arr[i].journalAbs.filter(e => e.is_show == 1) : [];
- var CiteScore = ''
- var ImpactFactor = ''
- var Published = ''
- switch (Number(arr[i].journal_id)) {
- //tmr
- case 1:
- ImpactFactor = '1.3'
- Published = '2016'
- CiteScore = '2.1'
- break;
- //bmec
- case 25:
- Published = '2022'
- CiteScore = '1.5'
- break;
- //mdm
-
- case 11:
-
- CiteScore = '0.3'
- break;
- case 2:
-
- Published = '2018'
- break;
- case 8:
-
- Published = '2019'
- break;
- case 4:
-
- Published = '2020'
- break;
- case 17:
-
- Published = '2017'
- break;
-
- case 14:
- CiteScore = 'Coming soon'
- Published = '2018'
- break;
- case 11:
-
- Published = '2018'
- break;
- case 18:
-
- Published = '2017'
- break;
-
-
- }
- //
- // ISSN:
-
- // ${arr[i].issn}
- //
- if (arr[i].title != 'tmRxiv') {
- str +=`
+ var arr = result.data.journalList;
+ var str = "";
+ for (let i = 0; i < arr.length; i++) {
+ var apcStr = ``;
+ if ([1, 25, 11, 17].includes(Number(arr[i].journal_id))) {
+ apcStr = arr[i].apc
+ } else {
+ apcStr = arr[i].apc + `( 2025–2026 )`;
+ }
+ // 获取当前期刊独有的journalAbs数据(假设通过journal_id关联)
+ var arr_Abc = arr[i].journalAbs ? arr[i].journalAbs.filter(e => e.is_show == 1) : [];
+ var CiteScore = ''
+ var ImpactFactor = ''
+ var Published = ''
+ switch (Number(arr[i].journal_id)) {
+ //tmr
+ case 1:
+ ImpactFactor = '1.3'
+ Published = '2016'
+ CiteScore = '2.1'
+ break;
+ //bmec
+ case 25:
+ Published = '2022'
+ CiteScore = '1.5'
+ break;
+ //mdm
+
+ case 11:
+
+ CiteScore = '0.3'
+ break;
+ case 2:
+
+ Published = '2018'
+ break;
+ case 8:
+
+ Published = '2019'
+ break;
+ case 4:
+
+ Published = '2020'
+ break;
+ case 17:
+
+ Published = '2017'
+ break;
+
+ case 14:
+ CiteScore = 'Coming soon'
+ Published = '2018'
+ break;
+ case 11:
+
+ Published = '2018'
+ break;
+ case 18:
+
+ Published = '2017'
+ break;
+
+
+ }
+ //
+ // ISSN:
+
+ // ${arr[i].issn}
+ //
+ if (arr[i].title != 'tmRxiv') {
+ str += `
CiteScore: ${CiteScore}
Impact Factor: ${ImpactFactor}
APC: ${apcStr}
-
Indexing
+
Indexing
`
+ }
}
- }
- $('.es_jour').html(`
+ $('.es_jour').html(`
${str}
`);
- // 绑定点击事件
-$(document).on('click', '.wl_click', function (e) {
- e.preventDefault();
-
- // 获取当前点击元素所在的期刊容器
- const $journalItem = $(this).closest('.jour_base_info_center');
-
- // 从数据属性中获取参数
- const journalColor = $journalItem.data('journal-color');
- // 将JSON字符串解析回数组
- const journalAbc = $journalItem.data('journal-abs');
-
- // 使用当前期刊独有的journalAbs数据
- var Abstractingcontent = `
+ // 绑定点击事件
+ $(document).on('click', '.wl_click', function (e) {
+ e.preventDefault();
+
+ // 获取当前点击元素所在的期刊容器
+ const $journalItem = $(this).closest('.jour_base_info_center');
+
+ // 从数据属性中获取参数
+ const journalColor = $journalItem.data('journal-color');
+ // 将JSON字符串解析回数组
+ const journalAbc = $journalItem.data('journal-abs');
+
+ // 使用当前期刊独有的journalAbs数据
+ var Abstractingcontent = `
${journalAbc.map((item, i) => {
- return `-
+ return `
-
»
${item.title}
`;
- }).join('')}
+ }).join('')}
`;
-
- document.querySelector('#common-popup .common-popup-content').classList.add('whitebg');
- showPopup(`Indexing`, Abstractingcontent);
-});
-$(document).on('click', '.jour_base_info_title', function (e) {
- e.preventDefault();
-
- // 获取当前点击元素所在的期刊容器
- const $journalItem = $(this).closest('.jour_base_info_center');
-
- // 从数据属性中获取参数
- const journalUsx = $journalItem.data('journal-usx');
- window.open(`/${journalUsx}`);
-});
- } else {
- ShowDanger("请求失败!");
+ document.querySelector('#common-popup .common-popup-content').classList.add('whitebg');
+ showPopup(`Indexing`, Abstractingcontent);
+ });
+ $(document).on('click', '.jour_base_info_title', function (e) {
+ e.preventDefault();
+
+ // 获取当前点击元素所在的期刊容器
+ const $journalItem = $(this).closest('.jour_base_info_center');
+
+ // 从数据属性中获取参数
+ const journalUsx = $journalItem.data('journal-usx');
+ window.open(`/${journalUsx}`);
+ });
+
+ } else {
+ ShowDanger("请求失败!");
+ }
}
- }
-})
+ })
}
function showPopup(title, content) {