Jelajahi Sumber

完成首页和频道页面

完成首页和频道页面
dangyunlong 1 Minggu lalu
induk
melakukan
9728c853c8

+ 8 - 0
.nuxt/components.d.ts

@@ -7,11 +7,13 @@ interface _GlobalComponents {
     'DetailHotNews': typeof import("../components/detail/HotNews.vue")['default']
     'DetailHotNews2': typeof import("../components/detail/HotNews2.vue")['default']
     'HomeAdvertising': typeof import("../components/home/Advertising.vue")['default']
+    'HomeAdvertisingClass': typeof import("../components/home/AdvertisingClass.vue")['default']
     'HomeBigSwiper': typeof import("../components/home/BigSwiper.vue")['default']
     'HomeBigTitleList': typeof import("../components/home/BigTitle_List.vue")['default']
     'HomePageMessage': typeof import("../components/home/PageMessage.vue")['default']
     'HomePagination': typeof import("../components/home/Pagination.vue")['default']
     'HomeSecondaryHeading': typeof import("../components/home/SecondaryHeading.vue")['default']
+    'HomeSmallSwiper1': typeof import("../components/home/SmallSwiper1.vue")['default']
     'HomeTopTen': typeof import("../components/home/TopTen.vue")['default']
     'HomeFoot': typeof import("../components/home/foot.vue")['default']
     'HomeFoot1': typeof import("../components/home/foot1.vue")['default']
@@ -47,11 +49,13 @@ interface _GlobalComponents {
     'LazyDetailHotNews': typeof import("../components/detail/HotNews.vue")['default']
     'LazyDetailHotNews2': typeof import("../components/detail/HotNews2.vue")['default']
     'LazyHomeAdvertising': typeof import("../components/home/Advertising.vue")['default']
+    'LazyHomeAdvertisingClass': typeof import("../components/home/AdvertisingClass.vue")['default']
     'LazyHomeBigSwiper': typeof import("../components/home/BigSwiper.vue")['default']
     'LazyHomeBigTitleList': typeof import("../components/home/BigTitle_List.vue")['default']
     'LazyHomePageMessage': typeof import("../components/home/PageMessage.vue")['default']
     'LazyHomePagination': typeof import("../components/home/Pagination.vue")['default']
     'LazyHomeSecondaryHeading': typeof import("../components/home/SecondaryHeading.vue")['default']
+    'LazyHomeSmallSwiper1': typeof import("../components/home/SmallSwiper1.vue")['default']
     'LazyHomeTopTen': typeof import("../components/home/TopTen.vue")['default']
     'LazyHomeFoot': typeof import("../components/home/foot.vue")['default']
     'LazyHomeFoot1': typeof import("../components/home/foot1.vue")['default']
@@ -93,11 +97,13 @@ export const AdvertisingOrderList: typeof import("../components/advertising/Orde
 export const DetailHotNews: typeof import("../components/detail/HotNews.vue")['default']
 export const DetailHotNews2: typeof import("../components/detail/HotNews2.vue")['default']
 export const HomeAdvertising: typeof import("../components/home/Advertising.vue")['default']
+export const HomeAdvertisingClass: typeof import("../components/home/AdvertisingClass.vue")['default']
 export const HomeBigSwiper: typeof import("../components/home/BigSwiper.vue")['default']
 export const HomeBigTitleList: typeof import("../components/home/BigTitle_List.vue")['default']
 export const HomePageMessage: typeof import("../components/home/PageMessage.vue")['default']
 export const HomePagination: typeof import("../components/home/Pagination.vue")['default']
 export const HomeSecondaryHeading: typeof import("../components/home/SecondaryHeading.vue")['default']
+export const HomeSmallSwiper1: typeof import("../components/home/SmallSwiper1.vue")['default']
 export const HomeTopTen: typeof import("../components/home/TopTen.vue")['default']
 export const HomeFoot: typeof import("../components/home/foot.vue")['default']
 export const HomeFoot1: typeof import("../components/home/foot1.vue")['default']
@@ -133,11 +139,13 @@ export const LazyAdvertisingOrderList: typeof import("../components/advertising/
 export const LazyDetailHotNews: typeof import("../components/detail/HotNews.vue")['default']
 export const LazyDetailHotNews2: typeof import("../components/detail/HotNews2.vue")['default']
 export const LazyHomeAdvertising: typeof import("../components/home/Advertising.vue")['default']
+export const LazyHomeAdvertisingClass: typeof import("../components/home/AdvertisingClass.vue")['default']
 export const LazyHomeBigSwiper: typeof import("../components/home/BigSwiper.vue")['default']
 export const LazyHomeBigTitleList: typeof import("../components/home/BigTitle_List.vue")['default']
 export const LazyHomePageMessage: typeof import("../components/home/PageMessage.vue")['default']
 export const LazyHomePagination: typeof import("../components/home/Pagination.vue")['default']
 export const LazyHomeSecondaryHeading: typeof import("../components/home/SecondaryHeading.vue")['default']
+export const LazyHomeSmallSwiper1: typeof import("../components/home/SmallSwiper1.vue")['default']
 export const LazyHomeTopTen: typeof import("../components/home/TopTen.vue")['default']
 export const LazyHomeFoot: typeof import("../components/home/foot.vue")['default']
 export const LazyHomeFoot1: typeof import("../components/home/foot1.vue")['default']

+ 1 - 1
.nuxt/manifest/latest.json

@@ -1 +1 @@
-{"id":"dev","timestamp":1744271431845}
+{"id":"dev","timestamp":1744340779477}

+ 1 - 1
.nuxt/manifest/meta/dev.json

@@ -1 +1 @@
-{"id":"dev","timestamp":1744271431845,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
+{"id":"dev","timestamp":1744340779477,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

+ 3 - 3
.nuxt/nitro.json

@@ -1,5 +1,5 @@
 {
-  "date": "2025-04-10T07:50:33.655Z",
+  "date": "2025-04-11T03:06:22.159Z",
   "preset": "nitro-dev",
   "framework": {
     "name": "nuxt",
@@ -9,9 +9,9 @@
     "nitro": "2.10.4"
   },
   "dev": {
-    "pid": 9364,
+    "pid": 15864,
     "workerAddress": {
-      "socketPath": "\\\\.\\pipe\\nitro\\worker-9364-2.sock"
+      "socketPath": "\\\\.\\pipe\\nitro\\worker-15864-1.sock"
     }
   }
 }

+ 1 - 1
.nuxt/nuxt.d.ts

@@ -1,6 +1,6 @@
 // Generated by nuxi
-/// <reference types="@nuxt/telemetry" />
 /// <reference types="@nuxt/devtools" />
+/// <reference types="@nuxt/telemetry" />
 /// <reference path="types/builder-env.d.ts" />
 /// <reference types="nuxt" />
 /// <reference path="types/app-defaults.d.ts" />

+ 463 - 1376
assets/css/class.less

@@ -1,1448 +1,535 @@
-a {
-    color: #333333;
+.clearfix {
+    overflow: hidden;
 }
 
-//农民工part1
-.farmingPartOne {
-    width: 100%;
-    height: 600px;
-
-    .inner {
-        height: 600px;
-
-        .innerLeft {
-            height: 600px;
-
-            .leftTop {
-                margin-top: 20px;
-                height: 320px;
-
-                .leftTopPhoto {
-                    width: 387px;
-                    height: 320px;
-                    position: relative;
-
-                    img {
-                        width: 387px;
-                        height: 320px;
-                    }
-
-                    span {
-                        display: inline-block;
-                        width: 387px;
-                        height: 50px;
-                        background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
-                        color: #FFFFFF;
-                        position: absolute;
-                        bottom: 0;
-                        left: 0;
-                        font-family: Source Han Sans, Source Han Sans;
-                        font-weight: 500;
-                        font-size: 20px;
-                        line-height: 23px;
-                        padding-top: 11px;
-                        padding-left: 13px;
-                        box-sizing: border-box;
-                        white-space: nowrap;
-                        /* 禁止换行 */
-                        overflow: hidden;
-                        /* 隐藏超出部分 */
-                        text-overflow: ellipsis;
-                        /* 超出部分显示省略号 */
-                    }
-                }
-
-                >ul.left {
-                    margin-left: 25px;
-                    width: 362px;
-                    height: 320px;
-                    margin-top: 5px;
-
-                    >li {
-                        em {
-                            display: inline-block;
-                            width: 8px;
-                            height: 8px;
-                            border-radius: 8px;
-                            background-color: #d9d9d9;
-                            margin-right: 8px;
-                            vertical-align: middle;
-                        }
-
-                        width: 362px;
-                        height: 22px;
-                        font-family: PingFang SC,
-                        PingFang SC;
-                        font-weight: 500;
-                        font-size: 18px;
-                        color: #333333;
-                        line-height: 22px;
-                        text-align: left;
-                        font-style: normal;
-                        text-transform: none;
-                        margin-bottom: 19px;
-                        white-space: nowrap;
-                        /* 禁止换行 */
-                        overflow: hidden;
-                        /* 隐藏超出部分 */
-                        text-overflow: ellipsis;
-                        /* 超出部分显示省略号 */
-                    }
-
-                    >li:hover {
-                        a {
-                            color: #088f04;
-                        }
-
-                        color: #088f04;
-                    }
-
-                    >li:hover>em {
-                        background-color: #088f04;
-                    }
-                }
-            }
-
-            .leftBottom {
-                height: 202px;
-                margin-top: 21px;
-
-                >li {
-                    float: left;
-                    width: 185px;
-                    height: 202px;
-                    margin-right: 10px;
-
-                    >a {
-                        >img {
-                            width: 185px;
-                            height: 139px;
-                        }
-                    }
-
-
-
-                    >p {
-                        width: 185px;
-                        height: 58px;
-                        padding: 8px 5px 12px;
-                        box-sizing: border-box;
-                        background-color: #f5f5f5;
-                        font-family: PingFang SC, PingFang SC;
-                        font-weight: 500;
-                        font-size: 18px;
-                        color: #333333;
-                        line-height: 24px;
-                        text-align: left;
-                        font-style: normal;
-                        text-transform: none;
-                        display: -webkit-box;
-                        -webkit-box-orient: vertical;
-                        -webkit-line-clamp: 2;
-                        /* 限制显示的行数 */
-                        overflow: hidden;
-                        text-overflow: ellipsis;
-                    }
-
-                }
-
-                >li:hover {
-                    a {
-                        color: #088f04;
-                    }
-                }
-
-                >li:last-child {
-                    margin: 0;
-                }
-            }
-        }
-
-        .innerRight {
-            .rightList {
-                height: 540px;
-                margin-top: 20px;
-
-                >li {
-                    height: 100px;
-                    margin-bottom: 10px;
-
-                    img {
-                        width: 150px;
-                        height: 100px;
-                    }
-
-                    >p {
-                        width: 219px;
-                        height: 100px;
-                        display: -webkit-box;
-                        -webkit-box-orient: vertical;
-                        -webkit-line-clamp: 4;
-                        overflow: hidden;
-                        text-overflow: ellipsis;
-                        word-break: break-all;
-                        padding-left: 12px;
-                        font-family: PingFang SC, PingFang SC;
-                        font-weight: 400;
-                        font-size: 16px;
-                        color: #333333;
-                        line-height: 24px;
-                        text-align: left;
-                        font-style: normal;
-                        text-transform: none;
-
-                    }
-
-                    >p:hover {
-                        box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
-
-                        a {
-                            color: #088f04;
-                        }
-                    }
-                }
-            }
-
-        }
-    }
+.clearfix_2::after {
+    content: '';
+    display: block;
+    height: 0;
+    visibility: hidden;
+    clear: both;
+}
+
+.hiddenColor {
+    visibility: hidden;
+}
+
+.hand {
+    cursor: pointer;
+}
+
+.dot1 {
+    display: block;
+    word-break: keep-all;
+    white-space: nowrap;
+    overflow: hidden;
+    text-overflow: ellipsis;
 }
 
-//农民工part2
-.farmingPartTwo {
+.dot2 {
+    overflow: hidden;
+    display: -webkit-box !important;
+    -webkit-box-orient: vertical;
+    -webkit-line-clamp: 2;
+}
+
+.dot3 {
+    overflow: hidden;
+    display: -webkit-box !important;
+    -webkit-box-orient: vertical;
+    -webkit-line-clamp: 3;
+}
+
+/*input,img{border:none;width:100%;height:100%;}*/
+
+.cover100 img {
+    display: block;
     width: 100%;
-    height: 600px;
-
-    .inner {
-        width: 1200px;
-        height: 600px;
-
-        >.farmer {
-            float: left;
-            width: 380px;
-            height: 600px;
-            margin-right: 29px;
-
-            // 农民工part2标题
-            >.title {
-                width: 380px;
-            }
-
-            >.title>h3 {
-                height: 36px;
-                font-family: Source Han Sans, Source Han Sans;
-                font-weight: bold;
-                font-size: 24px;
-                color: #000000;
-                line-height: 28px;
-                text-align: left;
-                font-style: normal;
-                text-transform: none;
-                border-bottom: 1px solid #139602;
-
-            }
-
-            >.title>h3>span>a {
-                float: right;
-                width: 56px;
-                height: 20px;
-                line-height: 24px;
-                font-weight: 400;
-                font-size: 14px;
-                color: #999999;
-                font-style: normal;
-                text-transform: none;
-
-            }
-
-            // 农民工part2图片
-            .PartTwoPhoto {
-                width: 380px;
-                height: 280px;
-                margin-top: 20px;
-                position: relative;
-
-                img {
-                    width: 380px;
-                    height: 280px;
-                }
-
-                span {
-                    display: inline-block;
-                    width: 380px;
-                    height: 50px;
-                    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
-                    color: #FFFFFF;
-                    position: absolute;
-                    bottom: 0;
-                    left: 0;
-                    font-family: Source Han Sans, Source Han Sans;
-                    font-weight: 500;
-                    font-size: 20px;
-                    line-height: 23px;
-                    padding-top: 11px;
-                    padding-left: 13px;
-                    box-sizing: border-box;
-                    white-space: nowrap;
-                    /* 禁止换行 */
-                    overflow: hidden;
-                    /* 隐藏超出部分 */
-                    text-overflow: ellipsis;
-                    /* 超出部分显示省略号 */
-                }
-            }
-
-            //农民工part2文字列表
-            .PartTwoList {
-                width: 380px;
-                height: 263px;
-                background-color: #fff;
-                box-shadow: 0px 4px 30px 1px rgba(174, 174, 174, 0.25);
-                padding-top: 20px;
-                box-sizing: border-box;
-
-                >li {
-                    width: 370px;
-                    height: 25px;
-                    line-height: 25px;
-                    font-family: PingFang SC, PingFang SC;
-                    font-weight: 500;
-                    font-size: 18px;
-                    color: #333333;
-                    margin-bottom: 16px;
-                    white-space: nowrap;
-                    /* 禁止换行 */
-                    overflow: hidden;
-                    /* 隐藏超出部分 */
-                    text-overflow: ellipsis;
-                    /* 超出部分显示省略号 */
-
-                    >em {
-                        display: inline-block;
-                        width: 8px;
-                        height: 8px;
-                        background-color: #d9d9d9;
-                        border-radius: 8px;
-                        margin-left: 19px;
-                        margin-right: 10px;
-                    }
-                }
-
-                >li:hover {
-                    color: #139602;
-
-                    a {
-                        color: #088f04;
-                    }
-                }
-
-                >li:hover>em {
-                    background-color: #139602;
-                }
-            }
-        }
-
-        >.farmer:last-child {
-            margin-right: 0;
-        }
-    }
+    height: 100%;
+}
+
+.back100 {
+    background-size: 100% 100%;
+    background-repeat: no-repeat;
+}
+
+article,
+aside,
+footer,
+header,
+time,
+video,
+top,
+main,
+nav,
+h4,
+h3,
+section {
+    display: block;
 }
 
-//资讯推荐
-.zixuntuijian {
+.index_2_left :deep(.el-tabs__header) {
+    height: 45px;
+    display: block;
     width: 100%;
-    height: 600px;
-
-
-    .innerLeft {
-
-        // 左侧的上半部分
-        .zixunTop {
-            height: 286px;
-
-            .zixunLeft,
-            .zixunRight {
-                float: left;
-                width: 380px;
-                height: 286px;
-
-                .towPic {
-                    display: flex;
-                    width: 380px;
-                    height: 116px;
-                    margin-top: 20px;
-
-                    .picBox {
-                        width: 50%;
-                        text-align: center;
-                    }
-
-                    .picBox:nth-child(3),
-                    .picBox:nth-child(4),
-                    .picBox:nth-child(5) {
-                        display: none;
-                    }
-
-                    img {
-                        width: 190px;
-                        height: 120px;
-                    }
-
-                    .picBox:first-child {
-                        margin-right: 5px;
-                    }
-                }
-
-                // 标题部分
-                >.title {
-                    width: 380px;
-                }
-
-                >.title>h3 {
-                    height: 36px;
-                    font-family: Source Han Sans, Source Han Sans;
-                    font-weight: bold;
-                    font-size: 24px;
-                    color: #000000;
-                    line-height: 28px;
-                    text-align: left;
-                    font-style: normal;
-                    text-transform: none;
-                    border-bottom: 1px solid #139602;
-
-                }
-
-                >.title>h3>span {
-                    float: right;
-                    width: 56px;
-                    height: 20px;
-                    line-height: 24px;
-                    font-weight: 400;
-                    font-size: 14px;
-                    color: #999999;
-                    font-style: normal;
-                    text-transform: none;
-                }
-
-                .photo_text {
-                    article {
-                        white-space: nowrap;
-                        /* 禁止换行 */
-                        overflow: hidden;
-                        /* 隐藏超出部分 */
-                        text-overflow: ellipsis;
-
-                        /* 超出部分显示省略号 */
-                        li {
-                            white-space: nowrap;
-                            /* 禁止换行 */
-                            overflow: hidden;
-                            /* 隐藏超出部分 */
-                            text-overflow: ellipsis;
-
-                            /* 超出部分显示省略号 */
-                            a:hover {
-                                color: #088f04;
-                            }
-
-                        }
-
-                        li:hover {
-                            color: #088f04;
-
-                            a {
-                                color: #088f04;
-                            }
-                        }
-
-                        img {
-                            width: 100px;
-                        }
-                    }
-
-                    li {
-                        width: 380px;
-                        height: 25px;
-                        font-family: PingFang SC, PingFang SC;
-                        font-weight: 500;
-                        font-size: 18px;
-                        color: #333333;
-                        line-height: 21px;
-                        text-align: left;
-                        font-style: normal;
-                        text-transform: none;
-                        margin-bottom: 9px;
-
-
-                        em {
-                            display: inline-block;
-                            width: 8px;
-                            height: 8px;
-                            border-radius: 8px;
-                            margin-right: 10px;
-                            background-color: #d9d9d9;
-                        }
-                    }
-                }
-            }
-
-            // 左侧的资讯推荐的左半部分
-            .zixunLeft {
-                margin-right: 30px;
-
-                .photo_text {
-                    li:first-child {
-                        width: 380px;
-                        height: 120px;
-                        margin-top: 20px;
-                        margin-bottom: 16px;
-                        position: relative;
-                        overflow: hidden;
-
-                        img {
-                            float: left;
-                            width: 160px;
-                            height: 120px;
-                        }
-
-                        div {
-                            float: left;
-                            width: 220px;
-                            height: 120px;
-                            padding-left: 15px;
-                            padding-top: 6px;
-                            box-sizing: border-box;
-                            background-color: #f6f6f6;
-
-
-                            h5 {
-                                width: 200px;
-                                height: 54px;
-                                white-space: nowrap;
-                                overflow: hidden;
-                                text-overflow: ellipsis;
-                                font-family: Source Han Sans, Source Han Sans;
-                                font-weight: 500;
-                                font-size: 18px;
-                                color: #333333;
-                                line-height: 26px;
-                                text-align: left;
-                                font-style: normal;
-                                text-transform: none;
-                            }
-
-                            p {
-                                width: 200px;
-                                height: 22px;
-                                line-height: 20px;
-                                position: absolute;
-                                bottom: 5px;
-                                right: 0;
-
-                                span {
-                                    display: inline-block;
-                                    width: 75px;
-                                    height: 18px;
-                                    font-family: Source Han Sans, Source Han Sans;
-                                    font-weight: 400;
-                                    font-size: 12px;
-                                    color: #999999;
-                                    text-align: left;
-                                    line-height: 14px;
-                                    font-style: normal;
-                                    text-transform: none;
-                                }
-
-                                span:last-child {
-                                    width: 90px;
-                                    text-align: right;
-                                }
-
-                            }
-                        }
-                    }
-
-                    >li {
-                        width: 380px;
-                        height: 25px;
-                        font-family: PingFang SC, PingFang SC;
-                        font-weight: 500;
-                        font-size: 18px;
-                        color: #333333;
-                        line-height: 21px;
-                        text-align: left;
-                        font-style: normal;
-                        text-transform: none;
-                        margin-bottom: 9px;
-
-                        em {
-                            display: inline-block;
-                            width: 8px;
-                            height: 8px;
-                            border-radius: 8px;
-                            margin-right: 10px;
-                            background-color: #d9d9d9;
-                        }
-                    }
-                }
-            }
-
-            // 左侧的资讯推荐的右半部分
-            .zixunRight {
-                width: 380px;
-                height: 229px;
-
-                .photo_text {
-                    margin-top: 20px;
-
-                   
-                }
-
-            }
-        }
-
-        //左侧的下半部分
-        .zixunBottom {
-            width: 790px;
-            height: 280px;
-            margin-top: 40px;
-
-            img {
-                width: 498px;
-                height: 280px;
-            }
-
-            >.leftList {
-                width: 290px;
-                height: 280px;
-                background-color: #f6f6f6;
-                padding: 11px 26px 6px 20px;
-                box-sizing: border-box;
-
-                >li {
-                    width: 296px;
-                    height: 35px;
-                    line-height: 35px;
-                    color: #666666;
-                    font-size: 14px;
-                    margin-bottom: 18px;
-
-                    h4 {
-                        font-family: Source Han Sans, Source Han Sans;
-                        height: 35px;
-                        line-height: 35px;
-                        font-size: 18px;
-                        font-weight: 400;
-                        white-space: nowrap;
-                        /* 禁止换行 */
-                        overflow: hidden;
-                        /* 隐藏超出部分 */
-                        text-overflow: ellipsis;
-                        /* 超出部分显示省略号 */
-                        color: #333333;
-                        width: 260px;
-
-                        em {
-                            display: inline-block;
-                            width: 8px;
-                            height: 8px;
-                            background-color: #333333;
-                            border-radius: 8px;
-                            margin-right: 5px;
-                        }
-                    }
-
-                    p {
-                        width: 249px;
-                        height: 48px;
-                        line-height: 24px;
-                        padding-left: 14px;
-                        display: -webkit-box;
-                        -webkit-box-orient: vertical;
-                        -webkit-line-clamp: 2;
-                        /* 限制显示的行数 */
-                        overflow: hidden;
-                        text-overflow: ellipsis;
-                    }
-                }
-
-                >li:hover,
-                >li:hover>h4>a,
-                >li:hover>p>a {
-                    color: #088f04;
-                }
-
-                >li:hover>h4>em {
-                    background-color: #088f04;
-                }
-            }
-        }
-    }
+    margin-bottom: 40px;
+    background: url(@/public/img/2.png) left center;
+    background-repeat: repeat-x;
+    background-size: auto 10px;
+}
 
-    .innerRight {
-        .information {
-            width: 380px;
-            margin-top: 20px;
-
-            >li {
-                width: 380px;
-                height: 120px;
-                margin-bottom: 21px;
-
-                img {
-                    float: left;
-                    width: 160px;
-                    height: 120px;
-                }
-
-                .text {
-                    float: left;
-                    width: 220px;
-                    height: 120px;
-                    padding-left: 15px;
-                    box-sizing: border-box;
-
-                    >h5 {
-                        width: 199px;
-                        height: 49px;
-                        display: -webkit-box;
-                        -webkit-box-orient: vertical;
-                        -webkit-line-clamp: 2;
-                        overflow: hidden;
-                        padding-top: 6px;
-                        font-family: PingFang SC, PingFang SC;
-                        font-weight: 600;
-                        font-size: 18px;
-                        color: #333333;
-                        line-height: 26px;
-                        text-align: left;
-                        font-style: normal;
-                        text-transform: none;
-                    }
-
-                    >p {
-                        width: 198px;
-                        height: 20px;
-                        display: -webkit-box;
-                        -webkit-box-orient: vertical;
-                        -webkit-line-clamp: 2;
-                        overflow: hidden;
-                        text-overflow: ellipsis;
-                        word-break: break-all;
-                        margin-top: 16px;
-                        font-family: PingFang SC, PingFang SC;
-                        font-weight: 400;
-                        font-size: 14px;
-                        color: #666666;
-                        line-height: 24px;
-                        text-align: left;
-                        font-style: normal;
-                        text-transform: none;
-                        margin-top: 40px;
-                    }
-                }
-
-                .text:hover {
-                    box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
-                    background-color: #fff;
-
-                    h5 {
-                        a {
-                            color: #088f04;
-                        }
-                    }
-
-                    p {
-                        color: #088f04;
-                    }
-                }
-            }
-        }
-    }
+
+.index_2_left :deep(.el-tabs__item) {
+    float: left;
+    height: 45px;
+    line-height: 45px;
+    color: #999;
+    font-size: 34px;
+    font-weight: bold;
+    background: #fff;
+    padding: 0px 28px 0px 0px !important;
+}
+
+.index_2_left :deep(.is-active) {
+    color: #333;
+    padding-right: 28px;
+}
+
+.index_2_left :deep(.el-tabs__active-bar) {
+    display: none;
+}
+
+.index_2_left :deep(.el-tabs__nav-wrap)::after {
+    display: none;
+}
+
+.index_2_left_h3_a {
+    float: left;
+    height: 45px;
+    line-height: 45px;
+    color: #999;
+    font-size: 34px;
+    font-weight: bold;
+    padding-right: 28px;
+    background: #fff;
+}
+
+.index_2_left_h3_a_only {
+    color: #333;
 }
 
-// 农民工
-.farming {
+.index_2_left_h3 {
+    height: 45px;
+    display: block;
     width: 100%;
-    height: 605px;
-
-    // 左侧
-    .innerLeft {
-        width: 790px;
-        height: 605px;
-        margin-right: 21px;
-        // background-color: #ccc;
-
-        .farmer {
-            width: 790px;
-            height: 312px;
-
-            >h3 {
-                height: 36px;
-                font-family: Source Han Sans, Source Han Sans;
-                font-weight: bold;
-                font-size: 24px;
-                color: #000000;
-                line-height: 28px;
-                text-align: left;
-                font-style: normal;
-                text-transform: none;
-                border-bottom: 1px solid #139602;
-
-                >span {
-                    float: right;
-                    width: 56px;
-                    height: 20px;
-                    line-height: 24px;
-                    font-weight: 400;
-                    font-size: 14px;
-                    color: #999999;
-                    font-style: normal;
-                    text-transform: none;
-                }
-            }
-
-            >ul {
-                margin-top: 20px;
-
-                >li {
-                    float: left;
-                    width: 362px;
-                    height: 22px;
-                    font-weight: 500;
-                    font-size: 18px;
-                    color: #333333;
-                    line-height: 21px;
-                    text-align: left;
-                    margin-bottom: 29px;
-                    margin-right: 27px;
-                    white-space: nowrap;
-                    /* 禁止换行 */
-                    overflow: hidden;
-                    /* 隐藏超出部分 */
-                    text-overflow: ellipsis;
-                    /* 超出部分显示省略号 */
-
-                    >em {
-                        display: inline-block;
-                        width: 8px;
-                        height: 8px;
-                        background-color: #d9d9d9;
-                        border-radius: 4px;
-                        margin: 5px 8px 6px;
-                        vertical-align: middle;
-                    }
-                }
-
-                >li:hover {
-                    color: #139602;
-
-                    a {
-                        color: #139602;
-                    }
-                }
-
-            }
-        }
-
-        .farmerbottom {
-            width: 790px;
-            height: 280px;
-
-            img {
-                width: 498px;
-                height: 280px;
-            }
-
-            >.leftList {
-                width: 290px;
-                height: 280px;
-                background-color: #f6f6f6;
-                padding: 11px 26px 6px 20px;
-                box-sizing: border-box;
-
-                >li {
-                    width: 296px;
-                    height: 75px;
-                    color: #666666;
-                    font-size: 14px;
-                    margin-bottom: 18px;
-
-                    h4 {
-                        font-family: Source Han Sans, Source Han Sans;
-                        height: 27px;
-                        line-height: 21px;
-                        font-size: 18px;
-                        color: #333333;
-
-                        em {
-                            display: inline-block;
-                            width: 8px;
-                            height: 8px;
-                            background-color: #333333;
-                            border-radius: 8px;
-                        }
-                    }
-
-                    p {
-                        width: 249px;
-                        height: 48px;
-                        line-height: 24px;
-                        padding-left: 14px;
-                    }
-                }
-
-                >li:hover,
-                >li:hover>h4 {
-                    color: #088f04;
-                }
-
-                >li:hover>h4>em {
-                    background-color: #088f04;
-                }
-            }
-        }
+    margin-bottom: 40px;
+    background: url(@/public/img/2.png) left center;
+    background-repeat: repeat-x;
+    background-size: auto 10px;
+}
+
+.slow_6 {
+    -webkit-transition: all .6s;
+    -moz-transition: all .6s;
+    -ms-transition: all .6s;
+    -o-transition: all .6s;
+    transition: all .6s;
+}
+
+.index_main {
+    margin: 0 auto;
+    width: 1200px;
+}
+
+.index_nav {
+    margin-top: 20px;
+    border-bottom: solid 1px #D9D9D9;
+
+    .index_nav_a {
+        float: left;
+        color: #333;
+        font-size: 16px;
+        margin: 0px 36px;
+        height: 88px;
+        line-height: 88px;
+        font-weight: bold;
+        border-bottom: solid 3px #fff;
+        box-sizing: border-box;
+        position: relative;
     }
 
+    .index_nav_a:hover {
+        color: #D2600F;
+        // border-bottom: solid 3px #D2600F;
+    }
 
-    // 右侧
-    .innerRight {
-        width: 380px;
-        height: 605px;
-
-        // 标题部分
-        >h3 {
-            height: 36px;
-            font-family: Source Han Sans, Source Han Sans;
-            font-weight: bold;
-            font-size: 24px;
-            color: #000000;
-            line-height: 28px;
-            text-align: left;
-            font-style: normal;
-            text-transform: none;
-            border-bottom: 1px solid #139602;
-
-            >span {
-                float: right;
-                width: 56px;
-                height: 20px;
-                line-height: 24px;
-                font-weight: 400;
-                font-size: 14px;
-                color: #999999;
-                font-style: normal;
-                text-transform: none;
-            }
-        }
-
-        // 轮播图
-        .banner {
-            width: 380px;
-            height: 214px;
-            margin-top: 20px;
-        }
-
-        .banner_b_img {
-
-            // 图片部分
-            .photo {
-                height: 104px;
-                margin-top: 10px;
-                display: flex;
-            }
-
-            .photoL,
-            .photoR {
-                float: left;
-                width: 185px;
-                height: 104px;
-                position: relative;
-
-                img {
-                    width: 185px;
-                    height: 104px;
-                }
-
-                span {
-                    position: absolute;
-                    top: 0;
-                    left: 0;
-                    display: inline-block;
-                    padding-left: 7px;
-                    box-sizing: border-box;
-                    width: 185px;
-                    height: 22px;
-                    background-color: rgba(0, 0, 0, 0.5);
-                    font-weight: 500px;
-                    font-size: 14px;
-                    color: #FFFFFF;
-                    line-height: 22px;
-
-                    white-space: nowrap;
-                    /* 禁止换行 */
-                    overflow: hidden;
-                    /* 隐藏超出部分 */
-                    text-overflow: ellipsis;
-                    /* 超出部分显示省略号 */
-
-                }
-            }
-
-            .photoL {
-                margin-right: 10px;
-            }
-
-        }
-
-        .banner_text_list {
-            ul {
-                width: 380px;
-                height: 186px;
-                margin-top: 30px;
-
-                >li {
-
-                    a {
-                        height: 22px;
-                        font-size: 16px;
-
-                        &:hover {
-                            color: #139609;
-                        }
-                    }
-
-                    height: 22px;
-                    padding-bottom: 16px;
-                    white-space: nowrap;
-                    /* 禁止换行 */
-                    overflow: hidden;
-                    /* 隐藏超出部分 */
-                    text-overflow: ellipsis;
-                    /* 超出部分显示省略号 */
-
-                    >strong {
-                        display: inline-block;
-                        width: 24px;
-                        height: 24px;
-                        line-height: 24px;
-                        background-color: #cecece;
-                        padding-left: 6px;
-                        box-sizing: border-box;
-                        font-family: Source Han Sans, Source Han Sans;
-                        font-weight: 500;
-                        font-size: 18px;
-                        color: #FFFFFF;
-                        font-style: normal;
-                        text-transform: none;
-
-                    }
-
-                    >em {
-                        display: inline-block;
-                        width: 6px;
-                        height: 6px;
-                        border-radius: 10px;
-                        border: 2px solid #8CBA86;
-                        margin-right: 10px;
-                    }
-
-                    >span {
-                        width: 380px;
-                        height: 22px;
-                        font-family: PingFang SC, PingFang SC;
-                        font-weight: 500;
-                        font-size: 18px;
-                        color: #333333;
-                        line-height: 21px;
-                        text-align: left;
-                        font-style: normal;
-                        text-transform: none;
-
-
-                    }
-
-                    >span:hover {
-                        color: #139609;
-                    }
-
-                }
-            }
-        }
+    .index_nav_a_only {
+        border-bottom: solid 3px #D2600F;
+    }
 
+    .index_nav_a::after {
+        content: '';
+        display: block;
+        position: absolute;
+        width: 2px;
+        height: 12px;
+        background: #DBDBDB;
+        right: -38px;
+        top: 39px;
+    }
+
+    .index_nav_a:nth-last-of-type(1) {
+        overflow: hidden;
+    }
 
+    .index_nav_a:nth-of-type(1) {
+        overflow: hidden;
+        height: 56px;
+        line-height: 56px;
+        color: #fff;
+        font-size: 18px;
+        font-weight: bold;
+        width: 153px;
+        margin: 14px 30px 0px 0px;
+        text-indent: 46px;
+        background: url(../public/img/3.png) no-repeat left top;
+        background-size: 100% 100%;
     }
+
 }
 
-//三农科教
-.scienceEducation {
-    height: 600px;
-    margin-bottom: 76px;
+.index_1 {
+    margin-top: 40px;
+    height: 410px;
+}
 
-    .innerLeft,
-    .innerRight {
+.index_1_left {
+    float: left;
+    width: 720px;
+}
+
+.index_1_right {
+    float: right;
+    width: 450px;
+}
+
+.roll_1_box {
+    width: 100%;
+    height: 405px;
+}
+
+.index_1_color_box {
+    background: #FAFAFA;
+    width: 100%;
+    box-sizing: border-box;
+    border: solid 1px #FAFAFA;
+    border-left: solid 15px #FAFAFA;
+    border-right: solid 15px #FAFAFA;
+    padding: 0px 15px 20px;
+}
+
+.index_1_head_h3 {
+    margin-top: 20px;
+    display: block;
+    height: 30px;
+    margin-bottom: 10px;
+    .index_1_head_a {
         float: left;
+        color: #333;
+        font-size: 20px;
+        font-weight: bold;
     }
+}
+
+.index_1_ul_2 {
+    margin: -8px 0px 8px 0px;
+}
+
+.index_1_ul_a {
+    width: 100%;
+    position: relative;
+    height: 48px;
+    line-height: 48px;
+    color: #333;
+    font-size: 18px;
+    text-indent: 18px;
+}
+
+.index_1_ul_a:hover {
+    color: #D2600F;
+}
 
-    // 左侧
-    .innerLeft {
-        width: 790px;
-        height: 616px;
-        margin-right: 21px;
+.index_1_ul_a::after {
+    content: '';
+    display: block;
+    width: 8px;
+    height: 8px;
+    background: #D9D9D9;
+    position: absolute;
+    border-radius: 50%;
+    left: 0px;
+    top: 20px;
+}
+
+
+
+.index_2 {
+    margin-top: 40px;
+}
 
+.index_2_left {
+    float: left;
+    width: 900px;
+}
+
+.index_2_right {
+    float: right;
+    width: 270px;
+}
 
+.index_2_left_img_out {
+    width: 410px;
+    float: left;
+}
+
+.index_2_big_img_li {
+    margin-bottom: 30px;
+    .index_2_big_img_li_a img {
+        display: block;
+        width: 100%;
+        height: 260px;
     }
+}
+
+.index_2_img_li {
+    width: 195px;
+    .index_2_img_li_a img {
+        display: block;
+        height: 117px;
+        width: 100%;
+    }
+}
+
+.index_2_img_li:nth-of-type(odd) {
+    float: left;
+}
+
+.index_2_img_li:nth-of-type(even) {
+    float: right;
+}
+
+.index_2_img_li_dot1 {
+    height: 24px;
+    line-height: 24px;
+    color: #000;
+    font-size: 18px;
+    margin-top: 17px;
+}
 
+.index_2_img_li_dot1:hover {
+    color: #D2600F;
+}
 
-    // 右侧
-    .innerRight {
-        width: 380px;
-        height: 600px;
-
-        // 标题部分
-        >h3 {
-            height: 36px;
-            font-family: Source Han Sans, Source Han Sans;
-            font-weight: bold;
-            font-size: 24px;
-            color: #000000;
-            line-height: 28px;
-            text-align: left;
-            font-style: normal;
-            text-transform: none;
-            border-bottom: 1px solid #139602;
-
-            >span {
-                float: right;
-                width: 56px;
-                height: 20px;
-                line-height: 24px;
-                font-weight: 400;
-                font-size: 14px;
-                color: #999999;
-                font-style: normal;
-                text-transform: none;
-            }
-        }
-
-        ul.sannongList {
-            width: 380px;
-            height: 186px;
-
-            >li {
-                height: 22px;
-                padding-top: 16px;
-                white-space: nowrap;
-                /* 禁止换行 */
-                overflow: hidden;
-                /* 隐藏超出部分 */
-                text-overflow: ellipsis;
-                /* 超出部分显示省略号 */
-
-                >strong {
-                    display: inline-block;
-                    width: 24px;
-                    height: 24px;
-                    line-height: 24px;
-                    background-color: #cecece;
-                    padding-left: 6px;
-                    box-sizing: border-box;
-                    font-family: Source Han Sans, Source Han Sans;
-                    font-weight: 500;
-                    font-size: 18px;
-                    color: #FFFFFF;
-                    font-style: normal;
-                    text-transform: none;
-
-                }
-
-                >em {
-                    display: inline-block;
-                    width: 6px;
-                    height: 6px;
-                    border-radius: 10px;
-                    border: 2px solid #8CBA86;
-                }
-
-                >span {
-                    width: 380px;
-                    height: 22px;
-                    font-family: PingFang SC, PingFang SC;
-                    font-weight: 500;
-                    font-size: 18px;
-                    color: #333333;
-                    line-height: 21px;
-                    text-align: left;
-                    font-style: normal;
-                    text-transform: none;
-                    padding-left: 9px;
-                }
-
-                >span:hover {
-                    color: #139609;
-
-                    a {
-                        color: #088f04;
-                    }
-                }
-
-            }
-        }
-
-        // 轮播图
-        .banner {
-            width: 380px;
-            height: 214px;
-            margin-top: 45px;
-        }
-
-        .banner_b_img {
-
-            // 图片部分
-            .photo {
-                height: 104px;
-                margin-top: 10px;
-                display: flex;
-            }
-
-            .photoL,
-            .photoR {
-                float: left;
-                width: 185px;
-                height: 104px;
-                position: relative;
-
-                img {
-                    width: 185px;
-                    height: 104px;
-                }
-
-                span {
-                    position: absolute;
-                    top: 0;
-                    left: 0;
-                    display: inline-block;
-                    padding-left: 7px;
-                    box-sizing: border-box;
-                    width: 185px;
-                    height: 22px;
-                    background-color: rgba(0, 0, 0, 0.5);
-                    font-weight: 500px;
-                    font-size: 14px;
-                    color: #FFFFFF;
-                    line-height: 22px;
-                    white-space: nowrap;
-                    /* 禁止换行 */
-                    overflow: hidden;
-                    /* 隐藏超出部分 */
-                    text-overflow: ellipsis;
-
-                    /* 超出部分显示省略号 */
-                    a {
-                        color: #fff;
-                    }
-                }
-            }
-
-            .photoL {
-                margin-right: 10px;
-            }
-
-
-        }
+.index_2_left_ul_box {
+    width: 460px;
+    float: right;
+}
 
+.index_2_left_ul {
+    width: 100%;
+}
+
+.index_2_left_ul_group_6 .index_2_left_ul_li:nth-of-type(6n) {
+    margin-bottom: 44px;
+}
+
+.index_2_left_ul_group_6 .index_2_left_ul_li:nth-of-type(6n-5) .index_2_left_ul_li_a_text {
+    font-weight: bold;
+}
+
+
+.index_2_left_ul_group_5 .index_2_left_ul_li:nth-of-type(5n) {
+    margin-bottom: 35px;
+}
+
+.index_2_left_ul_group_5 .index_2_left_ul_li:nth-of-type(5n-4) .index_2_left_ul_li_a_text {
+    font-weight: bold;
+}
 
+.index_2_left_ul_li {
+    height: 24px;
+    line-height: 24px;
+    margin: 0px 0 20px;
+    display: flex;
+
+    .index_2_left_ul_li_a_name {
+        height: 15px;
+        line-height: 15px;
+        color: #999;
+        font-size: 18px;
+        margin: 6px 10px 0px 0px;
+        padding-right: 10px;
+        border-right: solid 1px #D46F05;
+    }
+
+    .index_2_left_ul_li_a_name:hover {
+        color: #D2600F;
+    }
+
+    .index_2_left_ul_li_a_text {
+        height: 24px;
+        line-height: 24px;
+        color: #333;
+        font-size: 18px;
+        width: 100%;
+        display: block;
+        word-break: keep-all;
+        white-space: nowrap;
+        overflow: hidden;
+        text-overflow: ellipsis;
+    }
+
+    .index_2_left_ul_li_a_text:hover {
+        color: #D2600F;
     }
 }
 
-// 标题
-.scienceTitle {
-    height: 37px;
 
-    h5 {
+.index_2_right_head {
+    height: 45px;
+    display: block;
+    margin-bottom: 44px;
+
+    .index_2_right_head_a {
         float: left;
-        width: 96px;
-        height: 34px;
-        font-family: PingFang SC, PingFang SC;
-        font-weight: 600;
+        height: 45px;
+        line-height: 45px;
+        color: #333;
         font-size: 24px;
-        color: #000000;
-        line-height: 28px;
-        text-align: left;
-        font-style: normal;
-        text-transform: none;
-        margin-right: 20px;
     }
+}
 
-    >p {
-        float: left;
-        height: 37px;
-        line-height: 30px;
-        display: flex;
 
-        >span {
-            display: inline-block;
-            //height: 20px;
-            line-height: 20px;
-            text-align: center;
-            margin: 4px 0px 3px;
-            padding: 0 20px;
-            //border-right: 1px solid #ccc;
-            font-weight: 500;
-            font-size: 20px;
-            cursor: pointer;
-            padding-bottom: 11px;
-
-            // >a {
-            //     display: inline-block;
-            //     padding-bottom: 11px;
-            //     font-family: PingFang SC, PingFang SC;
-            //     font-weight: 500;
-            //     font-size: 20px;
-            //     color: #666666;
-            //     line-height: 20px;
-            //     font-style: normal;
-            //     text-transform: none;
-            //     box-sizing: border-box;
-            // }
-
-            .current {
-                color: #139602;
-                border-bottom: 1px solid #139602;
-            }
-        }
-
-        >span:nth-child(4) {
-            border-right: none;
-        }
-
-        >span:hover>a {
-            color: #139602;
-            border-bottom: 1px solid #139602;
-
-        }
-    }
+.index_2_right_img_li {
+    margin-bottom: 20px;
 }
 
-
-.box {
-    width: 790px;
-    height: 570px;
-    position: relative;
-    overflow: hidden;
+.index_2_right_img_li_a {
+    display: flex;
 }
 
-.fade-in {
-    animation: fadeIn 1s ease-in-out;
+.index_2_right_img_li_a_img_box {
+    width: 120px;
+    height: 80px;
+    margin-right: 10px;
+    display: block;
 }
 
-.fade-enter-from,
-.fade-leave-to {
-    opacity: 0;
+.index_3_img_li_in {
+    width: 100%;
 }
 
-.fade-enter-to,
-.fade-leave-from {
-    opacity: 1;
+.index_2_right_img_li img {
+    width: 120px;
+    height: 80px;
+    display: block;
 }
 
-.fade-enter-active,
-.fade-leave-active {
-    transition: opacity 1s ease;
+.index_2_right_img_li_dot3 {
+    height: 63px;
+    line-height: 21px;
+    color: #333;
+    font-size: 18px;
+    width: 100%;
 }
 
-.scienceListBox {
-    width: 3160px;
-    height: 570px;
-    position: absolute;
-    top: 0;
-    left: 0;
-    transition: all 3s linear 0;
+.index_2_right_img_li_dot3:hover {
+    color: #D2600F;
+}
 
+.index_3 {
+    margin-top: 40px;
+    height: 555px;
 }
 
-// 标题下列表
-.scienceList {
-    width: 790px;
-    height: 570px;
-    float: left;
-    margin-top: 17px;
+.index_3_img_li {
+    margin-bottom: 35px;
+
+    .index_3_img_li_a {
+        display: flex;
+    }
 
-    >li {
-        width: 250px;
-        height: 276px;
+    .index_3_img_li_img_box {
         float: left;
-        margin-right: 20px;
-        position: relative;
+        width: 180px;
+        height: 120px;
+        margin-right: 15px;
+    }
+
+    .index_3_img_li_a img {
+        display: block;
+        width: 180px;
+        height: 120px;
+    }
 
-        img {
-            width: 250px;
-            height: 220px;
-            border-top-left-radius: 40px;
-            border-bottom-right-radius: 40px;
-        }
-
-        >p {
-            height: 50px;
-            width: 248px;
-            font-family: PingFang SC, PingFang SC;
-            font-weight: 600;
-            font-size: 18px;
-            color: #333333;
-            line-height: 24px;
-            text-align: left;
-            font-style: normal;
-            text-transform: none;
-
-            display: -webkit-box;
-            -webkit-box-orient: vertical;
-            -webkit-line-clamp: 2;
-            /* 限制显示的行数 */
-            overflow: hidden;
-            text-overflow: ellipsis;
-        }
-
-        // >p:hover {
-        //     color: #139602;
-        // }
+    .index_3_img_li_dot3 {
+        height: 66px;
+        line-height: 22px;
+        color: #333;
+        font-size: 18px;
+        font-weight: bold;
+        margin-top: 8px;
     }
 
-    >li:hover {
-        color: #088f04;
+    .index_3_img_li_dot3:hover {
+        color: #D2600F;
+    }
 
-        >p:hover {
-            a {
-                color: #088f04;
-            }
+    .index_3_img_li_tag {
+        float: left;
+        height: 28px;
+        line-height: 28px;
+        color: #999;
+        font-size: 14px;
+        background: #F5F5F7;
+        padding: 0px 5px;
+        margin-top: 10px;
+    }
+}
 
-            // color: #139602;
-        }
+
+.index_3_num_li {
+    border-bottom: solid 1px #E4E4E4;
+    box-sizing: border-box;
+    height: 66px;
+    line-height: 66px;
+
+    .index_3_num_li_tag {
+        float: left;
+        font-style: italic;
+        color: #D9D9D9;
+        font-size: 20px;
+        height: 100%;
+        line-height: 66px;
+        margin-right: 13px;
     }
 
-    >li:nth-child(3),
-    >li:nth-child(6) {
-        margin-right: 0;
+    .index_3_num_li_dot1 {
+        color: #333;
+        font-size: 18px;
+        height: 100%;
+        line-height: 66px;
     }
 
-    >li::before {
-        content: "";
-        display: inline-block;
-        width: 40px;
-        height: 20px;
-        position: absolute;
-        top: 0;
-        right: 0;
-        background-image: url("../../public/images/Component 209.png");
+    .index_3_num_li_dot1:hover {
+        color: #D2600F;
     }
 }
 
-.active {
-    border-bottom: 3px solid #139602;
-    height: 36px;
-    display: inline-block;
+.index_3_num_li:nth-of-type(1) {
+    margin-top: -26px;
 }
 
-.noSelect {
-    border-bottom: 3px solid #fff;
-    height: 36px;
-    display: inline-block;
+.index_3_num_li:nth-of-type(-n+3) .index_3_num_li_tag {
+    color: #DD7D18;
 }

+ 26 - 3
assets/css/index.less

@@ -207,8 +207,7 @@
             .part1_right_title {
                 font-size: 22px;
                 .part1_right_titlelist {
-                    font-weight: bold;
-                    color: #333333;
+                    color: #999999;
                     margin-right: 20px;
                 }
 
@@ -216,6 +215,11 @@
                     color: #999999;
                 }
 
+                .active {
+                    font-weight: bold;
+                    color: #333333;
+                }
+
             }
 
             .part1_right_photo_text {
@@ -251,7 +255,7 @@
 
             .part1_right_content {
                 width: 270px;
-                margin-top: 30px;
+                margin-top: 26px;
 
                 .part1_right_contentList {
                     width: 275px;
@@ -933,6 +937,25 @@
                     .nav11_title_content:hover {
                         color: #dd7d18;
                     }
+
+                    .nav11_title_content2 {
+                        display: inline-block;
+                        width: 370px;
+                        white-space: nowrap;
+                        overflow: hidden;
+                        text-overflow: ellipsis;
+                        padding-left: 10px;
+                        box-sizing: border-box;
+                        font-size: 18px;
+                        color: #333333;
+                        vertical-align: -4px;
+                    }
+
+                    .nav11_title_content2:hover {
+                        color: #dd7d18;
+                    }
+
+
                 }
 
                 .part4_photo_contentlist:hover {

+ 4 - 0
assets/css/public/nav.less

@@ -43,6 +43,10 @@
 
             }
 
+            a {
+                color: #fff;
+            }
+
         }
 
         .partOneTitle {

+ 53 - 0
components/home/AdvertisingClass.vue

@@ -0,0 +1,53 @@
+<template>
+    <div class="banner_2 clearfix">
+        <a class="banner_2_left" href="http://nzgxw.org.cn/" v-if="adData1.image_url==null" target="_blank" :title="adData1.introduce">
+            <img :src="adData1.thumb" :alt="adData1.introduce" :id="adData1.ad_tag"  data-tag="adData1.ad_tag">
+        </a>
+        <a class="banner_2_left" :href="adData1.image_url" v-else :title="adData1.introduce">
+            <img :src="adData1.image_src" :alt="adData1.introduce" :id="adData1.ad_tag" data-tag="adData1.ad_tag">
+        </a>
+        <a class="banner_2_right" href="http://nzgxw.org.cn/" v-if="adData2.image_url==null" target="_blank" :title="adData2.introduce">
+            <img :src="adData2.thumb" :alt="adData2.introduce" :id="adData2.ad_tag"  data-tag="adData2.ad_tag">
+        </a>
+        <a class="banner_2_right" :href="adData2.image_url" v-else :title="adData2.introduce">
+            <img :src="adData2.image_src" :alt="adData2.introduce" :id="adData2.ad_tag" data-tag="adData2.ad_tag">
+        </a>
+    </div>
+</template>
+
+<script setup>
+//import {onMounted } from 'vue';
+const props = defineProps({
+    adData1: Object,
+    adData2: Object
+});
+//广告移动至客户端获取,并且按照标识单独获取
+</script>
+
+<style lang="less" scoped>
+    .clearfix {
+        overflow: hidden;
+        width: 1200px;
+        height: 106px;
+    }
+    .banner_2 img {
+        display: block;
+        width: 100%;
+        height: 100%;
+    }
+
+    .banner_2 {
+        margin-top: 40px;
+        height: 106px;
+        .banner_2_left {
+            float: left;
+            width: 720px;
+            height: 100%;
+        }
+        .banner_2_right {
+            float: right;
+            width: 450px;
+            height: 100%;
+        }
+    }
+</style>

+ 59 - 67
components/home/BigSwiper.vue

@@ -1,17 +1,15 @@
 <template>
+    <!-- 首页大的轮播图 -->
     <div class="swiper" v-if="imagelist">
-        <el-carousel :interval="5000" arrow="always" height="405px" indicator-class="custom-indicator"
-            class="custom-carousel" @change="handleIndicatorChange">
+        <el-carousel height="400px">
             <el-carousel-item v-for="(item, index) in imagelist" :key="index">
-                <NuxtLink :to="`/${item.pinyin}/${item.id}.html`"
-                    :title="item.title">
-                    <img :src="item.imgurl" :alt="item.title">
-                    <span>{{ item.title }}</span>
+                <NuxtLink :to="`/newsDetail/${item.id}`" target="_blank">
+                    <img :src="item.imgurl">
+                    <div class="text">
+                        <span>{{ item.title }}</span>
+                    </div>
                 </NuxtLink>
             </el-carousel-item>
-            <template #indicator="{ index }">
-                <button :class="{ 'active-indicator': currentIndex === index }">{{ index + 1 }}</button>
-            </template>
         </el-carousel>
     </div>
 </template>
@@ -54,85 +52,79 @@ let handleIndicatorChange = (val) => {
     position: relative;
 
     img {
-        width: 720px;
+        width: 790px;
         height: 405px;
     }
 
-    span {
+    .text {
         display: inline-block;
-        width: 720px;
-        height: 118px;
-        padding-top: 20px;
+        width: 790px;
+        height: 60px;
+        line-height: 60px;
         padding-left: 23px;
         box-sizing: border-box;
         position: absolute;
-        top: 0;
+        bottom: 0;
         left: 0;
-        font-family: Source Han Sans, Source Han Sans;
-        font-weight: 800;
-        font-size: 24px;
+        font-family: Microsoft YaHei, Microsoft YaHei;
+        font-weight: 400;
+        font-size: 18px;
         color: #FFFFFF;
-        background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
+        // background-color: #eee;
+
+        span {
+            display: inline-block;
+            width: 460px;
+            height: 60px;
+            white-space: nowrap;
+            overflow: hidden;
+            text-overflow: ellipsis;
+            font-size: 24px;
+            position: absolute;
+            z-index: 50;
+        }
 
     }
-}
 
-.el-carousel {
-    // 左右箭头按钮
-    .el-carousel__arrow--right :deep(.class-name),
-    .el-carousel__arrow--left :deep(.class-name) {
-        width: 68px;
+    .text:after {
+        background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
+        bottom: 0;
+        content: "";
+        display: block;
         height: 68px;
+        left: 0;
+        position: absolute;
+        width: 100%;
+        z-index: 44;
     }
-    //左右箭头图片
-    /deep/.el-icon svg {
-        height: 1em;
-        width: 1em;
-        background-color: transparent;
-    }
-    /deep/.el-carousel__arrow {
-        border-radius: 0;
-        background-color: transparent;
-    }
-    /deep/.el-carousel__arrow i {
-        font-size: 68px !important;
-    }
-    /deep/ .el-carousel__indicators {
-        // 指示器
+}
+
+
+
+.el-carousel {
+
+    // 指示器位置
+    ::v-deep .el-carousel__indicators {
         left: unset;
         transform: unset;
-        right: 41%;
-    }
-    /deep/ .el-carousel__button {
-        // 指示器按钮
-        width: 20px;
-        height: 20px;
-        border-radius: 50%;
-        border: none;
-        opacity: 1;
-        background-color: #FFFFFF;
+        right: 1%;
     }
 
-    /deep/ .is-active .el-carousel__button {
-        // 指示器激活按钮
-        background: #46D333;
-    }
-
-    /deep/ .el-carousel__container {
-        height: 100%;
+    // 未选中的指示器样式,设置为小圆圈 
+    ::v-deep .el-carousel__indicator:not(.is-active) button {
+        width: 10px;
+        height: 10px;
+        border-radius: 50%;
+        background-color: #fff;
     }
 
-    /deep/.custom-indicators {
-        position: absolute;
-        bottom: 10px;
-        left: 50%;
-        transform: translateX(-50%);
+    // 选中的指示器样式,设置为长条状 
+    ::v-deep .el-carousel__indicator.is-active button {
+        width: 10px;
+        height: 10px;
+        border-radius: 50%;
+        background-color: #dd7d18;
     }
 
-    // 将指示器的所有样式都不显示
-    // /deep/.el-carousel__indicators {
-    //     display: none;
-    // }
-
 }
 </style>

+ 94 - 116
components/home/SecondaryHeading.vue

@@ -1,20 +1,13 @@
 <template>
-    <div class="sannongzhichuang">
-        <div class="inner">
-            <h2>
-                {{ title }}
-                <em class="iconfont icon-xingzhuang-zhijiaosanjiaoxing-copy"></em>
-            </h2>
-            <div class="introduction">
-                <strong>频道介绍</strong>
-                <div v-for="(item,index) in titleData">
-                    <span v-if="index<=7">
-                        <NuxtLink :to="{ path: `/${item.aLIas_pinyin}/list-1.html`}">{{ item.alias }}</NuxtLink>
-                    </span>
-                    <b v-else></b>
-                </div>
-            </div>
-        </div>
+    <div class="index_main">
+        <nav class="index_nav clearfix">
+            <span class="index_nav_a_one" href="javascript:(void)" title="">{{ title }}</span>
+            <span v-for="(item,index) in titleData" :class="['index_nav_a', { 'index_nav_a_only': targetSegment === item.aLIas_pinyin }]">
+                <span v-if="index<=7">
+                    <NuxtLink :to="{ path: `/${item.aLIas_pinyin}/list-1.html`}" >{{ item.alias }}</NuxtLink>
+                </span>
+            </span>
+        </nav>
     </div>
 </template>
 
@@ -25,11 +18,17 @@ const props = defineProps({
     titleData:Array,
     pinyinid:Number
 });
+
+//获取当前url路径
+const route = useRoute();
+//获得当前的完整路径
+const fullPath = route.path;
+const segments = fullPath.split('/'); 
+const targetSegment = segments[1]; 
 //1.设置组件数据 end---------------------------------------->
 
 //2.设置组件标题 start ---------------------------------------->
 const title = ref("")
-
 async function getPageData() {
     const mkdata =  await requestDataPromise('/web/getOneWebsiteCategory', {
         method: 'GET',
@@ -51,111 +50,90 @@ getPageData();
 </script>
 
 <style lang="less" scoped>
-// 三农之窗
-.sannongzhichuang {
-    margin: 30px 0 40px;
-
-    .inner {
-        width: 1200px;
-        height: 67px;
+.index_main {
+    width: 1200px;
+    margin: 0 auto;
+    margin-bottom: 40px;
+}
+.index_nav {
+    width: 1200px;
+    margin: 0 auto;
+    margin-top: 20px;
+    border-bottom: solid 1px #D9D9D9;
+    height: 88px;
+    .index_nav_a_one {
+        float: left;
+        color: #333;
+        font-size: 16px;
+        margin: 0px 30px;
+        height: 88px;
+        line-height: 88px;
+        font-weight: bold;
+        border-bottom: solid 3px #fff;
+        box-sizing: border-box;
         position: relative;
+        overflow: hidden;
+        height: 56px;
+        line-height: 56px;
+        color: #fff;
+        font-size: 18px;
+        font-weight: bold;
+        width: 153px;
+        margin: 14px 30px 0px 0px;
+        text-indent: 46px;
+        background: url(@/public/img/3.png) no-repeat left top;
+        background-size: 100% 100%;
     }
-
-    h2 {
-        display: inline-block;
-        //background-image: url("../../public/image/bg1.png");
-        background: #139602;
-        width: 156px;
-        height: 43px;
-        padding: 14px 31px 10px 25px;
-        font-family: STXingkai, STXingkai;
-        font-weight: 400;
-        font-size: 39px;
-        color: #FFFFFF;
-        line-height: 46px;
-        text-align: center;
-        font-style: normal;
-        text-transform: none;
-        -webkit-text-stroke: 1px #3C6C47;
-        position: absolute;
-        top: 0;
-        left: 0;
-        z-index: 99;
-
-        em {
-            position: absolute;
-            top: -16px;
-            right: -12px;
-            color: #185410;
-            display: inline-block;
-            width: 13px;
-            height: 13px;
+    .index_nav_a {
+        float: left;
+        color: #333;
+        font-size: 16px;
+        margin: 0px 30px;
+        height: 88px;
+        line-height: 88px;
+        font-weight: bold;
+        border-bottom: solid 3px #fff;
+        box-sizing: border-box;
+        position: relative;
+        a {
+            color:#333333
+        }
+        &:hover{
+            border-bottom: solid 3px #D2600F;
         }
     }
-
-    div.introduction {
-        display: inline-block;
-        width: 1003px;
+    .index_nav_a a:hover{
+        color: #D2600F;
+        // border-bottom: solid 3px #D2600F;
+    }
+    .index_nav_a_only {
+        border-bottom: solid 3px #D2600F;
+    }
+    .index_nav_a::after {
+        content: '';
+        display: block;
+        position: absolute;
+        width: 2px;
+        height: 12px;
+        background: #DBDBDB;
+        right: -38px;
+        top: 39px;
+    }
+    .index_nav_a:nth-last-of-type(1) {
+        overflow: hidden;
+    }
+    a.index_nav_a:nth-of-type(1) {
+        overflow: hidden;
         height: 56px;
         line-height: 56px;
-        background-color: #fafafa;
-        position: absolute;
-        bottom: 0;
-        right: 0;
-        display: flex;
-
-        >strong:first-child {
-            margin-left: 40px;
-            display: inline-block;
-            vertical-align: middle;
-            width: 32px;
-            height: 36px;
-            padding: 3px 7px;
-            border: 0.5px solid #129502;
-            font-family: Microsoft YaHei, Microsoft YaHei;
-            font-weight: bold;
-            font-size: 14px;
-            color: #139602;
-            line-height: 18px;
-            text-align: center;
-            font-style: normal;
-            text-transform: none;
-
-        }
-
-        div {
-            overflow: hidden;
-            text-overflow: ellipsis;
-            white-space: nowrap;
-            >span {
-                width: 64px;
-                height: 21px;
-                font-family: Microsoft YaHei, Microsoft YaHei;
-                font-weight: 400;
-                font-size: 16px;
-                color: #000000;
-                line-height: 21px;
-                text-align: left;
-                font-style: normal;
-                text-transform: none;
-                margin-top: 17px;
-                padding: 0 24px;
-                border-right: 1px solid #ccc;
-
-                a {
-                    color: #000;
-                }
-            }
-
-            >span:hover a {
-                color: #139602;
-            }
-
-            >span:last-child {
-                border: none;
-            }
-        }
-        
+        color: #fff;
+        font-size: 18px;
+        font-weight: bold;
+        width: 153px;
+        margin: 14px 30px 0px 0px;
+        text-indent: 46px;
+        background: url(@/public/img/3.png) no-repeat left top;
+        background-size: 100% 100%;
     }
 }
 </style>

+ 144 - 0
components/home/SmallSwiper1.vue

@@ -0,0 +1,144 @@
+<template>
+    <div class="swiper">
+        <el-carousel :interval="3000" height="405px" indicator-class="custom-indicator">
+            <el-carousel-item v-for="(item, item_index) in data" :key="item">
+                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title" :target="item.islink == 1 ? '_blank' : '_self'">
+                    <img :src="item.imgurl" alt="item.title">
+                </NuxtLink>
+                <span class="swiper_dot1 dot1">
+                    {{item.title}}
+                </span>
+            </el-carousel-item>
+        </el-carousel>
+    </div>
+</template>
+
+<script setup>
+import { ElCarousel, ElCarouselItem } from 'element-plus'
+
+const getLinkPathDetail = (item) => {
+    if (item.islink == 1) {
+        return `${item.linkurl}`;
+    } else {
+        //return `/${item.aLIas_pinyin}/${item.id}`;
+        //return `/newsDetail/${item.id}`
+        return `/${item.pinyin}/${item.id}.html`;
+    }
+}
+const props = defineProps({
+    data: {
+        type: Array,
+        default: () => []
+    }
+})
+</script>
+
+<style lang="less" scoped>
+.dot1 {
+    display: block;
+    word-break: keep-all;
+    white-space: nowrap;
+    overflow: hidden;
+    text-overflow: ellipsis;
+}
+
+.swiper {
+    width: 100%;
+    height: 405px;
+    position: relative;
+
+    img {
+        width: 100%;
+        height: 405px;
+    }
+
+    .swiper_dot1 {
+        display: block;
+        width: 100%;
+        line-height: 60px;
+        height: 60px;
+        color: #fff;
+        font-size: 24px;
+        text-indent: 20px;
+        position: absolute;
+        bottom: 0;
+        left: 0;
+        z-index: 10;
+        box-sizing: border-box;
+        padding-right: 244px;
+        background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 100%);
+    }
+}
+
+.el-carousel {
+    /deep/.el-carousel__arrow i {
+        font-size: 30px !important;
+    }
+
+    /deep/.el-carousel__arrow--left {
+        left: 16px;
+        width: 35px;
+        height: 57px;
+        color: #616358;
+        background: #dcdedc;
+        position: absolute;
+        left: 0px;
+        border: none;
+        border-radius: 0;
+    }
+
+    /deep/.el-carousel__arrow--right {
+        right: 16px;
+        width: 35px;
+        height: 57px;
+        color: #616358;
+        background: #dcdedc;
+        position: absolute;
+        right: 0;
+        border: none;
+        border-radius: 0;
+    }
+
+    /deep/ .el-carousel__indicators {
+        // 指示器
+        left: unset;
+        transform: unset;
+        right: 10px;
+        bottom: 11px;
+    }
+
+    /deep/ .el-carousel__button {
+        // 指示器按钮
+        width: 10px;
+        height: 10px;
+        border: none;
+        border-radius: 50%;
+        background: #fff;
+        opacity: 1;
+    }
+
+    /deep/ .is-active .el-carousel__button {
+        // 指示器激活按钮
+        background: #DD7D18;
+        opacity: 1;
+    }
+
+    /deep/ .el-carousel__container {
+        height: 100%;
+    }
+}
+
+.custom-indicator button {
+    background-color: #fff;
+
+    opacity: 1;
+    width: 8px;
+    height: 8px;
+}
+
+.custom-indicator button.is-active {
+    background-color: #DD7D18;
+
+    opacity: 1;
+}
+</style>

+ 0 - 1
composables/publicFunction.ts

@@ -43,5 +43,4 @@ const getTitleLength = function(title:string,length:number){
   }
 }
 
-
 export { getTime,getTitleLength };

+ 322 - 524
pages/[dir]/index.html.vue

@@ -3,319 +3,284 @@
         <HomePageHead></HomePageHead>
         <HomePageNavigation></HomePageNavigation>
         <HomeSecondaryHeading :titleData="pageData" :pinyinid="routeId"></HomeSecondaryHeading>
-        
-        <div class="farmingPartOne">
-            <div class="inner">
-                <div class="innerLeft" v-if="pageData.length>0">
-                    <div class="title">
-                        <h3>
-                            <NuxtLink :href="getLinkPath(pageData[0])" v-if="pageData[0]" :title="pageData[0].alias">
+        <main class="index_main">
+            <section class="index_1 clearfix">
+                <div class="index_1_left">
+                    <div class="roll_1_box">
+                        <HomeSmallSwiper1 :data="pageData[0].data"></HomeSmallSwiper1>
+                    </div>
+                </div>
+                <div class="index_1_right">
+                    <div class="index_1_color_box">
+                        <h3 class="index_1_head_h3 clearfix">
+                            <NuxtLink class="index_1_head_a" :href="getLinkPath(pageData[0])" v-if="pageData[0]" :title="pageData[0].alias">
                                 {{ pageData[0].alias }}
                             </NuxtLink>
-                            <span>
-                                <NuxtLink :href="getLinkPath(pageData[0])" v-if="pageData[0]" :title="pageData[0].title">
-                                    查看更多
-                                </NuxtLink>
-                            </span>
                         </h3>
-                    </div>
-                    <div class="leftTop">
-                        <div class="leftTopPhoto left" v-if="pageData[0].data[0]">
-                            <NuxtLink :href="getLinkPathDetail(pageData[0].data[0])" :title="pageData[0].data[0].title">
-                                <img :src="pageData[0].data[0].imgurl" :alt="pageData[0].data[0].title">
-                                <span>{{pageData[0].data[0].title }}</span>
+                        <div class="index_1_ul">
+                            <NuxtLink class="index_1_ul_a dot1" 
+                                :href="getLinkPathDetail(item)" 
+                                :title="item.title" 
+                                v-for="item in pageData[0].data2" 
+                                :key="item.id"
+                                :target="item.islink == 1 ? '_blank' : '_self'"
+                            >
+                                {{ item.title }}
                             </NuxtLink>
                         </div>
-                        <div class="leftTopPhoto left" v-else></div>
-                        <ul class="left">
-                            <li v-for="item in pageData[0].data3">
-                                <em></em>
-                                <span>
-                                    <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
-                                        {{ item.title }}
-                                    </NuxtLink>
-                                </span>
-                            </li>
-                        </ul>
                     </div>
-                    <ul class="leftBottom" v-if="pageData[0].data2[0]!=null">
-                        <li v-for="item in pageData[0].data2">
-                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
-                                <img :src="item.imgurl" :alt="item.title">
-                            </NuxtLink>
-                            <p>
-                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
-                                    {{ item.title }}
-                                </NuxtLink>
-                            </p>
-                        </li> 
-                    </ul>
                 </div>
-                
-                <div class="innerRight" v-if="pageData.length>=2">
-                    <div class="title">
-                        <h3>
-                            <NuxtLink :href="getLinkPath(pageData[1])" v-if="pageData[1]" :title="pageData[1].alias">
-                                {{ pageData[1].alias }}
-                            </NuxtLink>
-                            <span>
-                                <NuxtLink :href="getLinkPath(pageData[1])" v-if="pageData[1]" :title="pageData[1].title">
-                                    查看更多
+            </section>
+            <HomeAdvertisingClass :adData1="adImg1" :adData2="adImg2"></HomeAdvertisingClass>
+            <section class="index_2 clearfix">
+                <div class="index_2_left">
+                    <h3 class="index_2_left_h3 clearfix">
+                        <NuxtLink class="index_2_left_h3_a index_2_left_h3_a_only" :href="getLinkPath(pageData[1])" v-if="pageData[1]" :title="pageData[1].alias">
+                            {{ pageData[1].alias }}
+                        </NuxtLink>
+                    </h3>
+                    <div class="index_2_left_img_out">
+                        <div class="index_2_big_img_ul clearfix">
+                            <div class="index_2_big_img_li">
+                                <NuxtLink class="index_2_big_img_li_a"
+                                    :href="getLinkPathDetail(item)"
+                                    :title="item.title"
+                                    v-for="item in pageData[1].data"
+                                    :key="item.id"
+                                    :target="item.islink == 1 ? '_blank' : '_self'"
+                                >
+                                    <img :src="item.imgurl" title="item.title" alt="item.title">
+                                    <div class="index_2_img_li_dot1 dot1">{{item.title}}</div>
                                 </NuxtLink>
-                            </span>
-                        </h3>
-                    </div>
-                    <ul class="rightList">
-                        <li v-for="item in pageData[1].data">
-                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
-                                <img class="left" :src="item.imgurl" :alt="item.title">
-                            </NuxtLink>
-                            <p class="left">
-                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
-                                    {{ item.title }}
-                                </NuxtLink>
-                            </p>
-                        </li>
-                    </ul>
-                </div>
-            </div>
-        </div>
-        <HomeTopTen :imgurl="adImg1" v-if="adImg1"></HomeTopTen>
-        <div class="farmingPartTwo" v-if="pageData.length>=3">
-            <div class="inner">
-                <div class="farmer"  v-if="pageData.length>=3">
-                    <div class="title">
-                        <h3>
-                            <NuxtLink :href="getLinkPath(pageData[2])" v-if="pageData[2]" :title="pageData[2].alias">
-                                {{ pageData[2].alias }}
-                            </NuxtLink>
-                            <span>
-                                <NuxtLink :href="getLinkPath(pageData[2])" v-if="pageData[2]" :title="pageData[2].title">
-                                    查看更多
+                            </div>
+                        </div>
+                        <div class="index_2_img_ul clearfix">
+                            <div class="index_2_img_li" v-for="item in pageData[1].data2" :key="item.id">
+                                <NuxtLink class="index_2_img_li_a"
+                                    :href="getLinkPathDetail(item)"
+                                    :title="item.title"
+                                    :target="item.islink == 1 ? '_blank' : '_self'"
+                                >
+                                    <img :src="item.imgurl" title="item.title" alt="item.title">
+                                    <div class="index_2_img_li_dot1 dot1">{{item.title}}</div>
                                 </NuxtLink>
-                            </span>
-                        </h3>
+                            </div>
+                        </div>
                     </div>
-                    <div class="PartTwoPhoto">
-                        <div v-if="pageData[2].data[0]">
-                            <NuxtLink :href="getLinkPathDetail(pageData[2].data[0])" :title="pageData[2].data[0].title">
-                                <img :src="pageData[2].data[0].imgurl" :alt="pageData[2].data[0].title">
-                                <span>{{ pageData[2].data[0].title }}</span>
-                            </NuxtLink>
+
+                    <div class="index_2_left_ul_box">
+                        <div class="index_2_left_ul index_2_left_ul_group_6">
+                            <div class="index_2_left_ul_li dot1" v-for="item in pageData[1].data3" :key="item.id">
+                                    <NuxtLink class="index_2_left_ul_li_a_name"
+                                        :href="getLinkPathDetail(item)"
+                                        :title="item.title"
+                                        :key="item.id"
+                                        :target="item.islink == 1 ? '_blank' : '_self'"
+                                    >
+                                        资讯关注
+                                    </NuxtLink>
+                                    <NuxtLink class="index_2_left_ul_li_a_text"
+                                        :href="getLinkPathDetail(item)"
+                                        :title="item.title"
+                                        :key="item.id"
+                                        :target="item.islink == 1 ? '_blank' : '_self'"
+                                    >
+                                        {{item.title}}
+                                    </NuxtLink>
+                            </div>
                         </div>
                     </div>
-                    <ul class="PartTwoList">
-                        <li v-for="item in pageData[2].data2">
-                            <em></em>
-                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
-                                {{ item.title }}
-                            </NuxtLink>
-                        </li>
-                    </ul>
                 </div>
-                <div class="farmer" v-if="pageData.length>=4">
-                    <div class="title">
-                        <h3>
-                            <NuxtLink :href="getLinkPath(pageData[3])" v-if="pageData[3]" :title="pageData[3].alias">
-                                {{ pageData[3].alias }}
-                            </NuxtLink>
-                            <span>
-                                <NuxtLink :href="getLinkPath(pageData[3])" v-if="pageData[3]" :title="pageData[3].title">
-                                    查看更多
-                                </NuxtLink>
-                            </span>
-                        </h3>
-                    </div>
-                    <div class="PartTwoPhoto">
-                        <div v-if="pageData[3].data[0]">
-                            <NuxtLink :href="getLinkPathDetail(pageData[3].data[0])" :title="pageData[3].data[0].title">
-                                <img :src="pageData[3].data[0].imgurl" :alt="pageData[3].data[0].title">
-                                <span>{{ pageData[3].data[0].title }}</span>
+                <div class="index_2_right">
+                    <h3 class="index_2_right_head">
+                        <NuxtLink class="index_2_right_head_a" :href="getLinkPath(pageData[2])" v-if="pageData[2]" :title="pageData[2].alias">
+                            {{ pageData[2].alias }}
+                        </NuxtLink>
+                    </h3>
+                    <div class="index_2_right_img_ul">
+                        <div class="index_2_right_img_li clearfix" v-for="item in pageData[2].data" :key="item.id">
+                            <NuxtLink class="index_2_right_img_li_a"
+                                :href="getLinkPathDetail(item)"
+                                :title="item.title"
+                                :key="item.id"
+                                :target="item.islink == 1 ? '_blank' : '_self'"
+                            >
+                                <div class="index_2_right_img_li_a_img_box">
+                                    <img class="" :src="item.imgurl" title="" alt="">
+                                </div>
+                                <div class="index_2_right_img_li_dot3 dot3">
+                                    {{item.title}}
+                                </div>
                             </NuxtLink>
                         </div>
                     </div>
-                    <ul class="PartTwoList">
-                        <li v-for="item in pageData[3].data2">
-                            <em></em>
-                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
-                                {{ item.title }}
-                            </NuxtLink>
-                        </li>
-                    </ul>
-                </div>
-                <div class="farmer" v-if="pageData.length>=5">
-                    <div class="title">
-                        <h3>
-                            <NuxtLink :href="getLinkPath(pageData[4])" v-if="pageData[4]" :title="pageData[4].alias">
-                                {{ pageData[4].alias }}
-                            </NuxtLink>
-                            <span>
-                                <NuxtLink :href="getLinkPath(pageData[4])" v-if="pageData[4]" :title="pageData[4].title">
-                                    查看更多
-                                </NuxtLink>
-                            </span>
-                        </h3>
+                    <div class="index_1_ul index_1_ul_2">
+                        <NuxtLink class="index_1_ul_a dot1"
+                            :href="getLinkPathDetail(item)"
+                            :title="item.title"
+                            v-for="item in pageData[2].data3"
+                            :key="item.id"
+                            :target="item.islink == 1 ? '_blank' : '_self'"
+                        >
+                            {{ item.title }}
+                        </NuxtLink>
                     </div>
-                    <div class="PartTwoPhoto">
-                        <div v-if="pageData[4].data[0]">
-                            <NuxtLink :href="getLinkPathDetail(pageData[4].data[0])" :title="pageData[4].data[0].title">
-                                <img :src="pageData[4].data[0].imgurl" :alt="pageData[4].data[0].title">
-                                <span>{{ pageData[4].data[0].title }}</span>
+                    <div class="index_2_right_img_ul">
+                        <div class="index_2_right_img_li clearfix" v-for="item in pageData[2].data2" :key="item.id">
+                            <NuxtLink class="index_2_right_img_li_a"
+                                :href="getLinkPathDetail(item)"
+                                :title="item.title"
+                                :key="item.id"
+                                :target="item.islink == 1 ? '_blank' : '_self'"
+                            >
+                                <div class="index_2_right_img_li_a_img_box">
+                                    <img class="" :src="item.imgurl" title="" alt="">
+                                </div>
+                                <div class="index_2_right_img_li_dot3 dot3">
+                                    {{item.title}}
+                                </div>
                             </NuxtLink>
                         </div>
                     </div>
-                    <ul class="PartTwoList">
-                        <li v-for="item in pageData[4].data2">
-                            <em></em>
-                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
-                                {{ item.title }}
-                            </NuxtLink>
-                        </li>
-                    </ul>
                 </div>
-            </div>
-        </div>
-        <HomeTopTen :imgurl="adImg2" v-if="adImg2"></HomeTopTen>
-        <div class="zixuntuijian" v-if="pageData.length>=6">
-            <div class="inner">
-                <div class="innerLeft" >
-                    <div class="zixunTop">
-                        <div class="zixunLeft" v-if="pageData.length>=6">
-                            <div class="title">
-                                <h3>
-                                    <NuxtLink :href="getLinkPath(pageData[5])" v-if="pageData[5]" :title="pageData[5].alias">
-                                        {{ pageData[5].alias }}
+            </section>
+
+            <section class="index_3 clearfix">
+                <div class="index_2_left">
+                    <h3 class="index_2_left_h3 clearfix">
+                        <NuxtLink 
+                            :class="{'index_2_left_h3_a': true, 'index_2_left_h3_a_only': showTabs == 1}"
+                            :href="getLinkPath(pageData[3])" 
+                            v-if="pageData[3]" 
+                            :title="pageData[3].alias"
+                            @mouseenter="qhtabs(1)"
+                        >
+                            {{ pageData[3].alias }}
+                        </NuxtLink>
+                        <NuxtLink 
+                            :class="{'index_2_left_h3_a': true, 'index_2_left_h3_a_only': showTabs == 2}"
+                            :href="getLinkPath(pageData[4])"
+                            v-if="pageData[4]" 
+                            :title="pageData[4].alias"
+                            @mouseenter="qhtabs(2)"
+                        >
+                            {{ pageData[4].alias }}
+                        </NuxtLink>
+                    </h3>
+                    <div v-if="showTabs == 1">
+                        <div class="index_2_left_img_out">
+                            <div class="index_2_left_ul index_2_left_ul_group_5">
+                                <div class="index_2_left_ul_li dot1" v-for="item in pageData[3].data" :key="item.id">
+                                    <NuxtLink class="index_2_left_ul_li_a_name"
+                                        :href="getLinkPathDetail(item)"
+                                        :title="item.title"
+                                        :key="item.id"
+                                        :target="item.islink == 1 ? '_blank' : '_self'"
+                                    >
+                                        资讯关注
+                                    </NuxtLink>
+                                    <NuxtLink class="index_2_left_ul_li_a_text"
+                                        :href="getLinkPathDetail(item)"
+                                        :title="item.title"
+                                        :key="item.id"
+                                        :target="item.islink == 1 ? '_blank' : '_self'"
+                                    >
+                                        {{item.title}}
                                     </NuxtLink>
-                                    <span>
-                                        <NuxtLink :href="getLinkPath(pageData[5])" v-if="pageData[5]" :title="pageData[5].title">
-                                            查看更多
-                                        </NuxtLink>
-                                    </span>
-                                </h3>
+                                </div>
                             </div>
-                            <ul class="photo_text" v-if="pageData[5].data[0]!= null">
-                                <li v-for="item in pageData[5].data">
-                                    <article>
-                                        <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
-                                            <img :src="item.imgurl" :alt="item.title">
-                                        </NuxtLink>
-                                        <div>
-                                            <h5>
-                                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
-                                                    {{ item.title }}
-                                                </NuxtLink>
-                                            </h5>
-                                            <p>
-                                                <span>{{ item.author }}</span>
-                                                <span>{{ getTime(item.updated_at,'month',1) }}</span>
-                                            </p>
-                                        </div>
-                                    </article>
-                                </li>
-                                <li v-for="item in pageData[5].data2">
-                                    <article>
-                                        <em></em>
-                                        <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
-                                            {{ item.title }}
-                                        </NuxtLink>
-                                    </article>
-                                </li>
-                            </ul>
                         </div>
-                        <div class="zixunRight"  v-if="pageData.length>=7">
-                            <div class="title">
-                                <h3>
-                                    <NuxtLink :href="getLinkPath(pageData[6])" v-if="pageData[6]" :title="pageData[6].alias">
-                                        {{ pageData[6].alias }}
+                        <div class="index_2_left_ul_box">
+                            <div class="index_3_img_ul">
+                                <div class="index_3_img_li clearfix" v-for="item in pageData[3].data2" :key="item.id">
+                                    <NuxtLink class="index_3_img_li_a"
+                                        :href="getLinkPathDetail(item)"
+                                        :title="item.title"
+                                        :key="item.id"
+                                        :target="item.islink == 1 ? '_blank' : '_self'"
+                                    >
+                                        <div class="index_3_img_li_img_box">
+                                            <img :src="item.imgurl" title="item.title" alt="item.title">
+                                        </div>
+                                        <div class="index_3_img_li_in">
+                                            <div class="index_3_img_li_dot3 dot3">
+                                                {{ item.title }}
+                                            </div>
+                                            <span class="index_3_img_li_tag">资讯关注</span>
+                                        </div>
                                     </NuxtLink>
-                                    <span>
-                                        <NuxtLink :href="getLinkPath(pageData[6])" v-if="pageData[6]" :title="pageData[6].title">
-                                            查看更多
-                                        </NuxtLink>
-                                    </span>
-                                </h3>
-                            </div>
-                            <div class="towPic">
-                                <div v-for="item in pageData[6].data" class="picBox">
-                                    <div>
-                                        <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
-                                            <img :src="item.imgurl" :alt="item.title">
-                                        </NuxtLink>
-                                    </div>
                                 </div>
                             </div>
-                            <ul class="photo_text">
-                                <li v-for="item in pageData[6].data2">
-                                    <article>
-                                        <em></em>
-                                        <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
-                                            {{ item.title }}
-                                        </NuxtLink>
-                                    </article>
-                                </li>
-                            </ul>
                         </div>
                     </div>
-                    <div class="zixunBottom" v-if="pageData[7].data[0] != null">
-                        <img class="left" :src="pageData[7].data[0].imgurl" :alt="pageData[7].data[0].title"
-                            v-if="pageData[7].data[0] && hoverStatus == 0">
-                        <img class="left" :src="pageData[7].data[1].imgurl" :alt="pageData[7].data[1].title"
-                            v-if="pageData[7].data[1] && hoverStatus == 1">
-                        <img class="left" :src="pageData[7].data[2].imgurl" :alt="pageData[7].data[2].title"
-                            v-if="pageData[7].data[2] && hoverStatus == 2">
-                        <img class="left" :src="pageData[7].data[3].imgurl" :alt="pageData[7].data[3].title"
-                            v-if="pageData[7].data[3] && hoverStatus == 3">
-                        <img class="left" :src="pageData[7].data[4].imgurl" :alt="pageData[7].data[4].title"
-                            v-if="pageData[7].data[4] && hoverStatus == 4">
-                        <img class="left" :src="pageData[7].data[5].imgurl" :alt="pageData[7].data[5].title"
-                            v-if="pageData[7].data[5] && hoverStatus == 5">
-                            
-                        <ul class="leftList left">
-                            <li v-for="(item, index) in pageData[7].data" @mouseenter="qhPic(index)">
-                                <h4>
-                                    <em></em>
-                                    <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
-                                        {{ item.title }}
+                    <div v-if="showTabs == 2">
+                        <div class="index_2_left_img_out">
+                            <div class="index_2_left_ul index_2_left_ul_group_5">
+                                <div class="index_2_left_ul_li dot1" v-for="item in pageData[4].data" :key="item.id">
+                                    <NuxtLink class="index_2_left_ul_li_a_name"
+                                        :href="getLinkPathDetail(item)"
+                                        :title="item.title"
+                                        :key="item.id"
+                                        :target="item.islink == 1 ? '_blank' : '_self'"
+                                    >
+                                        资讯关注
+                                    </NuxtLink>
+                                    <NuxtLink class="index_2_left_ul_li_a_text"
+                                        :href="getLinkPathDetail(item)"
+                                        :title="item.title"
+                                        :key="item.id"
+                                        :target="item.islink == 1 ? '_blank' : '_self'"
+                                    >
+                                        {{item.title}}
                                     </NuxtLink>
-                                </h4>
-                            </li>
-                        </ul>
+                                </div>
+                            </div>
+                        </div>
+                        <div class="index_2_left_ul_box">
+                            <div class="index_3_img_ul">
+                                <div class="index_3_img_li clearfix" v-for="item in pageData[4].data2" :key="item.id">
+                                    <NuxtLink class="index_3_img_li_a"
+                                        :href="getLinkPathDetail(item)"
+                                        :title="item.title"
+                                        :key="item.id"
+                                        :target="item.islink == 1 ? '_blank' : '_self'"
+                                    >
+                                        <div class="index_3_img_li_img_box">
+                                            <img :src="item.imgurl" title="item.title" alt="item.title">
+                                        </div>
+                                        <div class="index_3_img_li_in">
+                                            <div class="index_3_img_li_dot3 dot3">
+                                                {{ item.title }}
+                                            </div>
+                                            <span class="index_3_img_li_tag">资讯关注</span>
+                                        </div>
+                                    </NuxtLink>
+                                </div>
+                            </div>
+                        </div>
                     </div>
                 </div>
-                <div class="innerRight" v-if="pageData.length>=8">
-                    <div class="title">
-                        <h3>
-                            <NuxtLink :href="getLinkPath(pageData[7])" v-if="pageData[7]" :title="pageData[7].alias">
-                                {{ pageData[7].alias }}
-                            </NuxtLink>
-                            <span>
-                                <NuxtLink :href="getLinkPath(pageData[7])" v-if="pageData[7]" :title="pageData[7].title">
-                                    查看更多
-                                </NuxtLink>
-                            </span>
-                        </h3>
+
+                <div class="index_2_right">
+                    <h3 class="index_2_right_head">
+                        <NuxtLink class="index_2_right_head_a" :href="getLinkPath(pageData[5])" v-if="pageData[5]" :title="pageData[5].alias">
+                            {{ pageData[5].alias }}
+                        </NuxtLink>
+                    </h3>
+                    <div class="index_3_num_ul">
+                        <NuxtLink class="index_1_ul_a dot1"
+                            :href="getLinkPathDetail(item)"
+                            :title="item.title"
+                            v-for="item in pageData[5].data"
+                            :key="item.id"
+                            :target="item.islink == 1 ? '_blank' : '_self'"
+                        >
+                            {{ item.title }}
+                        </NuxtLink>
                     </div>
-                    <ul class="information">
-                        <li v-for="item in pageData[7].data2">
-                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
-                                <img :src="item.imgurl" :alt="item.title">
-                            </NuxtLink>
-                            <div class="text">
-                                <h5>
-                                    <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
-                                        {{ item.title }}
-                                    </NuxtLink>
-                                </h5>
-                                <p>{{ item.author }}</p>
-                            </div>
-                        </li>
-                    </ul>
                 </div>
-            </div>
-        </div>
-        <HomeTopTen :imgurl="adImg3" v-if="adImg3"></HomeTopTen>
-        <!-- 十强称号logo -->
-        <HomeTopTen :imgurl="adImg4" v-if="adImg4"></HomeTopTen>
+            </section>
+        </main>
         <!-- 页脚部分 -->
         <HomeFoot1></HomeFoot1>
     </div>
@@ -325,7 +290,6 @@
 //0.加载页面依赖 start ---------------------------------------->
 import { ref, onMounted } from 'vue';
 import { ElMessage } from 'element-plus';
-
 //格式化跳转路径 - 标题
 //首页分类栏目标题,不需要考虑外链
 const getLinkPath = (item) => {
@@ -351,8 +315,8 @@ const route = useRoute();
 //获得当前的完整路径
 const fullPath = route.path;
 //拆分,取出来中间这一段,然后提取数字部分
-const segments = fullPath.split('/'); 
-const targetSegment = segments[1]; 
+const segments = fullPath.split('/');
+const targetSegment = segments[1];
 //let routeId = 11 //排除路径错误可以打开这个
 //const numberPart = targetSegment.match(/\d+$/)?.[0]; 
 //let routeId = numberPart;
@@ -364,24 +328,17 @@ const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
         'pinyin': targetSegment,
     },
 });
-if(getRouteId.code == 200){
+if (getRouteId.code == 200) {
     routeId = getRouteId.data.category_id
-}else{
+} else {
     console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
     console.log("错误位置:通过url路径查询导航池id")
-    console.log("后端错误反馈:",getRouteId.message)
+    console.log("后端错误反馈:", getRouteId.message)
     console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
 }
 //1.获得路由id end ---------------------------------------->
 
 //2.页面交互效果 start ---------------------------------------->
-//2.1 新闻图片切换
-const hoverStatus = ref(0)
-const qhPic = function (num) {
-    console.log(num)
-    hoverStatus.value = num;
-}
-
 //2.2 选项卡切换
 let showTabs = ref(1)
 let qhtabs = function (number) {
@@ -394,7 +351,7 @@ let adImg1 = ref({})
 let adImg2 = ref({})
 let adImg3 = ref({})
 let adImg4 = ref({})
-onMounted(async ()  => {
+onMounted(async () => {
     //从客户端获取行政职能部门 加快打开速度
     const { $webUrl, $CwebUrl } = useNuxtApp();
     //广告1
@@ -408,7 +365,7 @@ onMounted(async ()  => {
     });
     const resultAd1 = await responseAd1.json();
     adImg1.value = resultAd1.data[0];
-    
+
     //广告2
     let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0002`
     const responseAd2 = await fetch(url2, {
@@ -449,41 +406,27 @@ onMounted(async ()  => {
 //2.页面交互效果 end ---------------------------------------->
 
 //3.渲染页面数据 start ---------------------------------------->
-//3.1 该页面上所有的导航池 转为动态数据
-const pageCategory = ref([]);
 //3.2 该页面上需要渲染的所有数据
 const pageData = ref([
-    // { id: 0, data: [], data2: [], title: "", cid: "" },
-    // { id: 1, data: [], title: "", cid: "" },
-    // { id: 2, data: [], title: "", cid: "" },
-    // { id: 3, data: [], title: "", cid: "" },
-    // { id: 4, data: [], title: "", cid: "" },
-    // { id: 5, data: [], title: "", cid: "" },
-    // { id: 6, data: [], title: "", cid: "" },
-    // { id: 7, data: [], title: "", cid: "" },
-    // { id: 8, data: [], title: "", cid: "" },
-    // { id: 9, data: [], title: "", cid: "" },
-    // { id: 10, data: [], title: "", cid: "" },
-    // { id: 10, data: [], title: "", cid: "" },
+    //示例:
     // {
-    //     id: 11,
-    //     title: "",
-    //     data: [],
-    //     data1: [],
-    //     data2: [],
-    //     data3: [],
-    //     data4: [],
-    //     category_id1: "",
-    //     category_id2: "",
+    //     id: 1, 
+    //     title: "", //该导航的标题
+    //     data: [], //数据1
+    //     data1: [], //数据2
+    //     data2: [], //数据3
+    //     data3: [], //数据4
+    //     data4: [], //数据5
+    //     category_id1: "",  //子导航id1
+    //     category_id2: "", 
     //     category_id3: "",
     //     category_id4: "",
-    //     title1: "",
+    //     title1: "", //子导航标题1
     //     title2: "",
     //     title3: "",
     //     title4: "",
-    //     cid: ""
+    //     cid: "" //该导航的id
     // },
-    // { id: 12, data1: [], data2: [], data3: [], cid: "" },
 ])
 
 const navSize = ref("");
@@ -498,7 +441,7 @@ try {
             'num': 8
         },
     });
-    if(navigateData.code == 200){
+    if (navigateData.code == 200) {
         // 遍历可用的导航池放到页面中
         for (let index in navigateData.data) {
             let data = {
@@ -507,15 +450,15 @@ try {
                 children_count: navigateData.data[index].children_count,
                 alias: navigateData.data[index].alias,
                 aLIas_pinyin: targetSegment + "/" + navigateData.data[index].aLIas_pinyin,
-                data:[],
-                data1:[],
-                data2:[],
-                data3:[],
-                data4:[],
-                category_id1:"",
-                category_id2:"",
-                category_id3:"",
-                category_id4:"",
+                data: [],
+                data1: [],
+                data2: [],
+                data3: [],
+                data4: [],
+                category_id1: "",
+                category_id2: "",
+                category_id3: "",
+                category_id4: "",
                 title1: "",
                 title2: "",
                 title3: "",
@@ -529,32 +472,24 @@ try {
             }
         }
         //导航池加载完毕,开始申请模块数据
-        // await getPageData1();
-        // await getPageData2();
-        // await getPageData3();
-        // await getPageData4();
-        // await getPageData5();
-        // await getPageData6();
-        // await getPageData7();
-        // await getPageData8();
         let getJson = [
-            {"parent":routeId + ",0,0","child":pageData.value[0].cid + ",5,8"},//模块1理论前沿
-            {"parent":routeId + ",0,0","child":pageData.value[1].cid + ",5,0"},//模块2典型经验
-            {"parent":routeId + ",0,0","child":pageData.value[2].cid + ",1,6"},//模块3农业天地
-            {"parent":routeId + ",0,0","child":pageData.value[3].cid + ",1,6"},//模块4美丽乡村
-            {"parent":routeId + ",0,0","child":pageData.value[4].cid + ",1,6"},//模块5农民之家
-            {"parent":routeId + ",0,0","child":pageData.value[5].cid + ",6,3"},//模块6农业天地
-            {"parent":routeId + ",0,0","child":pageData.value[6].cid + ",2,3"},//模块7农村建设
-            {"parent":routeId + ",0,0","child":pageData.value[7].cid + ",4,0"},//模块8高端资讯
+            { "parent": routeId + ",0,0", "child": pageData.value[0].cid + ",5,7" },//模块1理论前沿
+            { "parent": routeId + ",0,0", "child": pageData.value[1].cid + ",3,11" },//模块2典型经验
+            { "parent": routeId + ",0,0", "child": pageData.value[2].cid + ",4,2" },//模块3农业天地
+            { "parent": routeId + ",0,0", "child": pageData.value[3].cid + ",3,10" },//模块4美丽乡村
+            { "parent": routeId + ",0,0", "child": pageData.value[4].cid + ",3,10" },//模块5农民之家
+            { "parent": routeId + ",0,0", "child": pageData.value[5].cid + ",0,7" },//模块6农业天地
+            //{ "parent": routeId + ",0,0", "child": pageData.value[6].cid + ",2,3" },//模块7农村建设
+            //{ "parent": routeId + ",0,0", "child": pageData.value[7].cid + ",4,0" },//模块8高端资讯
         ]
 
         let jsonString = JSON.stringify(getJson);
         getPageAllData(jsonString);
 
-    }else{
+    } else {
         console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
         console.log("错误位置:分类页导航池")
-        console.log("后端错误反馈:",navigateData.message)
+        console.log("后端错误反馈:", navigateData.message)
         console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
     }
 } catch (error) {
@@ -565,198 +500,61 @@ try {
 }
 
 
-async function getPageAllData(jsonString){
-    const mkdata =  await requestDataPromise('/web/getWebsiteAllArticle', {
+async function getPageAllData(jsonString) {
+    const mkdata = await requestDataPromise('/web/getWebsiteAllArticle', {
         method: 'GET',
         query: {
-            'id':jsonString
+            'id': jsonString
         },
     });
 
-    if(mkdata.code==200){
-        console.log(778899)
-        console.log(mkdata.data)
-        //模块1理论前沿
-        if(mkdata.data[0].child.imgnum.length > 0){
-            pageData.value[0].data.push(mkdata.data[0].child.imgnum[0]);
-        }
-        if(mkdata.data[0].child.imgnum.length > 1){
-            pageData.value[0].data2.push(mkdata.data[0].child.imgnum[1]);
-        }
-        if(mkdata.data[0].child.imgnum.length > 2){
-            pageData.value[0].data2.push(mkdata.data[0].child.imgnum[2]);
-        }
-        if(mkdata.data[0].child.imgnum.length > 3){
-            pageData.value[0].data2.push(mkdata.data[0].child.imgnum[3]);
-        }
-        if(mkdata.data[0].child.imgnum.length > 4){
-            pageData.value[0].data2.push(mkdata.data[0].child.imgnum[4]);
-        }
-        pageData.value[0].data3 = mkdata.data[0].child.textnum;
-        //模块2典型经验
-        pageData.value[1].data = mkdata.data[1].child.imgnum;
-        //模块3农业天地
-        pageData.value[2].data = mkdata.data[2].child.imgnum;
-        pageData.value[2].data2 = mkdata.data[2].child.textnum;
-        //模块4美丽乡村
-        pageData.value[3].data = mkdata.data[3].child.imgnum;
-        pageData.value[3].data2 = mkdata.data[3].child.textnum;
-        //模块5农民之家
-        pageData.value[4].data = mkdata.data[4].child.imgnum;
-        pageData.value[4].data2 = mkdata.data[4].child.textnum;
-        //模块6农业天地 注意,三农资讯网跟其他行星站不一样,你不需要复制我这个
-        //因为本来二级分类页有9个模块,但是实际应用中只有8个,所以我把本来是模块7
-        //的地方和现有的模块6合并成1个了
-        if(mkdata.data[5].child.imgnum.length > 0){
-            pageData.value[5].data.push(mkdata.data[5].child.imgnum[0]);
+    if (mkdata.code == 200) {
+        //模块1
+        pageData.value[0].data = mkdata.data[0].child.imgnum;
+        pageData.value[0].data2 = mkdata.data[0].child.textnum;
+        //模块2
+        for(let index in mkdata.data[1].child.imgnum){
+            if(index==0){
+                pageData.value[1].data.push(mkdata.data[1].child.imgnum[index]);
+            }else{
+                pageData.value[1].data2.push(mkdata.data[1].child.imgnum[index]);
+            }
         }
-        pageData.value[5].data2 = mkdata.data[5].child.textnum;
-        //把模块6的内容放到模块7中一部分
-        for (let i = 1; i < mkdata.data[5].child.imgnum.length && i <= 5; i++) {
-            pageData.value[7].data.push(mkdata.data[5].child.imgnum[i]);
+        pageData.value[1].data3 = mkdata.data[1].child.textnum;
+        //模块3
+        for(let index in mkdata.data[2].child.imgnum){
+            if(index<=1){
+                pageData.value[2].data.push(mkdata.data[2].child.imgnum[index]);
+            }else{
+                pageData.value[2].data2.push(mkdata.data[2].child.imgnum[index]);
+            }
         }
-        //模块7农村建设
-        pageData.value[6].data = mkdata.data[6].child.imgnum;
-        pageData.value[6].data2 = mkdata.data[6].child.textnum;
-        //模块8高端资讯
-        pageData.value[7].data2 = mkdata.data[7].child.imgnum;
+        pageData.value[2].data3 = mkdata.data[2].child.textnum;
+        //模块4
+        pageData.value[3].data = mkdata.data[3].child.textnum;
+        pageData.value[3].data2 = mkdata.data[3].child.imgnum;
+        //模块5
+        pageData.value[4].data = mkdata.data[4].child.textnum;
+        pageData.value[4].data2 = mkdata.data[4].child.imgnum;
+        //模块6
+        pageData.value[5].data = mkdata.data[5].child.textnum;
 
-    }else{
+    } else {
         ElMessage.error(mkdata.message)
     }
 }
-
-
-//获得模块数据
-// async function getPageData(catid,img_num,text_num,modulesNum,childNavNum,childImgNum,childTextNum){
-//     const mkdata =  await requestDataPromise('/web/getWebsiteCatidArticle', {
-//         method: 'GET',
-//         query: {
-//             'catid': catid, //catid
-//             'img_num': img_num, //图片数量
-//             'text_num': text_num, //文字数量
-//             'child_catnum':childNavNum,//子级栏目菜单数量
-//             'child_imgnum':childImgNum,//子栏目展示图片新闻数量
-//             'child_textnum':childTextNum//子栏目展示文字新闻数量
-//         },
-//     });
-//     if(modulesNum == 1){
-//         if(mkdata.data.img.length > 0){
-//             pageData.value[0].data.push(mkdata.data.img[0]);
-//         }
-//         if(mkdata.data.img.length > 1){
-//             pageData.value[0].data2.push(mkdata.data.img[1]);
-//         }
-//         if(mkdata.data.img.length > 2){
-//             pageData.value[0].data2.push(mkdata.data.img[2]);
-//         }
-//         if(mkdata.data.img.length > 3){
-//             pageData.value[0].data2.push(mkdata.data.img[3]);
-//         }
-//         if(mkdata.data.img.length > 4){
-//             pageData.value[0].data2.push(mkdata.data.img[4]);
-//         }
-//         // pageData.value[0].data.push(mkdata.data.img[0]);
-//         // pageData.value[0].data2.push(mkdata.data.img[1]);
-//         // pageData.value[0].data2.push(mkdata.data.img[2]);
-//         // pageData.value[0].data2.push(mkdata.data.img[3]);
-//         // pageData.value[0].data2.push(mkdata.data.img[4]);
-//         pageData.value[0].data3 = mkdata.data.text;
-//     }
-//     if(modulesNum == 2){
-//         pageData.value[1].data = mkdata.data.img;
-//     }
-//     if(modulesNum == 3){
-//         pageData.value[2].data = mkdata.data.img;
-//         pageData.value[2].data2 = mkdata.data.text;
-//     }
-//     if(modulesNum == 4){
-//         pageData.value[3].data = mkdata.data.img;
-//         pageData.value[3].data2 = mkdata.data.text;
-//     }
-//     if(modulesNum == 5){
-//         pageData.value[4].data = mkdata.data.img;
-//         pageData.value[4].data2 = mkdata.data.text;
-//     }
-//     if(modulesNum == 6){
-//         if(mkdata.data.img.length > 0){
-//             pageData.value[5].data.push(mkdata.data.img[0]);
-//         }
-//         pageData.value[5].data2 = mkdata.data.text;
-//         if(mkdata.data.img.length > 1){
-//             pageData.value[7].data.push(mkdata.data.img[1]);
-//         }
-//         if(mkdata.data.img.length > 2){
-//             pageData.value[7].data.push(mkdata.data.img[2]);
-//         }
-//         if(mkdata.data.img.length > 3){
-//             pageData.value[7].data.push(mkdata.data.img[3]);
-//         }
-//         if(mkdata.data.img.length > 4){
-//             pageData.value[7].data.push(mkdata.data.img[4]);
-//         }
-//         if(mkdata.data.img.length > 5){
-//             pageData.value[7].data.push(mkdata.data.img[5]);
-//         }
-//     }
-//     if(modulesNum == 7){
-//         pageData.value[6].data = mkdata.data.img;
-//         pageData.value[6].data2 = mkdata.data.text;
-//     }
-//     //模块8 向后移动一个位置
-//     if(modulesNum == 8){
-//         pageData.value[7].data2 = mkdata.data.img;
-//     }
-// }
-//新农村
-//模块1 理论前沿
-// async function getPageData1() {
-//     await getPageData(pageData.value[0].cid,5,8,1,0,0,0);
-// }
-// //模块2 典型经验
-// async function getPageData2() {
-//     await getPageData(pageData.value[1].cid,5,0,2,0,0,0);
-// }
-// //模块3 农业天地
-// async function getPageData3() {
-//     await getPageData(pageData.value[2].cid,1,6,3,0,0,0);
-// }
-// //模块4 美丽乡村
-// async function getPageData4() {
-//     await getPageData(pageData.value[3].cid,1,6,4,0,0,0);
-// }
-// //模块5 农民之家
-// async function getPageData5() {
-//     await getPageData(pageData.value[4].cid,1,6,5,0,0,0);
-// }
-// //模块6 农业天地
-// async function getPageData6() {
-//     await getPageData(pageData.value[5].cid,6,3,6,0,0,0);
-// }
-// //模块7 农村建设
-// async function getPageData7() {
-//     await getPageData(pageData.value[6].cid,2,3,7,0,0,0);
-// }
-// //模块8 高端资讯
-// async function getPageData8() {
-//     await getPageData(pageData.value[7].cid,4,0,8,0,0,0);
-// }
-// 注意,为了保持模块的数量,当前固定为8个
-// 所以这里的农业天地,合并了原来是下面的7号模块
-// 而原本是7号模块的地方现在变成了8号模块
-
 //3.渲染页面数据 end ---------------------------------------->
 
 //4.设置seo信息 start---------------------------------------->
 //4.1 设置seo信息
-const setData =  await requestDataPromise('/web/getWebsiteCategoryHead', {
+const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
     method: 'GET',
     query: {
         'catid': routeId
     },
 });
 
-if(setData.code == 200){
+if (setData.code == 200) {
     let seoTitle = setData.data.seo_title;
     let seoDescription = setData.data.seo_description;
     let seoKeywords = setData.data.seo_keywords;
@@ -766,19 +564,19 @@ if(setData.code == 200){
     useSeoMeta({
         title: seoTitle + "_" + seoSuffix,
         meta: [
-            { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix , tagPriority: 10 },
-            { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix , tagPriority: 10 }
+            { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
+            { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 }
         ]
     });
-}else{
+} else {
     console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
     console.log("错误位置:设置分类页面SEO数据")
-    console.log("后端错误反馈:",setData.message)
+    console.log("后端错误反馈:", setData.message)
     console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
 }
 //4.设置seo信息 end---------------------------------------->
 </script>
 
 <style lang="less" scoped>
-    @import '@/assets/css/class.less';
+@import '@/assets/css/class.less';
 </style>

File diff ditekan karena terlalu besar
+ 227 - 538
pages/index.vue


Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini