|
@@ -0,0 +1,45 @@
|
|
|
+<header xmlns:th="https://www.thymeleaf.org">
|
|
|
+ <div class="bk-header">
|
|
|
+ <div class="bk-container">
|
|
|
+ <div class="bk-logo">
|
|
|
+ <a th:href="'/encyclopedia/list.html'" title="采美百科">
|
|
|
+ <h1>采美百科</h1>
|
|
|
+ <img src="/img/encyclopedia/assets/pc-logo.png" alt="采美百科" class="only-pc"/>
|
|
|
+ <img src="/img/encyclopedia/assets/h5-logo.png" alt="采美百科" class="only-mobile"/>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ <div class="only-mobile bk-menu">
|
|
|
+ <span class="bk-search-btn"></span>
|
|
|
+ <span class="bk-menu-name">菜单</span>
|
|
|
+ <span class="bk-collapse-btn"></span>
|
|
|
+ </div>
|
|
|
+ <div class="bk-search-container">
|
|
|
+ <div class="bk-search-menu only-mobile">
|
|
|
+ <span class="bk-name">菜单</span>
|
|
|
+ <span class="bk-search-close"></span>
|
|
|
+ </div>
|
|
|
+ <form method="" id="searchForm">
|
|
|
+ <div class="bk-search-control">
|
|
|
+ <label><input id="searchInput" type="text" disabled placeholder="搜索词条"/></label>
|
|
|
+ <button type="submit">搜索</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ <ul class="bk-hot-keyword">
|
|
|
+ <li th:each="item : ${hotSeracherWords}" th:object="${item}" th:if="${(item.jumpType eq 1) or (item.jumpType eq 4)}">
|
|
|
+ <a th:href="'/encyclopedia/search.html?keyword=' + *{keyWord}" th:if="*{jumpType eq 1}" th:text="*{keyWord}"></a>
|
|
|
+ <a th:href="*{jumpLink}" th:if="*{jumpType eq 4}" th:text="*{keyWord}" target="_blank"></a>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="bk-nav">
|
|
|
+ <ul class="bk-navbar bk-container">
|
|
|
+ <li th:each="item,stat : ${TypeList}" th:object="${item}" th:if="${stat.index < 8}">
|
|
|
+ <a th:href="'/encyclopedia/list-' + *{typeId} + '.html'" th:text="*{name}"></a>
|
|
|
+ </li>
|
|
|
+ <li><a href="#">走进百科</a></li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <input type="hidden" th:value="${coreServer}" id="coreServer">
|
|
|
+</header>
|