Преглед изворни кода

修复红色二级首页轮播跳转

将红色二级模板首页轮播项包成文章链接,使点击轮播图片或标题可以进入对应正文。

补充轮播链接样式,并关闭遮罩伪元素的点击拦截;同时更新红色模板 CSS 版本号,避免浏览器缓存旧样式。

Validation: git diff --check; staged diff review.
非繁 пре 3 месеци
родитељ
комит
bf05009cfd

+ 13 - 2
WebRoot/main/ffkj-portal/portal-source.css

@@ -10875,6 +10875,14 @@ body.screen-red-theme .screen-shell .color-study-section::before {
   display: block;
 }
 
+.college-red-page .department-hero-slide-link {
+  display: block;
+  width: 100%;
+  height: 100%;
+  color: inherit;
+  text-decoration: none;
+}
+
 .college-red-page .department-hero-track img {
   width: 100%;
   height: 100%;
@@ -10884,9 +10892,11 @@ body.screen-red-theme .screen-shell .color-study-section::before {
 
 .college-red-page .department-hero-track article::after {
   display: block;
+  pointer-events: none;
 }
 
-.college-red-page .department-hero-track article > div {
+.college-red-page .department-hero-track article > div,
+.college-red-page .department-hero-track article > .department-hero-slide-link > div {
   position: absolute;
   right: 36px;
   bottom: 30px;
@@ -10933,7 +10943,8 @@ body.screen-red-theme .screen-shell .color-study-section::before {
     aspect-ratio: var(--college-red-hero-ratio);
   }
 
-  .college-red-page .department-hero-track article > div {
+  .college-red-page .department-hero-track article > div,
+  .college-red-page .department-hero-track article > .department-hero-slide-link > div {
     right: 12px;
     bottom: 12px;
     width: min(90%, calc(100% - 24px));

+ 1 - 1
WebRoot/web/upload/ffkj-template/college-red-catalog.jsp

@@ -11,7 +11,7 @@
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260803-news2026-hero-footer">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260803-news2026-hero-link">
 	<c:if test="${not empty portalThemeStyle}"><style>${portalThemeStyle}</style></c:if>
 </head>
 <body class="${portalThemeClass}">

+ 1 - 1
WebRoot/web/upload/ffkj-template/college-red-details.jsp

@@ -10,7 +10,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="description" content="${articleDescription}">
 	<title>${articleTitle}_${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260803-news2026-hero-footer">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260803-news2026-hero-link">
 	<c:if test="${not empty portalThemeStyle}"><style>${portalThemeStyle}</style></c:if>
 	<style>
 		.college-department-page.department-subpage .department-article-layout {

+ 5 - 3
WebRoot/web/upload/ffkj-template/college-red-index.jsp

@@ -12,7 +12,7 @@
 	<meta name="keywords" content="${website.seoKeywords}">
 	<meta name="description" content="${website.seoDescription}">
 	<title>${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260803-news2026-hero-footer">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260803-news2026-hero-link">
 	<c:if test="${not empty portalThemeStyle}"><style>${portalThemeStyle}</style></c:if>
 	<style>
 		.college-red-page {
@@ -326,8 +326,10 @@
 									<c:set var="slideImage" value="${assetBase}/official/view-hero.jpg"/>
 									<c:if test="${not empty slide.thumbnail}"><c:set var="slideImage" value="${slide.thumbnail}"/></c:if>
 									<article class="${vs.first ? 'active' : ''}">
-										<img src="${slideImage}" alt="${slide.title}">
-										<div><h1>${slide.title}</h1></div>
+										<a class="department-hero-slide-link" href="${slide.url}" target="${slide.target}">
+											<img src="${slideImage}" alt="${slide.title}">
+											<div><h1>${slide.title}</h1></div>
+										</a>
 									</article>
 								</c:forEach>
 							</c:when>

+ 1 - 1
WebRoot/web/upload/ffkj-template/college-red-list.jsp

@@ -26,7 +26,7 @@
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260803-news2026-hero-footer">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260803-news2026-hero-link">
 	<c:if test="${not empty portalThemeStyle}"><style>${portalThemeStyle}</style></c:if>
 </head>
 <body class="${portalThemeClass}">

+ 1 - 1
WebRoot/web/upload/ffkj-template/college-red-search.jsp

@@ -10,7 +10,7 @@
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>站内搜索_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260803-news2026-hero-footer">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260803-news2026-hero-link">
 	<c:if test="${not empty portalThemeStyle}"><style>${portalThemeStyle}</style></c:if>
 </head>
 <body class="${portalThemeClass}">

+ 13 - 2
WebRoot/web/upload/ffkj-template/portal-source.css

@@ -10811,6 +10811,14 @@ body.screen-red-theme .screen-shell .color-study-section::before {
   display: block;
 }
 
+.college-red-page .department-hero-slide-link {
+  display: block;
+  width: 100%;
+  height: 100%;
+  color: inherit;
+  text-decoration: none;
+}
+
 .college-red-page .department-hero-track img {
   width: 100%;
   height: 100%;
@@ -10820,9 +10828,11 @@ body.screen-red-theme .screen-shell .color-study-section::before {
 
 .college-red-page .department-hero-track article::after {
   display: block;
+  pointer-events: none;
 }
 
-.college-red-page .department-hero-track article > div {
+.college-red-page .department-hero-track article > div,
+.college-red-page .department-hero-track article > .department-hero-slide-link > div {
   position: absolute;
   right: 36px;
   bottom: 30px;
@@ -10869,7 +10879,8 @@ body.screen-red-theme .screen-shell .color-study-section::before {
     aspect-ratio: var(--college-red-hero-ratio);
   }
 
-  .college-red-page .department-hero-track article > div {
+  .college-red-page .department-hero-track article > div,
+  .college-red-page .department-hero-track article > .department-hero-slide-link > div {
     right: 12px;
     bottom: 12px;
     width: min(90%, calc(100% - 24px));