ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
## 头部模板 ### 1.网站信息website **说明** *网站信息对象 website* **主要字段** | 字段 | 类型 | 描述 | | --- | --- | --- | | name | string | 网站名 | | logoImgs | string | 首页LOGO | | id | Long | 网站id | | copyrightContent | String | 网站版权内容 | **演示** ~~~ <!--头部标题--> <title>${(website.name)!}</title> <!--LOGO--> <img src="<#if website.logoImgs?? && website.logoImgs!="">${contextPath}${(website.logoImgs)}<#else>${contextPath}/res/cnlxex/images/logo.jpg</#if>" width="317" height="71" /> <!--首页链接--> <a href="${contextPath}/www/index.do?id=${(website.id)!}">学校首页</a> <!--底部--> <#noescape>${(website.copyrightContent)!'版权所有:<a href="http://www.thanone.com/" target="_blank">温州掌网信息技术有限公司</a>'}</#noescape> ~~~ ### 2.主菜单menuCatalogList **说明** *网站信息对象 menuCatalogList,该对象为List类型,存放了Catalog对象,用来循环遍历主菜单栏目* **Catalog主要字段** | 参数 | 类型 | 描述 | | --- | --- | --- | | id | Long | 栏目id | | name | String | 栏目名字 | | show\_urls | String | 栏目链接 | | show\_children | List<> | 二级栏目 | **演示** ~~~ <#if menuCatalogList?? && menuCatalogList != ""> <#list menuCatalogList as m> <li><a href="javascript:" <#if m_index==0>class="nav-li nav-vv" <#else>class="nav-li"</#if>>${(m.name)!}</a> <ul> <#if m.show_children?? && m.show_children!=''> <#list m.show_children as c> <li><a href="${(c.show_urls)!}">${(c.name)!}</a></li> </#list> </#if> </ul> </li> </#list> </#if> ~~~ ### 3.头部搜索 **说明** *头部公共搜索功能,接口为 ${contextPath}/www/search.do,如果使用 form表单提交,name属性必须与参数名一致* **参数** | 参数 | 类型 | 描述 | | --- | --- | --- | | searchKey | string | 关键字 | | siteId | Long | 网站id,用${[website.id](http://website.id/)} | **地址** *${contextPath}/www/search.do* **演示** ~~~ <form id="frm_search" name="frm_search" method="post" action="${contextPath}/www/search.do"> <input type="text" placeholder="请输入关键词" value="${(searchKey)!}" name="searchKey" /> <input type="submit" name="btn_search_submit class="btn" value="搜索" /> <input type="hidden" name="siteId" value="${(website.id)!}"/> </form> ~~~