Sfoglia il codice sorgente

调整红色二级模板文字列表布局

将非繁二级网站模板-红色的文字列表改为参考页面的栏目图与导航、文章标题和日期布局。栏目名称叠加在压暗图片上,左侧导航取消嵌套卡片边框,移动端保持上下布局。

新增 HXCS 幂等迁移,将红色模板种子和预览站的新闻动态栏目设为文字列表,保持模板与预览站行为一致。

Validation: local-run/bin/sync-webroot-to-runtime.sh; 本地 shouyexinwen 1440px、1280px、1024px、390px 页面回归。
非繁 2 mesi fa
parent
commit
f47aafce38

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

@@ -1,6 +1,7 @@
 <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
 <c:set var="assetBase" value="/main/ffkj-portal/assets"/>
 <c:set var="departmentLogo" value="${assetBase}/official/logo.png"/>
 <c:if test="${not empty website.logo}"><c:set var="departmentLogo" value="${website.logo}"/></c:if>
@@ -20,6 +21,32 @@
 <c:if test="${not empty navigation.photoSizeWidth and not empty navigation.photoSizeHeight}">
 	<c:set var="articleThumbStyle" value="--article-thumb-ratio:${navigation.photoSizeWidth} / ${navigation.photoSizeHeight};"/>
 </c:if>
+<c:set var="sidebarImage" value="${assetBase}/official/view-hero.jpg"/>
+<c:if test="${not empty navigation.backgroundImage}"><c:set var="sidebarImage" value="${navigation.backgroundImage}"/></c:if>
+<c:if test="${empty navigation.backgroundImage and not empty parNavigation and not empty parNavigation.backgroundImage}"><c:set var="sidebarImage" value="${parNavigation.backgroundImage}"/></c:if>
+<c:set var="navigationUrl" value=""/>
+<c:if test="${not empty navigation.url}">
+	<c:set var="navigationUrl" value="${navigation.url}"/>
+</c:if>
+<c:set var="isOrgStructurePage" value="${fn:startsWith(navigationUrl, '/zuzhijiegou/')}" />
+<c:set var="isTextArticleList" value="${isTextList and empty childrenNavList and not isOrgStructurePage}"/>
+<c:set var="pageClassExtra" value=""/>
+<c:if test="${isOrgStructurePage}">
+	<c:set var="pageClassExtra" value="department-org-page"/>
+</c:if>
+<c:set var="orgHeaderTitle" value="${navigation.name}"/>
+<c:if test="${isOrgStructurePage and not empty parNavigation and not empty parNavigation.name}">
+	<c:set var="orgHeaderTitle" value="${parNavigation.name}"/>
+</c:if>
+<c:set var="orgSectionTitle" value="${navigation.name}"/>
+<c:choose>
+	<c:when test="${not empty brotherNavList}">
+		<c:set var="orgTabList" value="${brotherNavList}"/>
+	</c:when>
+	<c:otherwise>
+		<c:set var="orgTabList" value="${childrenNavList}"/>
+	</c:otherwise>
+</c:choose>
 <!doctype html>
 <html lang="zh-CN">
 <head>
@@ -28,9 +55,442 @@
 	<title>${navigation.name}_${website.seoTitle}</title>
 	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260803-college-red-hero-16x9">
 	<c:if test="${not empty portalThemeStyle}"><style>${portalThemeStyle}</style></c:if>
