1007310479_run.jsp 3.1 KB

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