suomingxiang před 4 měsíci
rodič
revize
c094ddadbd

+ 42
- 42
src/pages/articleDetails/App.js Zobrazit soubor

@@ -27,51 +27,51 @@ export default class App {
27 27
                 // item.load();
28 28
             }
29 29
         });
30
-        vx()
31
-        function vx(){
32
-            console.log('vx',wx)
33
-            wx.config({
34
-                debug: false, // 开启调试模式
35
-                appId: 'YOUR_APP_ID', // 公众号的唯一标识
36
-                timestamp: 176565448486313, // 生成签名的时间戳
37
-                nonceStr: 'NONCESTR', // 生成签名的随机串
38
-                signature: 'SIGNATURE', // 签名,见附录1
39
-                jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage'] // 需要使用的 JS 接口列表
40
-            });
30
+
31
+        // vx()
32
+        // function vx(){
33
+        //     wx.config({
34
+        //         debug: false, // 开启调试模式
35
+        //         appId: 'YOUR_APP_ID', // 公众号的唯一标识
36
+        //         timestamp: 176565448486313, // 生成签名的时间戳
37
+        //         nonceStr: 'NONCESTR', // 生成签名的随机串
38
+        //         signature: 'SIGNATURE', // 签名,见附录1
39
+        //         jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage'] // 需要使用的 JS 接口列表
40
+        //     });
41 41
          
42
-            wx.ready(function () {
43
-                // 分享到朋友圈
44
-                wx.onMenuShareTimeline({
45
-                    title: '分享标题', // 分享标题
46
-                    link: 'https://example.com', // 分享链接
47
-                    imgUrl: 'https://example.com/image.jpg', // 分享图标
48
-                    success: function () {
49
-                        // 用户确认分享后执行的回调函数
50
-                    },
51
-                    cancel: function () {
52
-                        // 用户取消分享后执行的回调函数
53
-                    }
54
-                });
55
-                const shareWx = document.querySelector('.shareWx');
56
-                console.log(shareWx)
57
-                shareWx.addEventListener('click',function(){
58
-                    // 分享给朋友
59
-                    wx.onMenuShareAppMessage({
60
-                        title: '分享标题', // 分享标题
61
-                        desc: '分享描述', // 分享描述
62
-                        type: 'link', // 分享类型,music、video或link,不填默认为link
63
-                        success: function () {
64
-                            // 用户确认分享后执行的回调函数
42
+        //     wx.ready(function () {
43
+        //         // 分享到朋友圈
44
+        //         wx.onMenuShareTimeline({
45
+        //             title: '分享标题', // 分享标题
46
+        //             link: 'https://example.com', // 分享链接
47
+        //             imgUrl: 'https://example.com/image.jpg', // 分享图标
48
+        //             success: function () {
49
+        //                 // 用户确认分享后执行的回调函数
50
+        //             },
51
+        //             cancel: function () {
52
+        //                 // 用户取消分享后执行的回调函数
53
+        //             }
54
+        //         });
55
+        //         const shareWx = document.querySelector('.shareWx');
56
+        //         console.log(shareWx)
57
+        //         shareWx.addEventListener('click',function(){
58
+        //             // 分享给朋友
59
+        //             wx.onMenuShareAppMessage({
60
+        //                 title: '分享标题', // 分享标题
61
+        //                 desc: '分享描述', // 分享描述
62
+        //                 type: 'link', // 分享类型,music、video或link,不填默认为link
63
+        //                 success: function () {
64
+        //                     // 用户确认分享后执行的回调函数
65 65
                             
66
-                        },
67
-                        cancel: function () {
68
-                            // 用户取消分享后执行的回调函数
69
-                        }
70
-                    });
71
-                })
66
+        //                 },
67
+        //                 cancel: function () {
68
+        //                     // 用户取消分享后执行的回调函数
69
+        //                 }
70
+        //             });
71
+        //         })
72 72
                 
73
-            });
74
-        }
73
+        //     });
74
+        // }
75 75
     }
76 76
     
77 77
     

+ 7
- 7
src/pages/articleDetails/index.html Zobrazit soubor

@@ -9,7 +9,7 @@
9 9
     <meta name="Keywords" content="" />
10 10
     <meta content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" name="viewport" />
11 11
     <link href="./static/css/swiper-bundle.min.css" rel="stylesheet" type="text/css" />
12
-    <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
12
+
13 13
     <%= require('../common/tpl/headerLink.tpl') %>
14 14
 </head>
15 15
 
@@ -23,9 +23,9 @@
23 23
                         <div>来源:中泽集团</div>
24 24
                         <div>浏览次数:227</div>
25 25
                     </div>
26
-                    <div class="head_right">
27
-                        分享到:<img src="./static/images/vx.png" alt="" /></span>
28
-                    </div>
26
+                    <!-- <div id="shareWx" class="head_right">
27
+                        分享到:<div class="sharethis-inline-share-buttons"></div>
28
+                    </div> -->
29 29
                 </div>
30 30
                 <div class="detail_head2">
31 31
                     <div class="head_left">
@@ -34,9 +34,9 @@
34 34
                     </div>
35 35
                     <div class="head_right">
36 36
                         <div>浏览次数:227</div>
37
-                        <div class="shareWx">
38
-                            分享到:<img src="./static/images/vx.png" alt="" /></span>
39
-                        </div>
37
+                        <!-- <div id="shareWx" class="shareWx">
38
+                            分享到:<div class="sharethis-inline-share-buttons"></div>
39
+                        </div> -->
40 40
                     </div>
41 41
                 </div>
42 42
                 <div class="detail_title">

+ 189
- 0
src/pages/enterprisePartyBuilding/App.js Zobrazit soubor

