| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291 |
- <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <website-include page="head" />
- <meta name="keywords" content="${website.seoKeywords}" />
- <meta name="description" content="${website.seoDescription}" />
- <title>${website.seoTitle}</title>
- </head>
- <body>
- <!-- 头部导航 -->
- <website-include page="navigation" />
- <!-- 主体 -->
- <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="" />
- </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="wrap part1">
- <div class="title">
- <h2>${xinwendongtai.navigationMap.name}</h2>
- <a href="${xinwendongtai.navigationMap.url}">更多></a>
- </div>
- <div class="part1-content">
- <c:forEach items="${xinwendongtai.articleList}" var="item">
- <div>
- <img src="${item.thumbnail}" alt="" />
- <div class="date"><fmt:formatDate value="${item.release_time}" pattern="yyyy.MM.dd" /> </div>
- <h3 style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; ">${item.title}</h3>
- <p>${item.desc}</p>
- <a href="${item.url}" target="${item.target}">了解更多+ </a>
- </div>
-
- </c:forEach>
- </div>
- </div>
- <!-- 通知公告 -->
- <div class="part2" style="height: 615px;">
- <div class=" wrap">
- <div class="title">
- <h2>通知公告</h2>
- <a href="${tongzhigonggao.navigationMap.url}" target="">更多></a>
- </div>
- <div class="part2-content">
- <c:forEach items="${tongzhigonggao.articleList}" var="item" varStatus="status">
- <c:if test="${status.index == 0}">
- <div class="part2-content-left">
- <img src="${item.thumbnail}" alt="">
- <h4>${item.title}</h4>
- <div class="date"><fmt:formatDate value="${item.release_time}" pattern="yyyy.MM.dd" /></div>
- <a href="${item.url}" target="${item.target}">查看详情</a>
- </div>
- </c:if>
- </c:forEach>
- <div class="part2-content-right">
- <h2>通知公告</h2>
- <ul>
- <c:forEach items="${tongzhigonggao.articleList}" var="item" varStatus="status">
- <c:if test="${status.index > 0}">
- <li>
- <a href="${item.url}" target="${item.target}">
- <span class="time"><fmt:formatDate value="${item.release_time}" pattern="MM-dd" /><br><fmt:formatDate value="${item.release_time}" pattern="yyyy" /></span>
- <p>${item.title}</p>
- </a>
- </li>
- </c:if>
- </c:forEach>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <div class="wrap part3">
- <div class="title">
- <h2>其他要闻</h2>
- <a href="${zhaopinxinxi.navigationMap.url}" >更多></a>
- </div>
- <div class="part3-content">
- <div class="part3-content-nav">
-
- <h3 class="selected" data-link="${zhaopinxinxi.navigationMap.url}">招聘信息</h3>
- <h3 data-link="${zhichengpingding.navigationMap.url}">职称评定</h3>
- <h3 data-link="${zhengcefagui.navigationMap.url}">政策法规</h3>
- <h3 data-link="${guizhagnzhidu.navigationMap.url}">规章制度</h3>
- </div>
- <div class="part3-content-cardlist">
- <c:forEach items="${zhaopinxinxi.articleList}" var="item" varStatus="status">
- <a href="${item.url}" target="${item.target}">
- <div class="card">
- <div>
- <img src="${item.thumbnail}" alt="">
- </div>
- <div>
- <h3>${item.title}</h3>
- <div class="date">${item.release_time}</div>
- <p>${item.desc}</p>
- </div>
- </div>
- </a>
- </c:forEach>
- </div>
- <div class="part3-content-cardlist">
- <c:forEach items="${zhichengpingding.articleList}" var="item" varStatus="status">
- <a href="${item.url}" target="${item.target}">
- <div class="card">
- <div>
- <img src="${item.thumbnail}" alt="">
- </div>
- <div>
- <h3>${item.title}</h3>
- <div class="date">${item.release_time}</div>
- <p>${item.desc}</p>
- </div>
- </div>
- </a>
- </c:forEach>
- </div>
- <div class="part3-content-cardlist">
- <c:forEach items="${zhengcefagui.articleList}" var="item" varStatus="status" begin="0" end="1">
- <a href="${item.url}" target="${item.target}">
- <div class="card">
- <div>
- <img src="${item.thumbnail}" alt="">
- </div>
- <div>
- <h3>${item.title}</h3>
- <div class="date">${item.release_time}</div>
- <p>${item.desc}</p>
- </div>
- </div>
- </a>
- </c:forEach>
- </div>
- <div class="part3-content-cardlist">
- <c:forEach items="${guizhagnzhidu.articleList}" var="item" varStatus="status" begin="0" end="1">
- <a href="${item.url}" target="${item.target}">
- <div class="card">
- <div>
- <img src="${item.thumbnail}" alt="">
- </div>
- <div>
- <h3>${item.title}</h3>
- <div class="date">${item.release_time}</div>
- <p>${item.desc}</p>
- </div>
- </div>
- </a>
- </c:forEach>
- </div>
- </div>
- </div>
- </div>
- <!-- 底部 -->
- <website-include page="footer" />
- <!-- <script src="/js/website.visit.js?v=20261111-visit-beacon"></script> -->
- </body>
- <script>
- // banenr轮播
- var swiper = new Swiper(".banner-swiper", {
- grabCursor: true,
- effect: "fade",
- pagination: {
- el: ".swiper-pagination",
- // clickable: true,
- // renderBullet: function (index, className) {
- // return '<span class="' + className + '">'+ (index + 1) +'</span>';
- // }
- },
- navigation: {
- nextEl: ".swiper-button-next",
- prevEl: ".swiper-button-prev",
- },
- loop: true,
- loopAdditionalSlides: 1,
- autoplay: {
- //自动切换
- delay: 5000,
- stopOnLastSlide: false,
- disableOnInteraction: true,
- },
- });
- $(document).ready(function () {
- // 防抖函数
- function debounce(func, wait) {
- let timeout;
- return function () {
- const context = this, args = arguments;
- clearTimeout(timeout);
- timeout = setTimeout(function () {
- func.apply(context, args);
- }, wait);
- };
- }
- function adjustTimeWidth() {
- var windowWidth = $(window).width();
- $('.part2-content-right li .time').each(function () {
- var newWidth;
- if (windowWidth > 1800) {
- // 当窗口宽度大于1920时,固定为10%
- $(this).css('width', '15%');
- } else if (windowWidth > 1600 && windowWidth <= 1800) {
- // 大于1600但小于1920时,减小倍率
- newWidth = 17 + (1920 - windowWidth) / 150; // 减小倍率
- $(this).css('width', newWidth + '%');
- } else if (windowWidth <= 1600 && windowWidth > 885) {
- // 当宽度在882到1600之间时,按标准倍率计算
- newWidth = 17 + (1920 - windowWidth) / 100;
- $(this).css('width', newWidth + '%');
- } else if (windowWidth <= 885 && windowWidth > 780) {
- // 当宽度小于882时,倍率更大
- newWidth = 17 + (1920 - windowWidth) / 70; // 增大倍率
- $(this).css('width', newWidth + '%');
- }
- else {
- $(this).css('width', '');
- }
- });
- }
- // 初始调用
- adjustTimeWidth();
- // 使用防抖包裹 resize 事件处理
- $(window).resize(debounce(adjustTimeWidth, 200)); // 200ms 防抖
- $('.part3-content-nav h3').click(function () {
- // 移除所有 h3 的 selected 类,并为当前点击的 h3 添加 selected 类
- $('.part3-content-nav h3').removeClass('selected');
- $(this).addClass('selected');
- // 获取当前点击的 h3 的 data-link 属性值
- var dataLink = $(this).data('link');
- // 将 data-link 值赋值到 .title a 的 href 属性
- $('.part3 .title a').attr('href', dataLink);
- // 获取当前点击的 h3 的索引
- var index = $(this).index();
- // 隐藏所有 .part3-content-cardlist
- $('.part3-content-cardlist').hide();
- // 显示与当前点击 h3 索引匹配的 .part3-content-cardlist
- $('.part3-content-cardlist').eq(index).show();
- });
- // 初始时显示第一个内容卡片列表
- $('.part3-content-cardlist').hide().eq(0).show();
- });
- // 关闭右侧边栏
- $(".sidebar-close").click(function () {
- $(this).parent(".sidebar").fadeOut();
- });
- // 飘窗
- // var adMove1 = new AdMove("adMove1", true);
- // adMove1.Run();
- </script>
- </html>
|