1005910370_run.jsp 3.4 KB

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