|
|
@@ -96,6 +96,16 @@
|
|
|
font-size: 12px;
|
|
|
font-style: normal;
|
|
|
}
|
|
|
+ .college-red-page .department-section-slide > em {
|
|
|
+ display: flex;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ color: var(--hx-muted);
|
|
|
+ font-size: 13px;
|
|
|
+ font-style: normal;
|
|
|
+ }
|
|
|
.college-red-page .department-notice-panel .department-major-graphic-list .department-section-copy {
|
|
|
min-width: 0;
|
|
|
}
|
|
|
@@ -250,10 +260,8 @@
|
|
|
<div class="department-section-carousel" aria-label="${sectionNav.name}轮播">
|
|
|
<c:forEach items="${homeSection.articleList}" var="item" varStatus="vs">
|
|
|
<c:if test="${vs.count le 5}">
|
|
|
- <c:set var="sectionImage" value="${assetBase}/official/campus-2.jpg"/>
|
|
|
- <c:if test="${not empty item.thumbnail}"><c:set var="sectionImage" value="${item.thumbnail}"/></c:if>
|
|
|
<a class="department-section-slide ${vs.first ? 'active' : ''}" href="${item.url}" target="${item.target}">
|
|
|
- <img src="${sectionImage}" alt="${item.title}">
|
|
|
+ <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><strong>${item.title}</strong></span>
|
|
|
</a>
|
|
|
</c:if>
|
|
|
@@ -278,9 +286,7 @@
|
|
|
<ul class="department-section-media-grid">
|
|
|
<c:forEach items="${homeSection.articleList}" var="item" varStatus="vs">
|
|
|
<c:if test="${vs.count le 4}">
|
|
|
- <c:set var="sectionImage" value="${assetBase}/official/campus-2.jpg"/>
|
|
|
- <c:if test="${not empty item.thumbnail}"><c:set var="sectionImage" value="${item.thumbnail}"/></c:if>
|
|
|
- <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>
|
|
|
+ <li><a href="${item.url}" target="${item.target}"><span class="department-section-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><b>${item.title}</b></a></li>
|
|
|
</c:if>
|
|
|
</c:forEach>
|
|
|
</ul>
|