@@ -0,0 +1,189 @@
1
+import Swiper from 'swiper/bundle'
2
+import gsap from 'gsap'
3
+import Common from '../common/js/Common'
4
+import {
5
+    isMobile
6
+} from '../common/js/utils'
7
+// const BASEURL = 'http://192.168.1.33:9100';
8
+const BASEURL = 'http://localhost:3002/api';
9
+const pageSize = 5;
10
+
11
+export default class App {
12
+    constructor() {
13
+        let common = new Common(document.querySelector('.main'),4)   //导航菜单高亮,0是首页,后面的按顺序添加
14
+        this.isMobile = isMobile()
15
+        let lazyDoms = document.querySelectorAll(".lazy");
16
+        let Time = null;
17
+        let isMob=this.isMobile;
18
+        lazyDoms.forEach((item) => {
19
+            if (item.nodeName == "PICTURE") {
20
+                item.children[0].setAttribute("srcset", item.children[0].dataset.srcset);
21
+                item.children[1].setAttribute("src", item.children[1].dataset.src);
22
+            }
23
+            if (item.nodeName == "IMG") {
24
+                if(isMob){item.setAttribute("src", item.dataset.srcm);}
25
+                else{
26
+                    item.setAttribute("src", item.dataset.src);
27
+                }
28
+                
29
+            }
30
+            if (item.nodeName == "VIDEO") {
31
+                console.log(item, 'item---2')
32
+                item.setAttribute("src", item.dataset.src);
33
+                // item.load();
34
+            }
35
+        });
36
+        bindDom();
37
+        banner()
38
+        function banner() {
39
+        
40
+            let menuChange=true;
41
+            let menuType = document.querySelector(".headCon");
42
+            menuType.classList.add("menuType");
43
+            let mySwiper = new Swiper('.bannerSwiper1', {
44
+                autoplay: true,//可选选项,自动滑动
45
+                // 如果需要分页器
46
+                pagination: {
47
+                    el: '.swiper-pagination',
48
+                },
49
+                
50
+                // 如果需要前进后退按钮
51
+                navigation: {
52
+                    nextEl: '.btn-nextB',
53
+                    prevEl: '.btn-prevB',
54
+                },
55
+                on:{
56
+                    slideChange: function(){
57
+                        // if(menuChange){
58
+                        //     if(this.activeIndex==0){
59
+                        //         menuType.classList.add("menuType");
60
+                        //     }else{
61
+                        //         menuType.classList.remove("menuType");
62
+                        //     }
63
+                        // }
64
+                    },
65
+                  },
66
+            });
67
+            let mySwiper2 = new Swiper('.bannerSwiper2', {
68
+                autoplay: true,//可选选项,自动滑动
69
+                // 如果需要分页器
70
+                pagination: {
71
+                    el: '.swiper-pagination',
72
+                },
73
+                
74
+                // 如果需要前进后退按钮
75
+                navigation: {
76
+                    nextEl: '.btn-nextB',
77
+                    prevEl: '.btn-prevB',
78
+                },
79
+                on:{
80
+                    slideChange: function(){
81
+                        // if(menuChange){
82
+                        //     if(this.activeIndex==0){
83
+                        //         menuType.classList.add("menuType");
84
+                        //     }else{
85
+                        //         menuType.classList.remove("menuType");
86
+                        //     }
87
+                        // }
88
+                    },
89
+                  },
90
+            });
91
+            
92
+            
93
+            // 获取滚动条位置并更新显示
94
+            function updateScrollInfo() {
95
+                let scrollY = window.scrollY;
96
+                
97
+                if(scrollY>110){
98
+                    if(menuChange){
99
+                        menuChange=false;
100
+                        menuType.classList.remove("menuType");
101
+                    }
102
+                }else if(scrollY<110&&menuChange==false){
103
+                    menuChange=true;
104
+                    if(mySwiper.activeIndex==0){
105
+                        menuType.classList.add("menuType");
106
+                    }else{
107
+                        menuType.classList.remove("menuType");
108
+                    }
109
+                }
110
+                
111
+            }
112
+            
113
+                
114
+            // 添加滚动事件监听器
115
+            window.addEventListener('scroll', updateScrollInfo);
116
+            // 初始化显示
117
+            updateScrollInfo();
118
+            
119
+        }
120
+
121
+        function bindDom(){
122
+            const tabs_ul =  document.querySelectorAll(".tabs_li");
123
+            tabs_ul.forEach((item,index)=>{
124
+            
125
+                item.addEventListener('click',()=>{
126
+                    tabs_ul.forEach((li) => {
127
+                        li.classList.remove('tabs_lis');
128
+                    });
129
+            
130
+                    // 给当前点击的元素添加 tabs_lis 类名
131
+                    item.classList.add('tabs_lis');
132
+                })
133
+            })
134
+        }
135
+        function hotNews(){
136
+            const news_banner = document.querySelector('.news_banner');
137
+            const img = news_banner.querySelector('img')
138
+            const cont1 = news_banner.querySelector('.cont1')
139
+            const cont2 = news_banner.querySelector('.cont2')
140
+            const cont3 = news_banner.querySelector('.cont3')
141
+            fetch(BASEURL+'/system/news/top')
142
+            .then(response => {
143
+                if (!response.ok) {
144
+                    throw new Error('网络响应不是 OK');
145
+                }
146
+                return response.json();
147
+            })
148
+            .then(response => {
149
+                if (response.surfaceUrl) img.src = response.surfaceUrl
150
+                cont1.textContent = response.title
151
+                cont2.textContent = response.digest
152
+                cont3.textContent = response.date
153
+                news_banner.addEventListener('click',() => {
154
+                    window.open('/articleDetails.html?id='+response.uuid)
155
+                })
156
+
157
+            })
158
+            .catch(error => {
159
+                console.error('请求失败:', error); // 处理错误
160
+            });
161
+        }
162
+
163
+        function pageTurningClickEvent (){
164
+            // 上一页
165
+            const previousPage = document.querySelector('#previousPage');
166
+            previousPage.addEventListener('click', function(event) {
167
+                event.preventDefault()
168
+                const currentPage = sessionStorage.getItem('news_currentPage');
169
+                if(currentPage && parseInt(currentPage) > 1){
170
+                    initList(parseInt(currentPage) - 1)
171
+                }
172
+                
173
+            })
174
+            //下一页
175
+            const nextPage = document.querySelector('#nextPage');
176
+            nextPage.addEventListener('click', function(event) {
177
+                event.preventDefault()
178
+                const currentPage = sessionStorage.getItem('news_currentPage');
179
+                const pageCount = Math.ceil(parseInt(sessionStorage.getItem('news_total')) / pageSize)
180
+                if(currentPage && parseInt(currentPage) < pageCount){
181
+                    initList(parseInt(currentPage) + 1)
182
+                }
183
+            })
184
+        }
185
+    }
186
+    
187
+
188
+   
189
+}

+ 110
- 0
src/pages/enterprisePartyBuilding/index.html Zobrazit soubor

