1005110292_edit.jsp 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <!-- 头部 -->
  2. <div class="header">
  3. <div class="header-top wrap">
  4. <div class="header-img">
  5. <img src="/main/dist/websites/images/header/header-rsc.jpg" 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. <!-- 导航 -->
  15. <div class="header-nav">
  16. <ul class="wrap">
  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. <i></i>
  23. </a>
  24. </c:if>
  25. <c:if test="${item.existChildren == '1'}">
  26. <a href="${item.href}" target="${item.target}">
  27. ${item.name}
  28. <i></i>
  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. <i></i>
  71. </a>
  72. </c:if>
  73. <c:if test="${item.existChildren == '1'}">
  74. <a href="#">
  75. ${item.name}
  76. <i></i>
  77. <span>></span>
  78. </a>
  79. <ul class="nav-secondLevel">
  80. <c:forEach items="${item.children}" var="item2">
  81. <li>
  82. <c:if test="${item2.existChildren == '0'}">
  83. <a href="${item2.href}" target="${item2.target}">
  84. ${item2.name}
  85. </a>
  86. </c:if>
  87. <c:if test="${item2.existChildren == '1'}">
  88. <a href="#">
  89. ${item2.name}
  90. <span>></span>
  91. </a>
  92. <ul class="nav-threeLevel">
  93. <c:forEach items="${item2.children}" var="item3">
  94. <li>
  95. <a href="${item3.href}" target="${item3.target}">
  96. ${item3.name}
  97. </a>
  98. </li>
  99. </c:forEach>
  100. </ul>
  101. </c:if>
  102. </li>
  103. </c:forEach>
  104. </ul>
  105. </c:if>
  106. </li>
  107. </c:forEach>
  108. </ul>>
  109. </div>
  110. </div>