|
|
@@ -0,0 +1,474 @@
|
|
|
+<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
|
|
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
|
|
+<%
|
|
|
+response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
|
|
|
+response.setHeader("Pragma", "no-cache");
|
|
|
+response.setDateHeader("Expires", 0);
|
|
|
+%>
|
|
|
+<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
|
|
+<!DOCTYPE html >
|
|
|
+
|
|
|
+
|
|
|
+<html lang="en">
|
|
|
+ <head>
|
|
|
+ <jsp:include page="/web/subassembly/website/10097/10644/1009710644_run.jsp" flush="true" />
|
|
|
+ <meta name="keywords" content="${website.seoKeywords}" />
|
|
|
+ <meta name="description" content="${website.seoDescription}" />
|
|
|
+ <title>${website.seoTitle}</title>
|
|
|
+ </head>
|
|
|
+
|
|
|
+ <body>
|
|
|
+ <!-- 头部导航 -->
|
|
|
+ <jsp:include page="/web/subassembly/website/10097/10646/1009710646_run.jsp" flush="true" />
|
|
|
+ <!-- 主体 -->
|
|
|
+ <div class="content">
|
|
|
+ <!-- 轮播 -->
|
|
|
+ <div class="banner">
|
|
|
+ <!-- Swiper -->
|
|
|
+ <div class="swiper-container banner-swiper">
|
|
|
+ <div class="swiper-wrapper">
|
|
|
+ <c:forEach items="${lunbo.articleList}" var="item">
|
|
|
+ <div class="swiper-slide">
|
|
|
+ <a href="${item.url}" target="${item.target}">
|
|
|
+ <img src="${item.thumbnail}" alt=""/>
|
|
|
+ <div class="slide-content">
|
|
|
+ <h2>${item.title}</h2>
|
|
|
+ <p>${item.desc}</p>
|
|
|
+ </div>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </c:forEach>
|
|
|
+ </div>
|
|
|
+ <!-- Add Pagination -->
|
|
|
+ <div class="swiper-pagination swiper-pagination-white"></div>
|
|
|
+ <!-- Add Arrows -->
|
|
|
+ <div class="swiper-button-prev swiper-button-white"></div>
|
|
|
+ <div class="swiper-button-next swiper-button-white"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 第一行 公告 -->
|
|
|
+ <div class="content-row gonggao">
|
|
|
+ <div class="content-item">
|
|
|
+ <div class="content-wrap">
|
|
|
+ <h3 style="">
|
|
|
+ <img
|
|
|
+ src="/main/dist/websites/images/qcyzdh/laba.png"
|
|
|
+ alt=""
|
|
|
+ style="width: 20px; height: 20px"
|
|
|
+ />
|
|
|
+ ${gonggao.navigationMap.name}
|
|
|
+ </h3>
|
|
|
+ <ul>
|
|
|
+ <c:forEach items="${gonggao.articleList}" var="item">
|
|
|
+ <li>
|
|
|
+ <a href="${item.url}" target="${item.target}">
|
|
|
+ <p>
|
|
|
+ <span>·</span>
|
|
|
+ ${item.title}
|
|
|
+ </p>
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+ </c:forEach>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 第二行 新闻动态 -->
|
|
|
+ <div class="content-row content-row-two">
|
|
|
+ <div class="wrap">
|
|
|
+ <div class="content-item">
|
|
|
+ <div class="content-wrap">
|
|
|
+ <h2>
|
|
|
+ <div class="left">
|
|
|
+ <span></span>
|
|
|
+ <!-- 新闻动态 -->
|
|
|
+ ${xinwendongtai.navigationMap.name}
|
|
|
+ <span></span>
|
|
|
+ </div>
|
|
|
+ <div class="right">
|
|
|
+ <a href="/xinwendongtai/">
|
|
|
+ <img
|
|
|
+ src="/main/dist/websites/images/qcyzdh/icon.png"
|
|
|
+ alt=""
|
|
|
+ style="width: 50px"
|
|
|
+ />
|
|
|
+ <span>查看更多</span>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </h2>
|
|
|
+ <ul>
|
|
|
+ <c:forEach items="${xinwendongtai.articleList}" var="item">
|
|
|
+ <li>
|
|
|
+ <a href="${item.url}" target="${item.target}">
|
|
|
+ <img src="${item.thumbnail}" alt="" />
|
|
|
+ <div>
|
|
|
+ <p>${item.title}</p>
|
|
|
+ <p>${item.desc}</p>
|
|
|
+ <p>${item.release_time}</p>
|
|
|
+ </div>
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+ </c:forEach>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 第三行 专业建设 -->
|
|
|
+ <div class="content-row content-row-three">
|
|
|
+ <div class="wrap">
|
|
|
+ <div class="content-item">
|
|
|
+ <div class="content-wrap">
|
|
|
+ <h2>
|
|
|
+ <div class="left">
|
|
|
+ <span></span>
|
|
|
+ ${zhuangyejianshe.navigationMap.name}
|
|
|
+ <span></span>
|
|
|
+ </div>
|
|
|
+ <div class="right">
|
|
|
+ <a href="/zhuanyejianshe/">
|
|
|
+ <img
|
|
|
+ src="/main/dist/websites/images/qcyzdh/icon.png"
|
|
|
+ alt=""
|
|
|
+ style="width: 50px"
|
|
|
+ />
|
|
|
+ <span>查看更多</span>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </h2>
|
|
|
+ <ul>
|
|
|
+ <img src="/main/dist/websites/images/qcyzdh/new.png" alt="" />
|
|
|
+ <c:forEach items="${zhuangyejianshe.articleList}" var="item">
|
|
|
+ <li>
|
|
|
+ <a href="${item.url}" target="">
|
|
|
+ <div>
|
|
|
+ <p>${item.title}</p>
|
|
|
+ <p>${item.release_time}</p>
|
|
|
+ </div>
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+ </c:forEach>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 第四行 视频轮播 -->
|
|
|
+ <div class="video-swiper-container swiper-container">
|
|
|
+ <div class="video-swiper-wrapper swiper-wrapper">
|
|
|
+ <c:forEach items="${shipinlunbo.articleList}" var="item">
|
|
|
+ <div class="video-swiper-slide swiper-slide">
|
|
|
+ <a href="${item.url}" >
|
|
|
+
|
|
|
+
|
|
|
+ <img src="${item.thumbnail}" alt="">
|
|
|
+ </a>
|
|
|
+ <!-- <video muted playsinline controls>
|
|
|
+ <source src="${item.url}" type="video/mp4" />
|
|
|
+ </video> -->
|
|
|
+ </div>
|
|
|
+ </c:forEach>
|
|
|
+ </div>
|
|
|
+ <div class="mask-left"></div>
|
|
|
+ <div class="mask-right"></div>
|
|
|
+
|
|
|
+ <!-- Add Navigation -->
|
|
|
+ <div class="swiper-button-next"></div>
|
|
|
+ <div class="swiper-button-prev"></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 第五行 参赛获奖照片 -->
|
|
|
+ <div class="content-row content-row-five">
|
|
|
+ <div class="wrap">
|
|
|
+ <div class="content-item">
|
|
|
+ <div class="content-wrap">
|
|
|
+ <h2>
|
|
|
+ <div class="left">
|
|
|
+ <span></span>
|
|
|
+ ${huojiangzhaopian.navigationMap.name}
|
|
|
+ <span></span>
|
|
|
+ </div>
|
|
|
+ <div class="right">
|
|
|
+ <a href="/cansaihuojiangzhaopian/">
|
|
|
+ <img
|
|
|
+ src="/main/dist/websites/images/qcyzdh/icon.png"
|
|
|
+ alt=""
|
|
|
+ style="width: 50px"
|
|
|
+ />
|
|
|
+ <span>查看更多</span>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </h2>
|
|
|
+ <div class="line"></div>
|
|
|
+ <div class="cshjzp-container">
|
|
|
+ <c:forEach items="${huojiangzhaopian.articleList}" var="item" varStatus="status">
|
|
|
+
|
|
|
+ <c:if test="${status.index == 0}">
|
|
|
+ <a href="${item.url}" class="cshjzp-large">
|
|
|
+ <img
|
|
|
+ src="${item.thumbnail}"
|
|
|
+ alt="Large Image"
|
|
|
+ style="width: 100%; height: 100%;object-fit: cover;"
|
|
|
+ />
|
|
|
+ </a>
|
|
|
+ </c:if>
|
|
|
+
|
|
|
+ <c:if test="${status.index == 1 || status.index == 2}">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${status.index == 1}">
|
|
|
+ <div class="cshjzp-vertical">
|
|
|
+ <a href="${item.url}">
|
|
|
+ <img
|
|
|
+ src="${item.thumbnail}"
|
|
|
+ alt="Small Image 1"
|
|
|
+ class="cshjzp-small"
|
|
|
+ />
|
|
|
+ </a>
|
|
|
+
|
|
|
+ </c:when>
|
|
|
+ <c:when test="${status.index == 2}">
|
|
|
+ <a href="${item.url}">
|
|
|
+ <img
|
|
|
+ src="${item.thumbnail}"
|
|
|
+ alt="Small Image 2"
|
|
|
+ class="cshjzp-small"
|
|
|
+ />
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </c:when>
|
|
|
+ </c:choose>
|
|
|
+ </c:if>
|
|
|
+</c:forEach>
|
|
|
+</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 第六行 学院风采 -->
|
|
|
+ <div class="content-row content-row-six pc-content-row-six">
|
|
|
+ <div class>
|
|
|
+ <div class="content-item">
|
|
|
+ <div class="content-wrap">
|
|
|
+ <h2>
|
|
|
+ <div class="left">
|
|
|
+ <span></span>
|
|
|
+
|
|
|
+ ${xueyuanfengcai.navigationMap.name}
|
|
|
+
|
|
|
+ <span></span>
|
|
|
+ </div>
|
|
|
+ <div class="right">
|
|
|
+ <a href="/xueyuanfengcai/">
|
|
|
+ <img
|
|
|
+ src="/main/dist/websites/images/qcyzdh/icon.png"
|
|
|
+ alt=""
|
|
|
+ style="width: 50px"
|
|
|
+ />
|
|
|
+ <span>查看更多</span>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </h2>
|
|
|
+ <div class="xyfc-swiper-container">
|
|
|
+ <div class="swiper-wrapper">
|
|
|
+ <c:forEach items="${xueyuanfengcai.articleList}" var="item">
|
|
|
+ <div class="swiper-slide">
|
|
|
+ <a href="${item.url}" target="">
|
|
|
+ <img src="${item.thumbnail}" alt="" />
|
|
|
+ <div>
|
|
|
+ <p>${item.title}</p>
|
|
|
+ <p>${item.desc}</p>
|
|
|
+ </div>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </c:forEach>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div style="clear: both"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="content-row content-row-six mobile-content-row-six">
|
|
|
+ <div class>
|
|
|
+ <div class="content-item">
|
|
|
+ <div class="content-wrap">
|
|
|
+ <h2>
|
|
|
+ <div class="left">
|
|
|
+ <span></span>
|
|
|
+ ${xueyuanfengcai.navigationMap.name}
|
|
|
+ <span></span>
|
|
|
+ </div>
|
|
|
+ <div class="right">
|
|
|
+ <a href="/xueyuanfengcai/">
|
|
|
+ <img
|
|
|
+ src="/main/dist/websites/images/qcyzdh/icon.png"
|
|
|
+ alt=""
|
|
|
+ style="width: 50px"
|
|
|
+ />
|
|
|
+ <span>查看更多</span>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </h2>
|
|
|
+ <div class="xyfc-swiper-container-mobile">
|
|
|
+ <div class="swiper-wrapper">
|
|
|
+ <c:forEach items="${xueyuanfengcai.articleList}" var="item">
|
|
|
+ <div class="swiper-slide">
|
|
|
+ <a href="${item.url}" target="">
|
|
|
+ <img src="${item.thumbnail}" alt="" />
|
|
|
+ <div>
|
|
|
+ <p>${item.title}</p>
|
|
|
+ <p>${item.desc}</p>
|
|
|
+ </div>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </c:forEach>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div style="clear: both"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 底部 -->
|
|
|
+ <jsp:include page="/web/subassembly/website/10097/10643/1009710643_run.jsp" flush="true" />
|
|
|
+ <script>
|
|
|
+ // banenr轮播
|
|
|
+ var swiper = new Swiper(".banner-swiper", {
|
|
|
+ grabCursor: true,
|
|
|
+ effect: "fade",
|
|
|
+ pagination: {
|
|
|
+ el: ".swiper-pagination",
|
|
|
+ clickable: true,
|
|
|
+ },
|
|
|
+ navigation: {
|
|
|
+ nextEl: ".swiper-button-next",
|
|
|
+ prevEl: ".swiper-button-prev",
|
|
|
+ },
|
|
|
+ loop: true,
|
|
|
+ loopAdditionalSlides: 1,
|
|
|
+ autoplay: {
|
|
|
+ //自动切换
|
|
|
+ delay: 5000,
|
|
|
+ stopOnLastSlide: false,
|
|
|
+ disableOnInteraction: true,
|
|
|
+ },
|
|
|
+ });
|
|
|
+
|
|
|
+ // 视频轮播
|
|
|
+ var videoSwiper = new Swiper(".video-swiper-container", {
|
|
|
+ slidesPerView: "auto",
|
|
|
+ centeredSlides: true,
|
|
|
+ // spaceBetween: 30,
|
|
|
+ loop: true,
|
|
|
+ // pagination: {
|
|
|
+ // el: '.swiper-pagination',
|
|
|
+ // clickable: true,
|
|
|
+ // },
|
|
|
+ navigation: {
|
|
|
+ nextEl: ".swiper-button-next",
|
|
|
+ prevEl: ".swiper-button-prev",
|
|
|
+ },
|
|
|
+ });
|
|
|
+ // 自动播放
|
|
|
+ function playActiveSlideVideo() {
|
|
|
+ var activeSlide = videoSwiper.slides[videoSwiper.activeIndex];
|
|
|
+ var video = activeSlide.querySelector("video");
|
|
|
+ if (video) {
|
|
|
+ video.play();
|
|
|
+ video.addEventListener("ended", function () {
|
|
|
+ videoSwiper.slideNext();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // Pause videos in all slides
|
|
|
+ function pauseAllVideos() {
|
|
|
+ document
|
|
|
+ .querySelectorAll(".video-swiper-slide video")
|
|
|
+ .forEach(function (video) {
|
|
|
+ video.pause();
|
|
|
+ video.currentTime = 0; // Reset video to the start
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ // Play video when slide changes
|
|
|
+ videoSwiper.on("slideChange", function () {
|
|
|
+ pauseAllVideos();
|
|
|
+ playActiveSlideVideo();
|
|
|
+ });
|
|
|
+
|
|
|
+ window.addEventListener("load", function () {
|
|
|
+ playActiveSlideVideo();
|
|
|
+ });
|
|
|
+
|
|
|
+ // 学院风采
|
|
|
+ var xyfc = new Swiper(".xyfc-swiper-container", {
|
|
|
+ slidesPerView: 3,
|
|
|
+ spaceBetween: 60,
|
|
|
+ freeMode: true,
|
|
|
+ });
|
|
|
+ $(".xyfc-swiper-container .swiper-slide").on("mouseenter", function () {
|
|
|
+ var index = $(this).index();
|
|
|
+ var slidesPerView = xyfc.params.slidesPerView;
|
|
|
+ var slideToIndex = index - Math.floor(slidesPerView / 2);
|
|
|
+ xyfc.slideTo(slideToIndex);
|
|
|
+ });
|
|
|
+ //移动端要显示的
|
|
|
+ var mobileXyfc = new Swiper(".xyfc-swiper-container-mobile", {
|
|
|
+ // slidesPerView: 3,
|
|
|
+ // spaceBetween: 30,
|
|
|
+ // freeMode: true,
|
|
|
+ slidesPerView: "auto",
|
|
|
+ spaceBetween: 10,
|
|
|
+ });
|
|
|
+
|
|
|
+ $(document).ready(function () {
|
|
|
+ $(".mobile-header-nav ul").css("height", screen.height - 70 + "px");
|
|
|
+ $(".mobile-header-nav ul").css("overflow", "auto");
|
|
|
+
|
|
|
+ // $("a").each(function () {
|
|
|
+ // var href = $(this).attr("href");
|
|
|
+ // if (href.indexOf("http://a.nff.com") !== -1) {
|
|
|
+ // href = href.replace(
|
|
|
+ // "http://a.nff.com",
|
|
|
+ // "https://hxgj.newfeifan.cn"
|
|
|
+ // );
|
|
|
+ // $(this).attr("href", href);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // $("img").each(function () {
|
|
|
+ // var src = $(this).attr("src");
|
|
|
+ // if (src.indexOf("https://ht.gzhxtc.edu.cn") !== -1) {
|
|
|
+ // src = src.replace(
|
|
|
+ // "https://ht.gzhxtc.edu.cn",
|
|
|
+ // "https://hxgj.newfeifan.cn"
|
|
|
+ // );
|
|
|
+ // $(this).attr("src", src);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ });
|
|
|
+ // 关闭右侧边栏
|
|
|
+ $(".sidebar-close").click(function () {
|
|
|
+ $(this).parent(".sidebar").fadeOut();
|
|
|
+ });
|
|
|
+
|
|
|
+ // 飘窗
|
|
|
+ // var adMove1 = new AdMove("adMove1", true);
|
|
|
+ // adMove1.Run();
|
|
|
+ </script>
|
|
|
+ </body>
|
|
|
+</html>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|