1010910742_edit.jsp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  2. <html>
  3. <head>
  4. <meta name="keywords" content="${website.seoKeywords}" />
  5. <meta name="description" content="${website.seoDescription}" />
  6. <meta name="lanmu" content="${navigation.name}">
  7. <title>${website.seoTitle}</title>
  8. <website-include page="head" />
  9. </head>
  10. <body>
  11. <website-include page="navigation" />
  12. <!-- 主体 -->
  13. <div class="content">
  14. <!-- 轮播 -->
  15. <div class="banner">
  16. <!-- Swiper -->
  17. <div class="swiper-container banner-swiper">
  18. <div class="swiper-wrapper">
  19. <c:forEach items="${lunbo.articleList}" var="item">
  20. <div class="swiper-slide">
  21. <a href="${item.url}" target="${item.target}">
  22. <img src="${item.thumbnail}" alt="" />
  23. <div class="slide-content">
  24. <h2>${item.title}</h2>
  25. <p>
  26. ${item.desc}
  27. </p>
  28. </div>
  29. </a>
  30. </div>
  31. </c:forEach>
  32. </div>
  33. <!-- Add Arrows -->
  34. <div class="swiper-button-prev swiper-button-white"></div>
  35. <div class="swiper-button-next swiper-button-white"></div>
  36. </div>
  37. </div>
  38. <div class="tabs">
  39. <button class="tab-button active" data-target="content1">
  40. 教学单位
  41. </button>
  42. <button class="tab-button" data-target="content2">行政教辅</button>
  43. </div>
  44. <div class="tab-contents">
  45. <div id="content1" class="tab-content active">
  46. <c:forEach items="${jiaoxuedanwei}" var="item">
  47. <div class="school-container">
  48. <h2 class="school-title">
  49. <a href="${item.navigationMap.desc}" target="_blank">
  50. ${item.navigationMap.name}
  51. <span class="school-icon">▶</span>
  52. </a>
  53. </h2>
  54. <div class="school-divider"></div>
  55. <img class="school-course-image" src="${item.navigationMap.background_image}" />
  56. <div class="school-content">
  57. <ul class="school-course-list">
  58. <c:forEach items="${item.articleList}" var="article">
  59. <li><a href="${article.url}" target="${article.target}">${article.title}</a></li>
  60. </c:forEach>
  61. </ul>
  62. </div>
  63. </div>
  64. </c:forEach>
  65. </div>
  66. <div id="content2" class="tab-content">
  67. <c:forEach items="${xingzhengjiaofu}" var="item">
  68. <div class="school-container">
  69. <h2 class="school-title">
  70. <a href="${item.navigationMap.desc}" target="_blank">
  71. ${item.navigationMap.name}
  72. <span class="school-icon">▶</span>
  73. </a>
  74. </h2>
  75. <div class="school-divider"></div>
  76. <img class="school-course-image" src="${item.navigationMap.background_image}" />
  77. <div class="school-content">
  78. <ul class="school-course-list">
  79. <c:forEach items="${item.articleList}" var="article">
  80. <li><a href="${article.url}" target="${article.target}">${article.title}</a></li>
  81. </c:forEach>
  82. </ul>
  83. </div>
  84. </div>
  85. </c:forEach>
  86. </div>
  87. </div>
  88. </div>
  89. <!-- 底部 -->
  90. <website-include page="footer" />
  91. <!-- <script src="/js/website.visit.js?v=20261111-visit-beacon"></script> -->
  92. </body>
  93. <script>
  94. $(document).ready(function () {
  95. $(".tab-button").on("click", function () {
  96. // 移除所有按钮的 active 类
  97. $(".tab-button").removeClass("active");
  98. // 为当前按钮添加 active 类
  99. $(this).addClass("active");
  100. // 隐藏所有内容
  101. $(".tab-content").removeClass("active");
  102. // 显示当前按钮对应的内容
  103. var target = $(this).data("target");
  104. $("#" + target).addClass("active");
  105. });
  106. });
  107. // banenr轮播
  108. var swiper1 = new Swiper(".banner-swiper", {
  109. grabCursor: true,
  110. effect: "fade",
  111. // pagination: {
  112. // el: ".swiper-pagination",
  113. // clickable: true,
  114. // },
  115. navigation: {
  116. nextEl: ".swiper-button-next",
  117. prevEl: ".swiper-button-prev",
  118. },
  119. loop: true,
  120. loopAdditionalSlides: 1,
  121. autoplay: {
  122. //自动切换
  123. delay: 5000,
  124. stopOnLastSlide: false,
  125. disableOnInteraction: true,
  126. },
  127. });
  128. // 关闭右侧边栏
  129. $(".sidebar-close").click(function () {
  130. $(this).parent(".sidebar").fadeOut();
  131. });
  132. // 飘窗
  133. // var adMove1 = new AdMove("adMove1", true);
  134. // adMove1.Run();
  135. </script>
  136. </html>