19467_10560_backup.jsp 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. <ul class="nav-threeLevel">
  29. <div class="wrap">
  30. <div class="nav-secondLevel-wrap">
  31. <c:forEach items="${item.children}" var="item2">
  32. <c:if test="${item2.existChildren == '0'}">
  33. <li>
  34. <a href="${item2.href}" target="${item2.target}">
  35. ${item2.name}
  36. </a>
  37. </li>
  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. </c:forEach>
  55. </div>
  56. </div>
  57. </ul>
  58. </c:if>
  59. </li>
  60. </c:forEach>
  61. </ul>
  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="${item.href}" target="${item.target}">
  75. ${item.name}
  76. <!-- 有子栏目就要加尖括号 -->
  77. <span>></span>
  78. </a>
  79. <ul class="nav-threeLevel">
  80. <div class="wrap">
  81. <div class="nav-secondLevel-wrap">
  82. <c:forEach items="${item.children}" var="item2">
  83. <c:if test="${item2.existChildren == '0'}">
  84. <li>
  85. <a href="${item2.href}" target="${item2.target}">
  86. ${item2.name}
  87. </a>
  88. </li>
  89. </c:if>
  90. <c:if test="${item2.existChildren == '1'}">
  91. <a href="${item2.href}" target="${item2.target}">
  92. ${item2.name}
  93. <span>></span>
  94. </a>
  95. <ul class="nav-threeLevel">
  96. <c:forEach items="${item2.children}" var="item3">
  97. <li>
  98. <a href="${item3.href}" target="${item3.target}">
  99. ${item3.name}
  100. </a>
  101. </li>
  102. </c:forEach>
  103. </ul>
  104. </c:if>
  105. </c:forEach>
  106. </div>
  107. </div>
  108. </ul>
  109. </c:if>
  110. </li>
  111. </c:forEach>
  112. </ul>
  113. </div>
  114. </div>
  115. </div>