tijiao
This commit is contained in:
42
js/side.js
42
js/side.js
@@ -12,9 +12,9 @@ $(document).ready(function () {
|
||||
|
||||
// 期刊基础、外链、分期、话题信息加载
|
||||
function side_list() {
|
||||
if(Jour_num == 17||Jour_num == 24){
|
||||
$('.art_main_con_topic').hide();
|
||||
}
|
||||
if (Jour_num == 17 || Jour_num == 24) {
|
||||
$('.art_main_con_topic').hide();
|
||||
}
|
||||
// 左侧期刊列表数据
|
||||
$.ajax({
|
||||
type: 'post', url: apiUrl + 'api/Journal/getJournal',
|
||||
@@ -23,7 +23,17 @@ if(Jour_num == 17||Jour_num == 24){
|
||||
},
|
||||
success: function (result) {
|
||||
if (result.code == 0) {
|
||||
// 1. 匹配所有 src 为 "img/details.png" 的 img 标签
|
||||
const targetImgs = document.querySelectorAll('img[src="img/details.png"]');
|
||||
|
||||
// 2. 遍历并替换地址
|
||||
targetImgs.forEach(img => {
|
||||
img.src = "img/editor.png";
|
||||
// 可选:同时更新 srcset(如果图片用了响应式加载)
|
||||
if (img.srcset) {
|
||||
img.srcset = img.srcset.replace("img/details.png", "img/editor.png");
|
||||
}
|
||||
});
|
||||
// 期刊基础信息
|
||||
var arr_jour = result.data.journal;
|
||||
$('h4.rgb_color').css('color', arr_jour.system_color);
|
||||
@@ -110,8 +120,8 @@ if(Jour_num == 17||Jour_num == 24){
|
||||
} else {
|
||||
apcStr = arr_jour.apc + `<span style="color: ${arr_jour.system_color};font-weight: bold;margin-left:6px;">( 2025–2026 )</span>`;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$('.jour_message div .mes_APC').html(apcStr);
|
||||
|
||||
@@ -280,11 +290,11 @@ if(Jour_num == 17||Jour_num == 24){
|
||||
|
||||
$('.edit_board_tmr>a').attr('href', arr_jour.board_url);
|
||||
if (Jour_num == 11) {
|
||||
$('.edit_board_tmr').after('<p><b>CiteScore (Scopus):</b> <span>0.1</span></p>');
|
||||
$('.edit_board_tmr').after('<p><b>CiteScore (Scopus):</b> <span>0.4</span></p>');
|
||||
}
|
||||
//bmec
|
||||
if (Jour_num == 25) {
|
||||
$('.edit_board_tmr').after('<p><b>CiteScore (Scopus):</b> <span>1.3</span></p>');
|
||||
$('.edit_board_tmr').after('<p><b>CiteScore (Scopus):</b> <span>1.7</span></p>');
|
||||
}
|
||||
|
||||
//$('.edit_board_tmr>a').attr('href', 'notice.html?J_num=' + Jour_num + '&footer_id=' + arr_jour.board_url);
|
||||
@@ -320,10 +330,22 @@ if(Jour_num == 17||Jour_num == 24){
|
||||
var corr = result.data.relats;
|
||||
$('.jour_correlate>a').attr('href', '/' + corr[0].usx);
|
||||
$('.jour_correlate>a>img').attr('src', imgjourUrl + corr[0].icon)
|
||||
} else {
|
||||
$('.jour_correlate').css('display', 'none')
|
||||
const parent = document.querySelector('.jour_notice');
|
||||
if (parent) {
|
||||
// 找父容器下第一个符合样式特征的div(只取第一个)
|
||||
const firstTargetDiv = parent.querySelector('div[style*="height: 1px"][style*="background-color: #ddd"]');
|
||||
if (firstTargetDiv) {
|
||||
firstTargetDiv.style.display = 'none';
|
||||
console.log('已隐藏第一个目标分割线');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (localStorage.Journals_title == '经典中医研究') {
|
||||
$('.jour_correlate>h4').html('相关期刊');
|
||||
@@ -755,7 +777,7 @@ if(Jour_num == 17||Jour_num == 24){
|
||||
$('.jour_guest h4 a').css('display', 'none');
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
//11 mdm
|
||||
if (result.data.is_show == "false" || Jour_num == '11') {
|
||||
// $('.jour_guest h4 a').css('display', 'none');
|
||||
|
||||
Reference in New Issue
Block a user