Răsfoiți Sursa

修复部门模板页脚布局

页脚内容改为与页面同宽的居中布局,优先使用站点新徽标;联系地址与快捷入口分栏展示,版权信息独立到底部栏。修正联系方式图片被横向拉伸的问题,并优化移动端居中排版。

Validation:\n- PC 页脚主内容宽度 1200px,与首页内容对齐\n- PC 和移动端页脚均使用信息工程学院新徽标\n- 版权信息已拆分为独立底部栏\n- 联系方式图片保持 150×150 等比显示\n- 移动端无横向溢出,页面资源无加载失败
非繁 1 lună în urmă
părinte
comite
d0a4f0a55f

+ 19 - 10
WebRoot/main/ffkj-portal/dept-red.css

@@ -823,17 +823,20 @@ body.screen-red-theme .screen-footer-philosophy span {
 .dept-card time{margin-top:auto;color:#9299a2;font:14px Arial,sans-serif}
 .dept-card time{margin-top:auto;color:#9299a2;font:14px Arial,sans-serif}
 .dept-media-grid{margin-top:30px}
 .dept-media-grid{margin-top:30px}
 .dept-media-card .meta small.is-video:before{content:"▶";display:inline-block;margin-right:6px;color:var(--red)}
 .dept-media-card .meta small.is-video:before{content:"▶";display:inline-block;margin-right:6px;color:var(--red)}
-.dept-footer{margin-top:32px;padding:48px 0 30px;color:#fff;background:#94152c}
-.dept-footer-main{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(220px,.7fr) minmax(220px,.7fr);gap:44px;align-items:center}
-.dept-footer-contact{display:grid;gap:8px}
-.dept-footer-logo{display:block;width:auto;max-width:300px;height:56px;object-fit:contain;object-position:left center}
+.dept-footer{margin-top:32px;padding:38px 0 34px;color:#fff;background:#94152c}
+.dept-footer-main{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(180px,.65fr) minmax(210px,.65fr);gap:40px;width:var(--page);margin:0 auto;align-items:center}
+.dept-footer-contact{display:grid;min-width:0;gap:16px}
+.dept-footer-logo{display:block;width:auto;max-width:320px;height:58px;object-fit:contain;object-position:left center}
 .dept-footer-contact>strong{font-size:22px;font-weight:500}
 .dept-footer-contact>strong{font-size:22px;font-weight:500}
-.dept-footer-contact p{margin:0;color:rgba(255,255,255,.88);font-size:14px;line-height:1.8}
+.dept-footer-contact-lines{display:grid;gap:2px}
+.dept-footer-contact p{margin:0;color:rgba(255,255,255,.88);font-size:13px;line-height:1.75;overflow-wrap:anywhere}
 .dept-footer-links strong{display:block;margin-bottom:14px;font-size:17px;font-weight:500}
 .dept-footer-links strong{display:block;margin-bottom:14px;font-size:17px;font-weight:500}
-.dept-footer-links>div{display:grid;gap:9px}
-.dept-footer-links a{color:rgba(255,255,255,.9);font-size:14px;text-decoration:none}
+.dept-footer-links>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}
+.dept-footer-links a{overflow:hidden;color:rgba(255,255,255,.9);font-size:14px;line-height:1.8;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}
 .dept-footer-links a:hover{color:#fff;text-decoration:underline}
 .dept-footer-links a:hover{color:#fff;text-decoration:underline}
-.dept-footer-image img{display:block;width:100%;max-height:150px;object-fit:contain}
+.dept-footer-image{display:flex;justify-content:flex-end}
+.dept-footer-image img{display:block;width:150px;height:150px;padding:5px;background:#fff;object-fit:contain}
+.dept-footer-copyright{padding:11px 0;color:rgba(255,255,255,.76);background:#760c1b;font-size:12px;line-height:20px;text-align:center}
 @media (max-width:900px){
 @media (max-width:900px){
   .dept-red-page main.dept-home-main{width:var(--page)}
   .dept-red-page main.dept-home-main{width:var(--page)}
   .dept-hero-section{margin-top:20px}
   .dept-hero-section{margin-top:20px}
@@ -844,9 +847,15 @@ body.screen-red-theme .screen-footer-philosophy span {
   .dept-card strong{font-size:15px}
   .dept-card strong{font-size:15px}
   .dept-home-section .plain-list li a{display:block}
   .dept-home-section .plain-list li a{display:block}
   .dept-home-section .plain-list li a time{display:block;float:none;margin:6px 0 0}
   .dept-home-section .plain-list li a time{display:block;float:none;margin:6px 0 0}
-  .dept-footer-main{grid-template-columns:1fr;gap:24px}
-  .dept-footer-logo{max-width:240px}
+  .dept-footer{padding:30px 0 26px}
+  .dept-footer-main{grid-template-columns:1fr;gap:24px;text-align:center}
+  .dept-footer-contact{justify-items:center;gap:12px;text-align:center}
+  .dept-footer-logo{width:min(300px,100%);max-width:100%;height:auto}
+  .dept-footer-contact p{font-size:13px;line-height:1.75}
+  .dept-footer-links>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
+  .dept-footer-links a{text-align:center}
   .dept-footer-image{display:none}
   .dept-footer-image{display:none}
+  .dept-footer-copyright{padding:10px 0;font-size:11px;line-height:18px}
 }
 }
 
 
 /* 首页首屏:左侧轮播,右侧公告 */
 /* 首页首屏:左侧轮播,右侧公告 */

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

@@ -10,7 +10,7 @@
 	<meta charset="UTF-8">
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${navigation.name}_${website.seoTitle}</title>
 	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-mobile-header-1">
+	<link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-footer-1">
 </head>
 </head>
 <body class="screen-red-theme screen-list-page">
 <body class="screen-red-theme screen-list-page">
 	<%@ include file="dept-red-header.jsp"%>
 	<%@ include file="dept-red-header.jsp"%>

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

@@ -7,7 +7,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="description" content="${articleDescription}">
 	<meta name="description" content="${articleDescription}">
 	<title>${articleTitle}_${navigation.name}_${website.seoTitle}</title>
 	<title>${articleTitle}_${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-mobile-header-1">
+	<link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-footer-1">
 </head>
 </head>
 <body class="screen-red-theme">
 <body class="screen-red-theme">
 	<%@ include file="dept-red-header.jsp"%>
 	<%@ include file="dept-red-header.jsp"%>

+ 17 - 11
WebRoot/web/upload/ffkj-template/dept-red-footer.jsp

@@ -2,22 +2,25 @@
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
 <c:set var="deptFooterLogo" value="${website.logo}"/>
 <c:set var="deptFooterLogo" value="${website.logo}"/>
-<c:if test="${not empty deptFooterLogoNmv.articleList[0].thumbnail}"><c:set var="deptFooterLogo" value="${deptFooterLogoNmv.articleList[0].thumbnail}"/></c:if>
+<c:if test="${empty deptFooterLogo and not empty deptFooterLogoNmv.articleList[0].thumbnail}"><c:set var="deptFooterLogo" value="${deptFooterLogoNmv.articleList[0].thumbnail}"/></c:if>
 <c:set var="deptContactImage" value="${deptFooterImageNmv.articleList[0].thumbnail}"/>
 <c:set var="deptContactImage" value="${deptFooterImageNmv.articleList[0].thumbnail}"/>
+<c:set var="deptCopyrightText" value=""/>
+<c:forEach items="${deptFooterAddressNmv.articleList}" var="item">
+	<c:if test="${fn:startsWith(item.title, '版权所有')}"><c:set var="deptCopyrightText" value="${item.title}"/></c:if>
+</c:forEach>
 <footer class="dept-footer">
 <footer class="dept-footer">
 	<div class="wrap dept-footer-main">
 	<div class="wrap dept-footer-main">
 		<div class="dept-footer-contact">
 		<div class="dept-footer-contact">
 			<c:if test="${not empty deptFooterLogo}"><img class="dept-footer-logo" src="${deptFooterLogo}" alt="${website.name}"></c:if>
 			<c:if test="${not empty deptFooterLogo}"><img class="dept-footer-logo" src="${deptFooterLogo}" alt="${website.name}"></c:if>
-			<strong>${website.name}</strong>
-			<c:forEach items="${deptFooterAddressNmv.articleList}" var="item">
-				<c:if test="${fn:startsWith(item.title, '地址')}">
-					<p>${item.title}</p>
-					<c:if test="${not empty item.desc and item.desc ne item.title}"><p>${item.desc}</p></c:if>
-				</c:if>
-			</c:forEach>
-			<c:forEach items="${deptFooterAddressNmv.articleList}" var="item">
-				<c:if test="${not fn:startsWith(item.title, '地址')}"><p>${item.title}</p></c:if>
-			</c:forEach>
+			<c:if test="${empty deptFooterLogo}"><strong>${website.name}</strong></c:if>
+			<div class="dept-footer-contact-lines">
+				<c:forEach items="${deptFooterAddressNmv.articleList}" var="item">
+					<c:if test="${fn:startsWith(item.title, '地址')}">
+						<p>${item.title}</p>
+						<c:if test="${not empty item.desc and item.desc ne item.title}"><p>${item.desc}</p></c:if>
+					</c:if>
+				</c:forEach>
+			</div>
 		</div>
 		</div>
 		<div class="dept-footer-links">
 		<div class="dept-footer-links">
 			<strong>快捷入口</strong>
 			<strong>快捷入口</strong>
@@ -28,3 +31,6 @@
 		<c:if test="${not empty deptContactImage}"><div class="dept-footer-image"><img src="${deptContactImage}" alt="${website.name}联系方式"></div></c:if>
 		<c:if test="${not empty deptContactImage}"><div class="dept-footer-image"><img src="${deptContactImage}" alt="${website.name}联系方式"></div></c:if>
 	</div>
 	</div>
 </footer>
 </footer>
+<c:if test="${not empty deptCopyrightText}">
+	<div class="dept-footer-copyright"><div class="wrap">${deptCopyrightText}</div></div>
+</c:if>

+ 1 - 1
WebRoot/web/upload/ffkj-template/dept-red-index.jsp

@@ -10,7 +10,7 @@
 	<meta name="keywords" content="${website.seoKeywords}">
 	<meta name="keywords" content="${website.seoKeywords}">
 	<meta name="description" content="${website.seoDescription}">
 	<meta name="description" content="${website.seoDescription}">
 	<title>${website.seoTitle}</title>
 	<title>${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-mobile-header-1">
+	<link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-footer-1">
 </head>
 </head>
 <body class="screen-red-theme dept-red-page">
 <body class="screen-red-theme dept-red-page">
 	<%@ include file="dept-red-header.jsp"%>
 	<%@ include file="dept-red-header.jsp"%>

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

@@ -13,7 +13,7 @@
 	<meta charset="UTF-8">
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${navigation.name}_${website.seoTitle}</title>
 	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-mobile-header-1">
+	<link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-footer-1">
 </head>
 </head>
 <body class="screen-red-theme screen-list-page">
 <body class="screen-red-theme screen-list-page">
 	<%@ include file="dept-red-header.jsp"%>
 	<%@ include file="dept-red-header.jsp"%>

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

@@ -8,7 +8,7 @@
 	<meta charset="UTF-8">
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>站内搜索_${website.seoTitle}</title>
 	<title>站内搜索_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-mobile-header-1">
+	<link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-footer-1">
 </head>
 </head>
 <body class="screen-red-theme">
 <body class="screen-red-theme">
 	<%@ include file="dept-red-header.jsp"%>
 	<%@ include file="dept-red-header.jsp"%>