+	<c:if test="${isOrgStructurePage}">
+		<style>
+			.department-org-page .department-inner-content {
+				padding-top: 0;
+			}
+
+			.department-org-page .department-org-shell {
+				display: grid;
+				gap: 20px;
+			}
+
+			.department-org-page .department-org-banner {
+				padding: 28px 0 2px;
+			}
+
+			.department-org-page .department-org-banner h1 {
+				margin: 0;
+				color: var(--hx-blue);
+				font-size: clamp(34px, 3.8vw, 58px);
+				font-weight: 700;
+				line-height: 1.08;
+				letter-spacing: 0;
+			}
+
+			.department-org-page .department-org-tabs {
+				display: flex;
+				flex-wrap: wrap;
+				gap: 12px 14px;
+				margin: 0;
+				padding: 0;
+			}
+
+			.department-org-page .department-org-tabs a {
+				display: inline-flex;
+				align-items: center;
+				min-height: 46px;
+				padding: 10px 18px;
+				color: var(--hx-ink);
+				background: rgba(255, 255, 255, 0.9);
+				border: 1px solid rgba(var(--hx-red-dark-rgb), 0.12);
+				border-bottom-width: 3px;
+				border-radius: 2px;
+				font-size: 18px;
+				line-height: 1.2;
+				text-decoration: none;
+				transition: background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease;
+			}
+
+			.department-org-page .department-org-tabs a.is-active,
+			.department-org-page .department-org-tabs a:hover {
+				color: #ffffff;
+				background: var(--hx-blue);
+				border-color: var(--hx-blue);
+			}
+
+			.department-org-page .department-org-panel {
+				padding: 32px clamp(20px, 2.4vw, 36px) 30px;
+				background: rgba(255, 255, 255, 0.8);
+				border: 1px solid rgba(var(--hx-red-dark-rgb), 0.08);
+			}
+
+			.department-org-page .department-org-panel-title {
+				margin-bottom: 24px;
+			}
+
+			.department-org-page .department-org-panel-title h2 {
+				margin: 0;
+				color: var(--hx-blue);
+				font-size: clamp(28px, 3vw, 46px);
+				font-weight: 700;
+				line-height: 1.08;
+				letter-spacing: 0;
+			}
+
+			.department-org-page .department-org-list {
+				display: grid;
+				grid-template-columns: repeat(3, minmax(0, 1fr));
+				column-gap: clamp(18px, 2.5vw, 44px);
+				row-gap: 14px;
+				margin: 0;
+				padding: 0;
+				list-style: none;
+			}
+
+			.department-org-page .department-org-list li {
+				border: 0;
+			}
+
+			.department-org-page .department-org-list a {
+				position: relative;
+				display: block;
+				padding: 6px 0 6px 22px;
+				color: var(--hx-ink);
+				font-size: 18px;
+				line-height: 1.65;
+			}
+
+			.department-org-page .department-org-list a::before {
+				content: "";
+				position: absolute;
+				top: 14px;
+				left: 0;
+				width: 8px;
+				height: 8px;
+				border-radius: 50%;
+				background: var(--hx-blue);
+			}
+
+			.department-org-page .department-org-list strong {
+				margin: 0;
+				font-size: 18px;
+				font-weight: 500;
+				line-height: 1.65;
+			}
+
+			.department-org-page .department-org-list a:hover strong {
+				transform: none;
+			}
+
+			.department-org-page .department-org-list a:hover::before {
+				background: var(--hx-blue);
+			}
+
+			.department-org-page .department-org-empty {
+				padding: 20px 0 0;
+				color: var(--hx-muted);
+				font-size: 15px;
+			}
+
+			@media (max-width: 1200px) {
+				.department-org-page .department-org-list {
+					grid-template-columns: repeat(2, minmax(0, 1fr));
+				}
+			}
+
+			@media (max-width: 760px) {
+				.department-org-page .department-org-banner {
+					padding-top: 18px;
+				}
+
+				.department-org-page .department-org-tabs a {
+					min-height: 40px;
+					padding: 8px 12px;
+					font-size: 15px;
+				}
+
+				.department-org-page .department-org-panel {
+					padding: 22px 16px 24px;
+				}
+
+				.department-org-page .department-org-panel-title h2 {
+					font-size: 24px;
+				}
+
+				.department-org-page .department-org-list {
+					grid-template-columns: minmax(0, 1fr);
+				}
+
+				.department-org-page .department-org-list a {
+					font-size: 16px;
+				}
+			}
+		</style>
+	</c:if>
+	<c:if test="${isTextArticleList}">
+		<style>
+			body.screen-red-theme .college-department-page .department-graphic-list-layout {
+				display: grid;
+				grid-template-columns: 270px minmax(0, 1fr);
+				gap: 36px;
+				align-items: start;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-sidebar {
+				min-width: 0;
+				overflow: hidden;
+				background: transparent;
+				border: 0;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-sidebar-media {
+				position: relative;
+				aspect-ratio: 3 / 1;
+				overflow: hidden;
+				background: #eef1f4;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-sidebar-media img {
+				display: block;
+				width: 100%;
+				height: 100%;
+				object-fit: cover;
+				filter: brightness(0.72);
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-sidebar-media::after {
+				position: absolute;
+				inset: 0;
+				z-index: 1;
+				background: rgba(0, 0, 0, 0.14);
+				content: "";
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-sidebar-title {
+				position: absolute;
+				inset: auto 18px 16px;
+				z-index: 2;
+				display: block;
+				padding: 0;
+				color: #ffffff;
+				font-size: 22px;
+				font-weight: 600;
+				line-height: 1.4;
+				text-shadow: 0 1px 3px rgba(0, 0, 0, 0.34);
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-sidebar-nav {
+				display: grid;
+				gap: 0;
+				padding: 0;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-sidebar-nav a {
+				display: block;
+				min-height: 42px;
+				padding: 10px 12px;
+				color: #333333;
+				background: #f7f7f7;
+				border: 0;
+				border-bottom: 1px solid #e5e7eb;
+				border-left: 3px solid transparent;
+				font-size: 16px;
+				line-height: 1.35;
+				text-decoration: none;
+				transition: color 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-sidebar-nav a:first-child {
+				border-top: 1px solid #e5e7eb;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-sidebar-nav a:hover,
+			body.screen-red-theme .college-department-page .department-graphic-sidebar-nav a:focus-visible,
+			body.screen-red-theme .college-department-page .department-graphic-sidebar-nav a.is-active {
+				color: #be2135;
+				background: #eeeeee;
+				border-left: 3px solid #be2135;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-content {
+				min-width: 0;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-content-head {
+				display: flex;
+				align-items: flex-end;
+				justify-content: space-between;
+				gap: 24px;
+				padding: 0 0 12px;
+				border-bottom: 2px solid #be2135;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-content-head h2 {
+				min-width: 0;
+				margin: 0;
+				color: #be2135;
+				font-size: 28px;
+				font-weight: 600;
+				line-height: 1.25;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-breadcrumb {
+				flex: 0 1 auto;
+				color: #999999;
+				font-size: 13px;
+				line-height: 1.5;
+				text-align: right;
+				white-space: nowrap;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-breadcrumb a {
+				color: inherit;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-breadcrumb a:hover {
+				color: #be2135;
+				text-decoration: none;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-article-list {
+				margin: 0;
+				padding: 0;
+				list-style: none;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-article-list li {
+				border-bottom: 1px solid #e5e7eb;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-article {
+				display: grid;
+				grid-template-columns: minmax(0, 1fr) auto;
+				gap: 24px;
+				align-items: center;
+				padding: 18px 0;
+				text-decoration: none;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-article-thumb {
+				position: relative;
+				display: block;
+				aspect-ratio: var(--article-thumb-ratio, 16 / 9);
+				overflow: hidden;
+				background: #f7f8fa;
+				border: 1px solid #e5e7eb;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-article-thumb img {
+				display: block;
+				width: 100%;
+				height: 100%;
+				object-fit: cover;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-article-thumb em {
+				display: grid;
+				width: 100%;
+				height: 100%;
+				place-items: center;
+				color: #999999;
+				font-size: 13px;
+				font-style: normal;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-article-copy {
+				display: grid;
+				grid-template-columns: minmax(0, 1fr) auto;
+				gap: 18px;
+				align-items: start;
+				min-width: 0;
+				padding-top: 2px;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-article-title {
+				display: block;
+				min-width: 0;
+				margin: 0;
+				overflow: hidden;
+				text-overflow: ellipsis;
+				color: #333333;
+				font-family: syh-m, "Microsoft YaHei", "PingFang SC", sans-serif;
+				font-size: 18px;
+				font-weight: 400;
+				line-height: 1.5;
+				white-space: nowrap;
+				transition: color 0.24s ease;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-article-time {
+				margin: 0;
+				color: #999999;
+				font-size: 14px;
+				line-height: 1.6;
+				white-space: nowrap;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-article:hover .department-graphic-article-title,
+			body.screen-red-theme .college-department-page .department-graphic-article:focus-visible .department-graphic-article-title {
+				color: #be2135;
+			}
+
+			body.screen-red-theme .college-department-page .department-graphic-empty {
+				padding: 28px 0;
+				color: #999999;
+				font-size: 15px;
+			}
+
+			@media (max-width: 900px) {
+				body.screen-red-theme .college-department-page .department-graphic-list-layout {
+					grid-template-columns: 220px minmax(0, 1fr);
+					gap: 24px;
+				}
+
+			body.screen-red-theme .college-department-page .department-graphic-article {
+				grid-template-columns: minmax(0, 1fr) auto;
+				gap: 16px;
+			}
+			}
+
+			@media (max-width: 760px) {
+				body.screen-red-theme .college-department-page .department-graphic-list-layout {
+					display: flex;
+					flex-direction: column;
+					gap: 20px;
+				}
+
+				body.screen-red-theme .college-department-page .department-graphic-sidebar,
+				body.screen-red-theme .college-department-page .department-graphic-content {
+					width: 100%;
+				}
+
+				body.screen-red-theme .college-department-page .department-graphic-content-head {
+					align-items: flex-start;
+					flex-direction: column;
+					gap: 6px;
+				}
+
+				body.screen-red-theme .college-department-page .department-graphic-breadcrumb {
+					text-align: left;
+					white-space: normal;
+				}
+
+				body.screen-red-theme .college-department-page .department-graphic-article {
+					grid-template-columns: minmax(0, 1fr) auto;
+					gap: 12px;
+					padding: 14px 0;
+				}
+
+				body.screen-red-theme .college-department-page .department-graphic-article-copy {
+					grid-template-columns: minmax(0, 1fr) auto;
+					gap: 8px;
+				}
+
+				body.screen-red-theme .college-department-page .department-graphic-article-title {
+					font-size: 16px;
+				}
+
+				body.screen-red-theme .college-department-page .department-graphic-article-time {
+					font-size: 12px;
+				}
+			}
+		</style>
+	</c:if>
 </head>
-<body class="${portalThemeClass}">
-	<div class="college-page college-department-page college-blue-page department-subpage ${portalThemeClass}">
+<body class="${portalThemeClass} ${pageClassExtra}">
+	<div class="college-page college-department-page college-blue-page department-subpage ${portalThemeClass} ${pageClassExtra}">
 		<header class="college-header department-header">
 			<div class="department-utility"><div class="wrap department-utility-inner"><nav aria-label="学院快捷入口"><c:choose><c:when test="${not empty utilityLinksNmv.articleList}"><c:forEach items="${utilityLinksNmv.articleList}" var="item" varStatus="vs"><c:if test="${vs.count le 8}"><a class="${vs.first ? 'department-school-home' : ''}" href="${item.url}" target="${item.target}">${item.title}</a></c:if></c:forEach></c:when><c:otherwise><a class="department-school-home" href="${schoolHomeUrl}">${schoolHomeName}</a><a href="${siteHomeUrl}">${siteHomeName}</a></c:otherwise></c:choose></nav><form class="department-search" action="/search" method="get"><input name="str" type="search" placeholder="搜索" aria-label="学院站内搜索"><button type="submit" aria-label="提交搜索"><svg class="department-search-icon" viewBox="0 0 24 24" aria-hidden="true"><circle cx="10.8" cy="10.8" r="6.6"></circle><path d="m15.7 15.7 4.7 4.7"></path></svg></button></form></div></div>
 			<div class="department-brand"><div class="wrap department-brand-inner"><a class="department-logo" href="/" aria-label="${website.name}"><img src="${departmentLogo}" alt="${website.name}"><span>${website.seoTitle}</span></a><button class="mobile-menu department-mobile-menu" type="button" aria-label="打开导航"><span></span><span></span><span></span></button></div></div>
@@ -40,96 +500,205 @@
 		<div class="drawer-layer" hidden><button class="drawer-mask" type="button" aria-label="关闭导航"></button><aside class="drawer" aria-label="${website.name}移动端导航"><div class="drawer-head"><strong>${website.seoTitle}</strong><button type="button" aria-label="关闭导航">×</button></div>${drawerNavHtmlWithHome}</aside></div>
 
 		<main>
-			<section class="department-inner-hero">
-				<div class="wrap"></div>
-			</section>
-			<section class="department-inner-meta">
-				<div class="wrap crumb-links">
-					<a href="/">${website.seoTitle}</a><c:forEach items="${crumbsNavList}" var="item"><span>/</span><a href="${item.url}">${item.name}</a></c:forEach>
-				</div>
-			</section>
-
-			<section class="department-inner-content">
-				<div class="wrap department-list-layout">
-					<aside class="department-column-nav">
-						<strong>${website.seoTitle}栏目</strong>
-						<c:choose>
-							<c:when test="${not empty childrenNavList}"><c:forEach items="${childrenNavList}" var="item"><a href="${item.href}" target="${item.target}">${item.name}</a></c:forEach></c:when>
-							<c:when test="${not empty brotherNavList}"><c:forEach items="${brotherNavList}" var="item"><a href="${item.href}" target="${item.target}">${item.name}</a></c:forEach></c:when>
-							<c:otherwise><a href="${navigation.url}">${navigation.name}</a></c:otherwise>
-						</c:choose>
-					</aside>
-					<article class="department-column-list">
-						<div class="department-section-title"><h2>${navigation.name}</h2></div>
-						<c:choose>
-							<c:when test="${not empty childrenNavList}">
-								<ul class="department-child-list">
-									<c:forEach items="${childrenNavList}" var="item">
-										<li><a href="${item.href}" target="${item.target}"><div><span>${navigationBadge}</span><strong>${item.name}</strong></div></a></li>
+			<c:choose>
+				<c:when test="${isOrgStructurePage}">
+					<section class="department-inner-hero department-org-hero">
+						<div class="wrap">
+							<div class="department-org-banner">
+								<h1>${orgHeaderTitle}</h1>
+							</div>
+						</div>
+					</section>
+				</c:when>
+				<c:otherwise>
+					<section class="department-inner-hero">
+						<div class="wrap"></div>
+					</section>
+				</c:otherwise>
+			</c:choose>
+					<c:if test="${not isTextArticleList}">
+				<section class="department-inner-meta">
+					<div class="wrap crumb-links">
+						<a href="/">${website.seoTitle}</a><c:forEach items="${crumbsNavList}" var="item"><span>/</span><a href="${item.url}">${item.name}</a></c:forEach>
+					</div>
+				</section>
+			</c:if>
+
+			<c:choose>
+				<c:when test="${isOrgStructurePage}">
+					<section class="department-inner-content">
+						<div class="wrap department-org-shell">
+							<c:if test="${not empty orgTabList}">
+								<nav class="department-org-tabs" aria-label="${orgHeaderTitle}栏目">
+									<c:forEach items="${orgTabList}" var="item" varStatus="vs">
+										<c:set var="tabClass" value="department-org-tab"/>
+										<c:choose>
+											<c:when test="${not empty brotherNavList}">
+												<c:if test="${item.navigationid == navigation.navigationid or item.href == navigation.url}">
+													<c:set var="tabClass" value="department-org-tab is-active"/>
+												</c:if>
+											</c:when>
+											<c:otherwise>
+												<c:if test="${vs.first}">
+													<c:set var="tabClass" value="department-org-tab is-active"/>
+												</c:if>
+											</c:otherwise>
+										</c:choose>
+										<a class="${tabClass}" href="${item.href}" target="${item.target}">${item.name}</a>
 									</c:forEach>
-								</ul>
+								</nav>
+							</c:if>
+							<article class="department-org-panel">
+								<div class="department-org-panel-title"><h2>${orgSectionTitle}</h2></div>
+								<c:choose>
+									<c:when test="${not empty articleList}">
+										<ul class="department-org-list">
+											<c:forEach items="${articleList}" var="item">
+												<li><a href="${item.url}" target="${item.target}"><strong>${item.title}</strong></a></li>
+											</c:forEach>
+										</ul>
+									</c:when>
+									<c:otherwise>
+										<div class="department-org-empty">暂无内容</div>
+									</c:otherwise>
+								</c:choose>
+								<c:if test="${pageCount > 1}">
+									<nav class="inner-pagination" aria-label="分页"><c:if test="${curPageNo > 1}"><a href="${curHerf}?page=${curPageNo - 1}">上一页</a></c:if><a class="active" href="${curHerf}?page=${curPageNo}">${curPageNo}</a><c:if test="${curPageNo < pageCount}"><a href="${curHerf}?page=${curPageNo + 1}">下一页</a></c:if></nav>
+								</c:if>
+							</article>
+						</div>
+					</section>
+				</c:when>
+				<c:otherwise>
+					<section class="department-inner-content">
+						<c:choose>
+				<c:when test="${isTextArticleList}">
+								<div class="wrap department-graphic-list-layout">
+									<aside class="department-graphic-sidebar">
+										<div class="department-graphic-sidebar-media"><img src="${sidebarImage}" alt="${navigation.name}"><strong class="department-graphic-sidebar-title">${website.seoTitle}栏目</strong></div>
+										<nav class="department-graphic-sidebar-nav" aria-label="栏目导航">
+											<c:choose>
+												<c:when test="${not empty childrenNavList}">
+													<c:forEach items="${childrenNavList}" var="item"><a class="${item.navigationid == navigation.navigationid ? 'is-active' : ''}" href="${item.href}" target="${item.target}">${item.name}</a></c:forEach>
+												</c:when>
+												<c:when test="${not empty brotherNavList}">
+													<c:forEach items="${brotherNavList}" var="item"><a class="${item.navigationid == navigation.navigationid or item.href == navigation.url ? 'is-active' : ''}" href="${item.href}" target="${item.target}">${item.name}</a></c:forEach>
+												</c:when>
+												<c:otherwise><a class="is-active" href="${navigation.url}">${navigation.name}</a></c:otherwise>
+											</c:choose>
+										</nav>
+								</aside>
+								<article class="department-graphic-content">
+									<div class="department-graphic-content-head">
+										<h2>${navigation.name}</h2>
+										<div class="department-graphic-breadcrumb"><a href="/">${website.seoTitle}</a><c:forEach items="${crumbsNavList}" var="item"><span>/</span><a href="${item.url}">${item.name}</a></c:forEach></div>
+									</div>
+									<c:choose>
+										<c:when test="${not empty articleList}">
+											<ul class="department-graphic-article-list">
+												<c:forEach items="${articleList}" var="item">
+													<li>
+														<a class="department-graphic-article" href="${item.url}" target="${item.target}">
+															<strong class="department-graphic-article-title">${item.title}</strong>
+															<time class="department-graphic-article-time"><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time>
+														</a>
+													</li>
+												</c:forEach>
+											</ul>
+										</c:when>
+									<c:otherwise><div class="department-graphic-empty">暂无内容</div></c:otherwise>
+								</c:choose>
+								<c:if test="${pageCount > 1}">
+									<nav class="inner-pagination" aria-label="分页"><c:if test="${curPageNo > 1}"><a href="${curHerf}?page=${curPageNo - 1}">上一页</a></c:if><a class="active" href="${curHerf}?page=${curPageNo}">${curPageNo}</a><c:if test="${curPageNo < pageCount}"><a href="${curHerf}?page=${curPageNo + 1}">下一页</a></c:if></nav>
+								</c:if>
+								</article>
+								</div>
 							</c:when>
 							<c:otherwise>
+								<div class="wrap department-list-layout">
+							<aside class="department-column-nav">
+								<strong>${website.seoTitle}栏目</strong>
 								<c:choose>
-									<c:when test="${isMediaList}">
-										<ul class="article-media-grid ${mediaListClass}">
-											<c:forEach items="${articleList}" var="item">
-												<li>
-													<a href="${item.url}" target="${item.target}" style="${articleThumbStyle}">
-														<span class="article-media-thumb">
-															<c:choose>
-																<c:when test="${not empty item.thumbnail}"><img src="${item.thumbnail}" alt="${item.title}"></c:when>
-																<c:otherwise><em>暂无缩略图</em></c:otherwise>
-															</c:choose>
-															<c:if test="${isVideoList}"><i class="article-video-play" aria-hidden="true"></i></c:if>
-														</span>
-														<strong>${item.title}</strong>
-													</a>
-												</li>
+									<c:when test="${not empty childrenNavList}"><c:forEach items="${childrenNavList}" var="item"><a href="${item.href}" target="${item.target}">${item.name}</a></c:forEach></c:when>
+									<c:when test="${not empty brotherNavList}"><c:forEach items="${brotherNavList}" var="item"><a href="${item.href}" target="${item.target}">${item.name}</a></c:forEach></c:when>
+									<c:otherwise><a href="${navigation.url}">${navigation.name}</a></c:otherwise>
+								</c:choose>
+							</aside>
+							<article class="department-column-list">
+								<div class="department-section-title"><h2>${navigation.name}</h2></div>
+								<c:choose>
+									<c:when test="${not empty childrenNavList}">
+										<ul class="department-child-list">
+											<c:forEach items="${childrenNavList}" var="item">
+												<li><a href="${item.href}" target="${item.target}"><div><span>${navigationBadge}</span><strong>${item.name}</strong></div></a></li>
 											</c:forEach>
-											<c:if test="${empty articleList}"><li><a href="javascript:void(0)" role="button" data-empty-article="true" data-empty-article-message="该栏目还未有文章,请浏览其他栏目"><strong>暂无内容</strong></a></li></c:if>
 										</ul>
 									</c:when>
 									<c:otherwise>
-										<ul class="${articleListClass}">
-											<c:forEach items="${articleList}" var="item">
-												<li>
-													<a href="${item.url}" target="${item.target}" style="${articleThumbStyle}">
-														<c:choose>
-															<c:when test="${isGraphicList}">
-																<span class="article-list-thumb">
+										<c:choose>
+											<c:when test="${isMediaList}">
+												<ul class="article-media-grid ${mediaListClass}">
+													<c:forEach items="${articleList}" var="item">
+														<li>
+															<a href="${item.url}" target="${item.target}" style="${articleThumbStyle}">
+																<span class="article-media-thumb">
 																	<c:choose>
 																		<c:when test="${not empty item.thumbnail}"><img src="${item.thumbnail}" alt="${item.title}"></c:when>
 																		<c:otherwise><em>暂无缩略图</em></c:otherwise>
 																	</c:choose>
+																	<c:if test="${isVideoList}"><i class="article-video-play" aria-hidden="true"></i></c:if>
 																</span>
-																<div class="article-graphic-copy">
-																	<div class="article-graphic-head">
-																		<strong class="article-graphic-title">${item.title}</strong>
-																		<time class="article-graphic-time"><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time>
-																	</div>
-																	<p>${item.desc}</p>
-																</div>
-															</c:when>
-															<c:otherwise>
-																<div><strong>${item.title}</strong></div>
-															</c:otherwise>
-														</c:choose>
-													</a>
-												</li>
-											</c:forEach>
-											<c:if test="${empty articleList}"><li><a href="javascript:void(0)" role="button" data-empty-article="true" data-empty-article-message="该栏目还未有文章,请浏览其他栏目"><div><strong>暂无内容</strong></div></a></li></c:if>
-										</ul>
+																<strong>${item.title}</strong>
+															</a>
+														</li>
+													</c:forEach>
+													<c:if test="${empty articleList}"><li><a href="javascript:void(0)" role="button" data-empty-article="true" data-empty-article-message="该栏目还未有文章,请浏览其他栏目"><strong>暂无内容</strong></a></li></c:if>
+												</ul>
+											</c:when>
+											<c:otherwise>
+												<ul class="${articleListClass}">
+													<c:forEach items="${articleList}" var="item">
+														<li>
+															<a href="${item.url}" target="${item.target}" style="${articleThumbStyle}">
+																<c:choose>
+																	<c:when test="${isGraphicList}">
+																		<span class="article-list-thumb">
+																			<c:choose>
+																				<c:when test="${not empty item.thumbnail}"><img src="${item.thumbnail}" alt="${item.title}"></c:when>
+																				<c:otherwise><em>暂无缩略图</em></c:otherwise>
+																			</c:choose>
+																		</span>
+																		<div class="article-graphic-copy">
+															<div class="article-graphic-head">
+																<strong class="article-graphic-title">${item.title}</strong>
+																<time class="article-graphic-time"><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time>
+															</div>
+															<p>${item.desc}</p>
+														</div>
+																	</c:when>
+																	<c:otherwise>
+																		<div><strong>${item.title}</strong></div>
+																	</c:otherwise>
+																</c:choose>
+															</a>
+														</li>
+													</c:forEach>
+													<c:if test="${empty articleList}"><li><a href="javascript:void(0)" role="button" data-empty-article="true" data-empty-article-message="该栏目还未有文章,请浏览其他栏目"><div><strong>暂无内容</strong></div></a></li></c:if>
+												</ul>
+											</c:otherwise>
+										</c:choose>
 									</c:otherwise>
 								</c:choose>
+								<c:if test="${empty childrenNavList and pageCount > 1}">
+									<nav class="inner-pagination" aria-label="分页"><c:if test="${curPageNo > 1}"><a href="${curHerf}?page=${curPageNo - 1}">上一页</a></c:if><a class="active" href="${curHerf}?page=${curPageNo}">${curPageNo}</a><c:if test="${curPageNo < pageCount}"><a href="${curHerf}?page=${curPageNo + 1}">下一页</a></c:if></nav>
+								</c:if>
+							</article>
+								</div>
 							</c:otherwise>
 						</c:choose>
-						<c:if test="${empty childrenNavList and pageCount > 1}">
-							<nav class="inner-pagination" aria-label="分页"><c:if test="${curPageNo > 1}"><a href="${curHerf}?page=${curPageNo - 1}">上一页</a></c:if><a class="active" href="${curHerf}?page=${curPageNo}">${curPageNo}</a><c:if test="${curPageNo < pageCount}"><a href="${curHerf}?page=${curPageNo + 1}">下一页</a></c:if></nav>
-						</c:if>
-					</article>
-				</div>
-			</section>
+					</section>
+				</c:otherwise>
+			</c:choose>
 		</main>
 
 		<%@ include file="college-red-footer.jsp"%>

+ 143 - 0
local-run/migrations/2026-09-01-001-college-red-news-text-list.sql

@@ -0,0 +1,143 @@
+-- Use the reference text-list layout for the red college template news column and its HXCS preview site.
+
+SET NAMES utf8mb4;
+USE sp_gzhx_apps;
+
+START TRANSACTION;
+
+SELECT COUNT(*) INTO @red_template_count
+FROM website_template
+WHERE config = 'ffkjcollegered1'
+  AND dcode = 61;
+
+SET @red_template_id := (
+  SELECT wtid
+  FROM website_template
+  WHERE config = 'ffkjcollegered1'
+    AND dcode = 61
+  ORDER BY wtid
+  LIMIT 1
+);
+
+SELECT COUNT(*) INTO @preview_website_count
+FROM website
+WHERE id_code = 'hxcs_ffkj_dept_red_preview_site'
+  AND wtid = @red_template_id
+  AND dcode = 61
+  AND FIND_IN_SET(
+    'ffkj-dept-red.hxcs.feifan.net',
+    REPLACE(TRIM(BOTH ';' FROM IFNULL(domains, '')), ';', ',')
+  ) > 0;
+
+SET @preview_website_id := (
+  SELECT websiteid
+  FROM website
+  WHERE id_code = 'hxcs_ffkj_dept_red_preview_site'
+    AND wtid = @red_template_id
+    AND dcode = 61
+    AND FIND_IN_SET(
+      'ffkj-dept-red.hxcs.feifan.net',
+      REPLACE(TRIM(BOTH ';' FROM IFNULL(domains, '')), ';', ',')
+    ) > 0
+  ORDER BY websiteid
+  LIMIT 1
+);
+
+SELECT COUNT(*) INTO @template_news_count
+FROM website_navigation
+WHERE wtid = @red_template_id
+  AND websiteid IS NULL
+  AND wnccode = 10010
+  AND dcode = 61
+  AND idcard = 'FFKJ_COLLEGE_NEWS'
+  AND url = '/shouyexinwen/';
+
+SELECT COUNT(*) INTO @preview_news_count
+FROM website_navigation
+WHERE websiteid = @preview_website_id
+  AND wtid IS NULL
+  AND wnccode = 10000
+  AND dcode = 61
+  AND idcard = 'FFKJ_COLLEGE_NEWS'
+  AND url = '/shouyexinwen/';
+
+SET @guard_sql := IF(
+  @red_template_count = 1
+    AND @red_template_id IS NOT NULL
+    AND @preview_website_count = 1
+    AND @preview_website_id IS NOT NULL
+    AND @template_news_count = 1
+    AND @preview_news_count = 1,
+  'SELECT 1',
+  'SELECT * FROM __college_red_news_text_list_target_guard_failed__'
+);
+PREPARE guard_stmt FROM @guard_sql;
+EXECUTE guard_stmt;
+DEALLOCATE PREPARE guard_stmt;
+
+UPDATE website_navigation
+SET wnlscode = 10000
+WHERE wtid = @red_template_id
+  AND websiteid IS NULL
+  AND wnccode = 10010
+  AND dcode = 61
+  AND idcard = 'FFKJ_COLLEGE_NEWS'
+  AND url = '/shouyexinwen/';
+
+UPDATE website_navigation
+SET wnlscode = 10000
+WHERE websiteid = @preview_website_id
+  AND wtid IS NULL
+  AND wnccode = 10000
+  AND dcode = 61
+  AND idcard = 'FFKJ_COLLEGE_NEWS'
+  AND url = '/shouyexinwen/';
+
+SELECT COUNT(*) INTO @updated_template_news_count
+FROM website_navigation
+WHERE wtid = @red_template_id
+  AND websiteid IS NULL
+  AND wnccode = 10010
+  AND dcode = 61
+  AND idcard = 'FFKJ_COLLEGE_NEWS'
+  AND url = '/shouyexinwen/'
+  AND wnlscode = 10000;
+
+SELECT COUNT(*) INTO @updated_preview_news_count
+FROM website_navigation
+WHERE websiteid = @preview_website_id
+  AND wtid IS NULL
+  AND wnccode = 10000
+  AND dcode = 61
+  AND idcard = 'FFKJ_COLLEGE_NEWS'
+  AND url = '/shouyexinwen/'
+  AND wnlscode = 10000;
+
+SET @guard_sql := IF(
+  @updated_template_news_count = 1
+    AND @updated_preview_news_count = 1,
+  'SELECT 1',
+  'SELECT * FROM __college_red_news_text_list_verify_failed__'
+);
+PREPARE guard_stmt FROM @guard_sql;
+EXECUTE guard_stmt;
+DEALLOCATE PREPARE guard_stmt;
+
+SELECT
+  navigationid,
+  websiteid,
+  wtid,
+  name,
+  url,
+  wnlscode
+FROM website_navigation
+WHERE dcode = 61
+  AND idcard = 'FFKJ_COLLEGE_NEWS'
+  AND url = '/shouyexinwen/'
+  AND (
+    wtid = @red_template_id
+    OR websiteid = @preview_website_id
+  )
+ORDER BY websiteid, wtid;
+
+COMMIT;