@@ -0,0 +1,110 @@
1
+<!DOCTYPE html>
2
+<html lang="cn">
3
+
4
+<head>
5
+    <meta charset="utf-8" />
6
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7
+    <title>党建工作</title>
8
+    <meta name="description" content="" />
9
+    <meta name="Keywords" content="" />
10
+    <meta content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" name="viewport" />
11
+    <link href="./static/css/swiper-bundle.min.css" rel="stylesheet" type="text/css" />
12
+    <%= require('../common/tpl/headerLink.tpl') %>
13
+</head>
14
+
15
+<body>
16
+    <%= require('../common/tpl/header.tpl') %>
17
+        <div class="main">
18
+            <div class="content content2">
19
+                <div class="news_title">企业党建</div>
20
+            </div>
21
+            <div class="tabs_box">
22
+                <div class="tabs_li tabs_lis">全部<span>·</span>30</div>
23
+                <div class="tabs_li">党建活动<span>·</span>12</div>
24
+                <div class="tabs_li">党建会议<span>·</span>5</div>
25
+                <div class="tabs_li">党建表彰<span>·</span>10</div>
26
+            </div>
27
+            <div class="article_list">
28
+                <a class="article_li">
29
+                    <img src="./static/images/index/twor4.jpg" alt="">
30
+                    <div class="txt1">中泽集团36人次当选党代表、人大代表、政协委员</div>
31
+                    <div class="txt2">2024-12-13</div>
32
+                </a>
33
+                <a class="article_li">
34
+                    <img src="./static/images/index/twor4.jpg" alt="">
35
+                    <div class="txt1">中泽集团36人次当选党代表、人大代表、政协委员</div>
36
+                    <div class="txt2">2024-12-13</div>
37
+                </a>
38
+                <a class="article_li">
39
+                    <img src="./static/images/index/twor4.jpg" alt="">
40
+                    <div class="txt1">中泽集团36人次当选党代表、人大代表、政协委员</div>
41
+                    <div class="txt2">2024-12-13</div>
42
+                </a>
43
+                <a class="article_li">
44
+                    <img src="./static/images/index/twor4.jpg" alt="">
45
+                    <div class="txt1">中泽集团36人次当选党代表、人大代表、政协委员</div>
46
+                    <div class="txt2">2024-12-13</div>
47
+                </a>
48
+                <a class="article_li">
49
+                    <img src="./static/images/index/twor4.jpg" alt="">
50
+                    <div class="txt1">中泽集团36人次当选党代表、人大代表、政协委员</div>
51
+                    <div class="txt2">2024-12-13</div>
52
+                </a>
53
+                <a class="article_li">
54
+                    <img src="./static/images/index/twor4.jpg" alt="">
55
+                    <div class="txt1">中泽集团36人次当选党代表、人大代表、政协委员</div>
56
+                    <div class="txt2">2024-12-13</div>
57
+                </a>
58
+                <a class="article_li">
59
+                    <img src="./static/images/index/twor4.jpg" alt="">
60
+                    <div class="txt1">中泽集团36人次当选党代表、人大代表、政协委员</div>
61
+                    <div class="txt2">2024-12-13</div>
62
+                </a>
63
+            </div> 
64
+            <div class="news_paging">
65
+                <!-- 锚点:#tab -->
66
+                <a id="previousPage" class="previousPage">
67
+                   <span class="icon iconfont icon-jiantou"></span>
68
+                </a>
69
+                <div id="paging" style="display: flex;align-items: center;">
70
+                    <a class="pageNum">1</a>
71
+                    <a class="pageNum">2</a>
72
+                    <a class="pageNum">3</a>
73
+                    <a class="pageNum pageNums">...</a>
74
+                </div>
75
+                <a id="nextPage" class="nextPage">
76
+                    <span class="icon iconfont icon-jiantou"></span>
77
+                </a>
78
+            </div>
79
+            <div class="study_box">
80
+                <div class="study_head">
81
+                    <div class="txt">学习文件</div>
82
+                    <a href="">查看学习文件</a>
83
+                </div>
84
+                <div class="wow domInUp banner">
85
+                    <div class="swiper bannerSwiper bannerSwiper2">
86
+                      <div class="swiper-wrapper">
87
+                        <div class="swiper-slide">
88
+                          <img
89
+                            class="lazy"
90
+                            data-src="./static/images/index/banner1.jpg"
91
+                            data-srcM="./static/images/index/banner1.jpg"
92
+                            alt=""
93
+                          />
94
+                        </div>
95
+                      </div>
96
+                      <!-- 如果需要分页器 -->
97
+                      <div class="swiper-pagination"></div>
98
+                      
99
+                      <!-- 如果需要导航按钮 -->
100
+                      <div class="btn-prev btn-prevB"><span class="icon iconfont icon-jiantou"></span></div>
101
+                      <div class="btn-next btn-nextB"><span class="icon iconfont icon-jiantou"></span></div>
102
+                    </div>
103
+                </div>
104
+            </div>
105
+        </div>
106
+        <%= require('../common/tpl/footer.tpl') %>
107
+            <%= require('../common/tpl/bottomBar.tpl') %>
108
+</body>
109
+
110
+</html>

+ 15
- 0
src/pages/enterprisePartyBuilding/index.js Zobrazit soubor

@@ -0,0 +1,15 @@
1
+import "./../common/css/common.less";
2
+import "./index.less";
3
+import vhCheck from "vh-check"; //移动端浏览器100vh高度不一致
4
+import App from './App.js';
5
+
6
+// swiper的css目前环境解析不出来,放static下,不走webpack 
7
+//import 'swiper/swiper-bundle.css';
8
+
9
+vhCheck();
10
+//禁止浏览器刷新后回到上一个页面滚动位置
11
+if ('scrollRestoration' in history) {
12
+    history.scrollRestoration = 'manual';
13
+}
14
+
15
+new App();

+ 553
- 0
src/pages/enterprisePartyBuilding/index.less Zobrazit soubor

