1005610344_run.jsp 3.4 KB

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