Просмотр исходного кода

收窄导航下拉并显示栏目海报

顶部导航下拉按参考站调整为 720px 宽、268px 海报列和两列 170px 子栏目,补齐展开裁切动效。直接使用现有栏目属性中的栏目海报字段为一级栏目配置缩略图,不新增数据库字段。

Validation:
- Chrome 实测下拉宽度 720px,列宽 268/170/170
- 有子栏目的一级导航均显示对应栏目海报
- /usr/bin/python3 /tmp/verify-gjjx-sites.py(主站 115、部门站 47,bad=0/external=0)
非繁 1 месяц назад
Родитель
Сommit
925eb5d980

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

@@ -9,6 +9,12 @@
 .gjjx-site .screen-desktop-nav .portal-nav-link{font-weight:500}
 .gjjx-site .portal-nav-item:hover>.portal-nav-link,.gjjx-site .portal-nav-item:focus-within>.portal-nav-link{color:#214b9f}
 .gjjx-site .portal-nav-panel{border-top-color:#214b9f!important}
+@media(min-width:901px){
+	.gjjx-site .screen-site-header .screen-desktop-nav .nav-wrap>.portal-nav-list>.portal-nav-item>.portal-nav-panel{left:50%;right:auto;--screen-panel-x:-50%;grid-template-columns:268px repeat(2,170px);gap:0 28px;width:min(calc(100vw - 48px),720px);padding:22px 28px 24px;overflow:hidden;clip-path:inset(0 0 100% 0);transition:opacity .22s ease,clip-path .3s cubic-bezier(.22,1,.36,1),visibility 0s linear .3s;will-change:opacity,clip-path}
+	.gjjx-site .screen-site-header .screen-desktop-nav .nav-wrap>.portal-nav-list>.portal-nav-item:hover>.portal-nav-panel,.gjjx-site .screen-site-header .screen-desktop-nav .nav-wrap>.portal-nav-list>.portal-nav-item:focus-within>.portal-nav-panel{clip-path:inset(0);transition:opacity .22s ease,clip-path .32s cubic-bezier(.22,1,.36,1),visibility 0s}
+	.gjjx-site .screen-site-header .screen-desktop-nav .nav-wrap>.portal-nav-list>.portal-nav-item>.portal-nav-panel>.portal-nav-item:not(.portal-nav-poster-item)>.portal-nav-link{min-height:32px;font-size:16px;line-height:1.4}
+	.gjjx-site .screen-site-header .portal-nav-poster{aspect-ratio:2.22/1}
+}
 .gjjx-hero-section{position:relative;background:#fff}
 .gjjx-hero{position:relative;height:clamp(610px,calc(46vw + 50px),870px);min-height:440px;overflow:hidden}
 .gjjx-hero-slide{position:absolute;inset:-2px -3vw;z-index:0;overflow:hidden;opacity:0;visibility:hidden;transition:opacity 1s ease}

+ 2 - 2
WebRoot/web/upload/ffkj-template/gjjx-catalog.jsp

@@ -1,5 +1,5 @@
 <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
 <c:set var="sidebarTitle" value="${empty parNavigation.name ? navigation.name : parNavigation.name}"/>
-<!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>${navigation.name}_${website.seoTitle}</title><link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-18"><link rel="stylesheet" href="/main/ffkj-portal/gjjx-blue.css?v=20261017-gjjx-blue-18"></head>
-<body class="screen-blue-theme gjjx-site gjjx-inner-page"><div class="portal-shell gjjx-site"><%@ include file="gjjx-header.jsp"%><main class="gjjx-inner-main"><div class="wrap gjjx-breadcrumb"><a href="/">首页</a><c:forEach items="${crumbsNavList}" var="item"><span>/</span><a href="${item.url}">${item.name}</a></c:forEach></div><section class="wrap gjjx-inner-layout"><aside class="gjjx-inner-sidebar"><div class="gjjx-sidebar-media"><img src="/main/ffkj-portal/gjjx/hero-3.jpg" alt="${sidebarTitle}"><strong>${sidebarTitle}</strong></div><nav><c:forEach items="${childrenNavList}" var="item"><a href="${item.href}" target="${item.target}">${item.name}</a></c:forEach></nav></aside><article class="gjjx-inner-panel"><div class="gjjx-inner-title"><h1>${navigation.name}</h1><span>${empty navigation.nameAssistant ? 'COLUMNS' : navigation.nameAssistant}</span></div><div class="gjjx-catalog-grid"><c:forEach items="${childrenNavList}" var="item"><a href="${item.href}" target="${item.target}"><strong>${item.name}</strong><p>${empty item.desc ? '进入该栏目查看更多内容。' : item.desc}</p><em>查看栏目 →</em></a></c:forEach></div></article></section></main><%@ include file="gjjx-footer.jsp"%></div><script src="/main/ffkj-portal/portal-zq.js?v=20261017-gjjx-blue-18"></script></body></html>
+<!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>${navigation.name}_${website.seoTitle}</title><link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-20"><link rel="stylesheet" href="/main/ffkj-portal/gjjx-blue.css?v=20261017-gjjx-blue-20"></head>
+<body class="screen-blue-theme gjjx-site gjjx-inner-page"><div class="portal-shell gjjx-site"><%@ include file="gjjx-header.jsp"%><main class="gjjx-inner-main"><div class="wrap gjjx-breadcrumb"><a href="/">首页</a><c:forEach items="${crumbsNavList}" var="item"><span>/</span><a href="${item.url}">${item.name}</a></c:forEach></div><section class="wrap gjjx-inner-layout"><aside class="gjjx-inner-sidebar"><div class="gjjx-sidebar-media"><img src="/main/ffkj-portal/gjjx/hero-3.jpg" alt="${sidebarTitle}"><strong>${sidebarTitle}</strong></div><nav><c:forEach items="${childrenNavList}" var="item"><a href="${item.href}" target="${item.target}">${item.name}</a></c:forEach></nav></aside><article class="gjjx-inner-panel"><div class="gjjx-inner-title"><h1>${navigation.name}</h1><span>${empty navigation.nameAssistant ? 'COLUMNS' : navigation.nameAssistant}</span></div><div class="gjjx-catalog-grid"><c:forEach items="${childrenNavList}" var="item"><a href="${item.href}" target="${item.target}"><strong>${item.name}</strong><p>${empty item.desc ? '进入该栏目查看更多内容。' : item.desc}</p><em>查看栏目 →</em></a></c:forEach></div></article></section></main><%@ include file="gjjx-footer.jsp"%></div><script src="/main/ffkj-portal/portal-zq.js?v=20261017-gjjx-blue-20"></script></body></html>

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

@@ -11,7 +11,7 @@
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-18">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-20">
 	<c:if test="${not empty portalThemeStyle}"><style>${portalThemeStyle}</style></c:if>
 </head>
 <body class="${portalThemeClass}">

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

@@ -10,7 +10,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="description" content="${articleDescription}">
 	<title>${articleTitle}_${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-18">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-20">
 	<c:if test="${not empty portalThemeStyle}"><style>${portalThemeStyle}</style></c:if>
 </head>
 <body class="${portalThemeClass}">

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

@@ -12,7 +12,7 @@
 	<meta name="keywords" content="${website.seoKeywords}">
 	<meta name="description" content="${website.seoDescription}">
 	<title>${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-18">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-20">
 	<c:if test="${not empty portalThemeStyle}"><style>${portalThemeStyle}</style></c:if>
 </head>
 <body class="${portalThemeClass}">

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

@@ -26,7 +26,7 @@
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-18">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-20">
 	<c:if test="${not empty portalThemeStyle}"><style>${portalThemeStyle}</style></c:if>
 </head>
 <body class="${portalThemeClass}">

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

@@ -10,7 +10,7 @@
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>站内搜索_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-18">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-20">
 	<c:if test="${not empty portalThemeStyle}"><style>${portalThemeStyle}</style></c:if>
 </head>
 <body class="${portalThemeClass}">

+ 2 - 2
WebRoot/web/upload/ffkj-template/gjjx-details.jsp

@@ -1,4 +1,4 @@
 <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
-<!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="description" content="${articleDescription}"><title>${articleTitle}_${navigation.name}_${website.seoTitle}</title><link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-18"><link rel="stylesheet" href="/main/ffkj-portal/gjjx-blue.css?v=20261017-gjjx-blue-18"></head>
-<body class="screen-blue-theme gjjx-site gjjx-inner-page"><div class="portal-shell gjjx-site"><%@ include file="gjjx-header.jsp"%><main class="gjjx-inner-main"><div class="wrap gjjx-breadcrumb"><a href="/">首页</a><c:forEach items="${crumbsNavList}" var="item"><span>/</span><a href="${item.url}">${item.name}</a></c:forEach></div><article class="wrap gjjx-detail"><h1>${articleTitle}</h1><div class="gjjx-detail-meta"><span>${navigation.name}</span><time>${articleReleaseTime}</time><span>来源:${articleSource}</span></div><div class="gjjx-detail-body">${articleContent}</div></article></main><%@ include file="gjjx-footer.jsp"%></div><script src="/main/ffkj-portal/portal-zq.js?v=20261017-gjjx-blue-18"></script><script src="/apps/space/js/secure-pdf.js?v=20260709-pdf-secure"></script></body></html>
+<!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="description" content="${articleDescription}"><title>${articleTitle}_${navigation.name}_${website.seoTitle}</title><link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-20"><link rel="stylesheet" href="/main/ffkj-portal/gjjx-blue.css?v=20261017-gjjx-blue-20"></head>
+<body class="screen-blue-theme gjjx-site gjjx-inner-page"><div class="portal-shell gjjx-site"><%@ include file="gjjx-header.jsp"%><main class="gjjx-inner-main"><div class="wrap gjjx-breadcrumb"><a href="/">首页</a><c:forEach items="${crumbsNavList}" var="item"><span>/</span><a href="${item.url}">${item.name}</a></c:forEach></div><article class="wrap gjjx-detail"><h1>${articleTitle}</h1><div class="gjjx-detail-meta"><span>${navigation.name}</span><time>${articleReleaseTime}</time><span>来源:${articleSource}</span></div><div class="gjjx-detail-body">${articleContent}</div></article></main><%@ include file="gjjx-footer.jsp"%></div><script src="/main/ffkj-portal/portal-zq.js?v=20261017-gjjx-blue-20"></script><script src="/apps/space/js/secure-pdf.js?v=20260709-pdf-secure"></script></body></html>

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

@@ -13,8 +13,8 @@
 	<meta name="keywords" content="${website.seoKeywords}">
 	<meta name="description" content="${website.seoDescription}">
 	<title>${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-18">
-	<link rel="stylesheet" href="/main/ffkj-portal/gjjx-blue.css?v=20261017-gjjx-blue-18">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-20">
+	<link rel="stylesheet" href="/main/ffkj-portal/gjjx-blue.css?v=20261017-gjjx-blue-20">
 </head>
 <body class="screen-blue-theme gjjx-site">
 <div class="portal-shell screen-shell screen-blue-theme gjjx-site">
@@ -164,7 +164,7 @@
 	</c:if>
 	<%@ include file="gjjx-footer.jsp"%>
 </div>
-<script src="/main/ffkj-portal/portal-zq.js?v=20261017-gjjx-blue-18"></script>
-<script src="/main/ffkj-portal/gjjx-blue.js?v=20261017-gjjx-blue-18"></script>
+<script src="/main/ffkj-portal/portal-zq.js?v=20261017-gjjx-blue-20"></script>
+<script src="/main/ffkj-portal/gjjx-blue.js?v=20261017-gjjx-blue-20"></script>
 </body>
 </html>

+ 2 - 2
WebRoot/web/upload/ffkj-template/gjjx-list.jsp

@@ -5,7 +5,7 @@
 <c:set var="sidebarTitle" value="${empty parNavigation.name ? navigation.name : parNavigation.name}"/>
 <c:set var="sidebarImage" value="${empty navigation.backgroundImage ? '/main/ffkj-portal/gjjx/hero-2.jpg' : navigation.backgroundImage}"/>
 <!doctype html>
-<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>${navigation.name}_${website.seoTitle}</title><link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-18"><link rel="stylesheet" href="/main/ffkj-portal/gjjx-blue.css?v=20261017-gjjx-blue-18"></head>
+<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>${navigation.name}_${website.seoTitle}</title><link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-20"><link rel="stylesheet" href="/main/ffkj-portal/gjjx-blue.css?v=20261017-gjjx-blue-20"></head>
 <body class="screen-blue-theme gjjx-site gjjx-inner-page"><div class="portal-shell gjjx-site">
 <%@ include file="gjjx-header.jsp"%>
 <main class="gjjx-inner-main">
@@ -16,4 +16,4 @@
 	</section>
 </main>
 <%@ include file="gjjx-footer.jsp"%>
-</div><script src="/main/ffkj-portal/portal-zq.js?v=20261017-gjjx-blue-18"></script></body></html>
+</div><script src="/main/ffkj-portal/portal-zq.js?v=20261017-gjjx-blue-20"></script></body></html>

+ 2 - 2
WebRoot/web/upload/ffkj-template/gjjx-org.jsp

@@ -1,8 +1,8 @@
 <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
 <!doctype html>
-<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>${navigation.name}_${website.seoTitle}</title><link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-18"><link rel="stylesheet" href="/main/ffkj-portal/gjjx-blue.css?v=20261017-gjjx-blue-18"></head>
+<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>${navigation.name}_${website.seoTitle}</title><link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-20"><link rel="stylesheet" href="/main/ffkj-portal/gjjx-blue.css?v=20261017-gjjx-blue-20"></head>
 <body class="screen-blue-theme gjjx-site screen-inner-shell screen-inner-hero-page org-structure-page"><div class="portal-shell screen-shell screen-blue-theme gjjx-site screen-inner-shell screen-inner-hero-page org-structure-page"><%@ include file="gjjx-header.jsp"%><main>
 	<section class="school-inner-hero"><div class="wrap inner-hero-inner"><div class="inner-breadcrumb"><a href="/">首页</a><c:forEach items="${crumbsNavList}" var="item"><span>›</span><a href="${item.url}">${item.name}</a></c:forEach></div><h1>${navigation.name}</h1><span>集中展示学校职能部门与教学单位设置</span></div></section>
 	<section class="inner-content"><div class="wrap inner-list-layout"><article class="inner-list-panel"><section class="org-structure-section"><nav class="org-structure-tabs" aria-label="${navigation.name}栏目"><c:forEach items="${orgTabList}" var="item"><a class="org-structure-tab ${item.navigationid eq orgActiveNavigationId ? 'is-active' : ''}" href="${item.href}" target="${item.target}">${item.name}</a></c:forEach></nav><div class="org-structure-panel"><c:choose><c:when test="${not empty orgContentNavList}"><ul class="org-structure-list"><c:forEach items="${orgContentNavList}" var="item"><c:choose><c:when test="${item.wntcode eq 10070}"><li class="is-static"><strong>${item.name}</strong></li></c:when><c:otherwise><li><a href="${item.href}" target="${item.target}"><strong>${item.name}</strong></a></li></c:otherwise></c:choose></c:forEach></ul></c:when><c:otherwise><div class="org-structure-empty">暂无内容。</div></c:otherwise></c:choose></div></section></article></div></section>
-</main><%@ include file="gjjx-footer.jsp"%></div><script src="/main/ffkj-portal/portal-zq.js?v=20261017-gjjx-blue-18"></script></body></html>
+</main><%@ include file="gjjx-footer.jsp"%></div><script src="/main/ffkj-portal/portal-zq.js?v=20261017-gjjx-blue-20"></script></body></html>

+ 2 - 2
WebRoot/web/upload/ffkj-template/gjjx-search.jsp

@@ -1,5 +1,5 @@
 <%@ 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"%>
-<!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>站内搜索_${website.seoTitle}</title><link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-18"><link rel="stylesheet" href="/main/ffkj-portal/gjjx-blue.css?v=20261017-gjjx-blue-18"></head>
-<body class="screen-blue-theme gjjx-site gjjx-inner-page"><div class="portal-shell gjjx-site"><%@ include file="gjjx-header.jsp"%><main class="gjjx-inner-main"><section class="wrap gjjx-inner-panel gjjx-search-panel"><div class="gjjx-inner-title"><h1>站内搜索</h1><span>搜索:${str}</span></div><c:choose><c:when test="${empty articleList}"><div class="gjjx-empty">没有找到匹配内容</div></c:when><c:otherwise><ul class="gjjx-article-list"><c:forEach items="${articleList}" var="item"><li><a href="${item.url}" target="${item.target}"><span><strong>${item.title}</strong><p>${item.desc}</p></span><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time></a></li></c:forEach></ul></c:otherwise></c:choose></section></main><%@ include file="gjjx-footer.jsp"%></div><script src="/main/ffkj-portal/portal-zq.js?v=20261017-gjjx-blue-18"></script></body></html>
+<!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>站内搜索_${website.seoTitle}</title><link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261017-gjjx-blue-20"><link rel="stylesheet" href="/main/ffkj-portal/gjjx-blue.css?v=20261017-gjjx-blue-20"></head>
+<body class="screen-blue-theme gjjx-site gjjx-inner-page"><div class="portal-shell gjjx-site"><%@ include file="gjjx-header.jsp"%><main class="gjjx-inner-main"><section class="wrap gjjx-inner-panel gjjx-search-panel"><div class="gjjx-inner-title"><h1>站内搜索</h1><span>搜索:${str}</span></div><c:choose><c:when test="${empty articleList}"><div class="gjjx-empty">没有找到匹配内容</div></c:when><c:otherwise><ul class="gjjx-article-list"><c:forEach items="${articleList}" var="item"><li><a href="${item.url}" target="${item.target}"><span><strong>${item.title}</strong><p>${item.desc}</p></span><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time></a></li></c:forEach></ul></c:otherwise></c:choose></section></main><%@ include file="gjjx-footer.jsp"%></div><script src="/main/ffkj-portal/portal-zq.js?v=20261017-gjjx-blue-20"></script></body></html>

+ 1 - 0
local-run/repairs/2026-10-17-huaxia-gjjx-templates.sql

@@ -112,6 +112,7 @@ SELECT 61,10000,10000,@main_site_id,NULL,s.idcard,s.name,s.assistant,s.name,CONC
 UPDATE website_navigation n JOIN gjjx_main_nav_seed s ON s.idcard=n.idcard SET n.name=s.name,n.name_assistant=s.assistant,n.title=s.name,n.`desc`=COALESCE(NULLIF(n.`desc`,''),CONCAT(s.name,'栏目')),n.wntcode=s.wntcode,n.wnscode=s.wnscode,n.wnjtcode=10010,n.wnlscode=s.wnlscode,n.uri=s.uri,n.url=s.url,n.parent_nid=NULL,n.sort_number=s.sort_number,n.dcode=61 WHERE n.websiteid=@main_site_id;
 UPDATE website_navigation n JOIN gjjx_main_nav_seed s ON s.idcard=n.idcard JOIN website_navigation p ON p.websiteid=@main_site_id AND p.idcard=s.parent_idcard SET n.parent_nid=p.navigationid WHERE n.websiteid=@main_site_id AND s.parent_idcard IS NOT NULL;
 UPDATE website_navigation SET `desc`=CASE idcard WHEN 'FFKJ_GJJX_HOME_NEWS' THEN '新闻' WHEN 'FFKJ_GJJX_HOME_NOTICE' THEN '公告' WHEN 'FFKJ_GJJX_HOME_MEDIA' THEN '媒体' WHEN 'FFKJ_GJJX_HOME_ADMISSION' THEN '招生' WHEN 'FFKJ_GJJX_HOME_PEOPLE' THEN '人物' WHEN 'FFKJ_GJJX_HOME_SOCIAL' THEN '社交' WHEN 'FFKJ_GJJX_HOME_INDUSTRY' THEN '产教融合' WHEN 'FFKJ_GJJX_HOME_SERVICE' THEN '服务' ELSE `desc` END WHERE (wtid=@main_template_id OR websiteid=@main_site_id) AND idcard IN ('FFKJ_GJJX_HOME_NEWS','FFKJ_GJJX_HOME_NOTICE','FFKJ_GJJX_HOME_MEDIA','FFKJ_GJJX_HOME_ADMISSION','FFKJ_GJJX_HOME_PEOPLE','FFKJ_GJJX_HOME_SOCIAL','FFKJ_GJJX_HOME_INDUSTRY','FFKJ_GJJX_HOME_SERVICE') AND (`desc` IS NULL OR `desc`='' OR `desc`=CONCAT(name,'栏目'));
+UPDATE website_navigation SET background_image=CASE idcard WHEN 'FFKJ_GJJX_ABOUT' THEN '/main/ffkj-portal/assets/official/banner-1.jpg' WHEN 'FFKJ_GJJX_ORG' THEN '/main/ffkj-portal/assets/official/view-1.jpg' WHEN 'FFKJ_GJJX_NEWS' THEN '/main/ffkj-portal/assets/official/banner-2.jpg' WHEN 'FFKJ_GJJX_ADMISSION' THEN '/main/ffkj-portal/assets/official/view-2.jpg' WHEN 'FFKJ_GJJX_TEACHING' THEN '/main/ffkj-portal/assets/official/view-3.jpg' WHEN 'FFKJ_GJJX_SERVICE' THEN '/main/ffkj-portal/assets/official/view-5.jpg' WHEN 'FFKJ_GJJX_RECRUIT' THEN '/main/ffkj-portal/assets/official/view-6.jpg' ELSE background_image END WHERE (wtid=@main_template_id OR websiteid=@main_site_id) AND idcard IN ('FFKJ_GJJX_ABOUT','FFKJ_GJJX_ORG','FFKJ_GJJX_NEWS','FFKJ_GJJX_ADMISSION','FFKJ_GJJX_TEACHING','FFKJ_GJJX_SERVICE','FFKJ_GJJX_RECRUIT') AND (background_image IS NULL OR background_image='');
 UPDATE website_navigation SET photo_size_width=1920,photo_size_height=1080 WHERE (wtid=@main_template_id OR websiteid=@main_site_id) AND idcard='FFKJ_GJJX_HOME_HERO';
 UPDATE website_navigation SET photo_size_width=240,photo_size_height=300 WHERE (wtid=@main_template_id OR websiteid=@main_site_id) AND idcard IN ('FFKJ_GJJX_HOME_PEOPLE','FFKJ_GJJX_HOME_PEOPLE_TEACHERS','FFKJ_GJJX_HOME_PEOPLE_ALUMNI','FFKJ_GJJX_HOME_PEOPLE_TALENTS');
 UPDATE website_navigation SET photo_size_width=240,photo_size_height=96 WHERE (wtid=@main_template_id OR websiteid=@main_site_id) AND idcard='FFKJ_GJJX_HOME_INDUSTRY';