Browse Source

修改bug

Jing 5 days ago
parent
commit
46f74b108f
41 changed files with 987 additions and 1832 deletions
  1. 1 1
      .env
  2. 0 979
      .nuxt/dev/index.mjs
  3. 0 0
      .nuxt/dev/index.mjs.map
  4. 0 1
      .nuxt/imports.d.ts
  5. 1 1
      .nuxt/manifest/latest.json
  6. 1 0
      .nuxt/manifest/meta/0e6ae73f-36ff-4287-a28f-9777345921a2.json
  7. 0 1
      .nuxt/manifest/meta/b0733f3d-4397-4e96-8bb0-3b2a48faeeab.json
  8. 0 1
      .nuxt/manifest/meta/dev.json
  9. 0 17
      .nuxt/nitro.json
  10. 0 9
      .nuxt/nuxt.json
  11. 1 1
      .nuxt/tsconfig.json
  12. 0 1
      .nuxt/types/build.d.ts
  13. 0 2
      .nuxt/types/imports.d.ts
  14. 2 7
      .nuxt/types/plugins.d.ts
  15. 1 1
      assets/css/ad/adversing.less
  16. 83 7
      assets/css/class.less
  17. 65 21
      assets/css/index.less
  18. 2 2
      assets/css/public/footer.less
  19. 32 7
      assets/css/public/head.less
  20. 1 1
      assets/css/public/nav.less
  21. 5 1
      assets/css/search.less
  22. 21 23
      components/detail/HotNews.vue
  23. 5 3
      components/detail/HotNews2.vue
  24. 8 6
      components/home/BigSwiper.vue
  25. 44 24
      components/home/ListSecondaryHeading.vue
  26. 11 11
      components/home/Surveyvote.vue
  27. 2 2
      components/home/kefu.vue
  28. 4 3
      components/home/pageHead.vue
  29. 46 16
      components/home/pageNavigation.vue
  30. 3 3
      pages/[dir]/[dir]/[id].vue
  31. 2 2
      pages/[dir]/[dir]/list-[id].vue
  32. 20 24
      pages/[dir]/[id].vue
  33. 360 231
      pages/[dir]/index.html.vue
  34. 2 2
      pages/[dir]/list-[id].vue
  35. 7 4
      pages/about/[dir]/[dir]/[id].vue
  36. 5 4
      pages/about/[dir]/index.html.vue
  37. 3 3
      pages/about/[dir]/list-[id].vue
  38. 234 395
      pages/index.vue
  39. 3 3
      pages/search/[id].vue
  40. 12 12
      plugins/globals.ts
  41. BIN
      public/favicon.ico

+ 1 - 1
.env

@@ -1 +1 @@
-PORT=3000
+PORT=3005

File diff suppressed because it is too large
+ 0 - 979
.nuxt/dev/index.mjs


File diff suppressed because it is too large
+ 0 - 0
.nuxt/dev/index.mjs.map


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

