1007510498_run.jsp 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <!-- 头部 -->
  4. <div class="header">
  5. <div class="header-top">
  6. <div class="wrap">
  7. <div class="header-img">
  8. <img src="/main/dist/websites/images/xxgc/header.png" alt="">
  9. <div class="mobile-nav-icon">
  10. <span></span>
  11. <span></span>
  12. <span></span>
  13. </div>
  14. </div>
  15. <div class="header-right header-right-top">
  16. <a href="javascript:;">
  17. 联系我们
  18. </a>
  19. </div>
  20. <div class="header-right header-right-search">
  21. <i id="search-btn"></i>
  22. <input type="text" id="search" placeholder="请输入关键字进行搜索">
  23. </div>
  24. </div>
  25. </div>
  26. <!-- 导航 -->
  27. <div class="header-nav">
  28. <ul class="wrap">
  29. <c:forEach items="${navList}" var="item">
  30. <li>
  31. <c:if test="${item.existChildren == '0'}">
  32. <a href="${item.href}" target="${item.target}">
  33. ${item.name}
  34. </a>
  35. </c:if>
  36. <c:if test="${item.existChildren == '1'}">
  37. <a href="${item.href}" target="${item.target}">
  38. ${item.name}
  39. <span>></span>
  40. </a>
  41. <ul class="nav-secondLevel">
  42. <c:forEach items="${item.children}" var="item2">
  43. <li>
  44. <c:if test="${item2.existChildren == '0'}">
  45. <a href="${item2.href}" target="${item2.target}">
  46. ${item2.name}
  47. </a>
  48. </c:if>
  49. <c:if test="${item2.existChildren == '1'}">
  50. <a href="${item2.href}" target="${item2.target}">
  51. ${item2.name}
  52. <span>></span>
  53. </a>
  54. <ul class="nav-threeLevel">
  55. <c:forEach items="${item2.children}" var="item3">
  56. <li>
  57. <a href="${item3.href}" target="${item3.target}">
  58. ${item3.name}
  59. </a>
  60. </li>
  61. </c:forEach>
  62. </ul>
  63. </c:if>
  64. </li>
  65. </c:forEach>
  66. </ul>
  67. </c:if>
  68. </li>
  69. </c:forEach>
  70. </ul>
  71. </div>
  72. <!-- 移动端导航,跟上面的导航一模一样,最外层的类名不一样 -->
  73. <div class="mobile-header-nav">
  74. <ul class="wrap">
  75. <c:forEach items="${navList}" var="item">
  76. <li>
  77. <c:if test="${item.existChildren == '0'}">
  78. <a href="${item.href}" target="${item.target}">
  79. ${item.name}
  80. </a>
  81. </c:if>
  82. <c:if test="${item.existChildren == '1'}">
  83. <a href="#">
  84. ${item.name}
  85. <span>></span>
  86. </a>
  87. <ul class="nav-secondLevel">
  88. <c:forEach items="${item.children}" var="item2">
  89. <li>
  90. <c:if test="${item2.existChildren == '0'}">
  91. <a href="${item2.href}" target="${item2.target}">
  92. ${item2.name}
  93. </a>
  94. </c:if>
  95. <c:if test="${item2.existChildren == '1'}">
  96. <a href="#">
  97. ${item2.name}
  98. <span>></span>
  99. </a>
  100. <ul class="nav-threeLevel">
  101. <c:forEach items="${item2.children}" var="item3">
  102. <li>
  103. <a href="${item3.href}" target="${item3.target}">
  104. ${item3.name}
  105. </a>
  106. </li>
  107. </c:forEach>
  108. </ul>
  109. </c:if>
  110. </li>
  111. </c:forEach>
  112. </ul>
  113. </c:if>
  114. </li>
  115. </c:forEach>
  116. </ul>
  117. </div>
  118. </div>