1004610256_edit.jsp 2.9 KB

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