@@ -31,5 +31,4 @@ export { injectHead, useHead, useSeoMeta, useHeadSafe, useServerHead, useServerS
 export { requestData, requestDataPromise, requestDataWebUrl, requestHome } from '../composables/getData';
 export { getTime, getTitleLength, getLinkPath, getLinkPathDetail, getRoutePath } from '../composables/publicFunction';
 export { seoSetup } from '../composables/useSeo';
-export { useNuxtDevTools } from '../node_modules/@nuxt/devtools/dist/runtime/use-nuxt-devtools';
 export { definePageMeta } from '../node_modules/nuxt/dist/pages/runtime/composables';

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

@@ -1 +1 @@
-{"id":"dev","timestamp":1745194659456}
+{"id":"0e6ae73f-36ff-4287-a28f-9777345921a2","timestamp":1745397204862}

+ 1 - 0
.nuxt/manifest/meta/0e6ae73f-36ff-4287-a28f-9777345921a2.json

@@ -0,0 +1 @@
+{"id":"0e6ae73f-36ff-4287-a28f-9777345921a2","timestamp":1745397204862,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

+ 0 - 1
.nuxt/manifest/meta/b0733f3d-4397-4e96-8bb0-3b2a48faeeab.json

@@ -1 +0,0 @@
-{}

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

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

+ 0 - 17
.nuxt/nitro.json

@@ -1,17 +0,0 @@
-{
-  "date": "2025-04-21T00:17:48.559Z",
-  "preset": "nitro-dev",
-  "framework": {
-    "name": "nuxt",
-    "version": "3.15.2"
-  },
-  "versions": {
-    "nitro": "2.10.4"
-  },
-  "dev": {
-    "pid": 9756,
-    "workerAddress": {
-      "socketPath": "\\\\.\\pipe\\nitro\\worker-9756-1.sock"
-    }
-  }
-}

+ 0 - 9
.nuxt/nuxt.json

@@ -1,9 +0,0 @@
-{
-  "_hash": "dke87gtAt9",
-  "project": {
-    "rootDir": "D:/MyProject/gogs/nongfuchanpingongxiao"
-  },
-  "versions": {
-    "nuxt": "3.15.2"
-  }
-}

+ 1 - 1
.nuxt/tsconfig.json

@@ -102,7 +102,7 @@
         "./imports"
       ],
       "#app-manifest": [
-        "./manifest/meta/dev"
+        "./manifest/meta/0e6ae73f-36ff-4287-a28f-9777345921a2.json"
       ],
       "#components": [
         "./components"

+ 0 - 1
.nuxt/types/build.d.ts

@@ -11,7 +11,6 @@ declare module "#build/paths.mjs";
 declare module "#build/root-component.mjs";
 declare module "#build/plugins.server.mjs";
 declare module "#build/test-component-wrapper.mjs";
-declare module "#build/devtools/settings.mjs";
 declare module "#build/routes.mjs";
 declare module "#build/pages.mjs";
 declare module "#build/router.options.mjs";

+ 0 - 2
.nuxt/types/imports.d.ts

@@ -122,7 +122,6 @@ declare global {
   const useModel: typeof import('vue')['useModel']
   const useNuxtApp: typeof import('../../node_modules/nuxt/dist/app/nuxt')['useNuxtApp']
   const useNuxtData: typeof import('../../node_modules/nuxt/dist/app/composables/asyncData')['useNuxtData']
-  const useNuxtDevTools: typeof import('../../node_modules/@nuxt/devtools/dist/runtime/use-nuxt-devtools')['useNuxtDevTools']
   const usePreviewMode: typeof import('../../node_modules/nuxt/dist/app/composables/preview')['usePreviewMode']
   const useRequestEvent: typeof import('../../node_modules/nuxt/dist/app/composables/ssr')['useRequestEvent']
   const useRequestFetch: typeof import('../../node_modules/nuxt/dist/app/composables/ssr')['useRequestFetch']
@@ -310,7 +309,6 @@ declare module 'vue' {
     readonly useModel: UnwrapRef<typeof import('vue')['useModel']>
     readonly useNuxtApp: UnwrapRef<typeof import('../../node_modules/nuxt/dist/app/nuxt')['useNuxtApp']>
     readonly useNuxtData: UnwrapRef<typeof import('../../node_modules/nuxt/dist/app/composables/asyncData')['useNuxtData']>
-    readonly useNuxtDevTools: UnwrapRef<typeof import('../../node_modules/@nuxt/devtools/dist/runtime/use-nuxt-devtools')['useNuxtDevTools']>
     readonly usePreviewMode: UnwrapRef<typeof import('../../node_modules/nuxt/dist/app/composables/preview')['usePreviewMode']>
     readonly useRequestEvent: UnwrapRef<typeof import('../../node_modules/nuxt/dist/app/composables/ssr')['useRequestEvent']>
     readonly useRequestFetch: UnwrapRef<typeof import('../../node_modules/nuxt/dist/app/composables/ssr')['useRequestFetch']>

+ 2 - 7
.nuxt/types/plugins.d.ts

@@ -9,17 +9,12 @@ type NuxtAppInjections =
   InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/revive-payload.client.js")> &
   InjectionType<typeof import("../../node_modules/nuxt/dist/head/runtime/plugins/unhead.js")> &
   InjectionType<typeof import("../../node_modules/nuxt/dist/pages/runtime/plugins/router.js")> &
-  InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/browser-devtools-timing.client.js")> &
+  InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/payload.client.js")> &
   InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/navigation-repaint.client.js")> &
   InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/check-outdated-build.client.js")> &
   InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/revive-payload.server.js")> &
   InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/chunk-reload.client.js")> &
   InjectionType<typeof import("../../node_modules/nuxt/dist/pages/runtime/plugins/prefetch.client.js")> &
-  InjectionType<typeof import("../../node_modules/nuxt/dist/pages/runtime/plugins/check-if-page-unused.js")> &
-  InjectionType<typeof import("../../node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.server.js")> &
-  InjectionType<typeof import("../../node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.client.js")> &
-  InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/dev-server-logs.js")> &
-  InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/check-if-layout-used.js")> &
   InjectionType<typeof import("../../plugins/element-plus")> &
   InjectionType<typeof import("../../plugins/request")> &
   InjectionType<typeof import("../../plugins/globals")> &
@@ -29,7 +24,7 @@ declare module '#app' {
   interface NuxtApp extends NuxtAppInjections { }
 
   interface NuxtAppLiterals {
-    pluginName: 'nuxt:revive-payload:client' | 'nuxt:head' | 'nuxt:router' | 'nuxt:browser-devtools-timing' | 'nuxt:revive-payload:server' | 'nuxt:chunk-reload' | 'nuxt:global-components' | 'nuxt:prefetch' | 'nuxt:checkIfPageUnused' | 'nuxt:checkIfLayoutUsed'
+    pluginName: 'nuxt:revive-payload:client' | 'nuxt:head' | 'nuxt:router' | 'nuxt:payload' | 'nuxt:revive-payload:server' | 'nuxt:chunk-reload' | 'nuxt:global-components' | 'nuxt:prefetch'
   }
 }
 

+ 1 - 1
assets/css/ad/adversing.less

@@ -2,7 +2,7 @@
 .adversing {
   width: 1200px;
   height: 90px;
-  margin:0 auto;
+  margin:20px auto;
   margin-top: 20px;
   margin-bottom: 20px;
   overflow: hidden;

+ 83 - 7
assets/css/class.less

@@ -102,7 +102,7 @@ section {
 }
 
 .index_main {
-    margin: 0 auto ;
+    margin: 0 auto;
 }
 
 .slow_6 {
@@ -148,7 +148,47 @@ section {
     width: 350px;
 }
 
+.channel_nav {
 
+    border-bottom: solid 3px #004564;
+    margin-top: 30px;
+    display: flex;
+
+    .channel_nav_head_name {
+        margin: auto 2px 0px 0px;
+        height: 44px;
+        line-height: 44px;
+        font-size: 30px;
+        color: #fff;
+        font-weight: bold;
+        background: url(@/public/img/27.png) no-repeat right 0px;
+        background-size: 100% 102%;
+        padding: 0px 33px;
+        box-sizing: border-box;
+    }
+
+    .channel_nav_a_box {
+        flex: 1;
+        margin-top: auto;
+    }
+
+    .channel_nav_a {
+        float: left;
+        height: 24px;
+        line-height: 24px;
+        color: #333;
+        font-size: 18px;
+        margin: 3px 10px 7px;
+        font-weight: bold;
+        // width: 88px;
+        box-sizing: border-box;
+        text-align: center;
+    }
+
+    .channel_nav_a:nth-of-type(10n) {
+        margin-right: 0px;
+    }
+}
 
 .channel_name_ul {
     margin-top: 0px;
@@ -177,13 +217,13 @@ section {
         width: 100%;
     }
 
-    .channel_name_ul_li:nth-of-type(5n-4) .channel_name_ul_li_dot1 {
+    .channel_name_ul_li:nth-of-type(1) .channel_name_ul_li_dot1 {
         font-weight: bold;
         font-size: 20px;
         color: #004564;
     }
 
-    .channel_name_ul_li:nth-of-type(5n-4) .channel_name_ul_li_tag {
+    .channel_name_ul_li:nth-of-type(1) .channel_name_ul_li_tag {
         display: none;
     }
 
@@ -198,7 +238,7 @@ section {
 }
 
 .channel_1 {
-    margin: 40px auto 0px;
+    margin: 40px auto 15px;
 }
 
 .channel_banner_1 {
@@ -239,7 +279,7 @@ section {
     .channel_head_a {
         height: 30px;
         line-height: 30px;
-        color: #333;
+        color: #004564;
         font-size: 22px;
         font-weight: bold;
     }
@@ -265,6 +305,8 @@ section {
 }
 
 .channel_big_ul {
+    height: 310px;
+
     .channel_big_li {
         background: #F9FAFB;
         box-sizing: border-box;
@@ -275,8 +317,33 @@ section {
         width: 200px;
         height: 145px;
         float: left;
+        position: relative;
+
+        .channel_big_li_content {
+            width: 200px;
+            height: 40px;
+            line-height: 40px;
+            white-space: nowrap;
+            overflow: hidden;
+            text-overflow: ellipsis;
+            padding: 0 10px;
+            box-sizing: border-box;
+            font-size: 16px;
+            color: #fff;
+            position: absolute;
+            left: 0px;
+            bottom: 0px;
+            background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 6%, rgba(0, 0, 0, 0) 100%);
+        }
+    }
+
+    .channel_big_li_img_box:hover {
+        .channel_big_li_content {
+            color: #70c8f1;
+        }
     }
 
+
     .channel_big_li_img {
         display: block;
         width: 200px;
@@ -337,6 +404,9 @@ section {
 }
 
 .channel_img_ul_2 {
+    height: 230px;
+    margin-top: 20px;
+
     .channel_img_ul_2_li {
         height: 230px;
         margin-bottom: 18px;
@@ -495,6 +565,8 @@ section {
 }
 
 .channel_img_ul_4 {
+    height: 335px;
+
     .channel_img_ul_4_li {
         background: #F9FAFB;
         width: 350px;
@@ -583,7 +655,9 @@ section {
     }
 }
 
-.channel_img_ul_5 {}
+.channel_img_ul_5 {
+    height: 335px;
+}
 
 .channel_img_ul_5_li {
     .channel_img_ul_5_li_a {}
@@ -612,7 +686,9 @@ section {
     margin: 15px auto 0px;
 }
 
-.channel_img_ul_6 {}
+.channel_img_ul_6 {
+    height: 485px;
+}
 
 .channel_img_ul_6_li {
     margin-bottom: 25px;

+ 65 - 21
assets/css/index.less

@@ -125,8 +125,6 @@ section {
     text-align: center;
 }
 
-.index_1_h3 {}
-
 .index_1_h3_a {
     background: url(@/public/img/2.png) no-repeat left 0px;
     padding-left: 60px;
@@ -201,6 +199,7 @@ section {
 
 .index_2 {
     margin: 30px auto 0px;
+    height: 430px;
 }
 
 .index_1_ul {
@@ -402,7 +401,6 @@ section {
     }
 }
 
-.index_img_ul_2 {}
 
 .index_img_ul_2_li {
     background: #F9FAFB;
@@ -483,8 +481,6 @@ section {
         width: 450px;
     }
 
-    .index_img_ul_3_li_a {}
-
     .index_img_ul_3_li_img {
         display: block;
         height: 267px;
@@ -650,8 +646,6 @@ section {
     }
 }
 
-.index_4_ol_in {}
-
 .index_4_ol_in_li_a {
     float: left;
     width: 91px;
@@ -716,7 +710,7 @@ section {
 }
 
 .index_5 {
-    margin: 30px auto 0px;
+    margin: 30px auto 15px;
 }
 
 .index_img_ul_4_ul {
@@ -727,7 +721,7 @@ section {
         position: relative;
     }
 
-    .index_img_ul_4_li_a {}
+    // .index_img_ul_4_li_a {}
 
     .index_img_ul_4_li_img {
         display: block;
@@ -767,8 +761,6 @@ section {
         float: right;
     }
 
-    .index_img_even_1_li_a {}
-
     .index_img_even_1_li_img {
         width: 165px;
         height: 96px;
@@ -804,8 +796,6 @@ section {
 .index_2_img_li:nth-of-type(even) {
     float: right;
 
-    .index_2_img_li_a {}
-
     .index_2_img_li_img {
         width: 165px;
         height: 96px;
@@ -903,8 +893,6 @@ section {
     background: #004564;
 }
 
-.index_5_right_img_ul {}
-
 .index_5_right_img_li {
     display: flex;
     margin-bottom: 17px;
@@ -916,8 +904,6 @@ section {
         float: left;
     }
 
-    .index_5_right_img_li_a {}
-
     .index_5_right_img_li_a_img {
         display: block;
         width: 130px;
@@ -1007,8 +993,6 @@ section {
         position: relative;
     }
 
-    .index_img_ul_5_li_a {}
-
     .index_img_ul_5_li_img {
         display: block;
         width: 350px;
@@ -1103,7 +1087,63 @@ section {
 }
 
 .index_7 {
-    margin: 13px auto 0px;
+    margin: 13px auto 30px;
+    height: 750px;
+    position: relative;
+
+    .index_7_btntext {
+        width: 350px;
+        margin-top: 8px;
+
+        .index_7_textList {
+            width: 350px;
+            font-size: 18px;
+            margin-bottom: 15px;
+
+            em {
+                display: inline-block;
+                width: 6px;
+                height: 6px;
+                border-radius: 50%;
+                background-color: #ddd;
+                margin-right: 10px;
+                vertical-align: middle;
+            }
+
+            a {
+                width: 350px;
+                color: #333;
+            }
+        }
+
+        .index_7_textList:nth-child(4n+1) {
+            font-weight: bold;
+        }
+
+        .index_7_textList:hover {
+            color: #004564;
+
+            em {
+                background-color: #004564;
+            }
+
+            a {
+                color: #004564;
+            }
+        }
+    }
+
+    .lastAd {
+        float: right;
+        width: 450px;
+        height: 290px;
+        position: absolute;
+        right: 0px;
+        bottom: 0px;
+        z-index: 11;
+        // position: relative;
+        // padding-top: 5px;
+    }
 }
 
 .index_ul_7_a {
@@ -1111,7 +1151,7 @@ section {
     line-height: 24px;
     color: #333;
     font-size: 18px;
-    margin-bottom: 17px;
+    margin-bottom: 16px;
     box-sizing: border-box;
     text-indent: 16px;
     position: relative;
@@ -1121,6 +1161,10 @@ section {
     }
 }
 
+.index_ul_7_a:last-child {
+    margin-bottom: 10px;
+}
+
 .index_ul_7_a::after {
     content: '';
     display: block;

+ 2 - 2
assets/css/public/footer.less

@@ -93,7 +93,7 @@
 .call_us_box {
     display: block;
     width: 100%;
-    margin: 40px auto 0;
+    margin: 10px auto 0;
     overflow: hidden;
     text-align: center;
     font-size: 0px;
@@ -181,7 +181,7 @@
 
 .foot_logo_out>* {
     position: absolute;
-    top: -177px;
+    top: -145px;
 }
 
 .foot_logo_out>*:nth-of-type(1) {

+ 32 - 7
assets/css/public/head.less

@@ -1,3 +1,27 @@
+.userInfo11 {
+    width: 100px;
+    height: 80px;
+    background-color: #fff;
+    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
+    border-radius: 3px;
+    position: absolute;
+    top: 40px;
+    right: 35px;
+    font-size: 14px;
+    z-index: 999;
+
+    li {
+        height: 40px;
+        line-height: 40px;
+        color: #333333;
+        padding-left: 10px;
+    }
+
+    >li:hover {
+        color: #028E21;
+    }
+}
+
 .tips {
     padding: 20px 0;
     text-align: center;
@@ -29,7 +53,7 @@
 /* 页面头部 */
 header {
     width: 100%;
-    height: 201px;
+    // height: 201px;
     font-size: 12px;
     font-family: PingFang SC-Regular;
     color: #666666;
@@ -47,6 +71,7 @@ header {
 }
 
 .headerNav .right {
+    position: relative;
     display: flex;
     margin-right: 10px;
 
@@ -114,7 +139,7 @@ header {
 /* // 头部logo */
 .headerLogo {
     width: 100%;
-    height: 174px;
+    height: 145px;
 
     .inner {
         display: flex;
@@ -122,19 +147,19 @@ header {
         width: 1200px;
         margin: 0 auto;
         position: relative;
-        height: 174px;
+        height: 145px;
 
         .titlead {
             position: absolute;
-            bottom: 30px;
+            bottom: 15px;
             right: 0px;
         }
     }
 
     .inner>img {
-        width: 297px;
-        height: 114px;
-        margin-top: 30px;
+        width: 305px;
+        height: 100px;
+        margin-top: 25px;
         cursor: pointer;
     }
 

+ 1 - 1
assets/css/public/nav.less

@@ -117,7 +117,7 @@
             }
 
             .navList {
-                padding: 0 27px;
+                padding: 0 25px;
             }
             li:first-child {
                 font-weight: bold;

+ 5 - 1
assets/css/search.less

@@ -112,7 +112,8 @@
 
 
                     >a {
-                        width: 360px;
+                        display: inline-block;
+                        width: 800px;
                         height: 26px;
                         font-family: Microsoft YaHei, Microsoft YaHei;
                         font-weight: 400;
@@ -122,6 +123,9 @@
                         text-align: left;
                         font-style: normal;
                         text-transform: none;
+                        white-space: nowrap;
+                        overflow: hidden;
+                        text-overflow: ellipsis;
                     }
 
                     .time {

+ 21 - 23
components/detail/HotNews.vue

@@ -5,12 +5,8 @@
         </h1>
         <div class="hotList_photo_text">
             <div class="hotList_photo_text1" v-for="(item, index) in hotNewsListdata1" :key="index">
-                <NuxtLink
-                    :href="getLinkPathDetail(item)"
-                    :title="item.title"
-                    :key="item.id"
-                    :target="item.islink == 1 ? '_blank' : '_self'"
-                >
+                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title" :key="item.id"
+                    :target="item.islink == 1 ? '_blank' : '_self'">
                     <img :src="item.imgurl" :alt="item.title">
                     <span class="hotlist_text">{{ item.title }}</span>
                 </NuxtLink>
@@ -19,12 +15,8 @@
         <ul class="message">
             <li class="messageList" v-for="(item, index) in hotNewsListdata2" :key="index">
                 <em></em>
-                <NuxtLink
-                    :href="getLinkPathDetail(item)"
-                    :title="item.title"
-                    :key="item.id"
-                    :target="item.islink == 1 ? '_blank' : '_self'"
-                >
+                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title" :key="item.id"
+                    :target="item.islink == 1 ? '_blank' : '_self'">
                     {{ item.title }}
                 </NuxtLink>
             </li>
@@ -47,18 +39,20 @@ const hotNewsListdata1 = ref([])
 const hotNewsListdata2 = ref([])
 
 async function getPageData() {
-    const mkdata =  await requestDataPromise('/web/getWebsiteArticlett', {
+    const mkdata = await requestDataPromise('/web/getWebsiteArticlett', {
         method: 'GET',
         query: {
-            'pageSize':6,
+            'imgnum':2,
+            'textnum':4,
             'level': 4,
-            'id': 0,
+            'placeid': 0,
+            'id': '',
         },
     });
-    if(mkdata.code == 200){
-        hotNewsListdata1.value = mkdata.data.slice(0, 2);
-        hotNewsListdata2.value = mkdata.data.slice(2, 6);
-    }else{
+    if (mkdata.code == 200) {
+        hotNewsListdata1.value = mkdata.data.img;
+        hotNewsListdata2.value = mkdata.data.text;
+    } else {
         console.log("错误位置:获取最新资讯")
     }
 }
@@ -66,6 +60,9 @@ getPageData();
 </script>
 
 <style lang="less" scoped>
+.hotList{
+    height: 405px;
+}
 .title {
     width: 100px;
     font-family: Microsoft YaHei, Microsoft YaHei;
@@ -79,6 +76,7 @@ getPageData();
 
 .hotList_photo_text {
     width: 270px;
+    // height: 200px;
 
     .hotList_photo_text1 {
         display: flex;
@@ -93,7 +91,7 @@ getPageData();
         .hotlist_text {
             float: left;
             width: 126px;
-            height: 72px;
+            height: 76px;
             display: -webkit-box;
             -webkit-box-orient: vertical;
             -webkit-line-clamp: 3;
@@ -103,7 +101,6 @@ getPageData();
             font-weight: 400;
             font-size: 18px;
             color: #333333;
-            padding-top: 3px;
         }
     }
 
@@ -140,11 +137,12 @@ getPageData();
         a {
             color: #333333;
         }
-        em{
+
+        em {
             display: inline-block;
             width: 8px;
             height: 8px;
-            background-color: #D9D9D9 ;
+            background-color: #D9D9D9;
             border-radius: 50%;
             vertical-align: middle;
             margin-right: 10px;

+ 5 - 3
components/detail/HotNews2.vue

@@ -33,14 +33,15 @@ async function getPageData() {
     const mkdata = await requestDataPromise('/web/getWebsiteArticlett', {
         method: 'GET',
         query: {
-            'pageSize': 8,
+            'imgnum':0,
+            'textnum':8,
             'level': 5,
             'placeid': 0,
-            'id': 0
+            'id': '',
         },
     });
     if (mkdata.code == 200) {
-        hotNewsList.value = mkdata.data;
+        hotNewsList.value = mkdata.data.text;
     } else {
         console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
         console.log("错误位置:获取热点精选")
@@ -56,6 +57,7 @@ getPageData();
 .hotNews {
     width: 270px;
     margin-top: 20px;
+    height: 550px;
 
     //标题
     .hotNews_title {

+ 8 - 6
components/home/BigSwiper.vue

@@ -1,12 +1,11 @@
 <template>
-    <div class="swiper">
+    <div class="swiper" v-if="imagelist">
         <!-- 首页大轮播图 -->
         <el-carousel :interval="3333" height="405px" indicator-position="none" arrow="always"  @change="change_fun">
             <el-carousel-item v-for="(item, index) in imagelist" :key="item">
-                <NuxtLink :to="`/newsDetail/${item.id}`" target="_blank">
+                <NuxtLink :href="getLinkPathDetail(item)">
                     <img :src="item.imgurl">
                     <span class="swiper_dot1 dot1">
-                        {{ index + 1 }}
                         {{ item.title }}
                     </span>
                 </NuxtLink>
@@ -36,14 +35,17 @@ async function getModelData1() {
     const mkdata =  await requestDataPromise('/web/getWebsiteArticlett', {
         method: 'GET',
         query: {
-            'pageSize': 5,
+            'imgnum':4,
+            'textnum':0,
             'level': 2,
             'placeid': 0,
-            'id':''
+            'id': '',
         },
     });
+    console.log("获取首页轮播图",mkdata);
+    
     if(mkdata.code == 200){
-        imagelist.value = mkdata.data;
+        imagelist.value = mkdata.data.img;
     }else{
         console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
         console.log("错误位置:获取首页轮播图")

+ 44 - 24
components/home/ListSecondaryHeading.vue

@@ -1,9 +1,10 @@
 <template>
-    <nav class="channel_nav back100">
-        <a class="channel_nav_a" href="javascript:(void)" title="name">{{ name }}</a>
-        <span v-for="(item,index) in nav">
-            <NuxtLink :to="{ path: `/${targetRoute}/${item.aLIas_pinyin}/list-1.html`}" class="channel_nav_a" v-if="index<=7">{{ item.alias }}</NuxtLink>
-        </span>
+    <nav class="channel_nav">
+        <a class="channel_nav_head_name" href="javascript:(void)" title="name">{{ name }}</a>
+        <div class="channel_nav_a_box">
+            <NuxtLink v-for="(item, index) in nav" :to="{ path: `/${targetRoute}/${item.aLIas_pinyin}/list-1.html` }"
+                class="channel_nav_a" >{{ item.alias }}</NuxtLink>
+        </div>
     </nav>
 </template>
 
@@ -11,47 +12,66 @@
 //1.设置组件数据 start---------------------------------------->
 //子导航
 const props = defineProps({
-    name:String,
-    nav:Array
+    name: String,
+    nav: Array
 });
 
 //获取当前url路径
 const route = useRoute();
 //获得当前的完整路径
 const fullPath = route.path;
-const segments = fullPath.split('/'); 
-const targetRoute = segments[1]; 
+const segments = fullPath.split('/');
+const targetRoute = segments[1];
 //1.设置组件数据 end---------------------------------------->
 
 </script>
 
 <style lang="less" scoped>
 .channel_nav {
-    height: 60px;
     width: 1200px;
     margin: 0 auto;
-    background-image: url(@/public/img/5.png);
-    margin-top: 40px;
+    border-bottom: solid 3px #004564;
+    margin-top: 30px;
+    display: flex;
+    overflow: hidden;
+
+    .channel_nav_head_name {
+        margin: auto 2px 0px 0px;
+        height: 44px;
+        line-height: 44px;
+        font-size: 30px;
+        color: #fff;
+        font-weight: bold;
+        background: url(@/public/img/27.png) no-repeat right 0px;
+        background-size: 100% 102%;
+        padding: 0px 33px;
+        box-sizing: border-box;
+    }
+
+    .channel_nav_a_box {
+        flex: 1;
+        margin-top: auto;
+        overflow: hidden;
+    }
 
     .channel_nav_a {
         float: left;
-        height: 60px;
-        line-height: 60px;
-        color: #255590;
-        font-size: 20px;
-        margin: 0px 19px;
+        height: 24px;
+        line-height: 24px;
+        color: #333;
+        font-size: 18px;
+        margin: 3px 10px 7px;
         font-weight: bold;
+        // width: 88px;
+        box-sizing: border-box;
+        text-align: center;
     }
 
-    >.channel_nav_a:nth-of-type(1) {
-        color: #fff;
-        width: 230px;
-        padding-left: 50px;
-        box-sizing: border-box;
-        margin-left:0;
-        margin-right: 0;
+    .channel_nav_a:nth-of-type(10n) {
+        margin-right: 0px;
     }
 }
+
 .back100 {
     background-size: 100% 100%;
     background-repeat: no-repeat;

+ 11 - 11
components/home/Surveyvote.vue

@@ -417,7 +417,7 @@ async function addWebsiteSurvey(){
         }
         .radio {
             /deep/.el-radio {
-                --el-radio-input-border-color-hover: #27881a;
+                --el-radio-input-border-color-hover: #255590;
             }
             /deep/.el-radio-group {
                 align-items: center;
@@ -446,17 +446,17 @@ async function addWebsiteSurvey(){
                 width: 16px;
             }
             /deep/.el-radio__input.is-checked+.el-radio__label {
-                color: #27881a;
+                color: #255590;
             }
             /deep/.el-radio__input.is-checked .el-radio__inner {
-                background: #33b023;
-                border-color: #27881a;
+                background: #255590;
+                border-color: #255590;
             }
         }
 
         .checkInputBox {
             /deep/.el-checkbox {
-                --el-radio-input-border-color-hover: #27881a;
+                --el-radio-input-border-color-hover: #255590;
             }
             /deep/.el-checkbox-group {
                 align-items: center;
@@ -485,11 +485,11 @@ async function addWebsiteSurvey(){
                 width: 16px;
             }
             /deep/.el-checkbox__input.is-checked+.el-checkbox__label {
-                color: #27881a;
+                color: #255590;
             }
             /deep/.el-checkbox__input.is-checked .el-checkbox__inner {
-                background: #33b023;
-                border-color: #27881a;
+                background: #255590;
+                border-color: #255590;
             }
         }
 
@@ -545,9 +545,9 @@ async function addWebsiteSurvey(){
             }
         }
         .active {
-            color:#49A769;
-            background: #dff7e8;
-            border: 1px solid #49A769;
+            color:#255590;
+            background: #d6e1ee;
+            border: 1px solid #255590;
         }
     }
 }

+ 2 - 2
components/home/kefu.vue

@@ -12,11 +12,11 @@
       <p>QQ客服</p>
       <div class="kefu_item_content_QQ">
           <div @click="addQQFriend(bottomBase.customer_service_qq)" class="qqadd">
-              <img src="https://img.bjzxtw.org.cn/pre/public/index/tubiao1.png" width="100">
+              <img :src="bottomBase.service_qq_img" width="100">
               <div class="qqfs">{{bottomBase.customer_service_qq}}</div>
           </div>
           <div @click="addQQFriend(bottomBase.communications)" class="qqadd">
-              <img src="https://img.bjzxtw.org.cn/pre/public/index/tubiao2.png" width="100">
+              <img :src="bottomBase.communications_img" width="100">
               <div class="qqfs">{{bottomBase.communications}}</div>
           </div>
           <div class="arrow"></div>

+ 4 - 3
components/home/pageHead.vue

@@ -127,11 +127,12 @@ let goLogin = () => {
     //开启线上登录模式 start---------------------------------------->
     isDel.value = 0
     token1.value = getToken()
-
     //王鹏
-    window.open($BwebUrl + "/auth/login.php?backurl=" + $CwebUrl, '_blank');
+    //window.open($BwebUrl + "/auth/login.php?backurl=" + $CwebUrl, '_blank');
     //刘佳伟
     //window.open($LoginWebUrl + "/api/goLogin?backurl=" + $CwebUrl, '_blank');
+    //党云龙
+    window.open($BwebUrl + "/#/login?backurl=" + $CwebUrl, '_blank');
     //开启线上登录模式 end---------------------------------------->
 
     //开启本地登录模式 start---------------------------------------->
@@ -294,7 +295,7 @@ onMounted(async () => {
     //从客户端获取行政职能部门 加快打开速度
     const { $webUrl, $CwebUrl } = useNuxtApp();
     //广告1
-    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_top`
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_top`
     const responseAd1 = await fetch(url, {
         headers: {
             'Content-Type': 'application/json',

+ 46 - 16
components/home/pageNavigation.vue

@@ -7,9 +7,9 @@
                     资讯信息
                 </div>
                 <ul class="navigationOne">
-                    <li v-for="(item, index) in 12" :key="index">
-                        <NuxtLink to="/">
-                            政策法规
+                    <li v-for="(item, index) in navigation1" :key="index">
+                        <NuxtLink :href="getLinkPath(item)" :title="item.alias" :target="item.is_url == 1 ? '_blank' : '_self'">
+                            {{ item.alias }}
                         </NuxtLink>
                     </li>
                 </ul>
@@ -19,9 +19,9 @@
                     农副商城
                 </div>
                 <ul class="navigationOne">
-                    <li v-for="(item, index) in 12" :key="index">
-                        <NuxtLink to="/">
-                            粮油茶糖
+                    <li v-for="(item, index) in navigation2" :key="index">
+                        <NuxtLink :href="getLinkPath(item)" :title="item.alias" :target="item.is_url == 1 ? '_blank' : '_self'">
+                            {{ item.alias }}
                         </NuxtLink>
                     </li>
                 </ul>
@@ -31,9 +31,9 @@
                     网上互动
                 </div>
                 <ul class="navigationOne">
-                    <li v-for="(item, index) in 12" :key="index">
-                        <NuxtLink to="/">
-                            农产供求
+                    <li v-for="(item, index) in navigation3" :key="index">
+                        <NuxtLink :href="getLinkPath(item)" :title="item.alias" :target="item.is_url == 1 ? '_blank' : '_self'">
+                            {{ item.alias }}
                         </NuxtLink>
                     </li>
                 </ul>
@@ -51,7 +51,7 @@
                     <li>
                         <NuxtLink to="/">农副商业中心</NuxtLink>
                     </li>
-                    <li class="navList" v-for="(item, index) in navigation1" :key="index">
+                    <li class="navList" v-for="(item, index) in navigation4" :key="index">
                         <NuxtLink :href="getLinkPath(item)" :title="item.alias" :target="item.is_url == 1 ? '_blank' : '_self'">
                             {{ item.alias }}
                         </NuxtLink>
@@ -75,7 +75,7 @@
                 </div>
                 <div class="deepServer_left">
                     <div class="serverTitle">
-                        供应信息
+                        <!-- 供应信息 -->
                     </div>
                     <ul class="contentList">
                         <li>地区搜索:</li>
@@ -92,17 +92,21 @@
 
 <script setup>
 //1.获取导航菜单 start ---------------------------------------->
-//第一行导航菜单 10
+//三行导航菜单第一个 12
 const navigation1 = ref([]);
-//两行的导航菜单 20个 
+//三行导航菜单第二个 12个
 const navigation2 = ref([]);
+//三行导航菜单第三个 12个
+const navigation3 = ref([]);
+//第二行的导航菜单 9个 
+const navigation4 = ref([]);
 //获取导航菜单1 
 async function getNavigation1() {
     const mkdata = await requestDataPromise('/web/getWebsiteModelCategory', {
         method: 'GET',
         query: {
             'pid': 0,
-            'num': 10,
+            'num': 12,
             'placeid': 1
         },
     });
@@ -115,13 +119,39 @@ async function getNavigation2() {
         method: 'GET',
         query: {
             'pid': 0,
-            'num': 10,
-            'placeid': 11
+            'num': 12,
+            'placeid': 13
         },
     });
     navigation2.value = mkdata.data;
 }
 getNavigation2();
+//获取导航菜单3
+async function getNavigation3() {
+    const mkdata = await requestDataPromise('/web/getWebsiteModelCategory', {
+        method: 'GET',
+        query: {
+            'pid': 0,
+            'num': 12,
+            'placeid': 25
+        },
+    });
+    navigation3.value = mkdata.data;
+}
+getNavigation3();
+//获取导航菜单4
+async function getNavigation4() {
+    const mkdata = await requestDataPromise('/web/getWebsiteModelCategory', {
+        method: 'GET',
+        query: {
+            'pid': 0,
+            'num': 9,
+            'placeid': 37
+        },
+    });
+    navigation4.value = mkdata.data;
+}
+getNavigation4();
 //1.获取导航菜单 end ---------------------------------------->
 
 //2.搜索 start ---------------------------------------->

+ 3 - 3
pages/[dir]/[dir]/[id].vue

@@ -164,8 +164,8 @@ async function getPageData() {
         //获取发布时间
         time.value = newsDetail.value.updated_at.split(' ')[0];
         //修正标题长度
-        if (newsDetail.value.title.length >= 30) {
-            routeNewsTtitle.value = newsDetail.value.title.substr(0, 30) + "...";
+        if (newsDetail.value.title.length >= 20) {
+            routeNewsTtitle.value = newsDetail.value.title.substr(0, 20) + "...";
         } else {
             routeNewsTtitle.value = newsDetail.value.title
         }
@@ -185,7 +185,7 @@ let adImg1 = ref([]);
 onMounted(async ()  => {
     const { $webUrl, $CwebUrl } = useNuxtApp();
     //广告1
-    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_detail_0001`
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_detail_0001`
     const responseAd1 = await fetch(url, {
         headers: {
             'Content-Type': 'application/json',

+ 2 - 2
pages/[dir]/[dir]/list-[id].vue

@@ -227,7 +227,7 @@ onMounted(async ()  => {
     //从客户端获取行政职能部门 加快打开速度
     const { $webUrl, $CwebUrl } = useNuxtApp();
     //广告1
-    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_list_0001`
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_list_0001`
     const responseAd1 = await fetch(url, {
         headers: {
             'Content-Type': 'application/json',
@@ -239,7 +239,7 @@ onMounted(async ()  => {
     adImg1.value = resultAd1.data[0];
     
     //广告2
-    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_list_0002`
+    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_list_0002`
     const responseAd2 = await fetch(url2, {
         headers: {
             'Content-Type': 'application/json',

+ 20 - 24
pages/[dir]/[id].vue

@@ -5,7 +5,7 @@
     <HomePageNavigation></HomePageNavigation>
     <!-- 列表页广告一 -->
     <HomeTopTen :imgurl="adImg1" v-if="adImg1"></HomeTopTen>
-    
+
     <!-- 资讯列表 -->
     <div class="newsDetail">
         <div class="inner">
@@ -36,11 +36,7 @@
                         发布时间: <span>{{ time }}</span>
                     </p>
                 </div>
-                <div 
-                    class="leftBottom" 
-                    v-html="newsDetail.content" 
-                    v-if="newsDetail.content" 
-                    @click="openPreview">
+                <div class="leftBottom" v-html="newsDetail.content" v-if="newsDetail.content" @click="openPreview">
                 </div>
                 <div v-if="previewVisible" class="preview-modal" @click="closePreview">
                     <img :src="selectedImage" alt="Preview">
@@ -73,7 +69,7 @@
 <script setup>
 //1.页面依赖 start ---------------------------------------->
 import { onMounted } from 'vue'
-import { ElBreadcrumb, ElBreadcrumbItem} from 'element-plus'
+import { ElBreadcrumb, ElBreadcrumbItem } from 'element-plus'
 import { ArrowRight } from '@element-plus/icons-vue'
 //1.页面依赖 end ---------------------------------------->
 
@@ -87,9 +83,9 @@ 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("错误位置:获得页面路径")
 }
 //2.页面路径 start ---------------------------------------->
@@ -135,18 +131,18 @@ const routLevelId = ref("");
 const articleChoice = ref(false);
 //4.5 获取详情
 async function getPageData() {
-    const mkdata =  await requestDataPromise('/web/selectWebsiteArticleInfo', {
+    const mkdata = await requestDataPromise('/web/selectWebsiteArticleInfo', {
         method: 'GET',
         query: {
             'articleid': articleId
         },
     });
-    if(mkdata.code==200){
+    if (mkdata.code == 200) {
         //判断是否显示投票
-        if(mkdata.data.is_survey==1){
+        if (mkdata.data.is_survey == 1) {
             console.log("本篇文章含有投票!")
             articleChoice.value = true;
-            
+
         }
         //获取内容
         newsDetail.value = mkdata.data;
@@ -156,12 +152,12 @@ async function getPageData() {
         //获取发布时间
         time.value = newsDetail.value.updated_at.split(' ')[0];
         //修正标题长度
-        if (newsDetail.value.title.length >= 30) {
-            routeNewsTtitle.value = newsDetail.value.title.substr(0, 30) + "...";
+        if (newsDetail.value.title.length >= 20) {
+            routeNewsTtitle.value = newsDetail.value.title.substr(0, 20) + "...";
         } else {
             routeNewsTtitle.value = newsDetail.value.title
         }
-    }else{
+    } else {
         console.log("错误位置:获取详情内容")
     }
 }
@@ -171,10 +167,10 @@ getPageData();
 //5.广告 start ---------------------------------------->
 let adImg1 = ref([]);
 
-onMounted(async ()  => {
+onMounted(async () => {
     const { $webUrl, $CwebUrl } = useNuxtApp();
     //广告1
-    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_detail_0001`
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_detail_0001`
     const responseAd1 = await fetch(url, {
         headers: {
             'Content-Type': 'application/json',
@@ -188,13 +184,13 @@ onMounted(async ()  => {
 //5.广告 end ---------------------------------------->
 
 //6.设置seo信息 start---------------------------------------->
-const setData =  await requestDataPromise('/web/selectWebsiteArticleInfo', {
+const setData = await requestDataPromise('/web/selectWebsiteArticleInfo', {
     method: 'GET',
     query: {
         'articleid': articleId
     },
 });
-if(setData.code==200){
+if (setData.code == 200) {
     let seoTitle = setData.data.title;
     let seoDescription = setData.data.introduce;
     let seoKeywords = setData.data.keyword;
@@ -204,14 +200,14 @@ if(setData.code==200){
     useSeoMeta({
         title: seoTitle + "_" + seoName + "_" + 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 ---------->")
 }
 //6.设置seo信息 end---------------------------------------->

+ 360 - 231
pages/[dir]/index.html.vue

@@ -2,15 +2,43 @@
     <div>
         <HomePageHead></HomePageHead>
         <HomePageNavigation></HomePageNavigation>
-        <HomeSecondaryHeading :titleData="pageData" :pinyinid="routeId"></HomeSecondaryHeading>
+        <!-- <HomeSecondaryHeading :titleData="pageData" :pinyinid="routeId"></HomeSecondaryHeading> -->
         <!-- 频道页 -->
+        <!-- 农副产品供销网-频道页 -->
         <main class="index_main" id="all_vue">
+            <!-- 二级栏目 start -->
+            <nav class="channel_nav clearfix" v-if="pageData">
+                <a class="channel_nav_head_name" href="" title="">
+                    {{ title }}
+                </a>
+                <div class="channel_nav_a_box clearfix">
+                    <NuxtLink :href="getLinkPath(item)" class="channel_nav_a" :title="item.alias"
+                        v-for="(item, index) in pageData" :key="index">
+                        <span class="nav2_title">{{ item.alias }}</span>
+                    </NuxtLink>
+                </div>
+            </nav>
+            <!-- 二级栏目 end -->
             <section class="channel_1 clearfix">
                 <div class="channel_box_1 clearfix">
-                    <div class="channel_name_ul">
-                        <div class="channel_name_ul_li" v-for="(per_obj, per_index) in 10" :key="per_obj">
-                            <a class="channel_name_ul_li_tag" href="" title="">【三农资讯】</a>
-                            <a class="channel_name_ul_li_dot1 dot1" href="" title="">民工动态民工动态民工动态民工动态民工动态民工动态民工动态</a>
+                    <div class="channel_head_btn_box">
+                        <div class="channel_head_btn channel_head_btn_only">
+                            <NuxtLink class="channel_head_a" :href="getLinkPath(pageData[0])" v-if="pageData[0]"
+                                :title="pageData[0].alias">
+                                {{ pageData[0].alias }}
+                            </NuxtLink>
+                        </div>
+                        <NuxtLink class="channel_head_btn_right_a" :href="getLinkPath(pageData[0])" v-if="pageData[0]"
+                            :title="pageData[0].alias">
+                            栏目简介
+                        </NuxtLink>
+                    </div>
+                    <div class="channel_name_ul" v-if="pageData[0].data2">
+                        <div class="channel_name_ul_li" v-for="(item, index) in pageData[0].data2" :key="index">
+                            <NuxtLink class="channel_name_ul_li_dot1 dot1" :href="getLinkPathDetail(item)"
+                                :title="item.title" :key="item.id" :target="item.islink == 1 ? '_blank' : '_self'">
+                                {{ item.title }}
+                            </NuxtLink>
                         </div>
                     </div>
                 </div>
@@ -20,246 +48,302 @@
                     </div>
                 </div>
             </section>
-            <div class="channel_banner_1"><a class="channel_banner_1_a" href="" title=""><img
-                        class="channel_banner_1_img" src="@/public/img/3.png" title="" alt=""></a></div>
+            <!-- 广告1 -->
+            <HomeAdvertising :imgurl="adImg1"></HomeAdvertising>
             <section class="channel_2 clearfix">
                 <div class="channel_box_3 clearfix">
-                    <!--open   企业风采-->
+                    <!--start 模块2-->
                     <div class="channel_head_btn_box">
                         <div class="channel_head_btn channel_head_btn_only">
-                            <a class="channel_head_a" href="" title="">企业风采</a>
+                            <NuxtLink class="channel_head_a" :href="getLinkPath(pageData[1])" v-if="pageData[1]"
+                                :title="pageData[1].alias">
+                                {{ pageData[1].alias }}
+                            </NuxtLink>
                         </div>
-                        <a class="channel_head_btn_right_a" href="" title="">栏目简介</a>
+                        <NuxtLink class="channel_head_btn_right_a" :href="getLinkPath(pageData[1])" v-if="pageData[1]"
+                            :title="pageData[1].alias">
+                            栏目简介
+                        </NuxtLink>
                     </div>
-                    <div class="channel_big_ul clearfix">
-                        <div class="channel_big_li clearfix" v-for="(per_obj, per_index) in 2" :key="per_obj">
-                            <div class="channel_big_li_img_box">
-                                <img class="channel_big_li_img" src="@/public/img/28.png" title="" alt="">
+                    <div class="channel_big_ul clearfix" >
+                        <div class="channel_big_li clearfix" v-if="pageData[1].data[0]">
+                            <div class="channel_big_li_img_box" v-if="pageData[1].data[0]">
+                                <NuxtLink :href="getLinkPathDetail(pageData[1].data[0])"
+                                    :title="pageData[1].data[0].title">
+                                    <img class="channel_big_li_img" :src="pageData[1].data[0].imgurl"
+                                        :title="pageData[1].data[0].title" alt="">
+                                    <span class="channel_big_li_content">{{ pageData[1].data[0].title }}</span>
+                                </NuxtLink>
                             </div>
-                            <div class="channel_big_li_in">
+                            <div class="channel_big_li_in" v-if="pageData[1].data2">
                                 <div class="channel_ul_1">
-                                    <a class="channel_ul_1_a dot1" href="" title="" v-for="(per_obj, per_index) in 4"
-                                        :key="per_obj">农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权</a>
+                                    <NuxtLink class="channel_ul_1_a dot1" v-for="(item, index) in pageData[1].data2"
+                                        :href="getLinkPathDetail(item)" :title="item.title" :key="item.id"
+                                        :target="item.islink == 1 ? '_blank' : '_self'">
+                                        {{ item.title }}
+                                    </NuxtLink>
+                                </div>
+                            </div>
+                        </div>
+                        <div class="channel_big_li clearfix" v-if="pageData[1].data[1]">
+                            <div class="channel_big_li_img_box" v-if="pageData[1].data[1]">
+                                <NuxtLink :href="getLinkPathDetail(pageData[1].data[1])"
+                                    :title="pageData[1].data[1].title">
+                                    <img class="channel_big_li_img" :src="pageData[1].data[1].imgurl"
+                                        :title="pageData[1].data[1].title" alt="">
+                                    <span class="channel_big_li_content">{{ pageData[1].data[1].title }}</span>
+                                </NuxtLink>
+                            </div>
+                            <div class="channel_big_li_in" v-if="pageData[1].data3">
+                                <div class="channel_ul_1">
+                                    <NuxtLink class="channel_ul_1_a dot1" v-for="(item, index) in pageData[1].data3"
+                                        :href="getLinkPathDetail(item)" :title="item.title" :key="item.id"
+                                        :target="item.islink == 1 ? '_blank' : '_self'">
+                                        {{ item.title }}
+                                    </NuxtLink>
                                 </div>
                             </div>
                         </div>
                     </div>
-                    <!--end 企业风采 -->
-                    <!--open   国际贸易-->
+                    <!--end 模块2 -->
+                    <!--start 模块3-->
                     <div class="channel_head_btn_box channel_head_top">
                         <div class="channel_head_btn channel_head_btn_only">
-                            <a class="channel_head_a" href="" title="">
-                                国际贸易
-                            </a>
+                            <NuxtLink class="channel_head_a" :href="getLinkPath(pageData[2])" v-if="pageData[2]"
+                                :title="pageData[2].alias">
+                                {{ pageData[2].alias }}
+                            </NuxtLink>
                         </div>
-                        <a class="channel_head_btn_right_a" href="" title="">栏目简介</a>
+                        <NuxtLink class="channel_head_btn_right_a" :href="getLinkPath(pageData[2])" v-if="pageData[2]"
+                            :title="pageData[2].alias">
+                            栏目简介
+                        </NuxtLink>
                     </div>
                     <div class=" clearfix">
                         <div class="channel_box_5 clearfix">
                             <div class="channel_img_ul_2">
-                                <div class="channel_img_ul_2_li">
-                                    <a class="channel_img_ul_2_li_a" href="" title="">
-                                        <img class="channel_img_ul_2_li_img" src="@/public/img/5.png" title="" alt="">
+                                <div class="channel_img_ul_2_li" v-if="pageData[2].data[0]">
+                                    <NuxtLink :href="getLinkPathDetail(pageData[2].data[0])"
+                                        :title="pageData[2].data[0].title">
+                                        <img class="channel_img_ul_2_li_img" :src="pageData[2].data[0].imgurl" title=""
+                                            alt="">
                                         <div class="channel_img_ul_2_li_dot1 dot1">
-                                            农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权
+                                            {{ pageData[2].data[0].title }}
                                         </div>
-                                    </a>
+                                    </NuxtLink>
                                 </div>
                             </div>
                         </div>
-                        <div class="channel_box_6 clearfix">
-                            <div class="channel_ul_2 clearfix">
-                                <a class="channel_ul_2_a dot1" href="" title="" v-for="(per_obj, per_index) in 6"
-                                    :key="per_obj">
-                                    农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权 </a>
-                            </div>
+                        <div class="channel_box_6 clearfix" v-if="pageData[2].data2"">
+                            <div class=" channel_ul_2 clearfix">
+                            <NuxtLink class="channel_ul_2_a dot1" v-for="(item, index) in pageData[2].data2"
+                                :href="getLinkPathDetail(item)" :title="item.title" :key="item.id"
+                                :target="item.islink == 1 ? '_blank' : '_self'">
+                                {{ item.title }}
+                            </NuxtLink>
                         </div>
                     </div>
-                    <!--end 国际贸易 -->
                 </div>
-                <div class="channel_box_4 clearfix">
-                    <!--open  热点话题 -->
-                    <div class="channel_head_btn_box">
-                        <div class="channel_head_btn channel_head_btn_only">
-                            <a class="channel_head_a" href="" title="">
-                                热点话题
-                            </a>
-                        </div>
-                        <a class="channel_head_btn_right_a" href="" title="">栏目简介</a>
+                <!--end 模块3 -->
+    </div>
+    <div class="channel_box_4 clearfix">
+        <!--start  模块4 -->
+        <div class="channel_head_btn_box">
+            <div class="channel_head_btn channel_head_btn_only">
+                <NuxtLink class="channel_head_a" :href="getLinkPath(pageData[3])" v-if="pageData[3]"
+                    :title="pageData[3].alias">
+                    {{ pageData[3].alias }}
+                </NuxtLink>
+            </div>
+            <NuxtLink class="channel_head_btn_right_a" :href="getLinkPath(pageData[3])" v-if="pageData[3]"
+                :title="pageData[3].alias">
+                栏目简介
+            </NuxtLink>
+        </div>
+        <div class="channel_img_ul_3" v-if="pageData[3].data">
+            <div class="channel_img_ul_3_li clearfix_2" v-for="(item, index) in pageData[3].data" :key="item">
+                <NuxtLink class="channel_img_ul_3_li_a" :href="getLinkPathDetail(item)" :title="item.title"
+                    :key="item.id" :target="item.islink == 1 ? '_blank' : '_self'">
+                    <div class="channel_img_ul_3_li_img_box">
+                        <img class="channel_img_ul_3_li_img" :src="item.imgurl" title="" alt="">
                     </div>
-                    <div class="channel_img_ul_3">
-                        <div class="channel_img_ul_3_li clearfix_2" v-for="(per_obj, per_index) in 6" :key="per_obj">
-                            <a class="channel_img_ul_3_li_a" href="" title="">
-                                <div class="channel_img_ul_3_li_img_box">
-                                    <img class="channel_img_ul_3_li_img" src="@/public/img/29.png" title="" alt="">
-                                </div>
-                                <div class="channel_img_ul_3_li_dot3 dot3">
-                                    国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易国际贸易
-                                </div>
-                                <div class="channel_img_ul_3_li_num">{{ per_index + 1 }}</div>
-                            </a>
-                        </div>
+                    <div class="channel_img_ul_3_li_dot3 dot3">
+                        {{ item.title }}
                     </div>
+                    <div class="channel_img_ul_3_li_num">{{ index + 1 }}</div>
+                </NuxtLink>
+            </div>
+        </div>
+    </div>
+    <!--end 模块4 -->
+    </section>
+    <!-- 广告2 -->
+    <HomeAdvertising :imgurl="adImg1"></HomeAdvertising>
+    <section class="channel_3 clearfix">
+        <div class="channel_box_3 clearfix"v-if="pageData[4]">
+            <!--start   模块5 -->
+            <div class="channel_head_btn_box">
+                <div class="channel_head_btn channel_head_btn_only">
+                    <NuxtLink class="channel_head_a" :href="getLinkPath(pageData[4])" v-if="pageData[4]"
+                        :title="pageData[4].alias">
+                        {{ pageData[4].alias }}
+                    </NuxtLink>
                 </div>
-                <!--end 热点话题 -->
-            </section>
-            <div class="channel_banner_2"><a class="channel_banner_2_a" href="" title=""><img
-                        class="channel_banner_2_img" src="@/public/img/3.png" title="" alt=""></a></div>
-            <section class="channel_3 clearfix">
-                <div class="channel_box_3 clearfix">
-                    <!--open   新人新事 -->
-                    <div class="channel_head_btn_box">
-                        <div class="channel_head_btn channel_head_btn_only">
-                            <a class="channel_head_a" href="" title="">
-                                新人新事
-                            </a>
-                        </div>
-                        <a class="channel_head_btn_right_a" href="" title="">栏目简介</a>
-                    </div>
-                    <div class="channel_img_ul_4 clearfix">
-                        <div class="channel_img_ul_4_li clearfix" v-for="(per_obj, per_index) in 2" :key="per_obj">
-                            <a class="channel_img_ul_4_li_a clearfix" href="" title="">
-                                <div class="channel_img_ul_4_li_img_box">
-                                    <img class="channel_img_ul_4_li_img" src="@/public/img/30.png" title="" alt="">
-                                </div>
-                                <div class="channel_img_ul_4_li_dot2 dot2">
-                                    招商招标招商招标招商招标招商招标招商招标招商招标招商招标招商招标招商招标招商招标招商招标招商招标招商招标招商招标招商招标 </div>
-                            </a>
+                <NuxtLink class="channel_head_btn_right_a" :href="getLinkPath(pageData[4])" v-if="pageData[4]"
+                    :title="pageData[4].alias">
+                    栏目简介
+                </NuxtLink>
+            </div>
+            <div class="channel_img_ul_4 clearfix" v-if="pageData[4].data">
+                <div class="channel_img_ul_4_li clearfix" v-for="(item, index) in pageData[4].data" :key="index">
+                    <NuxtLink class="channel_img_ul_4_li_a clearfix" :href="getLinkPathDetail(item)" :title="item.title"
+                        :key="item.id" :target="item.islink == 1 ? '_blank' : '_self'">
+                        <div class="channel_img_ul_4_li_img_box">
+                            <img class="channel_img_ul_4_li_img" :src="item.imgurl" title="" alt="">
                         </div>
-                    </div>
-                    <div class="channel_ul_3 clearfix">
-                        <div class="channel_ul_3_li clearfix" v-for="(per_obj, per_index) in 3" :key="per_obj">
-                            <a class="channel_ul_3_li_a" href="" title="">
-                                <div class="channel_ul_3_li_tag">新人新事</div>
-                                <div class="channel_ul_3_li_dot1 dot1">
-                                    新人新事新人新事新人新事新人新事新人新事新人新事新人新事新人新事新人新事新人新事新人新事新人新事新人新事新人新事</div>
-                            </a>
-                        </div>
-                    </div>
-                    <!--end  新人新事 -->
+                        <div class="channel_img_ul_4_li_dot2 dot2">{{ item.title }}</div>
+                    </NuxtLink>
                 </div>
-                <div class="channel_box_4 clearfix">
-                    <!--open  专题报道-->
-                    <div class="channel_head_btn_box">
-                        <div class="channel_head_btn channel_head_btn_only">
-                            <a class="channel_head_a" href="" title="">
-                                专题报道
-                            </a>
-                        </div>
-                        <a class="channel_head_btn_right_a" href="" title="">栏目简介</a>
-                    </div>
-                    <div class="channel_img_ul_5">
-                        <div class="channel_img_ul_5_li">
-                            <a class="channel_img_ul_5_li_a" href="" title="">
-                                <img class="channel_img_ul_5_li_img" src="@/public/img/31.png" title="" alt="">
-                                <div class="channel_img_ul_5_li_dot2 dot2">
-                                    农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权</div>
-                            </a>
-                        </div>
-                    </div>
-                    <!--end  专题报道-->
+            </div>
+            <div class="channel_ul_3 clearfix" v-if="pageData[4].data2">
+                <div class="channel_ul_3_li clearfix" v-for="(item, index) in pageData[4].data2" :key="index">
+                    <NuxtLink class="channel_ul_3_li_a" :href="getLinkPathDetail(item)" :title="item.title"
+                        :key="item.id" :target="item.islink == 1 ? '_blank' : '_self'">
+                        <div class="channel_ul_3_li_tag">{{ pageData[4].alias }}</div>
+                        <div class="channel_ul_3_li_dot1 dot1"> {{ item.title }}</div>
+                    </NuxtLink>
                 </div>
-            </section>
-            <section class="channel_4 clearfix">
-                <div class="channel_box_3 clearfix">
-                    <div class="channel_head_btn_box">
-                        <div class="channel_head_btn" :class="{ channel_head_btn_only: channel_choice_1_num == 1 }"
-                            @mouseover="channel_choice_1_num = 1">
-                            <a class="channel_head_a" href="" title="">农产动态</a>
-                        </div>
-                        <div class="channel_head_btn" :class="{ channel_head_btn_only: channel_choice_1_num == 2 }"
-                            @mouseover="channel_choice_1_num = 2">
-                            <a class="channel_head_a" href="" title=""> 品牌快讯 </a>
-                        </div>
-                        <a class="channel_head_btn_right_a" href="" title="">栏目简介</a>
-                    </div>
-                    <div class=" clearfix">
-                        <!--open   农产动态-->
-                        <div class=" clearfix" v-show="channel_choice_1_num == 1">
-                            <div class="channel_box_5 clearfix">
-                                <div class="channel_img_ul_6">
-                                    <div class="channel_img_ul_6_li"><a class="channel_img_ul_6_li_a" href=""
-                                            title=""><img class="channel_img_ul_6_li_img" src="@/public/img/31.png"
-                                                title="" alt="">
-                                            <div class="channel_img_ul_6_li_dot2 dot2">
-                                                农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权
-                                            </div>
-                                        </a></div>
-                                </div>
-                                <div class="channel_img_ul_even_1 clearfix">
-                                    <div class="channel_img_ul_even_1_li" v-for="(per_obj, per_index) in 2"
-                                        :key="per_obj">
-                                        <a class="channel_img_ul_even_1_li_a" href="" title="">
-                                            <img class="channel_img_ul_even_1_li_img" src="@/public/img/32.png"
-                                                title="" alt="">
-                                            <div class="channel_img_ul_even_1_li_dot2 dot2">
-                                                农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权
-                                            </div>
-                                        </a>
+            </div>
+            <!--end  模块5 -->
+        </div>
+        <div class="channel_box_4 clearfix" v-if="pageData[5]">
+            <!--start  模块6-->
+            <div class="channel_head_btn_box">
+                <div class="channel_head_btn channel_head_btn_only">
+                    <NuxtLink class="channel_head_a" :href="getLinkPath(pageData[5])" v-if="pageData[5]"
+                        :title="pageData[5].alias">
+                        {{ pageData[5].alias }}
+                    </NuxtLink>
+                </div>
+                <NuxtLink class="channel_head_btn_right_a" :href="getLinkPath(pageData[5])" v-if="pageData[5]"
+                    :title="pageData[5].alias">
+                    栏目简介
+                </NuxtLink>
+            </div>
+            <div class="channel_img_ul_5">
+                <div class="channel_img_ul_5_li" v-if="pageData[5].data[0]">
+                    <NuxtLink class="channel_img_ul_5_li_a" :href="getLinkPathDetail(pageData[5].data[0])"
+                        :title="pageData[5].data[0].title"
+                        :target="pageData[5].data[0].islink == 1 ? '_blank' : '_self'">
+                        <img class="channel_img_ul_5_li_img" :src="pageData[5].data[0].imgurl" title="" alt="">
+                        <div class="channel_img_ul_5_li_dot2 dot2"> {{ pageData[5].data[0].title }}</div>
+                    </NuxtLink>
+                </div>
+            </div>
+            <!--end  模块6-->
+        </div>
+    </section>
+    <section class="channel_4 clearfix">
+        <div class="channel_box_3 clearfix" v-if="pageData[6]">
+            <div class="channel_head_btn_box">
+                <div class="channel_head_btn">
+                    <NuxtLink class="channel_head_a" :href="getLinkPath(pageData[6])" v-if="pageData[6]"
+                        :title="pageData[6].alias">
+                        {{ pageData[6].alias }}
+                    </NuxtLink>
+                </div>
+                <NuxtLink class="channel_head_btn_right_a" :href="getLinkPath(pageData[6])" v-if="pageData[6]"
+                    :title="pageData[6].alias">
+                    栏目简介
+                </NuxtLink>
+            </div>
+            <div class=" clearfix">
+                <!--start   模块7-->
+                <div class=" clearfix">
+                    <div class="channel_box_5 clearfix">
+                        <div class="channel_img_ul_6" v-if="pageData[6].data[0]">
+                            <div class="channel_img_ul_6_li">
+                                <NuxtLink class="channel_img_ul_6_li_a" :href="getLinkPathDetail(pageData[6].data[0])"
+                                    :title="pageData[6].data[0].title"
+                                    :target="pageData[6].data[0].islink == 1 ? '_blank' : '_self'">
+                                    <img class="channel_img_ul_6_li_img" :src="pageData[6].data[0].imgurl" title=""
+                                        alt="">
+                                    <div class="channel_img_ul_6_li_dot2 dot2">
+                                        {{ pageData[6].data[0].title }}
                                     </div>
-                                </div>
+                                </NuxtLink>
                             </div>
-                            <div class="channel_box_6 clearfix">
-                                <div class="channel_ul_4 clearfix">
-                                    <a class="channel_ul_4_a dot1" href="" title="" v-for="(per_obj, per_index) in 10"
-                                        :key="per_obj">
-                                        1农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权 </a>
-                                </div>
+                        </div>
+                        <div class="channel_img_ul_even_1 clearfix" v-if="pageData[6].data2">
+                            <div class="channel_img_ul_even_1_li" v-for="(item, index) in pageData[6].data2"
+                                :key="index">
+                                <NuxtLink class="channel_img_ul_even_1_li_a" :href="getLinkPathDetail(item)"
+                                    :title="item.title" :key="item.id" :target="item.islink == 1 ? '_blank' : '_self'">
+                                    <img class="channel_img_ul_even_1_li_img" :src="item.imgurl" title="" alt="">
+                                    <div class="channel_img_ul_even_1_li_dot2 dot2">
+                                        {{ item.title }}
+                                    </div>
+                                </NuxtLink>
                             </div>
                         </div>
-                        <!--end  农产动态-->
-                        <!--open   品牌快讯-->
-                        <div class=" clearfix" v-show="channel_choice_1_num == 2"> 品牌快讯</div>
-                        <!--end  品牌快讯-->
                     </div>
-                </div>
-                <div class="channel_box_4 clearfix">
-                    <div class="channel_head_btn_box">
-                        <div class="channel_head_btn" :class="{ channel_head_btn_only: channel_choice_2_num == 1 }"
-                            @mouseover="channel_choice_2_num = 1">
-                            <a class="channel_head_a" href="" title=""> 市场预测 </a>
+                    <div class="channel_box_6 clearfix">
+                        <div class="channel_ul_4 clearfix" v-if="pageData[6].data3">
+                            <NuxtLink class="channel_ul_4_a dot1" :href="getLinkPathDetail(item)"
+                                v-for="(item, index) in pageData[6].data3" :key="index"
+                                :target="item.islink == 1 ? '_blank' : '_self'">
+                                {{ item.title }}
+                            </NuxtLink>
                         </div>
-                        <div class="channel_head_btn" :class="{ channel_head_btn_only: channel_choice_2_num == 2 }"
-                            @mouseover="channel_choice_2_num = 2">
-                            <a class="channel_head_a" href="" title="">价格行情</a>
-                        </div>
-                        <a class="channel_head_btn_right_a" href="" title="">栏目简介</a>
                     </div>
-                    <div class=" clearfix">
-                        <!--open  市场预测 -->
-                        <div class=" clearfix" v-show="channel_choice_2_num == 1">
-                            <div class="channel_img_ul_7 clearfix">
-                                <div class="channel_img_ul_7_li">
-                                    <a class="channel_img_ul_7_li_a" href="" title="">
-                                        <img class="channel_img_ul_7_li_img" src="@/public/img/33.png" title="" alt="">
-                                        <div class="channel_img_ul_7_li_foot">
-                                            <div class="channel_img_ul_7_li_tag">热 门</div>
-                                            <div class="channel_img_ul_7_li_dot1 dot1">
-                                                热门热门热门热门热门热门热门热门热门热门热门热门热门</div>
-                                        </div>
-                                    </a>
+                </div>
+            </div>
+        </div>
+        <div class="channel_box_4 clearfix" v-if="pageData[7]">
+            <div class="channel_head_btn_box">
+                <div class="channel_head_btn">
+                    <NuxtLink class="channel_head_a" :href="getLinkPath(pageData[7])" v-if="pageData[7]"
+                        :title="pageData[7].alias">
+                        {{ pageData[7].alias }}
+                    </NuxtLink>
+                </div>
+                <NuxtLink class="channel_head_btn_right_a" :href="getLinkPath(pageData[7])" v-if="pageData[7]"
+                    :title="pageData[7].alias">
+                    栏目简介
+                </NuxtLink>
+            </div>
+            <div class=" clearfix">
+                <!--start  模块8 -->
+                <div class=" clearfix" v-show="channel_choice_2_num == 1">
+                    <div class="channel_img_ul_7 clearfix">
+                        <div class="channel_img_ul_7_li" v-if="pageData[7].data[0]">
+                            <NuxtLink class="channel_img_ul_7_li_a" :href="getLinkPathDetail(pageData[7].data[0])"
+                                :title="pageData[7].data[0].title"
+                                :target="pageData[7].data[0].islink == 1 ? '_blank' : '_self'">
+                                <img class="channel_img_ul_7_li_img" :src="pageData[7].data[0].imgurl" title="" alt="">
+                                <div class="channel_img_ul_7_li_foot">
+                                    <div class="channel_img_ul_7_li_tag">热 门</div>
+                                    <div class="channel_img_ul_7_li_dot1 dot1">{{ pageData[7].data[0].title }}
+                                    </div>
                                 </div>
-                            </div>
-                            <div class="channel_ul_5 clearfix">
-                                <a class="channel_ul_5_a dot1" href="" title="" v-for="(per_obj, per_index) in 6"
-                                    :key="per_obj">
-                                    农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权农民工维权
-                                </a>
-                            </div>
+                            </NuxtLink>
                         </div>
-                        <!--end 市场预测 -->
-                        <!--open  价格行情 -->
-                        <div class=" clearfix" v-show="channel_choice_2_num == 2">
-                            价格行情
-                        </div>
-                        <!--end 价格行情 -->
+                    </div>
+                    <div class="channel_ul_5 clearfix" v-if="pageData[7].data2">
+                        <NuxtLink class="channel_ul_5_a dot1" :href="getLinkPathDetail(item)"
+                            v-for="(item, index) in pageData[7].data2" :key="index"
+                            :target="item.islink == 1 ? '_blank' : '_self'">
+                            {{ item.title }}
+                        </NuxtLink>
                     </div>
                 </div>
-            </section>
-        </main>
+            </div>
+        </div>
+    </section>
+    </main>
 
-        <!-- 页脚部分 -->
-        <HomeFoot1></HomeFoot1>
+    <!-- 页脚部分 -->
+    <HomeFoot1></HomeFoot1>
     </div>
 </template>
 
@@ -267,6 +351,8 @@
 //0.加载页面依赖 start ---------------------------------------->
 import { ref, onMounted } from 'vue';
 import { ElMessage } from 'element-plus';
+const channel_choice_1_num = ref(1)
+const channel_choice_2_num = ref(1)
 //0.加载页面依赖 end ---------------------------------------->
 
 //1.获得路由id start ---------------------------------------->
@@ -287,13 +373,29 @@ if (getRouteId.code == 200) {
 }
 //1.获得路由id end ---------------------------------------->
 
-//2.选项卡 start ---------------------------------------->
-let showTabs = ref(1)
-let qhtabs = function (number) {
-    console.log(number)
-    showTabs.value = number
+//2.页面交互效果 start ---------------------------------------->
+// 2.1 一级栏目
+const title = ref("")
+const tabsData = ref(1)
+
+async function getPageDataTitle() {
+    const mkdata = await requestDataPromise('/web/getOneWebsiteCategory', {
+        method: 'GET',
+        query: {
+            'catid': routeId,
+        },
+    });
+    if (mkdata.code == 200) {
+        title.value = mkdata.data.alias;
+    } else {
+        console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+        console.log("错误位置:获取二级标题")
+        console.log("后端错误反馈:", mkdata.message)
+        console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+    }
 }
-//2.选项卡 end ---------------------------------------->
+getPageDataTitle();
+//2.页面交互效果 end ---------------------------------------->
 
 //3.广告 start ---------------------------------------->
 let adImg1 = ref({})
@@ -304,7 +406,7 @@ onMounted(async () => {
     //从客户端获取行政职能部门 加快打开速度
     const { $webUrl, $CwebUrl } = useNuxtApp();
     //广告1
-    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0001`
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_category_0001`
     const responseAd1 = await fetch(url, {
         headers: {
             'Content-Type': 'application/json',
@@ -316,7 +418,7 @@ onMounted(async () => {
     adImg1.value = resultAd1.data[0];
 
     //广告2
-    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0002`
+    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_category_0002`
     const responseAd2 = await fetch(url2, {
         headers: {
             'Content-Type': 'application/json',
@@ -328,7 +430,7 @@ onMounted(async () => {
     adImg2.value = resultAd2.data[0];
 
     //广告3
-    let url3 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0003`
+    let url3 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_category_0003`
     const responseAd3 = await fetch(url3, {
         headers: {
             'Content-Type': 'application/json',
@@ -340,7 +442,7 @@ onMounted(async () => {
     adImg3.value = resultAd3.data[0];
 
     //广告4
-    let url4 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0004`
+    let url4 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_category_0004`
     const responseAd4 = await fetch(url4, {
         headers: {
             'Content-Type': 'application/json',
@@ -418,15 +520,34 @@ try {
         }
         //导航池加载完毕,开始申请模块数据
         let getJson = [
-            { "parent": routeId + ",0,0", "child": pageData.value[0].cid + ",5,10" },//模块1 顶部没有标题的那个
-            { "parent": routeId + ",0,0", "child": pageData.value[1].cid + ",1,6" },//模块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 + ",3,10" },//模块5
-            { "parent": routeId + ",0,0", "child": pageData.value[5].cid + ",2,6" },//模块6
-            { "parent": routeId + ",0,0", "child": pageData.value[6].cid + ",0,6" },//模块7
-            { "parent": routeId + ",0,0", "child": pageData.value[7].cid + ",1,0" },//模块8
+            // { "parent": routeId + ",0,0", "child": pageData.value[0].cid + ",4,8" },//模块1
+            // { "parent": routeId + ",0,0", "child": pageData.value[1].cid + ",2,8" },//模块2
+            // { "parent": routeId + ",0,0", "child": pageData.value[2].cid + ",1,6" },//模块3
+            // { "parent": routeId + ",0,0", "child": pageData.value[3].cid + ",6,0" },//模块4
+            // { "parent": routeId + ",0,0", "child": pageData.value[4].cid + ",2,3" },//模块5
+            // { "parent": routeId + ",0,0", "child": pageData.value[5].cid + ",1,0" },//模块6
+            // { "parent": routeId + ",0,0", "child": pageData.value[6].cid + ",3,10" },//模块7
+            // { "parent": routeId + ",0,0", "child": pageData.value[7].cid + ",1,6" },//模块8
         ]
+        for (let i = 0; i < pageData.value.length; i++) {
+            if (i == 0) {
+                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",4,8" });
+            } else if (i == 1) {
+                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",2,8" });
+            } else if (i == 2) {
+                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",1,6" });
+            } else if (i == 3) {
+                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",6,0" });
+            } else if (i == 4) {
+                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",2,3" });
+            } else if (i == 5) {
+                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",1,0" });
+            } else if (i == 6) {
+                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",3,10" });
+            } else if (i == 7) {
+                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",1,6" });
+            }
+        }
         let jsonString = JSON.stringify(getJson);
         getPageAllData(jsonString);
 
@@ -446,35 +567,43 @@ async function getPageAllData(jsonString) {
         },
     });
 
+    console.log("频道页渲染的模块数据:", mkdata);
+
     if (mkdata.code == 200) {
         //模块1 顶部大图和列表
         pageData.value[0].data = mkdata.data[0].child.imgnum;
         pageData.value[0].data2 = mkdata.data[0].child.textnum;
         //模块2
         pageData.value[1].data = mkdata.data[1].child.imgnum;
-        pageData.value[1].data2 = mkdata.data[1].child.textnum;
+        for (let index in mkdata.data[1].child.textnum) {
+            if (index < 4) {
+                pageData.value[1].data2.push(mkdata.data[1].child.textnum[index]);
+            } else {
+                pageData.value[1].data3.push(mkdata.data[1].child.textnum[index]);
+            }
+        }
         //模块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
-        for(let index in mkdata.data[4].child.imgnum){
-            if(index<1){
-                pageData.value[4].data.push(mkdata.data[4].child.imgnum[index]);
-            }else{
-                pageData.value[4].data2.push(mkdata.data[4].child.imgnum[index]);
-            }
-        }
-        pageData.value[4].data3 = mkdata.data[4].child.textnum;
+        pageData.value[4].data = mkdata.data[4].child.imgnum;
+        pageData.value[4].data2 = mkdata.data[4].child.textnum;
         //模块6
         pageData.value[5].data = mkdata.data[5].child.imgnum;
-        pageData.value[5].data2 = mkdata.data[5].child.textnum;
         //模块7
-        pageData.value[6].data = mkdata.data[6].child.textnum;
+        for (let index in mkdata.data[6].child.imgnum) {
+            if (index < 1) {
+                pageData.value[6].data.push(mkdata.data[6].child.imgnum[index]);
+            } else {
+                pageData.value[6].data2.push(mkdata.data[6].child.imgnum[index]);
+            }
+        }
+        pageData.value[6].data3 = mkdata.data[6].child.textnum;
         //模块8
         pageData.value[7].data = mkdata.data[7].child.imgnum;
+        pageData.value[7].data2 = mkdata.data[7].child.textnum;
 
     } else {
         ElMessage.error(mkdata.message)
@@ -505,7 +634,7 @@ if (setData.code == 200) {
         ]
     });
 } else {
-    console.log("设置频道页SEO出错!",setData.message)
+    console.log("设置频道页SEO出错!", setData.message)
 }
 //5.设置seo信息 end---------------------------------------->
 </script>

+ 2 - 2
pages/[dir]/list-[id].vue

@@ -223,7 +223,7 @@ onMounted(async ()  => {
     //从客户端获取行政职能部门 加快打开速度
     const { $webUrl, $CwebUrl } = useNuxtApp();
     //广告1
-    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_list_0001`
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_list_0001`
     const responseAd1 = await fetch(url, {
         headers: {
             'Content-Type': 'application/json',
@@ -235,7 +235,7 @@ onMounted(async ()  => {
     adImg1.value = resultAd1.data[0];
     
     //广告2
-    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_list_0002`
+    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_list_0002`
     const responseAd2 = await fetch(url2, {
         headers: {
             'Content-Type': 'application/json',

+ 7 - 4
pages/about/[dir]/[dir]/[id].vue

@@ -2,7 +2,7 @@
     <!-- 页面头部 -->
     <HomePageHead></HomePageHead>
     <!-- 导航栏 -->
-    <HomePageNavigation1></HomePageNavigation1>
+    <HomePageNavigation></HomePageNavigation>
     <!-- 列表页广告一 -->
     <HomeTopTen :imgurl="adImg1" v-if="adImg1"></HomeTopTen>
     <!-- 面包屑导航 -->
@@ -131,9 +131,12 @@ async function getPageData() {
     const mkdata =  await requestDataPromise('/web/getWebsiteFooterCategoryInfo', {
         method: 'GET',
         query: {
-            'fcat_id': articleId
+            'fcat_id': articleId,
+            'type': 0,
         },
     });
+    console.log('1111', mkdata);
+    
     newsDetail.value = mkdata.data;
 }
 getPageData();
@@ -175,7 +178,7 @@ onMounted(async ()  => {
     //从客户端获取行政职能部门 加快打开速度
     const { $webUrl, $CwebUrl } = useNuxtApp();
     //广告1
-    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_page_0001`
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_page_0001`
     const responseAd1 = await fetch(url, {
         headers: {
             'Content-Type': 'application/json',
@@ -187,7 +190,7 @@ onMounted(async ()  => {
     adImg1.value = resultAd1.data[0];
     
     //广告2
-    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_page_0002`
+    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_page_0002`
     const responseAd2 = await fetch(url2, {
         headers: {
             'Content-Type': 'application/json',

+ 5 - 4
pages/about/[dir]/index.html.vue

@@ -2,7 +2,7 @@
     <!-- 页面头部 -->
     <HomePageHead></HomePageHead>
     <!-- 导航栏 -->
-    <HomePageNavigation1></HomePageNavigation1>
+    <HomePageNavigation></HomePageNavigation>
     <!-- 列表页广告一 -->
     <HomeTopTen :imgurl="adImg1" v-if="adImg1"></HomeTopTen>
     <!-- 面包屑导航 -->
@@ -132,7 +132,8 @@ async function getPageData() {
     const mkdata =  await requestDataPromise('/web/getWebsiteFooterCategoryInfo', {
         method: 'GET',
         query: {
-            'fcat_id': articleId
+            'fcat_id': articleId,
+            'type':0
         },
     });
     newsDetail.value = mkdata.data;
@@ -176,7 +177,7 @@ onMounted(async ()  => {
     //从客户端获取行政职能部门 加快打开速度
     const { $webUrl, $CwebUrl } = useNuxtApp();
     //广告1
-    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_page_0001`
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_page_0001`
     const responseAd1 = await fetch(url, {
         headers: {
             'Content-Type': 'application/json',
@@ -188,7 +189,7 @@ onMounted(async ()  => {
     adImg1.value = resultAd1.data[0];
     
     //广告2
-    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_page_0002`
+    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_page_0002`
     const responseAd2 = await fetch(url2, {
         headers: {
             'Content-Type': 'application/json',

+ 3 - 3
pages/about/[dir]/list-[id].vue

@@ -3,7 +3,7 @@
         <!-- 页面头部 -->
         <HomePageHead></HomePageHead>
         <!-- 导航栏 -->
-        <HomePageNavigation1></HomePageNavigation1>
+        <HomePageNavigation></HomePageNavigation>
         <!-- 列表页广告一 -->
         <HomeTopTen :imgurl="adImg1" v-if="adImg1"></HomeTopTen>
         <!-- 面包屑导航 -->
@@ -184,7 +184,7 @@ onMounted(async ()  => {
     //从客户端获取行政职能部门 加快打开速度
     const { $webUrl, $CwebUrl } = useNuxtApp();
     //广告1
-    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_page_0001`
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_page_0001`
     const responseAd1 = await fetch(url, {
         headers: {
             'Content-Type': 'application/json',
@@ -196,7 +196,7 @@ onMounted(async ()  => {
     adImg1.value = resultAd1.data[0];
     
     //广告2
-    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_page_0002`
+    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_page_0002`
     const responseAd2 = await fetch(url2, {
         headers: {
             'Content-Type': 'application/json',

File diff suppressed because it is too large
+ 234 - 395
pages/index.vue


+ 3 - 3
pages/search/[id].vue

@@ -3,7 +3,7 @@
         <!-- 页面头部 -->
         <HomePageHead></HomePageHead>
         <!-- 导航栏 -->
-        <HomePageNavigation1></HomePageNavigation1>
+        <HomePageNavigation></HomePageNavigation>
         <!-- 列表页广告一 -->
         <HomeTopTen :imgurl="adImg1" v-if="adImg1"></HomeTopTen>
         <!-- 搜索框 -->
@@ -153,7 +153,7 @@ onMounted(async ()  => {
     //从客户端获取行政职能部门 加快打开速度
     const { $webUrl, $CwebUrl } = useNuxtApp();
     //广告1
-    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_search_0001`
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_search_0001`
     const responseAd1 = await fetch(url, {
         headers: {
             'Content-Type': 'application/json',
@@ -165,7 +165,7 @@ onMounted(async ()  => {
     adImg1.value = resultAd1.data[0];
     
     //广告2
-    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_search_0002`
+    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nfcpgxw_search_0002`
     const responseAd2 = await fetch(url2, {
         headers: {
             'Content-Type': 'application/json',

+ 12 - 12
plugins/globals.ts

@@ -1,21 +1,21 @@
 export default defineNuxtPlugin((nuxtApp) => {
-  //Pre环境
+  //农副产品供销网pre环境
   nuxtApp.provide('webUrl', 'http://apipre1.bjzxtw.org.cn:29501')
-  nuxtApp.provide('CwebUrl', 'http://nwpre.bjzxtw.org.cn')
+  nuxtApp.provide('CwebUrl', 'http://pre.nfcpgx.org.cn')
   nuxtApp.provide('BwebUrl', 'http://adminpre.bjzxtw.org.cn')
   nuxtApp.provide('LoginWebUrl', 'http://adminpre.bjzxtw.org.cn/adminapi')
-  nuxtApp.provide('userUrl', 'http://localhost:3000')
+  nuxtApp.provide('userUrl', 'http://localhost:3005')
 
-  //正式环境
-//   nuxtApp.provide('webUrl', 'https://flzxw.bjzxtw.org.cn')
-//   nuxtApp.provide('CwebUrl', 'http://nw.bjzxtw.org.cn')
-//   nuxtApp.provide('BwebUrl', 'https://admin.bjzxtw.org.cn')
-//   nuxtApp.provide('LoginWebUrl', 'http://admin.bjzxtw.org.cn/adminapi')
-//   nuxtApp.provide('userUrl', 'http://localhost:3000')
-  
-  //乡村网
+  // 农副产品供销网正式环境
+  // nuxtApp.provide('webUrl', 'https://flzxw.bjzxtw.org.cn')
+  // nuxtApp.provide('CwebUrl', 'http://nw.bjzxtw.org.cn')
+  // nuxtApp.provide('BwebUrl', 'https://admin.bjzxtw.org.cn')
+  // nuxtApp.provide('LoginWebUrl', 'http://admin.bjzxtw.org.cn/adminapi')
+  // nuxtApp.provide('userUrl', 'http://localhost:3000')
+
+  //农副产品供销网pre
   // nuxtApp.provide('webUrl', 'http://apipre1.bjzxtw.org.cn:29501')
-  // nuxtApp.provide('CwebUrl', 'http://pre.china-village.com.cn')
+  // nuxtApp.provide('CwebUrl', 'http://pre.nfcpgx.com.cn')
   // nuxtApp.provide('BwebUrl', 'http://adminpre.bjzxtw.org.cn')
   // nuxtApp.provide('userUrl', 'http://localhost:3000')
 

BIN
public/favicon.ico


Some files were not shown because too many files changed in this diff