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