@@ -0,0 +1,553 @@
1
+// pc端:
2
+// 设计稿1440*900 所有尺寸基本按px来即可;
3
+// 正文 16px;
4
+
5
+
6
+// 移动端:
7
+// 设计稿宽800px,按逻辑尺寸的两倍制作。因此真实尺寸需要除2;
8
+// 如设计稿字体大小28px,则实真字体大小为28px/2=14px;
9
+// 或使用vw 字体大小:28/800*10 = 3.5vw 
10
+// 正文 14px 或 3.5vw
11
+
12
+//pc端样式
13
+.main {
14
+    width: 100%;
15
+    max-width: 1920px;
16
+    margin: 0 auto;
17
+    padding-top: 70px;
18
+    .content{
19
+        width: 1500px;
20
+        margin: 0 auto;
21
+        .news_title{
22
+            text-align: center;
23
+            padding-top: 120px;
24
+            margin-bottom: 80px;
25
+            font-weight: bold;
26
+            font-size: 40px;
27
+            font-family: Microsoft YaHei;
28
+            color: #333333;
29
+        }
30
+       
31
+    }
32
+    .banner{
33
+        width: 100%;
34
+        height: 100vh;
35
+        .bannerSwiper{
36
+          width: 100%;
37
+          height: 100%;
38
+          img{
39
+            width: 100%;
40
+              height: 100%;
41
+              object-fit: cover;
42
+          }
43
+          .btn-prev,.btn-next{
44
+            position: absolute;
45
+            top: 50%;
46
+            margin-top: -22px;
47
+            width: 44px;
48
+            height: 44px;
49
+            border: 1px solid #000000;
50
+            z-index: 2;
51
+            text-align: center;
52
+            color: #000000;
53
+            background: transparent;
54
+            transition: all .3s ease-in-out;
55
+            cursor: pointer;
56
+            span{
57
+              font-size: 36px;
58
+              display: inline-block;
59
+              transform: rotate(90deg);
60
+              line-height: 44px;
61
+    
62
+            }
63
+            &:hover{
64
+              background: #48a038;
65
+              border-color: #48a038;
66
+              color: #fff;
67
+            }
68
+          }
69
+          .btn-prev{
70
+            left: 100px;
71
+            transform: rotate(-180deg);
72
+          }
73
+          .btn-next{
74
+            right: 100px;
75
+          }
76
+          .swiper-button-disabled{
77
+            cursor: no-drop;
78
+            background: transparent;
79
+            color: #979292;
80
+            border-color: #979292;
81
+            &:hover{
82
+              background: transparent;
83
+              border-color: #979292;
84
+              color: #979292;
85
+            }
86
+          }
87
+          .swiper-pagination{
88
+            bottom: 40px;
89
+            display: none;
90
+            .swiper-pagination-bullet{
91
+              background: #ffffff;
92
+              opacity:1;
93
+              position: relative;
94
+              width: 6px;
95
+              height: 6px;
96
+              margin:0 6px;
97
+              &::before{
98
+                content: '';
99
+                position: absolute;
100
+                left: -3px;
101
+                top: -3px;
102
+                width: 10px;
103
+                height: 10px;
104
+                border-radius: 50%;
105
+                border: 1px solid #ffffff;
106
+                opacity: 0;
107
+                transition: all .3s ease-in-out;
108
+              }
109
+            }
110
+            .swiper-pagination-bullet-active{
111
+              &::before{
112
+                opacity: 1;
113
+              }
114
+            }
115
+          }
116
+        }
117
+
118
+    }
119
+
120
+    .tabs_box{
121
+        width: 1300px;
122
+        margin: 0 auto;
123
+        display: flex;
124
+        align-items: center;
125
+        font-family: Source Han Sans CN;
126
+        font-size: 16px;
127
+        color: #000000;
128
+        margin-bottom: 60px;
129
+        .tabs_li{
130
+            border: 1px solid #000000;
131
+            padding: 10px 30px;
132
+            margin-right: 20px;
133
+            cursor: pointer;
134
+            transition: all .2s;
135
+            span{
136
+                display: inline-block;
137
+                margin: 0 10px;
138
+                font-weight: bold;
139
+            }
140
+        }
141
+        .tabs_lis{
142
+            background: #B81C25;
143
+            border: 1px solid #B81C25;
144
+            color: #fff;
145
+        }
146
+    }
147
+    .article_list{
148
+        width: 1300px;
149
+        margin: 0 auto;
150
+        display: flex;
151
+        flex-wrap: wrap;
152
+        .article_li{
153
+            width: 406px;
154
+            margin-bottom: 62px;
155
+            padding-bottom: 62px;
156
+            padding-right: 41px;
157
+            border-bottom: 1px solid #DDE2E6;
158
+
159
+            &:nth-of-type(3n){
160
+                padding-right: 0;
161
+            }
162
+            &:nth-of-type(7){
163
+                border: 0;
164
+                margin: 0;
165
+            }
166
+            &:nth-of-type(8){
167
+                border: 0;
168
+                margin: 0;
169
+            }
170
+            &:nth-of-type(9){
171
+                border: 0;
172
+                margin: 0;
173
+            }
174
+            img{
175
+                width: 100%;
176
+                height: 305px;
177
+                object-fit: cover;
178
+                margin-bottom: 20px;
179
+            }
180
+            .txt1{
181
+                font-size: 20px;
182
+                color: #000000;
183
+                display: -webkit-box;        /* 使用 Flexbox 布局 */
184
+                -webkit-box-orient: vertical; /* 垂直方向排列 */
185
+                -webkit-line-clamp: 2;      /* 限制显示的行数,这里是3行 */
186
+                overflow: hidden;            /* 隐藏超出部分 */
187
+                text-overflow: ellipsis;
188
+                line-height: 30px;
189
+                margin-bottom: 20px;
190
+            }
191
+            .txt2{
192
+                font-size: 14px;
193
+                color: #666666;
194
+            }
195
+        }
196
+    }
197
+    .news_paging{
198
+        display: flex;
199
+        align-items: center;
200
+        justify-content: center;
201
+        padding: 100px 0 120p x;
202
+        .previousPage{
203
+            width: 40px;
204
+            height: 40px;
205
+            color: #B81C25;
206
+            display: flex;
207
+            align-items: center;
208
+            justify-content: center;
209
+            border: 1px solid #B81C25;
210
+            margin-right: 20px;
211
+            cursor: pointer;
212
+            transition: all 0.2s;
213
+            span{
214
+                font-size: 26px;
215
+                transform: rotate(-90deg);
216
+            }
217
+            &:hover{
218
+                background: #B81C25;
219
+                border: 1px solid #B81C25;
220
+                color: #fff;
221
+            }
222
+        }
223
+        .nextPage{
224
+            width: 40px;
225
+            height: 40px;
226
+            color: #B81C25;
227
+            display: flex;
228
+            align-items: center;
229
+            justify-content: center;
230
+            border: 1px solid #B81C25;
231
+            margin-left: 20px;
232
+            cursor: pointer;
233
+            transition: all 0.2s;
234
+            span{
235
+                font-size: 26px;
236
+                transform: rotate(90deg);
237
+            }
238
+            &:hover{
239
+                background: #B81C25;
240
+                border: 1px solid #B81C25;
241
+                color: #fff;
242
+            }
243
+        }
244
+        .pageNum{
245
+            min-width: 40px;
246
+            height: 40px;
247
+            line-height: 40px;
248
+            font-family: Source Han Sans CN;
249
+            font-size: 18px;
250
+            color: #000;
251
+            transition: all 0.2s;
252
+            padding: 0 5px;
253
+            box-sizing: border-box;
254
+            cursor: pointer;
255
+            text-align: center;
256
+            border: 1px solid #DDE2E6;
257
+            border-radius: 2px;
258
+            &:hover{
259
+                background: #B81C25;
260
+                border: 1px solid #B81C25;
261
+                color: #fff;
262
+            }
263
+        }
264
+        .pageNums{
265
+            pointer-events: none;
266
+        }
267
+        .pageNum+.pageNum{
268
+            margin-left: 10px;
269
+        }
270
+        .pageNumActive{
271
+            color: #041954;
272
+        }
273
+        .ellipsis{
274
+            font-family: Source Han Sans CN;
275
+            font-weight: bold;
276
+            font-size: 22px;
277
+            padding: 10px 15px;
278
+            color: #333333;
279
+            // cursor: pointer;
280
+            transition: all 0.2s;
281
+            // &:hover{
282
+            //     color:#48A038
283
+            // }
284
+        }
285
+    }
286
+    .study_box{
287
+        width: 100%;
288
+        background-color: #F6F6F6;
289
+        padding-top: 122px;
290
+        padding-bottom: 130px;
291
+
292
+        .study_head{
293
+            width: 1498px;
294
+            margin: 0 auto;
295
+            display: flex;
296
+            align-items: center;
297
+            justify-content: space-between;
298
+            margin-bottom: 81px;
299
+            .txt{
300
+                font-weight: bold;
301
+                font-size: 48px;
302
+                color: #231F20;
303
+                margin-left: 100px;
304
+            }
305
+            a{
306
+                width: 200px;
307
+                height: 45px;
308
+                background: #B81C25;
309
+                border-radius: 8px;
310
+                font-size: 14px;
311
+                color: #FFFFFF;
312
+                text-align: center;
313
+                line-height: 45px;
314
+                margin-right: 100px;
315
+            }
316
+        }
317
+        .bannerSwiper2{
318
+            width: 1498px;
319
+            margin: 0 auto;
320
+        }
321
+    }
322
+}
323
+a{
324
+    display: inline-block;
325
+}
326
+
327
+@media screen and (min-width: 801px) and (max-width: 1400px) {
328
+    .main{
329
+        
330
+    }
331
+}
332
+
333
+//移动端样式
334
+@media screen and (max-width:800px) {
335
+   
336
+    .main {
337
+        width: 100%;
338
+        padding-top: 3.5vw;
339
+        .content{
340
+            width: 92.125vw;
341
+            margin: 0 auto;
342
+            .news_title{
343
+                display: block;
344
+                margin-bottom: 10.75vw;
345
+                font-size: 6.375vw;
346
+                text-align: center;
347
+            }
348
+        }
349
+        .content2{
350
+            padding-top: 17.5vw;
351
+            .news_title{
352
+                font-size: 4.75vw;
353
+                padding-top: 0;
354
+            }
355
+        }
356
+        .banner{
357
+            width: 100%;
358
+            height: auto;
359
+            .bannerSwiper{
360
+              width: 100%;
361
+              height: 100%;
362
+              img{
363
+                    width: 100%;
364
+                    height: 46.75vw;
365
+                    object-fit: cover;
366
+              }
367
+              .btn-prev,.btn-next{
368
+                position: absolute;
369
+                top: 50%;
370
+                margin-top: -22px;
371
+                width: 44px;
372
+                height: 44px;
373
+                border: 1px solid #000000;
374
+                z-index: 2;
375
+                text-align: center;
376
+                color: #000000;
377
+                background: transparent;
378
+                transition: all .3s ease-in-out;
379
+                cursor: pointer;
380
+                span{
381
+                  font-size: 36px;
382
+                  display: inline-block;
383
+                  transform: rotate(90deg);
384
+                  line-height: 44px;
385
+        
386
+                }
387
+                &:hover{
388
+                  background: #48a038;
389
+                  border-color: #48a038;
390
+                  color: #fff;
391
+                }
392
+              }
393
+              .btn-prev{
394
+                left: 100px;
395
+                transform: rotate(-180deg);
396
+              }
397
+              .btn-next{
398
+                right: 100px;
399
+              }
400
+              .swiper-button-disabled{
401
+                cursor: no-drop;
402
+                background: transparent;
403
+                color: #979292;
404
+                border-color: #979292;
405
+                &:hover{
406
+                  background: transparent;
407
+                  border-color: #979292;
408
+                  color: #979292;
409
+                }
410
+              }
411
+              .swiper-pagination{
412
+                bottom: 40px;
413
+                display: none;
414
+                .swiper-pagination-bullet{
415
+                  background: #ffffff;
416
+                  opacity:1;
417
+                  position: relative;
418
+                  width: 6px;
419
+                  height: 6px;
420
+                  margin:0 6px;
421
+                  &::before{
422
+                    content: '';
423
+                    position: absolute;
424
+                    left: -3px;
425
+                    top: -3px;
426
+                    width: 10px;
427
+                    height: 10px;
428
+                    border-radius: 50%;
429
+                    border: 1px solid #ffffff;
430
+                    opacity: 0;
431
+                    transition: all .3s ease-in-out;
432
+                  }
433
+                }
434
+                .swiper-pagination-bullet-active{
435
+                  &::before{
436
+                    opacity: 1;
437
+                  }
438
+                }
439
+              }
440
+            }
441
+    
442
+        }
443
+    
444
+        .tabs_box{
445
+            width: 92.125vw;
446
+            flex-wrap: wrap;
447
+            margin-bottom: 10.625vw;
448
+            font-size: 3.75vw;
449
+            .tabs_li{
450
+                padding: 1.875vw 3.75vw;
451
+                margin-right: 3vw;
452
+                margin-bottom: 4vw;
453
+                span{
454
+                    display: inline-block;
455
+                    margin: 0 3px 0 8px;
456
+                    font-weight: bold;
457
+                }
458
+                &:nth-of-type(3n){
459
+                    margin-right: 0;
460
+                }
461
+            }
462
+            .tabs_lis{
463
+                background: #B81C25;
464
+                border: 1px solid #B81C25;
465
+                color: #fff;
466
+            }
467
+        }
468
+        .article_list{
469
+            width: 92.125vw;
470
+            margin: 0 auto;
471
+            .article_li{
472
+                width: 100%;
473
+                margin-bottom: 10.5vw;
474
+                padding-bottom: 10.5vw;
475
+                padding-right: 0;
476
+                border-bottom: 1px solid #DDE2E6;
477
+    
478
+              
479
+                &:nth-of-type(7){
480
+                   border-bottom: 1px solid #DDE2E6;
481
+                }
482
+                &:nth-of-type(8){
483
+                   border-bottom: 1px solid #DDE2E6;
484
+                }
485
+                &:nth-of-type(9){
486
+                   border-bottom: 1px solid #DDE2E6;
487
+                }
488
+                &:last-child{
489
+                    border: 0;
490
+                }
491
+                img{
492
+                    height: 69.125vw;
493
+                    margin-bottom: 5.125vw;
494
+                }
495
+                .txt1{
496
+                    font-size: 3.75vw;
497
+                }
498
+            }
499
+        }
500
+        .news_paging{
501
+            padding-top: 16vw;
502
+            .previousPage{
503
+                width: 40px;
504
+                height: 40px;
505
+                margin-right: 20px;
506
+                box-sizing: border-box;
507
+            }
508
+            .nextPage{
509
+                width: 40px;
510
+                height: 40px;
511
+                margin-left: 3.25vw;
512
+                transition: all 0.2s;
513
+                box-sizing: border-box;
514
+            }
515
+            .pageNum{
516
+                font-size: 3.5vw;
517
+            }
518
+            .ellipsis{
519
+                font-size: 3.5vw;
520
+                padding: 1.875vw 2.5vw;
521
+                // &:hover{
522
+                //     color:#48A038
523
+                // }
524
+            }
525
+        }
526
+        .study_box{
527
+            padding-top: 13.75vw;
528
+            padding-bottom: 35.875vw;
529
+            position: relative;
530
+
531
+            .study_head{
532
+                width: 92.125vw;
533
+                margin-bottom: 10.5vw;
534
+                .txt{
535
+                    width: 100%;
536
+                    font-size: 4.75vw;
537
+                    margin-left: 0;
538
+                    text-align: center;
539
+                }
540
+                a{
541
+                    position: absolute;
542
+                    bottom:15vw;
543
+                    left: 50%;
544
+                    margin-left: -25%;
545
+                }
546
+            }
547
+            .bannerSwiper2{
548
+                width: 92.125vw;
549
+                margin: 0 auto;
550
+            }
551
+        }
552
+    }
553
+}

