57669_10682_backup.jsp 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <!-- 头部 -->
  2. <div class="header">
  3. <div>
  4. <div class="header-top">
  5. <div class="header-top-bg"></div>
  6. <div class="header-top-left">
  7. <!-- 第一个循环,只处理前四个元素 -->
  8. <c:forEach items="${dingbulianjie.articleList}" var="item" varStatus="status" begin="0" end="3">
  9. <span>
  10. <a href="${item.href}" target="${item.target}">
  11. <c:out value="${item.title}" />
  12. </a>
  13. </span>
  14. </c:forEach>
  15. </div>
  16. <div class="header-top-right">
  17. <!-- 第二个循环,跳过前三个元素,处理剩余的元素 -->
  18. <c:forEach items="${dingbulianjie.articleList}" var="item" varStatus="status" begin="4">
  19. <span>
  20. <a href="${item.href}" target="${item.target}">
  21. <c:out value="${item.title}" />
  22. </a>
  23. </span>
  24. </c:forEach>
  25. </div>
  26. </div>
  27. <div class="header-img">
  28. <c:forEach items="${logo.articleList}" var="item" varStatus="status">
  29. ${item}
  30. <img src="${item.thumbnail}" alt=""/>
  31. </c:forEach>
  32. </div>
  33. <div class="mobile-nav-icon">
  34. <span></span>
  35. <span></span>
  36. <span></span>
  37. </div>
  38. </div>
  39. <div>
  40. <!-- 导航 -->
  41. <div class="header-nav">
  42. <ul>
  43. <c:forEach items="${navList}" var="item">
  44. <li>
  45. <c:if test="${item.existChildren == '0'}">
  46. <a href="${item.href}" target="${item.target}">
  47. ${item.name}
  48. </a>
  49. </c:if>
  50. <c:if test="${item.existChildren == '1'}">
  51. <a href="${item.href}" target="${item.target}">
  52. ${item.name}
  53. <span>></span>
  54. </a>
  55. <ul class="nav-secondLevel">
  56. <c:forEach items="${item.children}" var="item2">
  57. <li>
  58. <c:if test="${item2.existChildren == '0'}">
  59. <a href="${item2.href}" target="${item2.target}">
  60. ${item2.name}
  61. </a>
  62. </c:if>
  63. <c:if test="${item2.existChildren == '1'}">
  64. <a href="${item2.href}" target="${item2.target}">
  65. ${item2.name}
  66. <span>></span>
  67. </a>
  68. <ul class="nav-threeLevel">
  69. <c:forEach items="${item2.children}" var="item3">
  70. <li>
  71. <a href="${item3.href}" target="${item3.target}">
  72. ${item3.name}
  73. </a>
  74. </li>
  75. </c:forEach>
  76. </ul>
  77. </c:if>
  78. </li>
  79. </c:forEach>
  80. </ul>
  81. </c:if>
  82. </li>
  83. </c:forEach>
  84. </ul>
  85. </div>
  86. </div>
  87. <div class="header-top-bg" style="transform: rotate(180deg)"></div>
  88. <!-- 移动端导航,跟上面的导航一模一样,最外层的类名不一样 -->
  89. <div class="mobile-header-nav">
  90. <ul>
  91. <c:forEach items="${navList}" var="item">
  92. <li>
  93. <c:if test="${item.existChildren == '0'}">
  94. <a href="${item.href}" target="${item.target}">
  95. ${item.name}
  96. </a>
  97. </c:if>
  98. <c:if test="${item.existChildren == '1'}">
  99. <a href="#">
  100. ${item.name}
  101. <span>></span>
  102. </a>
  103. <ul class="nav-secondLevel">
  104. <c:forEach items="${item.children}" var="item2">
  105. <li>
  106. <c:if test="${item2.existChildren == '0'}">
  107. <a href="${item2.href}" target="${item2.target}">
  108. ${item2.name}
  109. </a>
  110. </c:if>
  111. <c:if test="${item2.existChildren == '1'}">
  112. <a href="#">
  113. ${item2.name}
  114. <span>></span>
  115. </a>
  116. <ul class="nav-threeLevel">
  117. <c:forEach items="${item2.children}" var="item3">
  118. <li>
  119. <a href="${item3.href}" target="${item3.target}">
  120. ${item3.name}
  121. </a>
  122. </li>
  123. </c:forEach>
  124. </ul>
  125. </c:if>
  126. </li>
  127. </c:forEach>
  128. </ul>
  129. </c:if>
  130. </li>
  131. </c:forEach>
  132. </ul>
  133. </div>
  134. </div>