1
This commit is contained in:
@@ -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 = ` <a target="_blank" href="https://submission.tmrjournals.com/" style="">
|
||||
<li class="rgb_color"><i class="fa fa-upload" style="font-size: 16px;font-weight: bold;color:#FFF"></i>
|
||||
Submission System</li>
|
||||
document.head.appendChild(style);
|
||||
// var SubmissionStr = ` <a target="_blank" href="https://submission.tmrjournals.com/" style="">
|
||||
// <li class="rgb_color"><i class="fa fa-upload" style="font-size: 16px;font-weight: bold;color:#FFF"></i>
|
||||
// Submission System</li>
|
||||
// </a>`
|
||||
// $('#index_top .nav .clear').prepend(SubmissionStr);
|
||||
$.ajax({
|
||||
type: 'get', url: apiUrl + 'api/Journal/getJournalList',
|
||||
data: {},
|
||||
success: function (result) {
|
||||
if (result.code == 0) {
|
||||
|
||||
</a>`
|
||||
$('#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<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 + `<span style="color:#006699;font-weight: bold;margin-left:6px">( 2025–2026 )</span>`;
|
||||
}
|
||||
// 获取当前期刊独有的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;
|
||||
|
||||
|
||||
}
|
||||
// <p class="jour_base_info_issn" style="margin-top: 4px;font-size: 13px;">
|
||||
// <b>ISSN:</b>
|
||||
|
||||
// ${arr[i].issn}</p>
|
||||
//
|
||||
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 + `<span style="color:#006699;font-weight: bold;margin-left:6px">( 2025–2026 )</span>`;
|
||||
}
|
||||
// 获取当前期刊独有的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;
|
||||
|
||||
|
||||
}
|
||||
// <p class="jour_base_info_issn" style="margin-top: 4px;font-size: 13px;">
|
||||
// <b>ISSN:</b>
|
||||
|
||||
// ${arr[i].issn}</p>
|
||||
//
|
||||
if (arr[i].title != 'tmRxiv') {
|
||||
str += `
|
||||
|
||||
<div class="jour_base_info_center" data-journal-usx="${arr[i].usx}" data-journal-id="${arr[i].journal_id}"
|
||||
data-journal-color="${arr[i].system_color}"
|
||||
@@ -270,62 +269,62 @@ $.ajax({
|
||||
<p style="${CiteScore ? '' : 'display:none'};margin-top: 4px;font-size: 13px;"><b>CiteScore: </b> <span style="color: #006699">${CiteScore}</span></p>
|
||||
<p style="${ImpactFactor ? '' : 'display:none'};margin-top: 4px;font-size: 13px;"><b>Impact Factor: </b> <span style="color: #006699">${ImpactFactor}</span></p>
|
||||
<p style="${apcStr ? '' : 'display:none'};margin-top: 4px;font-size: 13px;"><b>APC: </b> <span class="mes_APC">${apcStr}</span></p>
|
||||
<p style="${arr_Abc&&arr_Abc.length>0 ? '' : ''}margin-top: 4px;font-size: 13px;"><b class="wl_click" style="cursor: pointer;">Indexing</b> </p>
|
||||
<p style="${arr_Abc && arr_Abc.length > 0 ? '' : ''}margin-top: 4px;font-size: 13px;"><b class="wl_click" style="cursor: pointer;">Indexing</b> </p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
`
|
||||
}
|
||||
}
|
||||
}
|
||||
$('.es_jour').html(`
|
||||
$('.es_jour').html(`
|
||||
<div style="width: 100%;display: flex;justify-content: space-between;align-items: flex-start;flex-wrap: wrap;"> ${str}
|
||||
</div>
|
||||
|
||||
|
||||
`);
|
||||
// 绑定点击事件
|
||||
$(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 = `<ul style="margin-top:10px;">
|
||||
// 绑定点击事件
|
||||
$(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 = `<ul style="margin-top:10px;">
|
||||
${journalAbc.map((item, i) => {
|
||||
return `<li style="font-weight:700;font-size:14px;">
|
||||
return `<li style="font-weight:700;font-size:14px;">
|
||||
<span style="display:inline-block">» </span>
|
||||
<a target="_blank" href="${item.url}" style="font-weight:700;display:inline-block">${item.title}</a>
|
||||
</li>`;
|
||||
}).join('')}
|
||||
}).join('')}
|
||||
</ul>`;
|
||||
|
||||
document.querySelector('#common-popup .common-popup-content').classList.add('whitebg');
|
||||
showPopup(`<span style="font-weight:bold;color:${journalColor}">Indexing</span>`, 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(`<span style="font-weight:bold;color:${journalColor}">Indexing</span>`, 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) {
|
||||
|
||||
Reference in New Issue
Block a user