10272_10292_backup.jsp 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. </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. <!-- 移动端导航,跟上面的导航一模一样,最外层的类名不一样 -->
  61. <div class="mobile-header-nav">
  62. <ul class="wrap">
  63. <c:forEach items="${navList}" var="item">
  64. <li>
  65. <c:if test="${item.existChildren == '0'}">
  66. <a href="${item.href}" target="${item.target}">
  67. ${item.name}
  68. <i></i>
  69. </a>
  70. </c:if>
  71. <c:if test="${item.existChildren == '1'}">
  72. <a href="#">
  73. ${item.name}
  74. <i></i>
  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>