1006610423_edit.jsp 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!-- 头部 -->
  2. <div class="header">
  3. <div class="wrap">
  4. <div class="header-img">
  5. <img src="/main/dist/websites/images/header/header-cl.jpg" alt="">
  6. <div class="mobile-nav-icon">
  7. <span></span>
  8. <span></span>
  9. <span></span>
  10. </div>
  11. </div>
  12. <div class="header-right">
  13. <span id="nowtime"></span>
  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. </a>
  25. </c:if>
  26. <c:if test="${item.existChildren == '1'}">
  27. <a href="${item.href}" target="${item.target}">
  28. ${item.name}
  29. <span>></span>
  30. </a>
  31. <ul class="nav-secondLevel">
  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. <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. </li>
  55. </c:forEach>
  56. </ul>
  57. </c:if>
  58. </li>
  59. </c:forEach>
  60. </ul>
  61. </div>
  62. <!-- 移动端导航,跟上面的导航一模一样,最外层的类名不一样 -->
  63. <div class="mobile-header-nav">
  64. <ul class="wrap">
  65. <c:forEach items="${navList}" var="item">
  66. <li>
  67. <c:if test="${item.existChildren == '0'}">
  68. <a href="${item.href}" target="${item.target}">
  69. ${item.name}
  70. </a>
  71. </c:if>
  72. <c:if test="${item.existChildren == '1'}">
  73. <a href="#">
  74. ${item.name}
  75. <span>></span>
  76. </a>
  77. <ul class="nav-secondLevel">
  78. <c:forEach items="${item.children}" var="item2">
  79. <li>
  80. <c:if test="${item2.existChildren == '0'}">
  81. <a href="${item2.href}" target="${item2.target}">
  82. ${item2.name}
  83. </a>
  84. </c:if>
  85. <c:if test="${item2.existChildren == '1'}">
  86. <a href="#">
  87. ${item2.name}
  88. <span>></span>
  89. </a>
  90. <ul class="nav-threeLevel">
  91. <c:forEach items="${item2.children}" var="item3">
  92. <li>
  93. <a href="${item3.href}" target="${item3.target}">
  94. ${item3.name}
  95. </a>
  96. </li>
  97. </c:forEach>
  98. </ul>
  99. </c:if>
  100. </li>
  101. </c:forEach>
  102. </ul>
  103. </c:if>
  104. </li>
  105. </c:forEach>
  106. </ul>
  107. </div>
  108. </div>