18751_10498_backup.jsp 3.6 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/xxgc/header.png" alt="">
  7. <div class="mobile-nav-icon">
  8. <span></span>
  9. <span></span>
  10. <span></span>
  11. </div>
  12. </div>
  13. <div class="header-right header-right-top">
  14. <a href="javascript:;">
  15. 联系我们
  16. </a>
  17. </div>
  18. <div class="header-right header-right-search">
  19. <i></i>
  20. <input type="text" placeholder="请输入关键字进行搜索">
  21. </div>
  22. </div>
  23. </div>
  24. <!-- 导航 -->
  25. <div class="header-nav">
  26. <ul class="wrap">
  27. <c:forEach items="${navList}" var="item">
  28. <li>
  29. <c:if test="${item.existChildren == '0'}">
  30. <a href="${item.href}" target="${item.target}">
  31. ${item.name}
  32. </a>
  33. </c:if>
  34. <c:if test="${item.existChildren == '1'}">
  35. <a href="${item.href}" target="${item.target}">
  36. ${item.name}
  37. <span>></span>
  38. </a>
  39. <ul class="nav-secondLevel">
  40. <c:forEach items="${item.children}" var="item2">
  41. <li>
  42. <c:if test="${item2.existChildren == '0'}">
  43. <a href="${item2.href}" target="${item2.target}">
  44. ${item2.name}
  45. </a>
  46. </c:if>
  47. <c:if test="${item2.existChildren == '1'}">
  48. <a href="${item2.href}" target="${item2.target}">
  49. ${item2.name}
  50. <span>></span>
  51. </a>
  52. <ul class="nav-threeLevel">
  53. <c:forEach items="${item2.children}" var="item3">
  54. <li>
  55. <a href="${item3.href}" target="${item3.target}">
  56. ${item3.name}
  57. </a>
  58. </li>
  59. </c:forEach>
  60. </ul>
  61. </c:if>
  62. </li>
  63. </c:forEach>
  64. </ul>
  65. </c:if>
  66. </li>
  67. </c:forEach>
  68. </ul>
  69. </div>
  70. <!-- 移动端导航,跟上面的导航一模一样,最外层的类名不一样 -->
  71. <div class="mobile-header-nav">
  72. <ul class="wrap">
  73. <c:forEach items="${navList}" var="item">
  74. <li>
  75. <c:if test="${item.existChildren == '0'}">
  76. <a href="${item.href}" target="${item.target}">
  77. ${item.name}
  78. </a>
  79. </c:if>
  80. <c:if test="${item.existChildren == '1'}">
  81. <a href="#">
  82. ${item.name}
  83. <span>></span>
  84. </a>
  85. <ul class="nav-secondLevel">
  86. <c:forEach items="${item.children}" var="item2">
  87. <li>
  88. <c:if test="${item2.existChildren == '0'}">
  89. <a href="${item2.href}" target="${item2.target}">
  90. ${item2.name}
  91. </a>
  92. </c:if>
  93. <c:if test="${item2.existChildren == '1'}">
  94. <a href="#">
  95. ${item2.name}
  96. <span>></span>
  97. </a>
  98. <ul class="nav-threeLevel">
  99. <c:forEach items="${item2.children}" var="item3">
  100. <li>
  101. <a href="${item3.href}" target="${item3.target}">
  102. ${item3.name}
  103. </a>
  104. </li>
  105. </c:forEach>
  106. </ul>
  107. </c:if>
  108. </li>
  109. </c:forEach>
  110. </ul>
  111. </c:if>
  112. </li>
  113. </c:forEach>
  114. </ul>
  115. </div>
  116. </div>