From 2a5baa6889f805ca16d494334a84ba3587402e3a 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: Thu, 12 Jun 2025 15:27:43 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9C=9F=E5=88=8A=E8=AF=A6=E6=83=85=E9=A1=B5?=
=?UTF-8?q?=20TMR=EF=BC=8Cbmec,=20mdm=20=E5=8A=A0Impact=20Factor=E5=92=8CC?=
=?UTF-8?q?ite=20Score?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
js/article.js | 97 ++++++++++++++++++++++++++++++++++++++-------------
js/side.js | 2 +-
jstmr/side.js | 4 +++
3 files changed, 77 insertions(+), 26 deletions(-)
diff --git a/js/article.js b/js/article.js
index 39b2f79..320c2ba 100644
--- a/js/article.js
+++ b/js/article.js
@@ -7276,7 +7276,50 @@ function article_con() {
success: function (result) {
}
})
-
+ if(Jour_num == 1||Jour_num == 11||Jour_num == 25){
+ var CiteScoreStr = ''
+ var marginLeft = 20
+ if (Jour_num == 1) {
+ CiteScoreStr = '1.8';
+ marginLeft=10
+ } else
+ if (Jour_num == 11) {
+ CiteScoreStr = '0.1';
+ }
+ else if (Jour_num == 25) {
+ CiteScoreStr = '1.3';
+ }
+ if(Jour_num == 1){
+ // $('#top_bar .nav_ban h2 img').css('zoom','0.75')
+ $('#top_bar .nav_ban h1').append(`
+
+ Impact Factor
+ 0.9
+
+
`)
+ }
+ $('#top_bar .nav_ban h1').append(`
+
+ Cite Score
+ ${CiteScoreStr}
+
+
`)
+
+ }
if (isPre) {
$('#top_bar .top').css('display', 'none')
@@ -7526,12 +7569,16 @@ function article_con() {
} else {
+
$.ajax({
type: 'post', url: apiUrl + 'api/Article/getArticleDetail',
data: {
"article_id": a_ID
},
success: function (result) {
+
+
+
$('.wenzhang .wen_rong .left').css({
'background-color': '#f4fafd'
})
@@ -8547,36 +8594,36 @@ function addRowIdToData(content) {
const rowIdMap = {};
const usedRows = new Set();
let idCounter = 0;
-
+
for (let i = 0; i < data.length; i++) {
- if (usedRows.has(i)) continue;
-
- const rowId = `row-${idCounter++}`;
- rowIdMap[i] = rowId;
- usedRows.add(i);
-
- const row = data[i];
- for (let j = 0; j < row.length; j++) {
- const cell = row[j];
- if (cell?.rowspan && cell.rowspan > 1) {
- for (let k = 1; k < cell.rowspan; k++) {
- const nextRowIndex = i + k;
- if (nextRowIndex < data.length && !rowIdMap[nextRowIndex]) {
- rowIdMap[nextRowIndex] = rowId;
- usedRows.add(nextRowIndex);
+ if (usedRows.has(i)) continue;
+
+ const rowId = `row-${idCounter++}`;
+ rowIdMap[i] = rowId;
+ usedRows.add(i);
+
+ const row = data[i];
+ for (let j = 0; j < row.length; j++) {
+ const cell = row[j];
+ if (cell?.rowspan && cell.rowspan > 1) {
+ for (let k = 1; k < cell.rowspan; k++) {
+ const nextRowIndex = i + k;
+ if (nextRowIndex < data.length && !rowIdMap[nextRowIndex]) {
+ rowIdMap[nextRowIndex] = rowId;
+ usedRows.add(nextRowIndex);
+ }
+ }
}
- }
}
- }
}
-
+
// 把 rowId 实际写进每个单元格
for (let i = 0; i < data.length; i++) {
- const rowId = rowIdMap[i];
- for (let j = 0; j < data[i].length; j++) {
- if (!data[i][j]) data[i][j] = {};
- data[i][j].rowId = rowId;
- }
+ const rowId = rowIdMap[i];
+ for (let j = 0; j < data[i].length; j++) {
+ if (!data[i][j]) data[i][j] = {};
+ data[i][j].rowId = rowId;
+ }
}
console.log('每行data数据111:', JSON.parse(JSON.stringify(data)))
const seenIds = [];
diff --git a/js/side.js b/js/side.js
index fadccdc..68c45ae 100644
--- a/js/side.js
+++ b/js/side.js
@@ -138,7 +138,7 @@ function side_list() {
$('.ncon_SCom > div > div:nth-child(4) > p> b').html(arr_jour.title)
if (arr_jour.title == 'Traditional Medicine Research') {
- $('.nav_ban h2').html('
');
+ $('.nav_ban h2').html('
');
$('.sharethis_tmr').css('display', 'none');
$('.art_top_topic').css('padding-top', '0');
$('.line_sbil').css('display', 'block');
diff --git a/jstmr/side.js b/jstmr/side.js
index 3fcd345..e4ea027 100644
--- a/jstmr/side.js
+++ b/jstmr/side.js
@@ -107,6 +107,10 @@ function side_list() {
// tmr单独
$('.nav_ban h2').html('
');
+ const pathname = window.location.pathname.split("/").pop();
+
+ // 2. 判断是否为 for_author.html
+
$('.sharethis_tmr').css('display', 'none');
$('.art_top_topic').css('padding-top', '0');
$('.line_sbil').css('display', 'block');