Преглед на файлове

修复图书馆搜索标签组串组显示

按 body[data-menu-type] 强制馆藏书目、读秀、知网标签组互斥显示,规避旧内嵌脚本切回馆藏书目时未隐藏知网标签的问题。\n\n同时固定移动端资源标签栏高度,避免 768px 以下继承百分比高度导致高度漂移,并再次升级 tsg2.css 缓存版本。

Validation:\n- 验证馆藏书目、维普、读秀、站内文章、知网五种入口分别只显示正确标签组\n- 验证 1440/1024/768/390 宽度均无横向溢出
非繁 преди 2 седмици
родител
ревизия
15a949d589

+ 32 - 0
WebRoot/main/dist/websites/css/tsg2.css

@@ -424,6 +424,36 @@ body[data-menu-type="4"] {
     color: var(--current-theme-color);
 }
 
+/* 资源类型标签组随左侧检索入口互斥显示 */
+body[data-menu-type="1"] .search-tabs .tabs-tsg {
+    display: flex !important;
+}
+
+body[data-menu-type="1"] .search-tabs .tabs-duxiu,
+body[data-menu-type="1"] .search-tabs .tabs-zhiwang,
+body[data-menu-type="2"] .search-tabs ul,
+body[data-menu-type="4"] .search-tabs ul {
+    display: none !important;
+}
+
+body[data-menu-type="3"] .search-tabs .tabs-duxiu {
+    display: flex !important;
+}
+
+body[data-menu-type="3"] .search-tabs .tabs-tsg,
+body[data-menu-type="3"] .search-tabs .tabs-zhiwang {
+    display: none !important;
+}
+
+body[data-menu-type="5"] .search-tabs .tabs-zhiwang {
+    display: flex !important;
+}
+
+body[data-menu-type="5"] .search-tabs .tabs-tsg,
+body[data-menu-type="5"] .search-tabs .tabs-duxiu {
+    display: none !important;
+}
+
 
 .banner{
     position: relative;
@@ -1032,12 +1062,14 @@ body[data-menu-type="4"] {
 
     .search-tabs {
         width: 100%;
+        height: 50px;
         flex: none;
         border-radius: 0;
     }
 
     .search-tabs ul {
         width: 100%;
+        height: 50px;
         justify-content: flex-start;
     }
 

+ 32 - 0
WebRoot/main/websiteTemplatePeview/gzhx/css/tsg2.css

@@ -424,6 +424,36 @@ body[data-menu-type="4"] {
     color: var(--current-theme-color);
 }
 
+/* 资源类型标签组随左侧检索入口互斥显示 */
+body[data-menu-type="1"] .search-tabs .tabs-tsg {
+    display: flex !important;
+}
+
+body[data-menu-type="1"] .search-tabs .tabs-duxiu,
+body[data-menu-type="1"] .search-tabs .tabs-zhiwang,
+body[data-menu-type="2"] .search-tabs ul,
+body[data-menu-type="4"] .search-tabs ul {
+    display: none !important;
+}
+
+body[data-menu-type="3"] .search-tabs .tabs-duxiu {
+    display: flex !important;
+}
+
+body[data-menu-type="3"] .search-tabs .tabs-tsg,
+body[data-menu-type="3"] .search-tabs .tabs-zhiwang {
+    display: none !important;
+}
+
+body[data-menu-type="5"] .search-tabs .tabs-zhiwang {
+    display: flex !important;
+}
+
+body[data-menu-type="5"] .search-tabs .tabs-tsg,
+body[data-menu-type="5"] .search-tabs .tabs-duxiu {
+    display: none !important;
+}
+
 
 .banner{
     position: relative;
@@ -1032,12 +1062,14 @@ body[data-menu-type="4"] {
 
     .search-tabs {
         width: 100%;
+        height: 50px;
         flex: none;
         border-radius: 0;
     }
 
     .search-tabs ul {
         width: 100%;
+        height: 50px;
         justify-content: flex-start;
     }
 

+ 1 - 1
WebRoot/web/subassembly/website/10077/10514/1007710514_run.jsp

@@ -11,7 +11,7 @@
 <link rel="stylesheet" href="/main/dist/websites/plug-in/swiper/css/swiper.min.css">
 <link rel="stylesheet" href="/main/dist/websites/css/common.css">
 <link rel="stylesheet" href="/main/dist/websites/css/common-media.css">
-<link rel="stylesheet" href="/main/dist/websites/css/tsg2.css?v=20261109-lib-search-layout">
+<link rel="stylesheet" href="/main/dist/websites/css/tsg2.css?v=20261109-lib-search-layout-2">
 <link rel="stylesheet" href="/main/dist/websites/css/zq-accessible-tabs.css">
 <script src="/main/dist/websites/plug-in/swiper/js/swiper.min.js"></script>