From 3bbf6675dd29f8a0b67c8eb95f9a899c55fd1505 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, 10 Jul 2025 18:02:33 +0800
Subject: [PATCH] tijiao
---
journalIndex/index.html | 2 +-
journalIndex/index2.html | 16 +
journalIndex/js/journal.js | 181 +-
journalIndex/js/side.js | 14 +-
...nalCSS_v6.css => commonJournalCSS_v12.css} | 64 +-
...nals_tmr_v14.html => journals_tmr_v21.html | 24 +-
js/article.js | 1669 +++++++++--------
js/not_map.js | 6 +-
js/side.js | 2 +
9 files changed, 1092 insertions(+), 886 deletions(-)
create mode 100644 journalIndex/index2.html
rename journalIndex/style/{commonJournalCSS_v6.css => commonJournalCSS_v12.css} (98%)
rename journals_tmr_v14.html => journals_tmr_v21.html (92%)
diff --git a/journalIndex/index.html b/journalIndex/index.html
index ae25634..77f2049 100644
--- a/journalIndex/index.html
+++ b/journalIndex/index.html
@@ -5,7 +5,7 @@
Traditional Medicine Research
diff --git a/journalIndex/index2.html b/journalIndex/index2.html
new file mode 100644
index 0000000..bbe8b1e
--- /dev/null
+++ b/journalIndex/index2.html
@@ -0,0 +1,16 @@
+
+
+
+
+ Traditional Medicine Research
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/journalIndex/js/journal.js b/journalIndex/js/journal.js
index a683176..cfd3d8e 100644
--- a/journalIndex/js/journal.js
+++ b/journalIndex/js/journal.js
@@ -1,3 +1,4 @@
+
// 期刊基础、外链、分期、话题信息加载
var Journals_color = localStorage.getItem('Journals_color')
function bf_list() {
@@ -247,16 +248,17 @@ function bf_list() {
if (arr[i].icon == '') {
var img_i = ''
} else {
- var img_i = '
'
+ var img_i = '
'
}
str += '' +
- '' +
+ '' +
+
'
' +
`' +
'' + arr[i].editor + '. | ' + arr[i].deadline + '
'
}
- $('.Special_Issues_box>a').attr('href', 'article_list.html?J_num=' + Jour_num + '&top_id=' + Jour_num);
+ // $('.Special_Issues_box>a').attr('href', '/gue_cont.html?J_num=' + Jour_num + '&Gu_num=' + arr[i].journal_special_id);
$('.Special_Issues_box>ul').html(str + '
');
if (arr == '') {
$('.Special_Issues_box').css('display', 'none')
@@ -425,37 +427,53 @@ function bf_list() {
for (var t = 0; t < arr[i].topic.length; t++) {
lr_top += '' + arr[i].topic[t].title + ''
}
- }
+ }
+ var trad_tion = '';
+ var maxTradHeight = 220; // 设置最大高度
+ if (Jour_num == 1) {
+ if (arr[i].tradition_tag == '') {
+
+ } else {
+ var traditionText = arr[i].tradition;
+
-
- if (arr[i].tradition_tag == '') {
- var trad_tion = '';
- } else {
- var traditionText = arr[i].tradition;
- var maxTradHeight = 220; // 设置最大高度
-
- trad_tion = `
+ trad_tion = `
${arr[i].tradition_tag}: ${traditionText}
`;
- setTimeout(() => {
- let traditionElement = document.querySelector('.tradition-text:last-of-type');
- if (traditionElement.scrollHeight > maxTradHeight) {
- let words = traditionText.split(" ");
- let truncatedText = "";
+ setTimeout(() => {
+ let traditionElement = document.querySelector('.tradition-text:last-of-type');
+ if (traditionElement.scrollHeight > maxTradHeight) {
+ let words = traditionText.split(" ");
+ let truncatedText = "";
- for (let j = 0; j < words.length; j++) {
- truncatedText += words[j] + " ";
- traditionElement.innerText = truncatedText + "...";
- if (traditionElement.scrollHeight > maxTradHeight) {
- truncatedText = truncatedText.trim().split(" ").slice(0, -1).join(" ");
- traditionElement.innerText = truncatedText + " ...";
- break;
+ for (let j = 0; j < words.length; j++) {
+ truncatedText += words[j] + " ";
+ traditionElement.innerText = truncatedText + "...";
+ if (traditionElement.scrollHeight > maxTradHeight) {
+ truncatedText = truncatedText.trim().split(" ").slice(0, -1).join(" ");
+ traditionElement.innerText = truncatedText + " ...";
+ break;
+ }
}
}
- }
- }, 100); // 确保 DOM 渲染完成
+ }, 100); // 确保 DOM 渲染完成
+ }
+ } else {
+ if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
+ var textContent = arr[i].abstract;
+ } else {
+ var textContent = '
' + arr[i].tradition_tag + ': ' + arr[i].tradition;
+ }
+
+
+
+ trad_tion = `
`;
+
}
+
str += `
`
if (result.data.notices.length > 0) {
$('.ncon_SCom .Scientist_Community_box').html(jourNoticeStr);
+ }else{
+ $('.ncon_SCom .Scientist_Community_box').html(`
+ Scientist
Community
+
+
+ `);
}
diff --git a/journalIndex/style/commonJournalCSS_v6.css b/journalIndex/style/commonJournalCSS_v12.css
similarity index 98%
rename from journalIndex/style/commonJournalCSS_v6.css
rename to journalIndex/style/commonJournalCSS_v12.css
index de0858c..c934d8c 100644
--- a/journalIndex/style/commonJournalCSS_v6.css
+++ b/journalIndex/style/commonJournalCSS_v12.css
@@ -65,6 +65,7 @@ input.disable {
}
.rgb_color_background {
+ box-sizing: border-box;
/*background-color: #024393;*/
}
@@ -458,6 +459,53 @@ input.disable {
margin-bottom: 20px
}
+/******************弹窗******************/
+
+/* 遮罩层 */
+#common-overlay {
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background: rgba(0,0,0,0.5);
+ display: none;
+ z-index: 100;
+}
+
+/* 弹窗主体 */
+#common-popup {
+ width: 600px;
+ min-height: 400px;
+ height: auto;
+ background: white;
+ border-radius: 8px;
+ position: fixed;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ z-index: -1;
+ opacity: 0;
+ transition: opacity 0.3s;
+ box-shadow: 0 0 20px rgba(0,0,0,0.2);
+}
+
+/* 关闭按钮 */
+.common-close-btn {
+ position: absolute;
+ right: 15px;
+ top: 10px;
+ font-size: 24px;
+ cursor: pointer;
+ color: #999;
+}
+
+.common-close-btn:hover {
+ color: #333;
+}
+
+
+/******************弹窗******************/
/******************导航******************/
.nav {
height: 60px;
@@ -573,9 +621,9 @@ input.disable {
.article_ .ncon_tcrd_tmr,
.article_ .Rel_ated,
.article_ .ncon_SCom {
- background: url(/img/home_0.jpg) no-repeat #f4fbff;
- background-blend-mode: multiply;
- background-size: 100% 100%;
+ /* background: url(/img/home_0.jpg) no-repeat #f4fbff; */
+ /* background-blend-mode: multiply;
+ background-size: 100% 100%; */
}
.article_ .ncon_fr_tmr li,
@@ -1689,7 +1737,7 @@ ul li .ab_tad {
display: inline-block;
/*width: 610px;*/
line-height: 62px;
- font-size: 58px;
+ font-size: 48px;
text-align: left;
}
@@ -2101,6 +2149,7 @@ padding-top: 0px !important;
}
.ncon_SCom>div {
padding: 15px 0;
+ padding-top:0 ;
display: flex;
}
@@ -2814,6 +2863,7 @@ padding-top: 0px !important;
.overall_tmr .Rel_ated h4,
.overall_tmr .hua_tpice h4,
.overall_tmr .Special_Issues_box h4,
+.overall_tmr .ncon_new_coment h4,
.overall_tmr .ncon_hl h4 {
width: 1102px;
margin: 0 auto;
@@ -2884,6 +2934,7 @@ padding-top: 0px !important;
.overall_tmr .hua_tpice ul,
.overall_tmr .ncon_hl ul,
.overall_tmr .Special_Issues_box ul,
+.overall_tmr .ncon_new_coment ul,
.overall_tmr .ncon_SCom>div {
width: 1098px;
margin: 15px auto 0;
@@ -3217,8 +3268,8 @@ padding-top: 0px !important;
/*搜索框*/
.ment_sousuo_kuang {
- margin-top: 28px;
- padding-bottom: 0px;
+ margin-top: 33px;
+
/*background: #006699;*/
}
@@ -3228,6 +3279,7 @@ padding-top: 0px !important;
/*background: url(../img/home_0.jpg) no-repeat #f4fbff;*/
/*background-blend-mode: multiply;*/
background-size: 100% 100%;
+ padding-bottom: 0px;
padding: 15px 0px;
/*border-radius: 75px 0 60px 0;*/
width: 1102px;
diff --git a/journals_tmr_v14.html b/journals_tmr_v21.html
similarity index 92%
rename from journals_tmr_v14.html
rename to journals_tmr_v21.html
index f88159a..5d48f1d 100644
--- a/journals_tmr_v14.html
+++ b/journals_tmr_v21.html
@@ -11,7 +11,7 @@
-
+