1007810524_edit.jsp 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!-- 头部 -->
  2. <div class="header">
  3. <div class="wrap wrap-larger">
  4. <div class="header-img">
  5. <img src="/main/dist/websites/images/sny/header.jpg" alt="">
  6. <div class="mobile-nav-icon">
  7. <span></span>
  8. <span></span>
  9. <span></span>
  10. </div>
  11. </div>
  12. <!-- 导航 -->
  13. <div class="header-nav">
  14. <ul>
  15. <c:forEach items="${navList}" var="item">
  16. <li>
  17. <c:if test="${item.existChildren == '0'}">
  18. <a href="${item.href}" target="${item.target}">
  19. ${item.name}
  20. </a>
  21. </c:if>
  22. <c:if test="${item.existChildren == '1'}">
  23. <a href="${item.href}" target="${item.target}">
  24. ${item.name}
  25. <!-- 有子栏目就要加尖括号 -->
  26. <span>></span>
  27. </a>
  28. <!-- 二级导航 -->
  29. <ul class="nav-secondLevel">
  30. <div class="wrap">
  31. <div class="nav-secondLevel-wrap">
  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. <!-- 三级导航 -->
  45. <ul class="nav-threeLevel">
  46. <c:forEach items="${item2.children}" var="item3">
  47. <li>
  48. <a href="${item3.href}" target="${item3.target}">
  49. ${item3.name}
  50. </a>
  51. </li>
  52. </c:forEach>
  53. </ul>
  54. </c:if>
  55. </li>
  56. </c:forEach>
  57. </div>
  58. </div>
  59. </ul>
  60. </c:if>
  61. </li>
  62. </c:forEach>
  63. </ul>
  64. </div>
  65. <!-- 移动端导航,跟上面的导航一模一样,最外层的类名不一样 -->
  66. <div class="mobile-header-nav">
  67. <ul>
  68. <c:forEach items="${navList}" var="item">
  69. <li>
  70. <c:if test="${item.existChildren == '0'}">
  71. <a href="${item.href}" target="${item.target}">
  72. ${item.name}
  73. </a>
  74. </c:if>
  75. <c:if test="${item.existChildren == '1'}">
  76. <a href="${item.href}" target="${item.target}">
  77. ${item.name}
  78. <!-- 有子栏目就要加尖括号 -->
  79. <span>></span>
  80. </a>
  81. <!-- 二级导航 -->
  82. <ul class="nav-secondLevel">
  83. <div class="wrap">
  84. <div class="nav-secondLevel-wrap">
  85. <c:forEach items="${item.children}" var="item2">
  86. <li>
  87. <c:if test="${item2.existChildren == '0'}">
  88. <a href="${item2.href}" target="${item2.target}">
  89. ${item2.name}
  90. </a>
  91. </c:if>
  92. <c:if test="${item2.existChildren == '1'}">
  93. <a href="${item2.href}" target="${item2.target}">
  94. ${item2.name}
  95. <span>></span>
  96. </a>
  97. <!-- 三级导航 -->
  98. <ul class="nav-threeLevel">
  99. <c:forEach items="${item2.children}" var="item3">
  100. <li>
  101. <a href="${item3.href}" target="${item3.target}">
  102. ${item3.name}
  103. </a>
  104. </li>
  105. </c:forEach>
  106. </ul>
  107. </c:if>
  108. </li>
  109. </c:forEach>
  110. </div>
  111. </div>
  112. </ul>
  113. </c:if>
  114. </li>
  115. </c:forEach>
  116. </ul>
  117. </div>
  118. </div>
  119. </div>