1005110292_run.jsp 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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 wrap">
  6. <div class="header-img">
  7. <img src="/main/dist/websites/images/header/header-rsc.jpg" 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. <!-- 导航 -->
  17. <div class="header-nav">
  18. <ul class="wrap">
  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. <i></i>
  25. </a>
  26. </c:if>
  27. <c:if test="${item.existChildren == '1'}">
  28. <a href="${item.href}" target="${item.target}">
  29. ${item.name}
  30. <i></i>
  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. <i></i>
  73. </a>
  74. </c:if>
  75. <c:if test="${item.existChildren == '1'}">
  76. <a href="#">
  77. ${item.name}
  78. <i></i>
  79. <span>></span>
  80. </a>
  81. <ul class="nav-secondLevel">
  82. <c:forEach items="${item.children}" var="item2">
  83. <li>
  84. <c:if test="${item2.existChildren == '0'}">
  85. <a href="${item2.href}" target="${item2.target}">
  86. ${item2.name}
  87. </a>
  88. </c:if>
  89. <c:if test="${item2.existChildren == '1'}">
  90. <a href="#">
  91. ${item2.name}
  92. <span>></span>
  93. </a>
  94. <ul class="nav-threeLevel">
  95. <c:forEach items="${item2.children}" var="item3">
  96. <li>
  97. <a href="${item3.href}" target="${item3.target}">
  98. ${item3.name}
  99. </a>
  100. </li>
  101. </c:forEach>
  102. </ul>
  103. </c:if>
  104. </li>
  105. </c:forEach>
  106. </ul>
  107. </c:if>
  108. </li>
  109. </c:forEach>
  110. </ul>>
  111. </div>
  112. </div>