Browse Source

修改样式

zjm
suomingxiang 5 months ago
parent
commit
497e9a92e4

+ 1
- 1
src/pages/articleDetails/App.js View File

@@ -8,7 +8,7 @@ import {
8 8
 
9 9
 export default class App {
10 10
     constructor() {
11
-        let common = new Common(document.querySelector('.main'),2)   //导航菜单高亮,0是首页,后面的按顺序添加
11
+        // let common = new Common(document.querySelector('.main'),2)   //导航菜单高亮,0是首页,后面的按顺序添加
12 12
         this.isMobile = isMobile()
13 13
         // this.tabChange()
14 14
         // 图片及视频资源懒加载。防止阻塞js执行

+ 1
- 0
src/pages/articleDetails/index.less View File

@@ -177,6 +177,7 @@ a{
177 177
                 display: block;
178 178
                 margin-top: 12.5vw;
179 179
                 border-bottom: 1px solid #DDE2E6;
180
+                font-size: 13px;
180 181
                 .head_left,.head_right{
181 182
                     width: 100%;
182 183
                     display: flex;

+ 1
- 1
src/pages/news/index.html View File

@@ -58,7 +58,7 @@
58 58
                         </div>
59 59
                     </div>
60 60
                 </div>
61
-                <div class="tabs_box wow fadeInUp" id="point">
61
+                <div class="tabs_box" id="point">
62 62
                     <a class="tabs_li tabs_lis">全部</a>
63 63
                     <a class="tabs_li">集团新闻</a>
64 64
                     <a class="tabs_li">前沿资讯</a>

+ 226
- 62
src/pages/news/index.less View File

@@ -144,7 +144,7 @@
144 144
                 color: #231F20;
145 145
                 margin-right: 80px;
146 146
                 cursor: pointer;
147
-                padding-bottom: 30px;
147
+                padding: 30px 0;
148 148
                 transition: all .2s;
149 149
                 border-bottom: 2px solid transparent;
150 150
                 position: relative;
@@ -381,65 +381,18 @@
381 381
 a{
382 382
     display: inline-block;
383 383
 }
384
+img{
385
+    display: block;
386
+}
384 387
 
385
-// @media screen and (min-width: 808px) and (max-width: 1180px){
386
-//     .main{
387
-//         .content{
388
-//             width: calc(100% - 60px);
389
-//             .banner_box{
390
-//                 .news_banner{
391
-//                     width: 430px;
392
-//                     height: 213px;
393
-//                     .news_content{
394
-//                         border-radius: 12px;
395
-//                     }
396
-//                 }   
397
-//                 .news_banner2{
398
-//                     width: 300px;
399
-//                     img{
400
-//                         height: 200px;
401
-//                     }
402
-//                     .txt1{
403
-//                         font-size: 16px;
404
-//                     }
405
-//                     .txt2{
406
-//                         font-size: 14px;
407
-//                     }
408
-//                     .txt3{
409
-//                         font-size: 14px;
410
-//                     }
411
-//                     a{
412
-//                         font-size: 14px;
413
-//                         .icon{
414
-//                             margin-top: -2px;
415
-//                             font-size: 18px;
416
-//                         }
417
-//                     }
418
-//                 }
419
-//             }
420
-//             .tabs_box{
421
-//                 width: calc(100% - 60px);
422
-//             }
423
-//         }
424
-//         .news_ul {
425
-//             max-width: 100%;
426
-//             width: calc(100% - 60px);
427
-//             overflow: hidden;
428
-//             .news_list{
429
-//                 width: calc(100% - 60px);
430
-//             }
431
-//         }
432
-//         .news_paging{}
433
-//     }
434
-// }
435
-@media screen and (min-width: 808px) and (max-width: 1400px) {
388
+@media screen and (min-width: 808px) and (max-width: 1180px){
436 389
     .main{
437 390
         .content{
438 391
             width: calc(100% - 60px);
439 392
             .banner_box{
440 393
                 .news_banner{
441
-                    width: 630px;
442
-                    height: 413px;
394
+                    width: 430px;
395
+                    height: 213px;
443 396
                     .news_content{
444 397
                         border-radius: 12px;
445 398
                     }
@@ -473,17 +426,225 @@ a{
473 426
         }
474 427
         .news_ul {
475 428
             max-width: 100%;
476
-            // width: calc(100% - 60px);
477
-            width: 100%;
478
-            padding: 0 30px;
429
+            width: calc(100% - 60px);
479 430
             overflow: hidden;
480
-            box-sizing: border-box;
481 431
             .news_list{
482 432
                 width: calc(100% - 60px);
433
+                .news_li{
434
+                    .li_cont{
435
+                        width: 90%;
436
+                    }
437
+                }
483 438
             }
484 439
         }
485 440
         .news_paging{}
486 441
     }
442
+}
443
+@media screen and (min-width: 118px) and (max-width: 1400px) {
444
+    .main{
445
+        .content{
446
+            width: calc(100% - 60px);
447
+            .banner_box{
448
+                display: block;
449
+                margin-bottom: 15vw;
450
+                .news_banner{
451
+                    width: 100%;
452
+                    height: auto;
453
+                    margin-bottom: 8vw;
454
+                   
455
+                    img{
456
+                        width: 100%;
457
+                        height: 62.75vw;
458
+                        border-radius: 1.625vw;
459
+                        object-fit: cover;
460
+                    }
461
+                    
462
+                    .news_content{
463
+                        padding: 3.75vw;
464
+                        display: flex;
465
+                        flex-wrap: wrap;
466
+                        flex-direction: column-reverse;
467
+                        .cont1{
468
+                            font-weight: bold;
469
+                            font-size: 3.75vw;
470
+                            color: #fff;
471
+                            display: -webkit-box;        /* 使用 Flexbox 布局 */
472
+                            -webkit-box-orient: vertical; /* 垂直方向排列 */
473
+                            -webkit-line-clamp: 2;      /* 限制显示的行数,这里是3行 */
474
+                            overflow: hidden;            /* 隐藏超出部分 */
475
+                            text-overflow: ellipsis;     /* 用省略号表示超出部分 */
476
+                        }
477
+                        .cont2{
478
+                            width: 100%;
479
+                            font-size: 3.375vw;
480
+                            color: #fff;
481
+                            margin-bottom: 2.5vw;
482
+                        }
483
+                        .cont3{
484
+                            font-size: 3.25vw;
485
+                            color: #fff;
486
+                        }
487
+                    }
488
+                    
489
+                }
490
+                .news_banner2{
491
+                    width: 100%;
492
+                    display: flex;
493
+                    align-items: center;
494
+                    justify-content: space-between;
495
+                    margin-bottom: 10.75vw;
496
+                    img{
497
+                        width: 45.375vw;
498
+                        height: 34vw;
499
+                        margin-bottom: 0;
500
+                        border-radius: 1.625vw;
501
+                    }
502
+                    .banner2_cont{
503
+                        width: 42.5vw;
504
+                    }
505
+                    .txt1{
506
+                        width: 42.5vw;
507
+                        font-size: 3.75vw;
508
+                        display: -webkit-box;           /* 使用 Flexbox 布局 */
509
+                        -webkit-box-orient: vertical;   /* 垂直方向排列 */
510
+                        -webkit-line-clamp: 2;         /* 限制显示的行数,这里是3行 */
511
+                        overflow: hidden;               /* 隐藏超出部分 */
512
+                        text-overflow: ellipsis; 
513
+                        line-height: 1.5;
514
+                        padding-bottom: 0;
515
+                        margin-bottom: 2.375vw;
516
+                        border: 0;
517
+                    }
518
+                    .txt2{
519
+                        margin-bottom: 5.5vw;
520
+                        font-size: 3.25vw;
521
+                        color: #999999;
522
+                    }
523
+                    .txt3{
524
+                        display: none;
525
+                    }
526
+                    a{
527
+                        font-size: 3.325vw;
528
+                        .icon{
529
+                            font-size: 4.325vw;
530
+                            margin-top: 0;
531
+                        }
532
+                    }
533
+                }
534
+            }
535
+            // .banner_box{
536
+            //     .news_banner{
537
+            //         width: 630px;
538
+            //         height: 413px;
539
+            //         .news_content{
540
+            //             border-radius: 12px;
541
+            //         }
542
+            //     }   
543
+            //     .news_banner2{
544
+            //         width: 300px;
545
+            //         img{
546
+            //             height: 200px;
547
+            //         }
548
+            //         .txt1{
549
+            //             font-size: 16px;
550
+            //         }
551
+            //         .txt2{
552
+            //             font-size: 14px;
553
+            //         }
554
+            //         .txt3{
555
+            //             font-size: 14px;
556
+            //         }
557
+            //         a{
558
+            //             font-size: 14px;
559
+            //             .icon{
560
+            //                 margin-top: -2px;
561
+            //                 font-size: 18px;
562
+            //             }
563
+            //         }
564
+            //     }
565
+            // }
566
+            // .tabs_box{
567
+            //     width: calc(100% - 60px);
568
+            // }
569
+            .tabs_box{
570
+                width: 100%;
571
+                font-size: 3.75vw;
572
+                display: flex;
573
+                align-items: center;
574
+                justify-content: space-between;
575
+                .tabs_li{
576
+                    margin-right: 0;
577
+                    padding-bottom: 5.625vw;
578
+                }
579
+            }
580
+        }
581
+        .news_ul{
582
+            padding: 0 3.75vw;
583
+            box-sizing: border-box;
584
+            .news_list{
585
+                margin-top: 0;
586
+                width: 100%;
587
+                box-sizing: border-box;
588
+                // padding: 0 3.75vw;
589
+                padding: 0;
590
+                .news_li{
591
+                    padding:5.625vw 0;
592
+                    display: flex;
593
+                    align-items: center;
594
+                    justify-content: space-between;
595
+                    .li_left{
596
+                        width: 16.25vw;
597
+                        height: 16.25vw;
598
+                        margin-right: 0;
599
+                        font-size: 3vw;
600
+                        .timerData{
601
+                            font-size: 5.75vw;
602
+                            padding: 2.5vw 0 3vw 0;
603
+                        }
604
+                    }
605
+                    .li_cont{
606
+                        width: 70vw;
607
+                        div:nth-child(1){
608
+                            font-size: 3.75vw;
609
+                            color: #282828;
610
+                            line-height: 7.5vw;
611
+                            display: -webkit-box;        /* 使用 Flexbox 布局 */
612
+                            -webkit-box-orient: vertical; /* 垂直方向排列 */
613
+                            -webkit-line-clamp: 1;      /* 限制显示的行数,这里是3行 */
614
+                            overflow: hidden;     
615
+                            font-weight: bold;
616
+                        }
617
+                        div:nth-child(2){
618
+                            width: auto;
619
+                            height: auto;
620
+                            overflow: unset;
621
+                            line-height: 1.5;
622
+                            font-size: 3.25vw;
623
+                            color: #A7A5A5;
624
+                            padding: 0;
625
+                            display: -webkit-box;        /* 使用 Flexbox 布局 */
626
+                            -webkit-box-orient: vertical; /* 垂直方向排列 */
627
+                            -webkit-line-clamp: 2;      /* 限制显示的行数,这里是3行 */
628
+                            overflow: hidden;     
629
+                        }
630
+                      
631
+                    }
632
+                }
633
+            }
634
+        }
635
+        // .news_ul {
636
+        //     max-width: 100%;
637
+        //     // width: calc(100% - 60px);
638
+        //     width: 100%;
639
+        //     padding: 0 30px;
640
+        //     overflow: hidden;
641
+        //     box-sizing: border-box;
642
+        //     .news_list{
643
+        //         width: calc(100% - 60px);
644
+        //     }
645
+        // }
646
+        .news_paging{}
647
+    }
487 648
     // .main {
488 649
     //     width: 100%;
489 650
     //     padding-top: 14.5vw;
@@ -700,7 +861,7 @@ a{
700 861
     //     }
701 862
     // }
702 863
 }
703
-@media screen and (min-width: 1400px) and (max-width: 1600px) {
864
+@media screen and (min-width: 1400px) and (max-width: 1650px) {
704 865
     .main{
705 866
         .content{
706 867
             width: calc(100% - 60px);
@@ -745,6 +906,7 @@ a{
745 906
             width: 100%;
746 907
             padding: 0 30px;
747 908
             overflow: hidden;
909
+            box-sizing: border-box;
748 910
             .news_list{
749 911
                 width: calc(100% - 60px);
750 912
             }
@@ -859,7 +1021,7 @@ a{
859 1021
                         text-overflow: ellipsis; 
860 1022
                         line-height: 1.5;
861 1023
                         padding-bottom: 0;
862
-                        margin-bottom: 5.375vw;
1024
+                        margin-bottom: 2.375vw;
863 1025
                         border: 0;
864 1026
                     }
865 1027
                     .txt2{
@@ -893,11 +1055,13 @@ a{
893 1055
         }
894 1056
         .news_ul{
895 1057
             width: 100%;
1058
+            padding: 0 3.75vw;
896 1059
             .news_list{
897 1060
                 margin-top: 0;
898 1061
                 width: 100%;
899 1062
                 box-sizing: border-box;
900
-                padding: 0 3.75vw;
1063
+                // padding: 0 3.75vw;
1064
+                padding: 0;
901 1065
                 .news_li{
902 1066
                     padding:5.625vw 0;
903 1067
                     display: flex;
@@ -908,7 +1072,7 @@ a{
908 1072
                         margin-right: 0;
909 1073
                     }
910 1074
                     .li_cont{
911
-                        width: 71.5vw;
1075
+                        width: 70vw;
912 1076
                         div:nth-child(1){
913 1077
                             font-size: 3.75vw;
914 1078
                             color: #282828;

+ 2
- 2
src/pages/partyBuilding/index.less View File

@@ -583,8 +583,8 @@ a{
583 583
                 a{
584 584
                     position: absolute;
585 585
                     bottom:15vw;
586
-                    left: 50%;
587
-                    margin-left: -25%;
586
+                    left: calc(50% - 100px);
587
+                    // margin-left: -25%;
588 588
                 }
589 589
             }
590 590
             .bannerSwiper2{

+ 24
- 0
src/pages/socialResponsibility/index.less View File

@@ -486,6 +486,22 @@ a{
486 486
             width: 100%;
487 487
             .news_list{
488 488
                 width: calc(100% - 60px);
489
+                .news_li{
490
+                    .li_left{
491
+                        width: 12.25vw;
492
+                        height: 12.25vw;
493
+                        font-size: 2.5vw;
494
+                        .timerData{
495
+                            font-size:3.5vw ;
496
+                            padding: 1vw 0 2.8vw 0;
497
+                        }
498
+                        // width: 10vw;
499
+                        // height: 10vw;
500
+                    }
501
+                    .li_cont{
502
+                        width: 83%;
503
+                    }
504
+                }
489 505
             }
490 506
         }
491 507
         .typeCon{
@@ -596,6 +612,14 @@ a{
596 612
                     padding:5.625vw 0;
597 613
                     .li_left{
598 614
                         width: 16.25vw;
615
+                        height: 16.25vw;
616
+                        font-size: 3vw;
617
+                        .timerData{
618
+                            font-size:4.5vw ;
619
+                            padding: 2.6vw 0 2.8vw 0;
620
+                        }
621
+                        // width: 10vw;
622
+                        // height: 10vw;
599 623
                     }
600 624
                     .li_cont{
601 625
                         width: 71.5vw;

Loading…
Cancel
Save