college-blue-index.jsp 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
  4. <c:set var="assetBase" value="/main/ffkj-portal/assets"/>
  5. <c:set var="departmentLogo" value="${assetBase}/official/logo.png"/>
  6. <c:if test="${not empty website.logo}"><c:set var="departmentLogo" value="${website.logo}"/></c:if>
  7. <!doctype html>
  8. <html lang="zh-CN">
  9. <head>
  10. <meta charset="UTF-8">
  11. <meta name="viewport" content="width=device-width, initial-scale=1">
  12. <meta name="keywords" content="${website.seoKeywords}">
  13. <meta name="description" content="${website.seoDescription}">
  14. <title>${website.seoTitle}</title>
  15. <link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261117-360-legacy-layout-r2"><link rel="stylesheet" href="/web/upload/modules/sys/upload/files/2026/11/17/portal-360-compat-r2.css?v=20261117-360-compat-r2">
  16. <c:if test="${not empty portalThemeStyle}"><style>${portalThemeStyle}</style></c:if>
  17. </head>
  18. <body class="${portalThemeClass}">
  19. <div class="college-page college-department-page college-blue-page ${portalThemeClass}">
  20. <header class="college-header department-header">
  21. <div class="department-utility">
  22. <div class="wrap department-utility-inner">
  23. <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></c:otherwise></c:choose></nav>
  24. <form class="department-search" action="/search" method="get">
  25. <input name="str" type="search" placeholder="搜索" aria-label="学院站内搜索">
  26. <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>
  27. </form>
  28. </div>
  29. </div>
  30. <div class="department-brand">
  31. <div class="wrap department-brand-inner">
  32. <a class="department-logo" href="/" aria-label="${website.name}">
  33. <img src="${departmentLogo}" alt="${website.name}">
  34. <span>${website.seoTitle}</span>
  35. </a>
  36. <button class="mobile-menu department-mobile-menu" type="button" aria-label="打开导航"><span></span><span></span><span></span></button>
  37. </div>
  38. </div>
  39. </header>
  40. <nav class="college-nav department-nav" aria-label="${website.name}导航">
  41. <div class="wrap college-nav-inner">
  42. ${desktopNavHtmlWithHome}
  43. </div>
  44. </nav>
  45. <div class="drawer-layer" hidden>
  46. <button class="drawer-mask" type="button" aria-label="关闭导航"></button>
  47. <aside class="drawer" aria-label="${website.name}移动端导航">
  48. <div class="drawer-head"><strong>${website.seoTitle}</strong><button type="button" aria-label="关闭导航">×</button></div>
  49. ${drawerNavHtmlWithHome}
  50. </aside>
  51. </div>
  52. <main>
  53. <section class="department-hero" aria-label="${website.name}焦点图">
  54. <div class="wrap department-hero-inner">
  55. <div class="department-hero-track">
  56. <c:choose>
  57. <c:when test="${not empty collegeHeroNmv.articleList}">
  58. <c:forEach items="${collegeHeroNmv.articleList}" var="slide" varStatus="vs">
  59. <c:set var="slideImage" value="${assetBase}/official/view-hero.jpg"/>
  60. <c:if test="${not empty slide.thumbnail}"><c:set var="slideImage" value="${slide.thumbnail}"/></c:if>
  61. <article class="${vs.first ? 'active' : ''}">
  62. <img src="${slideImage}" alt="${slide.title}">
  63. <div><h1>${slide.title}</h1><p>${slide.desc}</p></div>
  64. </article>
  65. </c:forEach>
  66. </c:when>
  67. <c:otherwise><article class="active"><img src="${assetBase}/official/view-hero.jpg" alt="${website.name}"><div><h1>${website.name}</h1><p>${website.seoDescription}</p></div></article></c:otherwise>
  68. </c:choose>
  69. <button class="department-hero-arrow prev" type="button" aria-label="上一张">‹</button>
  70. <button class="department-hero-arrow next" type="button" aria-label="下一张">›</button>
  71. <div class="department-hero-dots" aria-label="轮播分页"><c:forEach items="${collegeHeroNmv.articleList}" var="slide" varStatus="vs"><button type="button" class="${vs.first ? 'active' : ''}" aria-label="切换到第 ${vs.count} 张"></button></c:forEach></div>
  72. </div>
  73. </div>
  74. </section>
  75. <section class="department-main">
  76. <div class="wrap department-main-grid">
  77. <article class="department-news-panel">
  78. <div class="department-section-title"><h2>${empty collegeNewsNmv.navigationMap.name ? '新闻动态' : collegeNewsNmv.navigationMap.name}</h2><a href="${collegeNewsNmv.navigationMap.url}">查看更多</a></div>
  79. <div class="department-news-layout">
  80. <c:forEach items="${collegeNewsNmv.articleList}" var="item" varStatus="vs">
  81. <c:if test="${vs.first}">
  82. <c:set var="newsImage" value="${assetBase}/official/banner-1.jpg"/>
  83. <c:if test="${not empty item.thumbnail}"><c:set var="newsImage" value="${item.thumbnail}"/></c:if>
  84. <a class="department-feature-news" href="${item.url}" target="${item.target}"><span class="department-feature-image"><img src="${newsImage}" alt="${item.title}"></span><h3>${item.title}</h3><time>${fn:substring(item.release_time, 0, 10)}</time><p>${item.desc}</p></a>
  85. </c:if>
  86. </c:forEach>
  87. <ul class="department-news-list">
  88. <c:forEach items="${collegeNewsNmv.articleList}" var="item" varStatus="vs"><c:if test="${not vs.first}"><li><a href="${item.url}" target="${item.target}"><strong>${item.title}</strong><p>${item.desc}</p><time>${fn:substring(item.release_time, 0, 10)}</time></a></li></c:if></c:forEach>
  89. </ul>
  90. </div>
  91. </article>
  92. <aside class="department-notice-panel">
  93. <div class="department-section-title"><h2>${empty collegeMajorNmv.navigationMap.name ? '专业建设' : collegeMajorNmv.navigationMap.name}</h2><a href="${collegeMajorNmv.navigationMap.url}">查看更多</a></div>
  94. <ul>
  95. <c:forEach items="${collegeMajorNmv.articleList}" var="item"><li><a href="${item.url}" target="${item.target}"><span><strong>${fn:substring(item.release_time, 8, 10)}</strong><em>${fn:substring(item.release_time, 0, 7)}</em></span><b>${item.title}</b><small>${item.desc}</small></a></li></c:forEach>
  96. </ul>
  97. </aside>
  98. </div>
  99. </section>
  100. <section class="department-life department-home-sections">
  101. <c:choose>
  102. <c:when test="${not empty collegeHomeSectionRows}">
  103. <c:forEach items="${collegeHomeSectionRows}" var="homeSectionRow" varStatus="rowVs">
  104. <div class="department-home-section-row department-home-section-row-${rowVs.index % 2 == 0 ? 'a' : 'b'}">
  105. <div class="wrap department-life-grid department-home-section-grid">
  106. <c:forEach items="${homeSectionRow}" var="homeSection">
  107. <c:set var="sectionNav" value="${homeSection.navigationMap}"/>
  108. <c:set var="sectionListStyleCode" value="${empty sectionNav.wnlscode ? 10000 : sectionNav.wnlscode}"/>
  109. <c:set var="sectionIsTextList" value="${sectionListStyleCode == 10000}"/>
  110. <c:set var="sectionIsGraphicList" value="${sectionListStyleCode == 10010}"/>
  111. <c:set var="sectionIsCarouselList" value="${sectionListStyleCode == 10020}"/>
  112. <c:set var="sectionIsMediaGrid" value="${sectionListStyleCode == 10030 or sectionListStyleCode == 10050}"/>
  113. <c:set var="sectionHref" value="${empty sectionNav.href ? sectionNav.url : sectionNav.href}"/>
  114. <article class="department-list-panel department-home-panel ${sectionIsGraphicList ? 'is-graphic-list' : ''} ${sectionIsCarouselList ? 'is-carousel-list' : ''} ${sectionIsMediaGrid ? 'is-media-grid' : ''}">
  115. <div class="department-section-title"><h2>${sectionNav.name}</h2><a href="${sectionHref}" target="${sectionNav.target}">查看更多</a></div>
  116. <c:choose>
  117. <c:when test="${sectionIsCarouselList}">
  118. <div class="department-section-carousel" aria-label="${sectionNav.name}轮播">
  119. <c:choose>
  120. <c:when test="${not empty homeSection.articleList}">
  121. <c:forEach items="${homeSection.articleList}" var="item" varStatus="vs">
  122. <c:if test="${vs.count le 5}">
  123. <c:set var="sectionImage" value="${assetBase}/official/campus-2.jpg"/>
  124. <c:if test="${not empty item.thumbnail}"><c:set var="sectionImage" value="${item.thumbnail}"/></c:if>
  125. <a class="department-section-slide ${vs.first ? 'active' : ''}" href="${item.url}" target="${item.target}">
  126. <img src="${sectionImage}" alt="${item.title}">
  127. <span><strong>${item.title}</strong><small>${item.desc}</small></span>
  128. </a>
  129. </c:if>
  130. </c:forEach>
  131. </c:when>
  132. <c:otherwise>
  133. <a class="department-section-slide active" href="${sectionHref}" target="${sectionNav.target}"><img src="${assetBase}/official/campus-2.jpg" alt="${sectionNav.name}"><span><strong>${sectionNav.name}</strong><small>${sectionNav.desc}</small></span></a>
  134. </c:otherwise>
  135. </c:choose>
  136. <button class="department-section-arrow prev" type="button" aria-label="上一条">‹</button>
  137. <button class="department-section-arrow next" type="button" aria-label="下一条">›</button>
  138. <div class="department-section-dots" aria-label="${sectionNav.name}轮播分页">
  139. <c:choose>
  140. <c:when test="${not empty homeSection.articleList}">
  141. <c:forEach items="${homeSection.articleList}" var="item" varStatus="vs"><c:if test="${vs.count le 5}"><button type="button" class="${vs.first ? 'active' : ''}" aria-label="切换到第 ${vs.count} 条"></button></c:if></c:forEach>
  142. </c:when>
  143. <c:otherwise><button type="button" class="active" aria-label="切换到第 1 条"></button></c:otherwise>
  144. </c:choose>
  145. </div>
  146. </div>
  147. </c:when>
  148. <c:when test="${sectionIsGraphicList}">
  149. <ul class="department-section-graphic-list">
  150. <c:forEach items="${homeSection.articleList}" var="item" varStatus="vs">
  151. <c:if test="${vs.count le 5}">
  152. <c:set var="sectionImage" value="${assetBase}/official/campus-2.jpg"/>
  153. <c:if test="${not empty item.thumbnail}"><c:set var="sectionImage" value="${item.thumbnail}"/></c:if>
  154. <li><a href="${item.url}" target="${item.target}"><span class="department-section-thumb"><img src="${sectionImage}" alt="${item.title}"></span><span class="department-section-copy"><b>${item.title}</b><small>${item.desc}</small><time>${fn:substring(item.release_time, 0, 10)}</time></span></a></li>
  155. </c:if>
  156. </c:forEach>
  157. </ul>
  158. </c:when>
  159. <c:when test="${sectionIsMediaGrid}">
  160. <ul class="department-section-media-grid">
  161. <c:forEach items="${homeSection.articleList}" var="item" varStatus="vs">
  162. <c:if test="${vs.count le 4}">
  163. <c:set var="sectionImage" value="${assetBase}/official/campus-2.jpg"/>
  164. <c:if test="${not empty item.thumbnail}"><c:set var="sectionImage" value="${item.thumbnail}"/></c:if>
  165. <li><a href="${item.url}" target="${item.target}"><span class="department-section-thumb"><img src="${sectionImage}" alt="${item.title}"></span><b>${item.title}</b></a></li>
  166. </c:if>
  167. </c:forEach>
  168. </ul>
  169. </c:when>
  170. <c:otherwise>
  171. <ul class="department-news-list department-plain-list">
  172. <c:forEach items="${homeSection.articleList}" var="item" varStatus="vs">
  173. <c:if test="${vs.count le 5}"><li><a href="${item.url}" target="${item.target}"><span><strong>${fn:substring(item.release_time, 8, 10)}</strong><em>${fn:substring(item.release_time, 0, 7)}</em></span><div><b>${item.title}</b><small>${item.desc}</small></div></a></li></c:if>
  174. </c:forEach>
  175. </ul>
  176. </c:otherwise>
  177. </c:choose>
  178. </article>
  179. </c:forEach>
  180. </div>
  181. </div>
  182. </c:forEach>
  183. </c:when>
  184. <c:otherwise>
  185. <div class="department-home-section-row department-home-section-row-a">
  186. <div class="wrap department-life-grid department-home-section-grid">
  187. <article class="department-list-panel department-home-panel">
  188. <div class="department-section-title"><h2>${empty collegeIntroNmv.navigationMap.name ? '专业介绍' : collegeIntroNmv.navigationMap.name}</h2><a href="${empty collegeIntroNmv.navigationMap.url ? collegeMajorNmv.navigationMap.url : collegeIntroNmv.navigationMap.url}">查看更多</a></div>
  189. <ul class="department-news-list department-plain-list"><c:forEach items="${empty collegeIntroNmv.articleList ? collegeMajorNmv.articleList : collegeIntroNmv.articleList}" var="major" varStatus="vs"><c:if test="${vs.count le 5}"><li><a href="${major.url}" target="${major.target}"><span><strong>${fn:substring(major.release_time, 8, 10)}</strong><em>${fn:substring(major.release_time, 0, 7)}</em></span><div><b>${major.title}</b><small>${major.desc}</small></div></a></li></c:if></c:forEach></ul>
  190. </article>
  191. <article class="department-list-panel department-home-panel">
  192. <div class="department-section-title"><h2>${empty collegeFeatureNmv.navigationMap.name ? '学院风采' : collegeFeatureNmv.navigationMap.name}</h2><a href="${collegeFeatureNmv.navigationMap.url}">查看更多</a></div>
  193. <ul class="department-news-list department-plain-list"><c:forEach items="${collegeFeatureNmv.articleList}" var="item" varStatus="vs"><c:if test="${vs.count le 5}"><li><a href="${item.url}" target="${item.target}"><span><strong>${fn:substring(item.release_time, 8, 10)}</strong><em>${fn:substring(item.release_time, 0, 7)}</em></span><div><b>${item.title}</b><small>${item.desc}</small></div></a></li></c:if></c:forEach></ul>
  194. </article>
  195. </div>
  196. </div>
  197. </c:otherwise>
  198. </c:choose>
  199. </section>
  200. </main>
  201. <%@ include file="college-blue-footer.jsp"%>
  202. </div>
  203. <script src="/main/ffkj-portal/portal-zq.js?v=20261109-nav-focus-close"></script>
  204. </body>
  205. </html>