19534_10311_backup.jsp 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <!-- 头部 -->
  2. <div class="header">
  3. <div class="header-top">
  4. <div class="wrap">
  5. <div class="header-img">
  6. <img src="/main/dist/websites/images/header/header-gh.jpg" alt="">
  7. <div class="mobile-nav-icon">
  8. <span></span>
  9. <span></span>
  10. <span></span>
  11. </div>
  12. </div>
  13. <div class="header-search">
  14. <input type="text" id="search" placeholder="请输入关键字">
  15. <button id="search-btn"></button>
  16. </div>
  17. </div>
  18. </div>
  19. <!-- 导航 -->
  20. <div class="header-nav">
  21. <ul class="wrap">
  22. <c:forEach items="${navList}" var="item">
  23. <li>
  24. <c:if test="${item.existChildren == '0'}">
  25. <a href="${item.href}" target="${item.target}">
  26. ${item.name}
  27. </a>
  28. </c:if>
  29. <c:if test="${item.existChildren == '1'}">
  30. <a href="${item.href}" target="${item.target}">
  31. ${item.name}
  32. <span>></span>
  33. </a>
  34. <ul class="nav-secondLevel">
  35. <c:forEach items="${item.children}" var="item2">
  36. <li>
  37. <c:if test="${item2.existChildren == '0'}">
  38. <a href="${item2.href}" target="${item2.target}">
  39. ${item2.name}
  40. </a>
  41. </c:if>
  42. <c:if test="${item2.existChildren == '1'}">
  43. <a href="${item2.href}" target="${item2.target}">
  44. ${item2.name}
  45. <span>></span>
  46. </a>
  47. <ul class="nav-threeLevel">
  48. <c:forEach items="${item2.children}" var="item3">
  49. <li>
  50. <a href="${item3.href}" target="${item3.target}">
  51. ${item3.name}
  52. </a>
  53. </li>
  54. </c:forEach>
  55. </ul>
  56. </c:if>
  57. </li>
  58. </c:forEach>
  59. </ul>
  60. </c:if>
  61. </li>
  62. </c:forEach>
  63. </ul>
  64. </div>
  65. <!-- 移动端导航,跟上面的导航一模一样,最外层的类名不一样 -->
  66. <div class="mobile-header-nav">
  67. <ul class="wrap">
  68. <c:forEach items="${navList}" var="item">
  69. <li>
  70. <c:if test="${item.existChildren == '0'}">
  71. <a href="${item.href}" target="${item.target}">
  72. ${item.name}
  73. </a>
  74. </c:if>
  75. <c:if test="${item.existChildren == '1'}">
  76. <a href="#">
  77. ${item.name}
  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>