1006010379_run.jsp 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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/header/header-jzyyscmxy.jpg" 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">
  16. <div class="header-search">
  17. <input type="text" id="search">
  18. <i id="search-btn" class="header-search-icon"></i>
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. <!-- 导航 -->
  24. <div class="header-nav">
  25. <ul class="wrap">
  26. <c:forEach items="${navList}" var="item">
  27. <li>
  28. <c:if test="${item.existChildren == '0'}">
  29. <a href="${item.href}" target="${item.target}">
  30. ${item.name}
  31. </a>
  32. </c:if>
  33. <c:if test="${item.existChildren == '1'}">
  34. <a href="${item.href}" target="${item.target}">
  35. ${item.name}
  36. <span>></span>
  37. </a>
  38. <ul class="nav-secondLevel">
  39. <c:forEach items="${item.children}" var="item2">
  40. <li>
  41. <c:if test="${item2.existChildren == '0'}">
  42. <a href="${item2.href}" target="${item2.target}">
  43. ${item2.name}
  44. </a>
  45. </c:if>
  46. <c:if test="${item2.existChildren == '1'}">
  47. <a href="${item2.href}" target="${item2.target}">
  48. ${item2.name}
  49. <span>></span>
  50. </a>
  51. <ul class="nav-threeLevel">
  52. <c:forEach items="${item2.children}" var="item3">
  53. <li>
  54. <a href="${item3.href}" target="${item3.target}">
  55. ${item3.name}
  56. </a>
  57. </li>
  58. </c:forEach>
  59. </ul>
  60. </c:if>
  61. </li>
  62. </c:forEach>
  63. </ul>
  64. </c:if>
  65. </li>
  66. </c:forEach>
  67. </ul>
  68. </div>
  69. <!-- 移动端导航,跟上面的导航一模一样,最外层的类名不一样 -->
  70. <div class="mobile-header-nav">
  71. <ul class="wrap">
  72. <c:forEach items="${navList}" var="item">
  73. <li>
  74. <c:if test="${item.existChildren == '0'}">
  75. <a href="${item.href}" target="${item.target}">
  76. ${item.name}
  77. </a>
  78. </c:if>
  79. <c:if test="${item.existChildren == '1'}">
  80. <a href="#">
  81. ${item.name}
  82. <span>></span>
  83. </a>
  84. <ul class="nav-secondLevel">
  85. <c:forEach items="${item.children}" var="item2">
  86. <li>
  87. <c:if test="${item2.existChildren == '0'}">
  88. <a href="${item2.href}" target="${item2.target}">
  89. ${item2.name}
  90. </a>
  91. </c:if>
  92. <c:if test="${item2.existChildren == '1'}">
  93. <a href="#">
  94. ${item2.name}
  95. <span>></span>
  96. </a>
  97. <ul class="nav-threeLevel">
  98. <c:forEach items="${item2.children}" var="item3">
  99. <li>
  100. <a href="${item3.href}" target="${item3.target}">
  101. ${item3.name}
  102. </a>
  103. </li>
  104. </c:forEach>
  105. </ul>
  106. </c:if>
  107. </li>
  108. </c:forEach>
  109. </ul>
  110. </c:if>
  111. </li>
  112. </c:forEach>
  113. </ul>
  114. </div>
  115. </div>