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

细化技校模板全屏首屏和人物导览交互

首屏头部改为参考全屏风的透明覆盖和滚动白色吸顶;人物区拆分为优秀教师、优秀校友、技能之星三栏,悬停卡片同步切换左侧圆形主图;产教融合与服务直通车标题、内容均保持2:1;右侧快速导览采用参考站背景、技校Logo、文字菜单和返回顶部图标。

Validation:
- 1440 宽首屏 1425x712,头部背景透明且滚动后 is-compact
- 人物三栏共 6 张卡片,悬停陈校友后主图切换为 person-3.png
- 产教融合/服务直通车标题和内容列宽均为 777:389
- 快速导览滚动后显示,菜单为新闻/公告/招生/人物/社交/产教融合
- 两站 104+47 个 URL 全部 HTTP 200,禁用外部域名 0 条
非繁 пре 1 месец
родитељ
комит
835ed2402c
2 измењених фајлова са 26 додато и 8 уклоњено
  1. 14 0
      WebRoot/main/ffkj-portal/gjjx-blue.css
  2. 12 8
      WebRoot/web/upload/ffkj-template/gjjx-index.jsp

+ 14 - 0
WebRoot/main/ffkj-portal/gjjx-blue.css

@@ -184,3 +184,17 @@
 
 
 /* 产教融合/服务直通车标题与内容同宽同比例 */
 /* 产教融合/服务直通车标题与内容同宽同比例 */
 .gjjx-dual-heading{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
 .gjjx-dual-heading{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
+
+/* 全屏风头部:首屏透明覆盖,滚动后切换白色吸顶 */
+.gjjx-site .screen-site-header{background:transparent!important;box-shadow:none}
+.gjjx-site .screen-site-header.is-compact{background:rgba(255,255,255,.98)!important;box-shadow:0 5px 18px rgba(0,0,0,.1)!important}
+
+/* 华夏人物三类竖栏 */
+.gjjx-people-cards{align-items:stretch}
+.gjjx-people-category{display:flex;flex-direction:column;min-width:0;padding:16px;background:#f7f9fd;border:1px solid #e2e9f4}
+.gjjx-people-category h4{margin:0 0 13px;padding-bottom:10px;border-bottom:2px solid #214b9f;color:#214b9f;font-size:18px;font-weight:600;text-align:center}
+.gjjx-people-category-list{display:grid;gap:10px}
+.gjjx-people-category .gjjx-person-card{flex-direction:row;justify-content:flex-start;padding:10px;text-align:left;gap:10px}
+.gjjx-people-category .gjjx-person-photo{width:58px;height:58px;flex:0 0 58px}
+.gjjx-people-category .gjjx-person-card strong{margin-top:0;font-size:14px}
+@media(max-width:900px){.gjjx-people-category{padding:13px}.gjjx-people-cards{grid-template-columns:1fr!important}.gjjx-people-category-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

+ 12 - 8
WebRoot/web/upload/ffkj-template/gjjx-index.jsp

@@ -116,14 +116,18 @@
 									</div>
 									</div>
 								</div>
 								</div>
 								<div class="gjjx-people-cards">
 								<div class="gjjx-people-cards">
-									<c:forEach items="${section.articleList}" var="item" varStatus="vs">
-										<c:set var="personImage" value="${gjjxAsset}/person-${(vs.index % 6) + 1}.png"/>
-										<c:if test="${not empty item.thumbnail}"><c:set var="personImage" value="${item.thumbnail}"/></c:if>
-										<a class="gjjx-person-card${vs.first ? ' is-active' : ''}" data-gjjx-person-card data-portrait="${personImage}" data-name="${fn:escapeXml(item.title)}" data-role="${fn:escapeXml(empty item.source ? '华夏人物' : item.source)}" data-desc="${fn:escapeXml(item.desc)}" href="${item.url}" target="${item.target}">
-											<span class="gjjx-person-photo"><img src="${personImage}" alt="${item.title}"></span>
-											<strong>${item.title}</strong>
-										</a>
-									</c:forEach>
+									<c:set var="personCategory" value="优秀教师"/>
+									<section class="gjjx-people-category"><h4>优秀教师</h4><div class="gjjx-people-category-list">
+										<c:forEach items="${section.articleList}" var="item" varStatus="vs"><c:if test="${item.source eq personCategory}"><c:set var="personImage" value="${gjjxAsset}/person-${(vs.index % 6) + 1}.png"/><c:if test="${not empty item.thumbnail}"><c:set var="personImage" value="${item.thumbnail}"/></c:if><a class="gjjx-person-card${item.title eq firstPerson.title ? ' is-active' : ''}" data-gjjx-person-card data-portrait="${personImage}" data-name="${fn:escapeXml(item.title)}" data-role="${fn:escapeXml(personCategory)}" data-desc="${fn:escapeXml(item.desc)}" href="${item.url}" target="${item.target}"><span class="gjjx-person-photo"><img src="${personImage}" alt="${item.title}"></span><strong>${item.title}</strong></a></c:if></c:forEach>
+									</div></section>
+									<c:set var="personCategory" value="优秀校友"/>
+									<section class="gjjx-people-category"><h4>优秀校友</h4><div class="gjjx-people-category-list">
+										<c:forEach items="${section.articleList}" var="item" varStatus="vs"><c:if test="${item.source eq personCategory}"><c:set var="personImage" value="${gjjxAsset}/person-${(vs.index % 6) + 1}.png"/><c:if test="${not empty item.thumbnail}"><c:set var="personImage" value="${item.thumbnail}"/></c:if><a class="gjjx-person-card${item.title eq firstPerson.title ? ' is-active' : ''}" data-gjjx-person-card data-portrait="${personImage}" data-name="${fn:escapeXml(item.title)}" data-role="${fn:escapeXml(personCategory)}" data-desc="${fn:escapeXml(item.desc)}" href="${item.url}" target="${item.target}"><span class="gjjx-person-photo"><img src="${personImage}" alt="${item.title}"></span><strong>${item.title}</strong></a></c:if></c:forEach>
+									</div></section>
+									<c:set var="personCategory" value="技能之星"/>
+									<section class="gjjx-people-category"><h4>技能之星</h4><div class="gjjx-people-category-list">
+										<c:forEach items="${section.articleList}" var="item" varStatus="vs"><c:if test="${item.source eq personCategory}"><c:set var="personImage" value="${gjjxAsset}/person-${(vs.index % 6) + 1}.png"/><c:if test="${not empty item.thumbnail}"><c:set var="personImage" value="${item.thumbnail}"/></c:if><a class="gjjx-person-card${item.title eq firstPerson.title ? ' is-active' : ''}" data-gjjx-person-card data-portrait="${personImage}" data-name="${fn:escapeXml(item.title)}" data-role="${fn:escapeXml(personCategory)}" data-desc="${fn:escapeXml(item.desc)}" href="${item.url}" target="${item.target}"><span class="gjjx-person-photo"><img src="${personImage}" alt="${item.title}"></span><strong>${item.title}</strong></a></c:if></c:forEach>
+									</div></section>
 								</div>
 								</div>
 							</div>
 							</div>
 						</div>
 						</div>