+ 1
- 1
src/pages/index/index.html Zobrazit soubor

@@ -111,7 +111,7 @@
111 111
           <div class="masterDiv">
112 112
             <div class="swiper masterSwiper3">
113 113
               <div class="swiper-wrapper">
114
-                <div class="swiper-slide">
114
+                <div class="swiper-slide"> 
115 115
                   <img class="lazy" data-src="./static/images/index/car1.png" data-srcM="./static/images/index/car1.png" alt="" />
116 116
                 </div>
117 117
                 <!-- 多个直接复制添加swiper-slide -->

+ 104
- 1
src/pages/partyBuilding/App.js Zobrazit soubor

@@ -12,8 +12,111 @@ export default class App {
12 12
     constructor() {
13 13
         let common = new Common(document.querySelector('.main'),4)   //导航菜单高亮,0是首页,后面的按顺序添加
14 14
         this.isMobile = isMobile()
15
+        let lazyDoms = document.querySelectorAll(".lazy");
16
+        let Time = null;
17
+        let isMob=this.isMobile;
18
+        lazyDoms.forEach((item) => {
19
+            if (item.nodeName == "PICTURE") {
20
+                item.children[0].setAttribute("srcset", item.children[0].dataset.srcset);
21
+                item.children[1].setAttribute("src", item.children[1].dataset.src);
22
+            }
23
+            if (item.nodeName == "IMG") {
24
+                if(isMob){item.setAttribute("src", item.dataset.srcm);}
25
+                else{
26
+                    item.setAttribute("src", item.dataset.src);
27
+                }
28
+                
29
+            }
30
+            if (item.nodeName == "VIDEO") {
31
+                console.log(item, 'item---2')
32
+                item.setAttribute("src", item.dataset.src);
33
+                // item.load();
34
+            }
35
+        });
36
+        bindDom();
37
+        banner()
38
+        function banner() {
15 39
         
16
-        // bindDom();
40
+            let menuChange=true;
41
+            let menuType = document.querySelector(".headCon");
42
+            menuType.classList.add("menuType");
43
+            let mySwiper = new Swiper('.bannerSwiper1', {
44
+                autoplay: true,//可选选项,自动滑动
45
+                // 如果需要分页器
46
+                pagination: {
47
+                    el: '.swiper-pagination',
48
+                },
49
+                
50
+                // 如果需要前进后退按钮
51
+                navigation: {
52
+                    nextEl: '.btn-nextB',
53
+                    prevEl: '.btn-prevB',
54
+                },
55
+                on:{
56
+                    slideChange: function(){
57
+                        // if(menuChange){
58
+                        //     if(this.activeIndex==0){
59
+                        //         menuType.classList.add("menuType");
60
+                        //     }else{
61
+                        //         menuType.classList.remove("menuType");
62
+                        //     }
63
+                        // }
64
+                    },
65
+                  },
66
+            });
67
+            let mySwiper2 = new Swiper('.bannerSwiper2', {
68
+                autoplay: true,//可选选项,自动滑动
69
+                // 如果需要分页器
70
+                pagination: {
71
+                    el: '.swiper-pagination',
72
+                },
73
+                
74
+                // 如果需要前进后退按钮
75
+                navigation: {
76
+                    nextEl: '.btn-nextB',
77
+                    prevEl: '.btn-prevB',
78
+                },
79
+                on:{
80
+                    slideChange: function(){
81
+                        // if(menuChange){
82
+                        //     if(this.activeIndex==0){
83
+                        //         menuType.classList.add("menuType");
84
+                        //     }else{
85
+                        //         menuType.classList.remove("menuType");
86
+                        //     }
87
+                        // }
88
+                    },
89
+                  },
90
+            });
91
+            
92
+            
93
+            // 获取滚动条位置并更新显示
94
+            function updateScrollInfo() {
95
+                let scrollY = window.scrollY;
96
+                
97
+                if(scrollY>110){
98
+                    if(menuChange){
99
+                        menuChange=false;
100
+                        menuType.classList.remove("menuType");
101
+                    }
102
+                }else if(scrollY<110&&menuChange==false){
103
+                    menuChange=true;
104
+                    if(mySwiper.activeIndex==0){
105
+                        menuType.classList.add("menuType");
106
+                    }else{
107
+                        menuType.classList.remove("menuType");
108
+                    }
109
+                }
110
+                
111
+            }
112
+            
113
+                
114
+            // 添加滚动事件监听器
115
+            window.addEventListener('scroll', updateScrollInfo);
116
+            // 初始化显示
117
+            updateScrollInfo();
118
+            
119
+        }
17 120
 
18 121
         function bindDom(){
19 122
             const tabs_ul =  document.querySelectorAll(".tabs_li");

+ 94
- 3
src/pages/partyBuilding/index.html Zobrazit soubor

@@ -4,7 +4,7 @@
4 4
 <head>
5 5
     <meta charset="utf-8" />
6 6
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7
-    <title>新闻资讯</title>
7
+    <title>党建工作</title>
8 8
     <meta name="description" content="" />
9 9
     <meta name="Keywords" content="" />
10 10
     <meta content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" name="viewport" />
@@ -16,9 +16,74 @@
16 16
     <%= require('../common/tpl/header.tpl') %>
17 17
         <div class="main">
18 18
             <div class="content">
19
-                <div class="news_title">新闻中心</div>
19
+                <div class="news_title">党建工作</div>
20 20
             </div>
21
-
21
+            <div class="wow domInUp banner">
22
+                <div class="swiper bannerSwiper bannerSwiper1">
23
+                  <div class="swiper-wrapper">
24
+                    <div class="swiper-slide">
25
+                      <img
26
+                        class="lazy"
27
+                        data-src="./static/images/index/banner1.jpg"
28
+                        data-srcM="./static/images/index/banner1.jpg"
29
+                        alt=""
30
+                      />
31
+                    </div>
32
+                  </div>
33
+                  <!-- 如果需要分页器 -->
34
+                  <div class="swiper-pagination"></div>
35
+                  
36
+                  <!-- 如果需要导航按钮 -->
37
+                  <div class="btn-prev btn-prevB"><span class="icon iconfont icon-jiantou"></span></div>
38
+                  <div class="btn-next btn-nextB"><span class="icon iconfont icon-jiantou"></span></div>
39
+                </div>
40
+            </div>
41
+            <div class="content content2">
42
+                <div class="news_title">企业党建</div>
43
+            </div>
44
+            <div class="tabs_box">
45
+                <div class="tabs_li tabs_lis">全部<span>·</span>30</div>
46
+                <div class="tabs_li">党建活动<span>·</span>12</div>
47
+                <div class="tabs_li">党建会议<span>·</span>5</div>
48
+                <div class="tabs_li">党建表彰<span>·</span>10</div>
49
+            </div>
50
+            <div class="article_list">
51
+                <a class="article_li">
52
+                    <img src="./static/images/index/twor4.jpg" alt="">
53
+                    <div class="txt1">中泽集团36人次当选党代表、人大代表、政协委员</div>
54
+                    <div class="txt2">2024-12-13</div>
55
+                </a>
56
+                <a class="article_li">
57
+                    <img src="./static/images/index/twor4.jpg" alt="">
58
+                    <div class="txt1">中泽集团36人次当选党代表、人大代表、政协委员</div>
59
+                    <div class="txt2">2024-12-13</div>
60
+                </a>
61
+                <a class="article_li">
62
+                    <img src="./static/images/index/twor4.jpg" alt="">
63
+                    <div class="txt1">中泽集团36人次当选党代表、人大代表、政协委员</div>
64
+                    <div class="txt2">2024-12-13</div>
65
+                </a>
66
+                <a class="article_li">
67
+                    <img src="./static/images/index/twor4.jpg" alt="">
68
+                    <div class="txt1">中泽集团36人次当选党代表、人大代表、政协委员</div>
69
+                    <div class="txt2">2024-12-13</div>
70
+                </a>
71
+                <a class="article_li">
72
+                    <img src="./static/images/index/twor4.jpg" alt="">
73
+                    <div class="txt1">中泽集团36人次当选党代表、人大代表、政协委员</div>
74
+                    <div class="txt2">2024-12-13</div>
75
+                </a>
76
+                <a class="article_li">
77
+                    <img src="./static/images/index/twor4.jpg" alt="">
78
+                    <div class="txt1">中泽集团36人次当选党代表、人大代表、政协委员</div>
79
+                    <div class="txt2">2024-12-13</div>
80
+                </a>
81
+                <a class="article_li">
82
+                    <img src="./static/images/index/twor4.jpg" alt="">
83
+                    <div class="txt1">中泽集团36人次当选党代表、人大代表、政协委员</div>
84
+                    <div class="txt2">2024-12-13</div>
85
+                </a>
86
+            </div> 
22 87
             <div class="news_paging">
23 88
                 <!-- 锚点:#tab -->
24 89
                 <a id="previousPage" class="previousPage">
@@ -34,6 +99,32 @@
34 99
                     <span class="icon iconfont icon-jiantou"></span>
35 100
                 </a>
36 101
             </div>
102
+            <div class="study_box">
103
+                <div class="study_head">
104
+                    <div class="txt">学习文件</div>
105
+                    <a href="">查看学习文件</a>
106
+                </div>
107
+                <div class="wow domInUp banner">
108
+                    <div class="swiper bannerSwiper bannerSwiper2">
109
+                      <div class="swiper-wrapper">
110
+                        <div class="swiper-slide">
111
+                          <img
112
+                            class="lazy"
113
+                            data-src="./static/images/index/banner1.jpg"
114
+                            data-srcM="./static/images/index/banner1.jpg"
115
+                            alt=""
116
+                          />
117
+                        </div>
118
+                      </div>
119
+                      <!-- 如果需要分页器 -->
120
+                      <div class="swiper-pagination"></div>
121
+                      
122
+                      <!-- 如果需要导航按钮 -->
123
+                      <div class="btn-prev btn-prevB"><span class="icon iconfont icon-jiantou"></span></div>
124
+                      <div class="btn-next btn-nextB"><span class="icon iconfont icon-jiantou"></span></div>
125
+                    </div>
126
+                </div>
127
+            </div>
37 128
         </div>
38 129
         <%= require('../common/tpl/footer.tpl') %>
39 130
             <%= require('../common/tpl/bottomBar.tpl') %>

+ 384
- 8
src/pages/partyBuilding/index.less Zobrazit soubor

@@ -20,29 +20,193 @@
20 20
         margin: 0 auto;
21 21
         .news_title{
22 22
             text-align: center;
23
-            padding-top: 143px;
23
+            padding-top: 120px;
24 24
             margin-bottom: 80px;
25 25
             font-weight: bold;
26 26
             font-size: 40px;
27 27
             font-family: Microsoft YaHei;
28 28
             color: #333333;
29 29
         }
30
+       
31
+    }
32
+    .banner{
33
+        width: 100%;
34
+        height: 100vh;
35
+        .bannerSwiper{
36
+          width: 100%;
37
+          height: 100%;
38
+          img{
39
+            width: 100%;
40
+              height: 100%;
41
+              object-fit: cover;
42
+          }
43
+          .btn-prev,.btn-next{
44
+            position: absolute;
45
+            top: 50%;
46
+            margin-top: -22px;
47
+            width: 44px;
48
+            height: 44px;
49
+            border: 1px solid #000000;
50
+            z-index: 2;
51
+            text-align: center;
52
+            color: #000000;
53
+            background: transparent;
54
+            transition: all .3s ease-in-out;
55
+            cursor: pointer;
56
+            span{
57
+              font-size: 36px;
58
+              display: inline-block;
59
+              transform: rotate(90deg);
60
+              line-height: 44px;
61
+    
62
+            }
63
+            &:hover{
64
+              background: #48a038;
65
+              border-color: #48a038;
66
+              color: #fff;
67
+            }
68
+          }
69
+          .btn-prev{
70
+            left: 100px;
71
+            transform: rotate(-180deg);
72
+          }
73
+          .btn-next{
74
+            right: 100px;
75
+          }
76
+          .swiper-button-disabled{
77
+            cursor: no-drop;
78
+            background: transparent;
79
+            color: #979292;
80
+            border-color: #979292;
81
+            &:hover{
82
+              background: transparent;
83
+              border-color: #979292;
84
+              color: #979292;
85
+            }
86
+          }
87
+          .swiper-pagination{
88
+            bottom: 40px;
89
+            display: none;
90
+            .swiper-pagination-bullet{
91
+              background: #ffffff;
92
+              opacity:1;
93
+              position: relative;
94
+              width: 6px;
95
+              height: 6px;
96
+              margin:0 6px;
97
+              &::before{
98
+                content: '';
99
+                position: absolute;
100
+                left: -3px;
101
+                top: -3px;
102
+                width: 10px;
103
+                height: 10px;
104
+                border-radius: 50%;
105
+                border: 1px solid #ffffff;
106
+                opacity: 0;
107
+                transition: all .3s ease-in-out;
108
+              }
109
+            }
110
+            .swiper-pagination-bullet-active{
111
+              &::before{
112
+                opacity: 1;
113
+              }
114
+            }
115
+          }
116
+        }
117
+
30 118
     }
31 119
 
120
+    .tabs_box{
121
+        width: 1300px;
122
+        margin: 0 auto;
123
+        display: flex;
124
+        align-items: center;
125
+        font-family: Source Han Sans CN;
126
+        font-size: 16px;
127
+        color: #000000;
128
+        margin-bottom: 60px;
129
+        .tabs_li{
130
+            border: 1px solid #000000;
131
+            padding: 10px 30px;
132
+            margin-right: 20px;
133
+            cursor: pointer;
134
+            transition: all .2s;
135
+            span{
136
+                display: inline-block;
137
+                margin: 0 10px;
138
+                font-weight: bold;
139
+            }
140
+        }
141
+        .tabs_lis{
142
+            background: #B81C25;
143
+            border: 1px solid #B81C25;
144
+            color: #fff;
145
+        }
146
+    }
147
+    .article_list{
148
+        width: 1300px;
149
+        margin: 0 auto;
150
+        display: flex;
151
+        flex-wrap: wrap;
152
+        .article_li{
153
+            width: 406px;
154
+            margin-bottom: 62px;
155
+            padding-bottom: 62px;
156
+            padding-right: 41px;
157
+            border-bottom: 1px solid #DDE2E6;
158
+
159
+            &:nth-of-type(3n){
160
+                padding-right: 0;
161
+            }
162
+            &:nth-of-type(7){
163
+                border: 0;
164
+                margin: 0;
165
+            }
166
+            &:nth-of-type(8){
167
+                border: 0;
168
+                margin: 0;
169
+            }
170
+            &:nth-of-type(9){
171
+                border: 0;
172
+                margin: 0;
173
+            }
174
+            img{
175
+                width: 100%;
176
+                height: 305px;
177
+                object-fit: cover;
178
+                margin-bottom: 20px;
179
+            }
180
+            .txt1{
181
+                font-size: 20px;
182
+                color: #000000;
183
+                display: -webkit-box;        /* 使用 Flexbox 布局 */
184
+                -webkit-box-orient: vertical; /* 垂直方向排列 */
185
+                -webkit-line-clamp: 2;      /* 限制显示的行数,这里是3行 */
186
+                overflow: hidden;            /* 隐藏超出部分 */
187
+                text-overflow: ellipsis;
188
+                line-height: 30px;
189
+                margin-bottom: 20px;
190
+            }
191
+            .txt2{
192
+                font-size: 14px;
193
+                color: #666666;
194
+            }
195
+        }
196
+    }
32 197
     .news_paging{
33 198
         display: flex;
34 199
         align-items: center;
35 200
         justify-content: center;
36
-        padding: 100px 0 120px;
37
-        background: #F6F6F6;
201
+        padding: 100px 0 120p x;
38 202
         .previousPage{
39 203
             width: 40px;
40 204
             height: 40px;
41
-            color: #041954;
205
+            color: #B81C25;
42 206
             display: flex;
43 207
             align-items: center;
44 208
             justify-content: center;
45
-            border: 1px solid #041954;
209
+            border: 1px solid #B81C25;
46 210
             margin-right: 20px;
47 211
             cursor: pointer;
48 212
             transition: all 0.2s;
@@ -59,11 +223,11 @@
59 223
         .nextPage{
60 224
             width: 40px;
61 225
             height: 40px;
62
-            color: #041954;
226
+            color: #B81C25;
63 227
             display: flex;
64 228
             align-items: center;
65 229
             justify-content: center;
66
-            border: 1px solid #041954;
230
+            border: 1px solid #B81C25;
67 231
             margin-left: 20px;
68 232
             cursor: pointer;
69 233
             transition: all 0.2s;
@@ -119,6 +283,42 @@
119 283
             // }
120 284
         }
121 285
     }
286
+    .study_box{
287
+        width: 100%;
288
+        background-color: #F6F6F6;
289
+        padding-top: 122px;
290
+        padding-bottom: 130px;
291
+
292
+        .study_head{
293
+            width: 1498px;
294
+            margin: 0 auto;
295
+            display: flex;
296
+            align-items: center;
297
+            justify-content: space-between;
298
+            margin-bottom: 81px;
299
+            .txt{
300
+                font-weight: bold;
301
+                font-size: 48px;
302
+                color: #231F20;
303
+                margin-left: 100px;
304
+            }
305
+            a{
306
+                width: 200px;
307
+                height: 45px;
308
+                background: #B81C25;
309
+                border-radius: 8px;
310
+                font-size: 14px;
311
+                color: #FFFFFF;
312
+                text-align: center;
313
+                line-height: 45px;
314
+                margin-right: 100px;
315
+            }
316
+        }
317
+        .bannerSwiper2{
318
+            width: 1498px;
319
+            margin: 0 auto;
320
+        }
321
+    }
122 322
 }
123 323
 a{
124 324
     display: inline-block;
@@ -137,7 +337,7 @@ a{
137 337
         width: 100%;
138 338
         padding-top: 3.5vw;
139 339
         .content{
140
-            width: 92vw;
340
+            width: 92.125vw;
141 341
             margin: 0 auto;
142 342
             .news_title{
143 343
                 display: block;
@@ -146,7 +346,157 @@ a{
146 346
                 text-align: center;
147 347
             }
148 348
         }
349
+        .content2{
350
+            padding-top: 17.5vw;
351
+            .news_title{
352
+                font-size: 4.75vw;
353
+                padding-top: 0;
354
+            }
355
+        }
356
+        .banner{
357
+            width: 100%;
358
+            height: auto;
359
+            .bannerSwiper{
360
+              width: 100%;
361
+              height: 100%;
362
+              img{
363
+                    width: 100%;
364
+                    height: 46.75vw;
365
+                    object-fit: cover;
366
+              }
367
+              .btn-prev,.btn-next{
368
+                position: absolute;
369
+                top: 50%;
370
+                margin-top: -22px;
371
+                width: 44px;
372
+                height: 44px;
373
+                border: 1px solid #000000;
374
+                z-index: 2;
375
+                text-align: center;
376
+                color: #000000;
377
+                background: transparent;
378
+                transition: all .3s ease-in-out;
379
+                cursor: pointer;
380
+                span{
381
+                  font-size: 36px;
382
+                  display: inline-block;
383
+                  transform: rotate(90deg);
384
+                  line-height: 44px;
149 385
         
386
+                }
387
+                &:hover{
388
+                  background: #48a038;
389
+                  border-color: #48a038;
390
+                  color: #fff;
391
+                }
392
+              }
393
+              .btn-prev{
394
+                left: 100px;
395
+                transform: rotate(-180deg);
396
+              }
397
+              .btn-next{
398
+                right: 100px;
399
+              }
400
+              .swiper-button-disabled{
401
+                cursor: no-drop;
402
+                background: transparent;
403
+                color: #979292;
404
+                border-color: #979292;
405
+                &:hover{
406
+                  background: transparent;
407
+                  border-color: #979292;
408
+                  color: #979292;
409
+                }
410
+              }
411
+              .swiper-pagination{
412
+                bottom: 40px;
413
+                display: none;
414
+                .swiper-pagination-bullet{
415
+                  background: #ffffff;
416
+                  opacity:1;
417
+                  position: relative;
418
+                  width: 6px;
419
+                  height: 6px;
420
+                  margin:0 6px;
421
+                  &::before{
422
+                    content: '';
423
+                    position: absolute;
424
+                    left: -3px;
425
+                    top: -3px;
426
+                    width: 10px;
427
+                    height: 10px;
428
+                    border-radius: 50%;
429
+                    border: 1px solid #ffffff;
430
+                    opacity: 0;
431
+                    transition: all .3s ease-in-out;
432
+                  }
433
+                }
434
+                .swiper-pagination-bullet-active{
435
+                  &::before{
436
+                    opacity: 1;
437
+                  }
438
+                }
439
+              }
440
+            }
441
+    
442
+        }
443
+    
444
+        .tabs_box{
445
+            width: 92.125vw;
446
+            flex-wrap: wrap;
447
+            margin-bottom: 10.625vw;
448
+            font-size: 3.75vw;
449
+            .tabs_li{
450
+                padding: 1.875vw 3.75vw;
451
+                margin-right: 3vw;
452
+                margin-bottom: 4vw;
453
+                span{
454
+                    display: inline-block;
455
+                    margin: 0 3px 0 8px;
456
+                    font-weight: bold;
457
+                }
458
+                &:nth-of-type(3n){
459
+                    margin-right: 0;
460
+                }
461
+            }
462
+            .tabs_lis{
463
+                background: #B81C25;
464
+                border: 1px solid #B81C25;
465
+                color: #fff;
466
+            }
467
+        }
468
+        .article_list{
469
+            width: 92.125vw;
470
+            margin: 0 auto;
471
+            .article_li{
472
+                width: 100%;
473
+                margin-bottom: 10.5vw;
474
+                padding-bottom: 10.5vw;
475
+                padding-right: 0;
476
+                border-bottom: 1px solid #DDE2E6;
477
+    
478
+              
479
+                &:nth-of-type(7){
480
+                   border-bottom: 1px solid #DDE2E6;
481
+                }
482
+                &:nth-of-type(8){
483
+                   border-bottom: 1px solid #DDE2E6;
484
+                }
485
+                &:nth-of-type(9){
486
+                   border-bottom: 1px solid #DDE2E6;
487
+                }
488
+                &:last-child{
489
+                    border: 0;
490
+                }
491
+                img{
492
+                    height: 69.125vw;
493
+                    margin-bottom: 5.125vw;
494
+                }
495
+                .txt1{
496
+                    font-size: 3.75vw;
497
+                }
498
+            }
499
+        }
150 500
         .news_paging{
151 501
             padding-top: 16vw;
152 502
             .previousPage{
@@ -173,5 +523,31 @@ a{
173 523
                 // }
174 524
             }
175 525
         }
526
+        .study_box{
527
+            padding-top: 13.75vw;
528
+            padding-bottom: 35.875vw;
529
+            position: relative;
530
+
531
+            .study_head{
532
+                width: 92.125vw;
533
+                margin-bottom: 10.5vw;
534
+                .txt{
535
+                    width: 100%;
536
+                    font-size: 4.75vw;
537
+                    margin-left: 0;
538
+                    text-align: center;
539
+                }
540
+                a{
541
+                    position: absolute;
542
+                    bottom:15vw;
543
+                    left: 50%;
544
+                    margin-left: -25%;
545
+                }
546
+            }
547
+            .bannerSwiper2{
548
+                width: 92.125vw;
549
+                margin: 0 auto;
550
+            }
551
+        }
176 552
     }
177 553
 }

Načítá se…
Zrušit
Uložit