1004010215_run.jsp 5.1 KB

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