期刊详情页 TMR,bmec, mdm 加Impact Factor和Cite Score

This commit is contained in:
2025-06-12 15:27:43 +08:00
parent 7dedfc1ba2
commit 2a5baa6889
3 changed files with 77 additions and 26 deletions

View File

@@ -7276,7 +7276,50 @@ function article_con() {
success: function (result) { 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(`<div class="cite-score-badge" style="width: 64px;height: 64px;border-radius: 50%;display: flex;align-items: center;justify-content: center;background: transparent;
box-shadow: inset 0 0 12px rgb(255 255 255), 0 0 16px rgba(0, 150, 255, 0.4);
text-align: center;
color: #000;
float: right;
margin-left: ${marginLeft}px;
margin-top: 2px;
">
<span class="cite-text" style="font-size: 11px;line-height: 16px;font-weight: 600;color: #f0f0f0;letter-spacing: -0.75px;">
<text style="margin-top: 7px;line-height: 19px;display: inline-block;">Impact Factor</text>
<strong style="font-size: 18px;color: #fff;">0.9</strong>
</span>
</div>`)
}
$('#top_bar .nav_ban h1').append(`<div class="cite-score-badge" style="width: ${Jour_num == 1?64:60}px;height: ${Jour_num == 1?64:60}px;border-radius: 50%;display: flex;align-items: center;justify-content: center;background: transparent;
box-shadow: inset 0 0 12px rgb(255 255 255), 0 0 16px rgba(0, 150, 255, 0.4);
text-align: center;
color: #000;
float: right;
margin-left: ${marginLeft}px;
margin-top: 2px;
">
<span class="cite-text" style="font-size: 12px;line-height: 16px;font-weight: 600;color: #f0f0f0;letter-spacing: -0.75px;">
<text style="margin-top: 7px;line-height: 19px;display: inline-block;">Cite Score</text>
<strong style="font-size: 18px;color: #fff;">${CiteScoreStr}</strong>
</span>
</div>`)
}
if (isPre) { if (isPre) {
$('#top_bar .top').css('display', 'none') $('#top_bar .top').css('display', 'none')
@@ -7526,12 +7569,16 @@ function article_con() {
} else { } else {
$.ajax({ $.ajax({
type: 'post', url: apiUrl + 'api/Article/getArticleDetail', type: 'post', url: apiUrl + 'api/Article/getArticleDetail',
data: { data: {
"article_id": a_ID "article_id": a_ID
}, },
success: function (result) { success: function (result) {
$('.wenzhang .wen_rong .left').css({ $('.wenzhang .wen_rong .left').css({
'background-color': '#f4fafd' 'background-color': '#f4fafd'
}) })
@@ -8547,36 +8594,36 @@ function addRowIdToData(content) {
const rowIdMap = {}; const rowIdMap = {};
const usedRows = new Set(); const usedRows = new Set();
let idCounter = 0; let idCounter = 0;
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
if (usedRows.has(i)) continue; if (usedRows.has(i)) continue;
const rowId = `row-${idCounter++}`; const rowId = `row-${idCounter++}`;
rowIdMap[i] = rowId; rowIdMap[i] = rowId;
usedRows.add(i); usedRows.add(i);
const row = data[i]; const row = data[i];
for (let j = 0; j < row.length; j++) { for (let j = 0; j < row.length; j++) {
const cell = row[j]; const cell = row[j];
if (cell?.rowspan && cell.rowspan > 1) { if (cell?.rowspan && cell.rowspan > 1) {
for (let k = 1; k < cell.rowspan; k++) { for (let k = 1; k < cell.rowspan; k++) {
const nextRowIndex = i + k; const nextRowIndex = i + k;
if (nextRowIndex < data.length && !rowIdMap[nextRowIndex]) { if (nextRowIndex < data.length && !rowIdMap[nextRowIndex]) {
rowIdMap[nextRowIndex] = rowId; rowIdMap[nextRowIndex] = rowId;
usedRows.add(nextRowIndex); usedRows.add(nextRowIndex);
}
}
} }
}
} }
}
} }
// 把 rowId 实际写进每个单元格 // 把 rowId 实际写进每个单元格
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
const rowId = rowIdMap[i]; const rowId = rowIdMap[i];
for (let j = 0; j < data[i].length; j++) { for (let j = 0; j < data[i].length; j++) {
if (!data[i][j]) data[i][j] = {}; if (!data[i][j]) data[i][j] = {};
data[i][j].rowId = rowId; data[i][j].rowId = rowId;
} }
} }
console.log('每行data数据111:', JSON.parse(JSON.stringify(data))) console.log('每行data数据111:', JSON.parse(JSON.stringify(data)))
const seenIds = []; const seenIds = [];

View File

@@ -138,7 +138,7 @@ function side_list() {
$('.ncon_SCom > div > div:nth-child(4) > p> b').html(arr_jour.title) $('.ncon_SCom > div > div:nth-child(4) > p> b').html(arr_jour.title)
if (arr_jour.title == 'Traditional Medicine Research') { if (arr_jour.title == 'Traditional Medicine Research') {
$('.nav_ban h2').html('<img src="../img/h2_tit.png" style=""/>'); $('.nav_ban h2').html('<img src="../img/h2_tit.png" style="zoom:0.75"/>');
$('.sharethis_tmr').css('display', 'none'); $('.sharethis_tmr').css('display', 'none');
$('.art_top_topic').css('padding-top', '0'); $('.art_top_topic').css('padding-top', '0');
$('.line_sbil').css('display', 'block'); $('.line_sbil').css('display', 'block');

View File

@@ -107,6 +107,10 @@ function side_list() {
// tmr单独 // tmr单独
$('.nav_ban h2').html('<img src="../img/h2_tit.png" style="margin-top: 26px;"/>'); $('.nav_ban h2').html('<img src="../img/h2_tit.png" style="margin-top: 26px;"/>');
const pathname = window.location.pathname.split("/").pop();
// 2. 判断是否为 for_author.html
$('.sharethis_tmr').css('display', 'none'); $('.sharethis_tmr').css('display', 'none');
$('.art_top_topic').css('padding-top', '0'); $('.art_top_topic').css('padding-top', '0');
$('.line_sbil').css('display', 'block'); $('.line_sbil').css('display', 'block');