Browse Source

企业功能完成

Jing 5 days ago
parent
commit
df3bdb465d

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 { requestData, requestDataPromise, requestDataWebUrl, requestHome } from '../composables/getData';
 export { getTime, getTitleLength, getLinkPath, getLinkPathDetail, getLinkPathDetail1, getRoutePath, getLinkPath1 } from '../composables/publicFunction';
 export { getTime, getTitleLength, getLinkPath, getLinkPathDetail, getLinkPathDetail1, getRoutePath, getLinkPath1 } from '../composables/publicFunction';
 export { seoSetup } from '../composables/useSeo';
 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';
 export { definePageMeta } from '../node_modules/nuxt/dist/pages/runtime/composables';

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

@@ -1 +1 @@
-{"id":"7ff2d0f3-ab89-4e8f-a438-eebd5293e4dc","timestamp":1751870533395}
+{"id":"0f416e61-3820-48db-970d-81dbcf093fc1","timestamp":1752199797724}

+ 1 - 0
.nuxt/manifest/meta/0f416e61-3820-48db-970d-81dbcf093fc1.json

@@ -0,0 +1 @@
+{"id":"0f416e61-3820-48db-970d-81dbcf093fc1","timestamp":1752199797724,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

+ 0 - 1
.nuxt/manifest/meta/7ff2d0f3-ab89-4e8f-a438-eebd5293e4dc.json

@@ -1 +0,0 @@
-{"id":"7ff2d0f3-ab89-4e8f-a438-eebd5293e4dc","timestamp":1751870533395,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

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

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

+ 0 - 17
.nuxt/nitro.json

@@ -1,17 +0,0 @@
-{
-  "date": "2025-07-07T06:42:16.585Z",
-  "preset": "nitro-dev",
-  "framework": {
-    "name": "nuxt",
-    "version": "3.15.2"
-  },
-  "versions": {
-    "nitro": "2.10.4"
-  },
-  "dev": {
-    "pid": 11828,
-    "workerAddress": {
-      "socketPath": "\\\\.\\pipe\\nitro\\worker-11828-2.sock"
-    }
-  }
-}

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

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

+ 1 - 1
.nuxt/tsconfig.json

@@ -102,7 +102,7 @@
         "./imports"
         "./imports"
       ],
       ],
       "#app-manifest": [
       "#app-manifest": [
-        "./manifest/meta/dev.json"
+        "./manifest/meta/0f416e61-3820-48db-970d-81dbcf093fc1.json"
       ],
       ],
       "#components": [
       "#components": [
         "./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/root-component.mjs";
 declare module "#build/plugins.server.mjs";
 declare module "#build/plugins.server.mjs";
 declare module "#build/test-component-wrapper.mjs";
 declare module "#build/test-component-wrapper.mjs";
-declare module "#build/devtools/settings.mjs";
 declare module "#build/routes.mjs";
 declare module "#build/routes.mjs";
 declare module "#build/pages.mjs";
 declare module "#build/pages.mjs";
 declare module "#build/router.options.mjs";
 declare module "#build/router.options.mjs";

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

@@ -124,7 +124,6 @@ declare global {
   const useModel: typeof import('vue')['useModel']
   const useModel: typeof import('vue')['useModel']
   const useNuxtApp: typeof import('../../node_modules/nuxt/dist/app/nuxt')['useNuxtApp']
   const useNuxtApp: typeof import('../../node_modules/nuxt/dist/app/nuxt')['useNuxtApp']
   const useNuxtData: typeof import('../../node_modules/nuxt/dist/app/composables/asyncData')['useNuxtData']
   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 usePreviewMode: typeof import('../../node_modules/nuxt/dist/app/composables/preview')['usePreviewMode']
   const useRequestEvent: typeof import('../../node_modules/nuxt/dist/app/composables/ssr')['useRequestEvent']
   const useRequestEvent: typeof import('../../node_modules/nuxt/dist/app/composables/ssr')['useRequestEvent']
   const useRequestFetch: typeof import('../../node_modules/nuxt/dist/app/composables/ssr')['useRequestFetch']
   const useRequestFetch: typeof import('../../node_modules/nuxt/dist/app/composables/ssr')['useRequestFetch']
@@ -314,7 +313,6 @@ declare module 'vue' {
     readonly useModel: UnwrapRef<typeof import('vue')['useModel']>
     readonly useModel: UnwrapRef<typeof import('vue')['useModel']>
     readonly useNuxtApp: UnwrapRef<typeof import('../../node_modules/nuxt/dist/app/nuxt')['useNuxtApp']>
     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 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 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 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']>
     readonly useRequestFetch: UnwrapRef<typeof import('../../node_modules/nuxt/dist/app/composables/ssr')['useRequestFetch']>

+ 3 - 8
.nuxt/types/plugins.d.ts

@@ -9,18 +9,13 @@ type NuxtAppInjections =
   InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/revive-payload.client.js")> &
   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/head/runtime/plugins/unhead.js")> &
   InjectionType<typeof import("../../node_modules/nuxt/dist/pages/runtime/plugins/router.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/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/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/revive-payload.server.js")> &
   InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/chunk-reload.client.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/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/element-plus.js")> &
   InjectionType<typeof import("../../plugins/request")> &
   InjectionType<typeof import("../../plugins/request")> &
   InjectionType<typeof import("../../plugins/category")> &
   InjectionType<typeof import("../../plugins/category")> &
   InjectionType<typeof import("../../plugins/globals")> &
   InjectionType<typeof import("../../plugins/globals")> &
@@ -30,7 +25,7 @@ declare module '#app' {
   interface NuxtApp extends NuxtAppInjections { }
   interface NuxtApp extends NuxtAppInjections { }
 
 
   interface NuxtAppLiterals {
   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 - 0
assets/css/index.less

@@ -403,6 +403,7 @@ section {
 }
 }
 
 
 .index_4_ul {
 .index_4_ul {
+    height: 348px;
     margin-top: 20px;
     margin-top: 20px;
     margin-bottom: 20px;
     margin-bottom: 20px;
     border: solid 1px #D0EEED;
     border: solid 1px #D0EEED;

+ 391 - 0
assets/css/peixun/detail.less

@@ -0,0 +1,391 @@
+* {
+    font-family: "微软雅黑", "microsoft yahei";
+}
+
+ul,
+ol {
+    list-style: none;
+}
+
+a:active {
+    text-decoration: none;
+}
+
+a:hover {
+    text-decoration: none;
+}
+
+a:visited {
+    text-decoration: none;
+    color: #666;
+}
+
+a:link {
+    text-decoration: none;
+}
+
+a:focus {
+    text-decoration: none;
+}
+
+body {
+    position: relative;
+}
+
+.clearfix {
+    overflow: hidden;
+}
+
+.clearfix_2::after {
+    content: '';
+    display: block;
+    height: 0;
+    visibility: hidden;
+    clear: both;
+}
+
+.hiddenColor {
+    visibility: hidden;
+}
+
+.hand {
+    cursor: pointer;
+}
+
+.aTag_parent {
+    position: relative;
+}
+
+.aTag_parent>a,
+.aTag {
+    display: block;
+    width: 100%;
+    height: 100%;
+    position: absolute;
+    z-index: 99;
+    border: 0px;
+    top: 0px;
+    left: 0px;
+    background: rgba(0, 0, 0, 0);
+}
+
+.dot1 {
+    display: block;
+    word-break: keep-all;
+    white-space: nowrap;
+    overflow: hidden;
+    text-overflow: ellipsis;
+}
+
+.dot2 {
+    overflow: hidden;
+    display: -webkit-box;
+    -webkit-box-orient: vertical;
+    -webkit-line-clamp: 2;
+}
+
+input,
+img {
+    border: none;
+}
+
+.cover100 img {
+    display: block;
+    width: 100%;
+    height: 100%;
+    object-fit: cover;
+}
+
+.back100 {
+    background-size: 100% 100%;
+    background-repeat: no-repeat;
+}
+
+article,
+aside,
+footer,
+header,
+time,
+video,
+main,
+nav,
+h4,
+h3,
+section {
+    display: block;
+}
+
+.index_main {
+    margin: 0 auto;
+}
+
+//导航条
+.breadcrumb {
+    width: 100%;
+    height: 22px;
+    padding-bottom: 12px;
+    // border-bottom: 1px solid #e6e6e6;
+    font-family: Microsoft YaHei, Microsoft YaHei;
+    font-weight: 400;
+    font-size: 20px;
+    color: #666666;
+    line-height: 23px;
+    text-align: left;
+    font-style: normal;
+    text-transform: none;
+
+    .el-breadcrumb::v-deep {
+        display: inline-block;
+        vertical-align: -4px;
+    }
+
+    :deep(.el-breadcrumb__inner a),
+    :deep(.el-breadcrumb__inner.is-link) {
+        color: #666666;
+        font-weight: 400;
+        text-decoration: none;
+        transition: var(--el-transition-color);
+    }
+
+    span {
+        font-family: Microsoft YaHei, Microsoft YaHei;
+        font-weight: 400;
+        font-size: 20px;
+        color: #666666;
+        line-height: 23px;
+        text-align: left;
+        font-style: normal;
+        text-transform: none;
+    }
+
+    span:hover {
+        color: #666666;
+    }
+
+    .location {
+        margin-right: 20px;
+        width: 100px;
+        height: 22px;
+        font-family: Microsoft YaHei, Microsoft YaHei;
+        font-weight: 400;
+        font-size: 20px;
+        color: #666666;
+        line-height: 23px;
+        text-align: left;
+        font-style: normal;
+        text-transform: none;
+    }
+}
+
+.slow_6 {
+    -webkit-transition: all .6s;
+    -moz-transition: all .6s;
+    -ms-transition: all .6s;
+    -o-transition: all .6s;
+    transition: all .6s;
+}
+
+.index_main {
+    width: 1200px;
+}
+
+.banner_1 {
+    height: 90px;
+    width: 1200px;
+    overflow: hidden;
+    margin: 30px auto 0px;
+
+    .banner_1_a {
+        height: 90px;
+        width: 1200px;
+        display: block;
+    }
+
+    .banner_1_img {
+        display: block;
+        width: 1200px;
+    }
+}
+
+.info_crumb_box {
+    height: 22px;
+    margin: 30px auto 20px;
+
+    .info_crumb_text {
+        display: inline-block;
+        height: 22px;
+        line-height: 22px;
+        color: #666;
+        font-size: 20px;
+        margin-right: 15px;
+    }
+
+    a.info_crumb_text:hover {
+        color: #489d97;
+    }
+}
+
+.info_head_box {
+    border-bottom: solid 1px #D9D9D9;
+
+    .info_head_left {
+        float: left;
+    }
+
+    .info_head_a {
+        float: left;
+        height: 55px;
+        line-height: 55px;
+        color: #333;
+        font-weight: bold;
+        font-size: 22px;
+        border-bottom: solid 3px rgba(0, 0, 0, 0);
+        margin-right: 40px;
+    }
+
+    .info_head_only {
+        float: left;
+        height: 55px;
+        line-height: 55px;
+        color: #489d97;
+        font-weight: bold;
+        font-size: 22px;
+        border-bottom: solid 3px #489d97;
+    }
+}
+
+.index_2 {
+    margin-top: 30px;
+}
+
+.index_2_img {
+    float: left;
+    width: 330px;
+    height: 330px;
+}
+
+.index_2_right {
+    float: right;
+    width: 845px;
+}
+
+.index_2_h4 {
+    line-height: 29px;
+    color: #333;
+    font-size: 22px;
+}
+
+.index_2_title_box {}
+
+.index_2_title {
+    float: left;
+    height: 31px;
+    line-height: 31px;
+    color: #999;
+    font-size: 16px;
+    padding: 0px 10px;
+    margin: 14px 20px 0px 0px;
+    background: #F8F8F8;
+}
+
+.index_2_ul {
+    margin-top: 10px;
+    height: 265px;
+
+    .index_2_ul_left {
+        float: left;
+        width: 420px;
+    }
+
+    .index_2_li {
+        display: flex;
+        margin-bottom: 23px;
+    }
+
+    .index_2_li_label {
+        line-height: 21px;
+        color: #999;
+        font-size: 16px;
+        min-width: 64px;
+        margin-right: 15px;
+    }
+
+    .index_2_li_text {
+        line-height: 21px;
+        color: #333;
+        font-size: 16px;
+    }
+}
+
+.info_2_head_box {
+    border-bottom: solid 1px #D9D9D9;
+
+    .info_head_left {
+        float: left;
+    }
+
+    .info_2_head_a {
+        float: left;
+        height: 55px;
+        line-height: 55px;
+        color: #333;
+        font-weight: bold;
+        font-size: 22px;
+        border-bottom: solid 3px rgba(0, 0, 0, 0);
+        margin-right: 40px;
+    }
+
+    .info_2_head_only {
+        float: left;
+        height: 55px;
+        line-height: 55px;
+        color: #489d97;
+        font-weight: bold;
+        font-size: 22px;
+        border-bottom: solid 3px #489d97;
+    }
+}
+
+.info_img_ul {
+    margin-top: 30px;
+    display: flex;
+    justify-content: space-between;
+
+    .info_img_li {
+        width: 210px;
+        height: 210px;
+        margin-bottom: 20px;
+    }
+
+    .info_img_li_foto {
+        display: block;
+        width: 100%;
+        height: 100%;
+    }
+}
+
+.index_3 * {
+    font-size: 18px;
+    color: #333;
+    line-height: 35px;
+}
+
+.info_article {
+    margin-top: 11px;
+    min-height: 400px;
+}
+
+@media screen and (min-width:1200px) {
+    /*pc_1440*/
+    @media screen and (max-width:1440px) {
+        /*1200*/
+    }
+
+    .pc_none {
+        display: none;
+    }
+}
+
+@media screen and (max-width:599px) {}
+
+@media screen and (max-width:320px) {}

+ 16 - 16
pages/[dir]/index.html.vue

@@ -14,10 +14,10 @@
                             v-if="pageData[0]" :title="pageData[0].alias">
                             v-if="pageData[0]" :title="pageData[0].alias">
                             {{ pageData[0].alias }}
                             {{ pageData[0].alias }}
                         </NuxtLink>
                         </NuxtLink>
-                        <NuxtLink class="channel_name_more_2" :href="getLinkPath(pageData[0])" v-if="pageData[0]"
+                        <!-- <NuxtLink class="channel_name_more_2" :href="getLinkPath(pageData[0])" v-if="pageData[0]"
                             :title="pageData[0].alias">
                             :title="pageData[0].alias">
                             栏目简介
                             栏目简介
-                        </NuxtLink>
+                        </NuxtLink> -->
                     </div>
                     </div>
                     <div class="index_2_ul index_2_ul_bold channel_2_ul" v-if="pageData[0]">
                     <div class="index_2_ul index_2_ul_bold channel_2_ul" v-if="pageData[0]">
                         <NuxtLink class="index_2_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
                         <NuxtLink class="index_2_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
@@ -35,10 +35,10 @@
                         :title="boxData1data.alias">
                         :title="boxData1data.alias">
                         {{ boxData1data.alias }}
                         {{ boxData1data.alias }}
                     </NuxtLink>
                     </NuxtLink>
-                    <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData1data)" v-if="boxData1data"
+                    <!-- <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData1data)" v-if="boxData1data"
                         :title="boxData1data.alias">
                         :title="boxData1data.alias">
                         栏目简介
                         栏目简介
-                    </NuxtLink>
+                    </NuxtLink> -->
                 </div>
                 </div>
                 <div class="channel_5_ul_box clearfix">
                 <div class="channel_5_ul_box clearfix">
                     <div class="channel_5_ul_box_in clearfix">
                     <div class="channel_5_ul_box_in clearfix">
@@ -83,10 +83,10 @@
                             v-if="pageData[1]" :title="pageData[1].alias">
                             v-if="pageData[1]" :title="pageData[1].alias">
                             {{ pageData[1].alias }}
                             {{ pageData[1].alias }}
                         </NuxtLink>
                         </NuxtLink>
-                        <NuxtLink class="channel_name_more_2" :href="getLinkPath(pageData[1])" v-if="pageData[1]"
+                        <!-- <NuxtLink class="channel_name_more_2" :href="getLinkPath(pageData[1])" v-if="pageData[1]"
                             :title="pageData[1].alias">
                             :title="pageData[1].alias">
                             栏目简介
                             栏目简介
-                        </NuxtLink>
+                        </NuxtLink> -->
                     </div>
                     </div>
                     <div class="index_2_body clearfix">
                     <div class="index_2_body clearfix">
                         <div class="index_5_box_1 clearfix">
                         <div class="index_5_box_1 clearfix">
@@ -132,10 +132,10 @@
                             v-if="pageData[2]" :title="pageData[2].alias">
                             v-if="pageData[2]" :title="pageData[2].alias">
                             {{ pageData[2].alias }}
                             {{ pageData[2].alias }}
                         </NuxtLink>
                         </NuxtLink>
-                        <NuxtLink class="channel_name_more_2" :href="getLinkPath(pageData[2])" v-if="pageData[2]"
+                        <!-- <NuxtLink class="channel_name_more_2" :href="getLinkPath(pageData[2])" v-if="pageData[2]"
                             :title="pageData[2].alias">
                             :title="pageData[2].alias">
                             栏目简介
                             栏目简介
-                        </NuxtLink>
+                        </NuxtLink> -->
                     </div>
                     </div>
                     <div class="index_5_img_ul_2 clearfix channel_2_head_top" v-if="pageData[2].data">
                     <div class="index_5_img_ul_2 clearfix channel_2_head_top" v-if="pageData[2].data">
                         <div class="index_5_img_ul_2_li" v-for="item in pageData[2].data">
                         <div class="index_5_img_ul_2_li" v-for="item in pageData[2].data">
@@ -196,10 +196,10 @@
                             :title="boxData2data.alias">
                             :title="boxData2data.alias">
                             {{ boxData2data.alias }}
                             {{ boxData2data.alias }}
                         </NuxtLink>
                         </NuxtLink>
-                        <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData2data)" v-if="boxData2data"
+                        <!-- <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData2data)" v-if="boxData2data"
                             :title="boxData2data.alias">
                             :title="boxData2data.alias">
                             栏目简介
                             栏目简介
-                        </NuxtLink>
+                        </NuxtLink> -->
                     </div>
                     </div>
                     <div class="channel_6_line clearfix">
                     <div class="channel_6_line clearfix">
                         <div class="channel_6_ul_box_in clearfix">
                         <div class="channel_6_ul_box_in clearfix">
@@ -240,10 +240,10 @@
                             :title="boxData3data.alias">
                             :title="boxData3data.alias">
                             {{ boxData3data.alias }}
                             {{ boxData3data.alias }}
                         </NuxtLink>
                         </NuxtLink>
-                        <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData3data)" v-if="boxData3data"
+                        <!-- <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData3data)" v-if="boxData3data"
                             :title="boxData3data.alias">
                             :title="boxData3data.alias">
                             栏目简介
                             栏目简介
-                        </NuxtLink>
+                        </NuxtLink> -->
                     </div>
                     </div>
                     <div class="channel_6_line clearfix">
                     <div class="channel_6_line clearfix">
                         <div class="channel_6_ul_box_in clearfix">
                         <div class="channel_6_ul_box_in clearfix">
@@ -287,10 +287,10 @@
                             :title="boxData4data.alias">
                             :title="boxData4data.alias">
                             {{ boxData4data.alias }}
                             {{ boxData4data.alias }}
                         </NuxtLink>
                         </NuxtLink>
-                        <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData4data)" v-if="boxData4data"
+                        <!-- <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData4data)" v-if="boxData4data"
                             :title="boxData4data.alias">
                             :title="boxData4data.alias">
                             栏目简介
                             栏目简介
-                        </NuxtLink>
+                        </NuxtLink> -->
                     </div>
                     </div>
                     <div class="channel_6_line clearfix">
                     <div class="channel_6_line clearfix">
                         <div class="channel_6_ul_box_in clearfix">
                         <div class="channel_6_ul_box_in clearfix">
@@ -331,10 +331,10 @@
                             :title="boxData5data.alias">
                             :title="boxData5data.alias">
                             {{ boxData5data.alias }}
                             {{ boxData5data.alias }}
                         </NuxtLink>
                         </NuxtLink>
-                        <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData5data)" v-if="boxData5data"
+                        <!-- <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData5data)" v-if="boxData5data"
                             :title="boxData5data.alias">
                             :title="boxData5data.alias">
                             栏目简介
                             栏目简介
-                        </NuxtLink>
+                        </NuxtLink> -->
                     </div>
                     </div>
                     <div class="channel_6_line clearfix">
                     <div class="channel_6_line clearfix">
                         <div class="channel_6_ul_box_in clearfix">
                         <div class="channel_6_ul_box_in clearfix">

+ 40 - 50
pages/index.vue

@@ -65,7 +65,7 @@
             <section class="index_3 clearfix">
             <section class="index_3 clearfix">
                 <div class="index_3_h4_box">
                 <div class="index_3_h4_box">
                     <h4 class="index_3_h4">
                     <h4 class="index_3_h4">
-                        <span class="index_3_h4_a">最新热门职位</span>
+                        <span class="index_3_h4_a" :title="最新热门职位">最新热门职位</span>
                     </h4>
                     </h4>
                 </div>
                 </div>
                 <!-- {{ job_vacancy }} -->
                 <!-- {{ job_vacancy }} -->
@@ -103,46 +103,14 @@
                 <!-- open 推荐就业单位-->
                 <!-- open 推荐就业单位-->
                 <div class="index_3_h4_box">
                 <div class="index_3_h4_box">
                     <h4 class="index_3_h4">
                     <h4 class="index_3_h4">
-                        <a class="index_3_h4_a" href="" title="">推荐就业单位</a>
+                        <span class="index_3_h4_a" title="推荐就业单位">推荐就业单位</span>
                     </h4>
                     </h4>
                 </div>
                 </div>
                 <div class="index_4_ul clearfix">
                 <div class="index_4_ul clearfix">
-                    <a class="index_4_ul_a dot1" href=""
-                        title="">推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位</a>
-                    <a class="index_4_ul_a dot1" href=""
-                        title="">推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位</a>
-                    <a class="index_4_ul_a dot1" href=""
-                        title="">推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位</a>
-                    <a class="index_4_ul_a dot1" href=""
-                        title="">推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位</a>
-                    <a class="index_4_ul_a dot1" href=""
-                        title="">推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位</a>
-                    <a class="index_4_ul_a dot1" href=""
-                        title="">推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位</a>
-                    <a class="index_4_ul_a dot1" href=""
-                        title="">推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位</a>
-                    <a class="index_4_ul_a dot1" href=""
-                        title="">推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位</a>
-                    <a class="index_4_ul_a dot1" href=""
-                        title="">推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位</a>
-                    <a class="index_4_ul_a dot1" href=""
-                        title="">推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位</a>
-                    <a class="index_4_ul_a dot1" href=""
-                        title="">推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位</a>
-                    <a class="index_4_ul_a dot1" href=""
-                        title="">推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位</a>
-                    <a class="index_4_ul_a dot1" href=""
-                        title="">推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位</a>
-                    <a class="index_4_ul_a dot1" href=""
-                        title="">推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位</a>
-                    <a class="index_4_ul_a dot1" href=""
-                        title="">推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位</a>
-                    <a class="index_4_ul_a dot1" href=""
-                        title="">推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位</a>
-                    <a class="index_4_ul_a dot1" href=""
-                        title="">推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位</a>
-                    <a class="index_4_ul_a dot1" href=""
-                        title="">推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位推荐就业单位</a>
+                    <NuxtLink class="index_4_ul_a dot1" :href="`/${item.pinyin}/${item.id}.html`" :title="item.title"
+                        v-for="(item, index) in recommend_company" :key="index">
+                        {{ item.title }}
+                    </NuxtLink>
                 </div>
                 </div>
                 <!-- over 推荐就业单位-->
                 <!-- over 推荐就业单位-->
             </section>
             </section>
@@ -943,8 +911,8 @@ async function getPageAllData() {
                 //子导航内容
                 //子导航内容
                 boxData6mainData.value = mkdata.data[5].child.textnum;
                 boxData6mainData.value = mkdata.data[5].child.textnum;
             }
             }
-            console.log('boxData6',boxData6.value);
-            
+            console.log('boxData6', boxData6.value);
+
         }
         }
 
 
         if (mkdata.data.length > 6) {
         if (mkdata.data.length > 6) {
@@ -979,10 +947,10 @@ async function getPageAllData() {
             //模块8
             //模块8
             boxData8.value = mkdata.data[7].textnum;
             boxData8.value = mkdata.data[7].textnum;
         }
         }
-        if (mkdata.data.length > 8) {
-            //模块9
-            boxData9.value = mkdata.data[8].textnum;
-        }
+        // if (mkdata.data.length > 8) {
+        //     //模块9
+        //     boxData9.value = mkdata.data[8].textnum;
+        // }
         if (mkdata.data.length > 9) {
         if (mkdata.data.length > 9) {
             //模块10
             //模块10
             boxData10.value = mkdata.data[9].imgnum;
             boxData10.value = mkdata.data[9].imgnum;
@@ -991,17 +959,39 @@ async function getPageAllData() {
             //模块11
             //模块11
             boxData11.value = mkdata.data[10].imgnum;
             boxData11.value = mkdata.data[10].imgnum;
         }
         }
-
-
-
-
-
-
     } else {
     } else {
         ElMessage.error(mkdata.message)
         ElMessage.error(mkdata.message)
     }
     }
 }
 }
 getPageAllData();
 getPageAllData();
+let getJson_company = [
+    { 'id': $pageNav[8] + ",0,6" },
+    { 'level': "1,0,18" },
+]
+let companyJson = JSON.stringify(getJson_company)
+
+//企业功能
+//农民工培训模块547
+const recommend_company = ref('') // 推荐岗位
+const getRecommendCompany = async () => {
+    const getCompany = await requestDataPromise('/web/getWebsiteCompany', {
+        method: 'GET',
+        query: {
+            'id': companyJson
+        },
+    });
+    if (getCompany.code == 200) {
+        console.log('getCompany', getCompany);
+        if (getCompany.data.length > 0) {
+            boxData9.value = getCompany.data[0].text_num;
+        }
+        if (getCompany.data.length > 1) {
+            recommend_company.value = getCompany.data[1].text_num;
+        }
+    }
+}
+getRecommendCompany()
+
 //4.页面数据 end---------------------------------------->
 //4.页面数据 end---------------------------------------->
 
 
 //5.设置seo数据 start---------------------------------------->
 //5.设置seo数据 start---------------------------------------->

+ 306 - 0
pages/nongmingongpeixun/[dir]/[id].vue

@@ -0,0 +1,306 @@
+<template>
+    <!-- 页面头部 -->
+    <HomePageHead></HomePageHead>
+    <!-- 导航栏 -->
+    <HomePageNavigation></HomePageNavigation>
+    <!-- 公司信息详情页 -->
+    <section class="index_main">
+        <!-- 列表页广告一 -->
+        <HomeTopTen :imgurl="adImg1" v-if="adImg1"></HomeTopTen>
+        <!-- 面包屑导航 -->
+        <div class="breadcrumb">
+            <div class="inner">
+                <span class="location">当前位置:</span>
+                <el-breadcrumb :separator-icon="ArrowRight">
+                    <el-breadcrumb-item>
+                        <NuxtLink to="/">首页</NuxtLink>
+                    </el-breadcrumb-item>
+                    <el-breadcrumb-item v-if="parent_name != ''">
+                        <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
+                    </el-breadcrumb-item>
+                    <el-breadcrumb-item>
+                        <NuxtLink :to="`list-1.html`"> {{ routeName }}</NuxtLink>
+                    </el-breadcrumb-item>
+                    <el-breadcrumb-item>{{ routeNewsTtitle }}</el-breadcrumb-item>
+                </el-breadcrumb>
+            </div>
+        </div>
+        <!-- 面包屑  end-->
+        <div class="info_head_box clearfix">
+            <div class="info_head_left">
+                <a class="info_head_a info_head_only" :title="公司信息">公司信息</a>
+            </div>
+        </div>
+        <section class="index_2 clearfix">
+            <img class="index_2_img" :src="detailImg[0]" :title="routeNewsTtitle" alt="">
+            <div class="index_2_right">
+                <h4 class="index_2_h4"> {{ routeNewsTtitle }}</h4>
+                <div class="index_2_title_box clearfix">
+                    <time class="index_2_title">
+                        成立日期:
+                        <span v-if="time"> {{ time }}</span>
+                    </time>
+                    <span class="index_2_title">
+                        所在城市:
+                        <span v-if="newsDetail.city_name">{{ newsDetail.city_name }}</span>
+                    </span>
+                </div>
+                <div class="index_2_ul clearfix">
+                    <div class="index_2_ul_left">
+                        <div class="index_2_li clearfix">
+                            <label class="index_2_li_label">机构性质</label>
+                            <span class="index_2_li_text " v-if="newsDetail.jobnature_name">
+                                {{ newsDetail.jobnature_name }}</span>
+                        </div>
+                        <div class="index_2_li clearfix">
+                            <label class="index_2_li_label">负 责 人</label>
+                            <span class="index_2_li_text" v-if="newsDetail.manager">
+                                {{ newsDetail.manager }}
+                            </span>
+                        </div>
+                        <div class="index_2_li clearfix">
+                            <label class="index_2_li_label">联 系 人</label>
+                            <span class="index_2_li_text " v-if="newsDetail.content_person">
+                                {{ newsDetail.content_person }}
+                            </span>
+                        </div>
+                        <div class="index_2_li clearfix">
+                            <label class="index_2_li_label">联系电话</label>
+                            <span class="index_2_li_text ">{{ newsDetail.telephone }}</span>
+                        </div>
+                        <div class="index_2_li clearfix">
+                            <label class="index_2_li_label">手 &nbsp;&nbsp;&nbsp;&nbsp; 机</label>
+                            <span class="index_2_li_text ">{{ newsDetail.mobile }}</span>
+                        </div>
+                        <div class="index_2_li clearfix">
+                            <label class="index_2_li_label">地 &nbsp;&nbsp;&nbsp;&nbsp; 址</label>
+                            <span class="index_2_li_text ">{{ newsDetail.adress }}</span>
+                        </div>
+                    </div>
+                    <div class="index_2_ul_left">
+                        <div class="index_2_li clearfix">
+                            <label class="index_2_li_label">所属行业</label>
+                            <span class="index_2_li_text ">{{ newsDetail.hy_name }}</span>
+                        </div>
+                        <div class="index_2_li clearfix">
+                            <label class="index_2_li_label">联系QQ</label>
+                            <span class="index_2_li_text ">{{ newsDetail.QQ }}</span>
+                        </div>
+                        <div class="index_2_li clearfix">
+                            <label class="index_2_li_label">网 &nbsp;&nbsp;&nbsp;&nbsp; 址</label>
+                            <span class="index_2_li_text ">{{ newsDetail.company_url }}</span>
+                        </div>
+                        <div class="index_2_li clearfix">
+                            <label class="index_2_li_label">邮政编码</label>
+                            <span class="index_2_li_text ">{{ newsDetail.post_code }}</span>
+                        </div>
+                        <div class="index_2_li clearfix">
+                            <label class="index_2_li_label">传 &nbsp;&nbsp;&nbsp;&nbsp; 真</label>
+                            <span class="index_2_li_text ">{{ newsDetail.fax }}</span>
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+        </section>
+        <section class="index_3 clearfix">
+            <div class="info_2_head_box clearfix">
+                <div class="info_2_head_left">
+                    <a class="info_2_head_a info_2_head_only" title="">详情信息</a>
+                </div>
+            </div>
+            <div class="info_article" v-html="newsDetail.content"></div>
+        </section>
+    </section>
+
+    <!-- 列表页广告二 -->
+    <HomeTopTen :imgurl="adImg2" v-if="adImg2"></HomeTopTen>
+    <!-- 页面底部 -->
+    <HomeFoot1></HomeFoot1>
+
+</template>
+
+
+<script setup>
+import { ref } from 'vue'
+import { ElBreadcrumb, ElBreadcrumbItem } from 'element-plus'
+import { ArrowRight } from '@element-plus/icons-vue'
+//2.页面路径 start ---------------------------------------->
+const route = useRoute();
+const articleId = parseInt(route.params.id);
+const targetSegment = getRoutePath(1);
+const targetSegment1 = getRoutePath(2);
+
+// 2.1 查询一级栏目的id
+//通过导航路径反向查询导航id
+let routeId;
+const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
+    method: 'GET',
+    query: {
+        'pinyin': targetSegment,
+    },
+});
+if (getRouteId.code == 200) {
+    routeId = getRouteId.data.category_id
+} else {
+    console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+    console.log("错误位置:通过url路径查询导航池id")
+    console.log("后端错误反馈:", getRouteId.message)
+    console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+}
+// 2.2查询二级栏目的id及名称
+let routeName = ref('');
+let routeId1 = ref('');
+const getRoutePName = await requestDataPromise('/web/getWebsiteRoute', {
+    method: 'GET',
+    query: {
+        'pinyin': targetSegment1,
+    },
+});
+if (getRoutePName.code == 200) {
+    routeId1.value = getRoutePName.data.category_id;
+    routeName.value = getRoutePName.data.alias;
+} else {
+    console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+    console.log("错误位置:通过url路径查询导航池id")
+    console.log("后端错误反馈:", getRouteId.message)
+    console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+}
+//2.页面路径 end ---------------------------------------->
+
+//3.面包屑 start ---------------------------------------->
+const parent_name = ref("");
+const parent_id = ref("");
+const parent_pinyin = ref("");
+
+let getParentNav = async () => {
+    const listData = await requestDataPromise('/web/getOneWebsiteCategory', {
+        method: 'GET',
+        query: {
+            'catid': routeId
+        },
+    });
+
+    if (listData.code == 200) {
+        parent_name.value = listData.data.alias;
+        parent_id.value = listData.data.parent_id;
+        parent_pinyin.value = listData.data.aLIas_pinyin;
+
+    } else {
+        console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+        console.log("错误位置:获取面包屑导航")
+        console.log("后端错误反馈:", listData.message)
+        console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+    }
+}
+//获得父级栏目详情
+getParentNav();
+//3.面包屑 end ---------------------------------------->
+
+//4.新闻详情 start ---------------------------------------->
+//4.1 资讯详情
+const newsDetail = ref({})
+const routeNewsTtitle = ref("");
+//4.2 发布日期
+const time = ref("");
+//4.3 路径
+const routLevelTitle = ref("");
+const routLevelId = ref("");
+//4.4 是否展示投票
+const articleChoice = ref(false);
+let detailImg = ref('');
+let seoTitle;
+let seoDescription;
+let seoKeywords;
+//4.5 获取详情
+const mkdata = await requestDataPromise('/web/getWebsiteCompanyInfo', {
+    method: 'GET',
+    query: {
+        'id': articleId
+    },
+});
+if (mkdata.code == 200) {
+    //获取内容
+    newsDetail.value = mkdata.data;
+    detailImg.value = JSON.parse(mkdata.data.imgurl);
+    //修正标题长度
+    if (newsDetail.value.title.length >= 20) {
+        routeNewsTtitle.value = newsDetail.value.title.substr(0, 20) + "...";
+    } else {
+        routeNewsTtitle.value = newsDetail.value.title
+    }
+    //获取发布时间
+    if (newsDetail.value.data) {
+        time.value = newsDetail.value.data.split(' ')[0];
+    }
+    seoTitle = newsDetail.value.title;
+    seoDescription = newsDetail.value.description;
+    seoKeywords = newsDetail.value.keyword;
+} else {
+    console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+    console.log("错误位置:获取详情内容")
+    console.log("后端错误反馈:", mkdata.message)
+    console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+}
+//4.新闻详情 end ---------------------------------------->
+
+//5.设置seo信息 start---------------------------------------->
+
+const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
+    method: 'GET',
+    query: {
+        'catid': routeId1.value
+    },
+});
+
+if (setData.code == 200) {
+    let seoSuffix = setData.data.suffix;
+    let seoName = setData.data.website_name;
+
+    useSeoMeta({
+        title: seoTitle + "_" + seoName + "_" + seoSuffix,
+        meta: [
+            { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
+            { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 }
+        ]
+    });
+} else {
+    console.log("设置频道页SEO出错!", setData.message)
+}
+//5.设置seo信息 end---------------------------------------->
+
+//6.广告 start ---------------------------------------->
+let adImg1 = ref([]);
+let adImg2 = ref([]);
+onMounted(async () => {
+    const { $webUrl, $CwebUrl } = useNuxtApp();
+    //广告1
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_detail_0001`
+    const responseAd1 = await fetch(url, {
+        headers: {
+            'Content-Type': 'application/json',
+            'Userurl': $CwebUrl,
+            'Origin': $CwebUrl
+        }
+    });
+    const resultAd1 = await responseAd1.json();
+    adImg1.value = resultAd1.data[0];
+
+    //广告2
+    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_detail_0002`
+    const responseAd2 = await fetch(url2, {
+        headers: {
+            'Content-Type': 'application/json',
+            'Userurl': $CwebUrl,
+            'Origin': $CwebUrl
+        }
+    });
+    const resultAd2 = await responseAd2.json();
+    adImg2.value = resultAd2.data[0];
+})
+//6.广告 end ---------------------------------------->
+</script>
+
+<style lang="less" scoped>
+@import url(@/assets/css/peixun/detail.less);
+</style>

+ 261 - 0
pages/nongmingongpeixun/[dir]/list-[id].vue

@@ -0,0 +1,261 @@
+<template>
+    <div id="newsList">
+        <!-- 页面头部 -->
+        <HomePageHead></HomePageHead>
+        <!-- 导航栏 -->
+        <HomePageNavigation></HomePageNavigation>
+        <!-- 列表页广告一 -->
+        <HomeTopTen :imgurl="adImg1" v-if="adImg1"></HomeTopTen>
+        <!-- 二级标题-->
+        <HomeListSecondaryHeading v-if="parent_name != ''" :name="parent_name" :nav="secondNav" :pinyin="parent_pinyin"></HomeListSecondaryHeading>
+        <!-- 资讯列表 -->
+        <div class="newsList">
+            <div class="inner">
+                <div class="innerLeft">
+                    <!-- 面包屑导航 -->
+                    <div class="breadcrumb">
+                        <div class="inner">
+                            <span class="location">当前位置:</span>
+                            <el-breadcrumb :separator-icon="ArrowRight">
+                                <el-breadcrumb-item>
+                                    <NuxtLink to="/">首页</NuxtLink>
+                                </el-breadcrumb-item>
+                                <el-breadcrumb-item v-if="parent_name !=''">
+                                    <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
+                                </el-breadcrumb-item>
+                                <el-breadcrumb-item>{{ name }}</el-breadcrumb-item>
+                            </el-breadcrumb>
+                        </div>
+                    </div>
+                    <ul class="list">
+                        <li v-for="(item, index) in newsList" :key="index">
+                            <NuxtLink :href="getLinkPathDetail1(item)" :title="item.alias">
+                                <span class="listTitle">{{ item.title }}</span>
+                                <span class="time">{{ getTime(item.updated_at, 'month', 1) }}</span>
+                            </NuxtLink>
+                        </li>
+                    </ul>
+                    <!-- 分页器 -->
+                    <div class="pagination" v-if="total > 0">
+                        <el-pagination 
+                            size="small" 
+                            background 
+                            layout="prev, pager, next" 
+                            :total="total" 
+                            class="mt-4"
+                            :page-size="pageSize" 
+                            :current-page="pageNum"
+                            prev-text="上一页" 
+                            next-text="下一页" 
+                            @current-change="changePage" 
+                        />
+                    </div>
+                </div>
+                <div class="innerRight">
+                    <DetailHotNews></DetailHotNews>
+                    <DetailHotNews2></DetailHotNews2>
+                </div>
+            </div>
+        </div>
+        <!-- 列表页广告二 -->
+        <HomeTopTen :imgurl="adImg2" v-if="adImg2"></HomeTopTen>
+        <!-- 页面底部 -->
+        <HomeFoot1></HomeFoot1>
+    </div>
+</template>
+
+<script setup>
+//1.页面必备依赖 start ---------------------------------------->
+import { ElBreadcrumb, ElBreadcrumbItem, ElPagination } from 'element-plus'
+import { ArrowRight } from '@element-plus/icons-vue'
+import { ref, onMounted } from 'vue';
+//1.页面必备依赖 end ---------------------------------------->
+
+//2.路径 start---------------------------------------->
+//当前列表名称
+const route = useRoute();
+let articleId = 0;//列表需要使用的导航id 
+const targetSegment = getRoutePath(2);//根据路由反向查询导航id
+let pageNum = ref(1);//获得路由里面的分页数据
+
+//通过导航路径反向查询导航id
+const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
+    method: 'GET',
+    query: {
+        'pinyin': targetSegment,
+    },
+});
+if(getRouteId.code == 200){
+    articleId = getRouteId.data.category_id
+}else{
+    console.log("后端错误反馈:",getRouteId.message)
+}
+pageNum.value = parseInt(route.params.id);
+//2.路径 end---------------------------------------->
+
+//3.列表 start ---------------------------------------->
+let total = ref(1);
+let pageSize = ref(20);
+
+const newsList = ref([]);
+let newslists = async () => {
+    const listData = await requestDataPromise('/web/getWebsiteCompanyList', {
+        method: 'GET',
+        query: {
+            'page': pageNum.value,
+            'pageSize': pageSize.value,
+            'category_id': articleId
+        },
+    });
+    if (listData.code == 200) {
+        newsList.value = listData.data.data;
+        console.log('newslist111111111111',newsList.value);
+        
+        total.value = listData.data.count;
+
+    } else {
+        console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+        console.log("错误位置:获取新闻列表")
+        console.log("后端错误反馈:", listData.message)
+        console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+    }
+}
+newslists();
+
+//分页
+let changePage = (value) => {
+    console.log("当前页码", value);
+    navigateTo(`/${targetSegment}/${value}.html`)
+}
+//3.列表 end ---------------------------------------->
+
+
+//4.面包屑 start---------------------------------------->
+//3.1 获得页面名称
+const name = ref('')
+let getPageName = async () => {
+    const pageName = await requestDataPromise('/web/getOneWebsiteCategory', {
+        method: 'GET',
+        query: {
+            'catid': articleId
+        },
+    });
+    if (pageName.code == 200) {
+        name.value = pageName.data.alias
+    } else {
+        console.log("错误位置:设置页面标题")
+    }
+}
+getPageName();
+
+//3.2 获得父级栏目
+const parent_name = ref([]);
+const parent_id = ref([]);
+const parent_pinyin = ref("");
+let getParentNav = async () => {
+    const listData = await requestDataPromise('/web/getOneWebsiteCategory', {
+        method: 'GET',
+        query: {
+            'catid': articleId
+        },
+    });
+    if (listData.code == 200) {
+        console.log(111999)
+        console.log(listData.data);
+        parent_name.value = listData.data.parent_name;
+        parent_id.value = listData.data.parent_id;
+        parent_pinyin.value = listData.data.parent_pinyin;
+    } else {
+        console.log("错误位置:获取父级栏目")
+    }
+    getSecondNav();
+}
+getParentNav();
+
+// 3.3获取二级栏目
+const secondNav = ref([]);
+let getSecondNav = async () => {
+    const listData = await requestDataPromise('/web/getWebsiteModelCategory', {
+        method: 'GET',
+        query: {
+            'placeid': 1,
+            'pid': parent_id.value,
+            'num': 20,
+        },
+    });
+    console.log('listData', listData);
+
+    if (listData.code == 200) {
+        secondNav.value = listData.data;
+    } else {
+        console.log("错误位置:获取二级栏目列表")
+    }
+}
+//4.面包屑 end ---------------------------------------->
+
+
+//5.设置seo信息 start---------------------------------------->
+const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
+    method: 'GET',
+    query: {
+        'catid': articleId
+    },
+});
+
+if (setData.code == 200) {
+    let seoTitle = setData.data.seo_title;
+    let seoDescription = setData.data.seo_description;
+    let seoKeywords = setData.data.seo_keywords;
+    let seoSuffix = setData.data.suffix;
+    let seoName = setData.data.website_name;
+
+    useSeoMeta({
+        title: seoTitle + "_" + seoName + "_" + seoSuffix,
+        meta: [
+            { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix , tagPriority: 10 },
+            { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix , tagPriority: 10 }
+        ]
+    });
+} else {
+    console.log("错误位置:设置列表页面SEO数据")
+}
+//5.设置seo信息 end---------------------------------------->
+
+//6.广告 start---------------------------------------->
+let adImg1 = ref({});
+let adImg2 = ref({});
+
+onMounted(async ()  => {
+    //从客户端获取行政职能部门 加快打开速度
+    const { $webUrl, $CwebUrl } = useNuxtApp();
+    //广告1
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_list_0001`
+    const responseAd1 = await fetch(url, {
+        headers: {
+            'Content-Type': 'application/json',
+            'Userurl': $CwebUrl,
+            'Origin': $CwebUrl
+        }
+    });
+    const resultAd1 = await responseAd1.json();
+    adImg1.value = resultAd1.data[0];
+    
+    //广告2
+    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_list_0002`
+    const responseAd2 = await fetch(url2, {
+        headers: {
+            'Content-Type': 'application/json',
+            'Userurl': $CwebUrl,
+            'Origin': $CwebUrl
+        }
+    });
+    const resultAd2 = await responseAd2.json();
+    adImg2.value = resultAd2.data[0];
+
+})
+//6.广告 end---------------------------------------->
+</script>
+
+<style lang="less" scoped>
+@import url('@/assets/css/list.less');
+</style>

+ 866 - 0
pages/nongmingongpeixun/index.html.vue

@@ -0,0 +1,866 @@
+<template>
+    <div>
+        <HomePageHead></HomePageHead>
+        <HomePageNavigation></HomePageNavigation>
+        <HomeSecondaryHeading :titleData="pageData" :pinyinid="routeId"></HomeSecondaryHeading>
+        <main class="index_main">
+            <section class="channel_2 clearfix" v-if="pageData[0]">
+                <div class="roll_1_box" v-if="pageData[0]">
+                    <HomeSmallSwiperTwo :data="pageData[0].data"></HomeSmallSwiperTwo>
+                </div>
+                <div class="index_2_right_box">
+                    <div class="index_2_head clearfix" v-if="pageData[0]">
+                        <NuxtLink class="index_2_head_a index_2_head_a_only" :href="getLinkPath(pageData[0])"
+                            v-if="pageData[0]" :title="pageData[0].alias">
+                            {{ pageData[0].alias }}
+                        </NuxtLink>
+                        <!-- <NuxtLink class="channel_name_more_2" :href="getLinkPath(pageData[0])" v-if="pageData[0]"
+                            :title="pageData[0].alias">
+                            栏目简介
+                        </NuxtLink> -->
+                    </div>
+                    <div class="index_2_ul index_2_ul_bold channel_2_ul" v-if="pageData[0]">
+                        <NuxtLink class="index_2_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>
+            </section>
+            <section class="channel_3 clearfix"
+                v-if="routeId == 547 || routeId == 539 || routeId == 692 || routeId == 762">
+                <div class="channel_name_box clearfix">
+                    <NuxtLink class="channel_name" :href="getLinkPath1(boxData1data)" v-if="boxData1data"
+                        :title="boxData1data.alias">
+                        {{ boxData1data.alias }}
+                    </NuxtLink>
+                    <!-- <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData1data)" v-if="boxData1data"
+                        :title="boxData1data.alias">
+                        栏目简介
+                    </NuxtLink> -->
+                </div>
+                <div class="channel_5_ul_box clearfix">
+                    <div class="channel_5_ul_box_in clearfix">
+                        <div class="channel_5_ul_left_img_box">
+                            <NuxtLink class="channel_5_ul_left_img_box_a" :href="getLinkPathDetail(boxData1[0])"
+                                :title="boxData1[0].title" :key="boxData1[0].id" v-if="boxData1.length > 0"
+                                :target="boxData1[0].islink == 1 ? '_blank' : '_self'">
+                                <img class="channel_5_ul_left_img" :src="boxData1[0].imgurl" title="" alt="">
+                                <span class="channel_5_text">{{ boxData1[0].title }}</span>
+                            </NuxtLink>
+                        </div>
+                        <div class="channel_5_ul" v-if="boxData1data1">
+                            <NuxtLink class="channel_5_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
+                                v-for="item in boxData1data1" :key="item.id"
+                                :target="item.islink == 1 ? '_blank' : '_self'">
+                                {{ item.title }}
+                            </NuxtLink>
+                        </div>
+                    </div>
+                    <div class="channel_5_ul_box_in clearfix">
+                        <NuxtLink class="channel_5_ul_left_img_box" :href="getLinkPathDetail(boxData1[1])"
+                            :title="boxData1[1].title" :key="boxData1[1].id" v-if="boxData1.length > 1"
+                            :target="boxData1[1].islink == 1 ? '_blank' : '_self'">
+                            <img class="channel_5_ul_left_img" :src="boxData1[1].imgurl" title="" alt="">
+                            <span class="channel_5_text">{{ boxData1[1].title }}</span>
+                        </NuxtLink>
+                        <div class="channel_5_ul" v-if="boxData1data2">
+                            <NuxtLink class="channel_5_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
+                                v-for="item in boxData1data2" :key="item.id"
+                                :target="item.islink == 1 ? '_blank' : '_self'">
+                                {{ item.title }}
+                            </NuxtLink>
+                        </div>
+                    </div>
+                </div>
+            </section>
+            <HomeAdvertising :imgurl="adImg1"></HomeAdvertising>
+            <section class="channel_4 clearfix">
+                <div class="index_9_box_1" v-if="pageData[1]">
+                    <div class="index_2_head clearfix" v-if="pageData[1]">
+                        <NuxtLink class="index_2_head_a index_2_head_a_only" :href="getLinkPath(pageData[1])"
+                            v-if="pageData[1]" :title="pageData[1].alias">
+                            {{ pageData[1].alias }}
+                        </NuxtLink>
+                        <!-- <NuxtLink class="channel_name_more_2" :href="getLinkPath(pageData[1])" v-if="pageData[1]"
+                            :title="pageData[1].alias">
+                            栏目简介
+                        </NuxtLink> -->
+                    </div>
+                    <div class="index_2_body clearfix">
+                        <div class="index_5_box_1 clearfix">
+                            <div class="index_5_big_img_ul">
+                                <div class="index_5_big_img_li" v-if="pageData[1].data">
+                                    <NuxtLink class="index_5_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 class="index_5_big_img_li_img" :src="item.imgurl" alt="item.title">
+                                        <div class="index_5_big_img_li_dot2 dot2">
+                                            {{ item.title }}
+                                        </div>
+                                    </NuxtLink>
+                                </div>
+                            </div>
+                            <div class="index_5_img_ul clearfix" v-if="pageData[1].data2">
+                                <div class="index_5_img_li" v-for="item in pageData[1].data2">
+                                    <NuxtLink class="index_5_img_li_a" :href="getLinkPathDetail(item)"
+                                        :title="item.title" :key="item.id"
+                                        :target="item.islink == 1 ? '_blank' : '_self'">
+                                        <img class="index_5_img_li_img" :src="item.imgurl" alt="item.title">
+                                        <div class="index_5_img_li_dot2 dot2">
+                                            {{ item.title }}
+                                        </div>
+                                    </NuxtLink>
+                                </div>
+                            </div>
+                        </div>
+                        <div class="index_5_box_2 clearfix">
+                            <div class="index_5_ul channel_foot_ul" v-if="pageData[1].data3">
+                                <NuxtLink class="index_5_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
+                                    v-for="item in pageData[1].data3" :key="item.id"
+                                    :target="item.islink == 1 ? '_blank' : '_self'">
+                                    {{ item.title }}
+                                </NuxtLink>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+                <div class="index_5_box_3 clearfix" v-if="pageData[2]">
+                    <div class="index_2_head clearfix" v-if="pageData[2]">
+                        <NuxtLink class="index_2_head_a index_2_head_a_only" :href="getLinkPath(pageData[2])"
+                            v-if="pageData[2]" :title="pageData[2].alias">
+                            {{ pageData[2].alias }}
+                        </NuxtLink>
+                        <!-- <NuxtLink class="channel_name_more_2" :href="getLinkPath(pageData[2])" v-if="pageData[2]"
+                            :title="pageData[2].alias">
+                            栏目简介
+                        </NuxtLink> -->
+                    </div>
+                    <div class="index_5_img_ul_2 clearfix channel_2_head_top" v-if="pageData[2].data">
+                        <div class="index_5_img_ul_2_li" v-for="item in pageData[2].data">
+                            <NuxtLink class="index_5_img_ul_2_li_a" :href="getLinkPathDetail(item)" :title="item.title"
+                                :key="item.id" :target="item.islink == 1 ? '_blank' : '_self'">
+                                <img class="index_5_img_ul_2_li_img" :src="item.imgurl" alt="item.title">
+                                <div class="index_5_img_ul_2_li_dot1 dot1">{{ item.title }}</div>
+                            </NuxtLink>
+                        </div>
+                    </div>
+                    <div class="index_2_ul channel_ul_3 channel_foot_ul" v-if="pageData[2].data2">
+                        <NuxtLink class="index_2_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
+                            :key="item.id" v-for="item in pageData[2].data2"
+                            :target="item.islink == 1 ? '_blank' : '_self'">
+                            {{ item.title }}
+                        </NuxtLink>
+                    </div>
+                </div>
+            </section>
+            <section class="channel_5 clearfix">
+                <div class="channel_1_box_1" v-if="pageData[3]">
+                    <div class="index_2_head clearfix">
+                        <NuxtLink class="index_2_head_a index_2_head_a_only" :href="getLinkPath(pageData[3])"
+                            v-if="pageData[3]" :title="pageData[3].alias">
+                            {{ pageData[3].alias }}
+                        </NuxtLink>
+                    </div>
+                    <div class="index_2_ul index_2_ul_bold channel_3_ul">
+                        <NuxtLink class="index_2_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
+                            v-for="item in pageData[3].data" :target="item.islink == 1 ? '_blank' : '_self'">
+                            {{ item.title }}
+                        </NuxtLink>
+                    </div>
+                </div>
+                <div class="channel_1_box_2 clearfix" v-if="pageData[4]">
+                    <div class="index_2_head clearfix">
+                        <NuxtLink class="index_2_head_a index_2_head_a_only" :href="getLinkPath(pageData[4])"
+                            v-if="pageData[4]" :title="pageData[4].alias">
+                            {{ pageData[4].alias }}
+                        </NuxtLink>
+                    </div>
+                    <div class="index_9_big_img_ul">
+                        <div class="index_5_big_img_li" v-if="pageData[4].data">
+                            <NuxtLink class="index_5_big_img_li_a" :href="getLinkPathDetail(item)" :title="item.title"
+                                v-for="item in pageData[4].data" :target="item.islink == 1 ? '_blank' : '_self'">
+                                <img class="index_9_big_img_li_img" :src="item.imgurl" alt="item.title">
+                                <div class="index_5_big_img_li_dot2 dot2">{{ item.title }}</div>
+                            </NuxtLink>
+                        </div>
+                    </div>
+                </div>
+            </section>
+            <section class="channel_6 clearfix"
+                v-if="routeId == 547 || routeId == 539 || routeId == 692 || routeId == 762">
+                <div class="channel_6_in">
+                    <div class="channel_name_box clearfix">
+                        <NuxtLink class="channel_name" :href="getLinkPath1(boxData2data)" v-if="boxData2data"
+                            :title="boxData2data.alias">
+                            {{ boxData2data.alias }}
+                        </NuxtLink>
+                        <!-- <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData2data)" v-if="boxData2data"
+                            :title="boxData2data.alias">
+                            栏目简介
+                        </NuxtLink> -->
+                    </div>
+                    <div class="channel_6_line clearfix">
+                        <div class="channel_6_ul_box_in clearfix">
+                            <NuxtLink class="channel_6_ul_left_img_box" :href="getLinkPathDetail(boxData2[0])"
+                                :title="boxData2[0].title" :key="boxData2[0].id" v-if="boxData2.length > 0"
+                                :target="boxData2[0].islink == 1 ? '_blank' : '_self'">
+                                <img class="channel_6_ul_left_img" :src="boxData2[0].imgurl" title="" alt="">
+                                <span class="channel_5_text">{{ boxData2[0].title }}</span>
+                            </NuxtLink>
+                            <div class="channel_6_ul">
+                                <NuxtLink class="channel_6_ul_a dot1" :href="getLinkPathDetail(item)"
+                                    :title="item.title" v-for="item in boxData2data1" :key="item.id"
+                                    :target="item.islink == 1 ? '_blank' : '_self'">
+                                    {{ item.title }}
+                                </NuxtLink>
+                            </div>
+                        </div>
+                        <div class="channel_6_ul_box_in clearfix">
+                            <NuxtLink class="channel_6_ul_left_img_box" :href="getLinkPathDetail(boxData2[1])"
+                                :title="boxData2[1].title" :key="boxData2[1].id" v-if="boxData2.length > 1"
+                                :target="boxData2[1].islink == 1 ? '_blank' : '_self'">
+                                <img class="channel_6_ul_left_img" :src="boxData2[1].imgurl" title="" alt="">
+                                <span class="channel_5_text">{{ boxData2[1].title }}</span>
+                            </NuxtLink>
+                            <div class="channel_6_ul">
+                                <NuxtLink class="channel_6_ul_a dot1" :href="getLinkPathDetail(item)"
+                                    :title="item.title" v-for="item in boxData2data2" :key="item.id"
+                                    :target="item.islink == 1 ? '_blank' : '_self'">
+                                    {{ item.title }}
+                                </NuxtLink>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+                <div class="channel_6_in">
+                    <div class="channel_name_box clearfix">
+                        <NuxtLink class="channel_name" :href="getLinkPath1(boxData3data)" v-if="boxData3data"
+                            :title="boxData3data.alias">
+                            {{ boxData3data.alias }}
+                        </NuxtLink>
+                        <!-- <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData3data)" v-if="boxData3data"
+                            :title="boxData3data.alias">
+                            栏目简介
+                        </NuxtLink> -->
+                    </div>
+                    <div class="channel_6_line clearfix">
+                        <div class="channel_6_ul_box_in clearfix">
+                            <NuxtLink class="channel_6_ul_left_img_box" :href="getLinkPathDetail(boxData3[0])"
+                                :title="boxData3[0].title" :key="boxData3[0].id" v-if="boxData3.length > 0"
+                                :target="boxData3[0].islink == 1 ? '_blank' : '_self'">
+                                <img class="channel_6_ul_left_img" :src="boxData3[0].imgurl" title="" alt="">
+                                <span class="channel_5_text">{{ boxData3[0].title }}</span>
+                            </NuxtLink>
+                            <div class="channel_6_ul">
+                                <NuxtLink class="channel_6_ul_a dot1" :href="getLinkPathDetail(item)"
+                                    :title="item.title" v-for="item in boxData3data1" :key="item.id"
+                                    :target="item.islink == 1 ? '_blank' : '_self'">
+                                    {{ item.title }}
+                                </NuxtLink>
+                            </div>
+                        </div>
+                        <div class="channel_6_ul_box_in clearfix">
+                            <NuxtLink class="channel_6_ul_left_img_box" :href="getLinkPathDetail(boxData3[1])"
+                                :title="boxData3[1].title" :key="boxData3[1].id" v-if="boxData3.length > 1"
+                                :target="boxData3[1].islink == 1 ? '_blank' : '_self'">
+                                <img class="channel_6_ul_left_img" :src="boxData3[1].imgurl" title="" alt="">
+                                <span class="channel_5_text">{{ boxData3[1].title }}</span>
+                            </NuxtLink>
+                            <div class="channel_6_ul">
+                                <NuxtLink class="channel_6_ul_a dot1" :href="getLinkPathDetail(item)"
+                                    :title="item.title" v-for="item in boxData3data2" :key="item.id"
+                                    :target="item.islink == 1 ? '_blank' : '_self'">
+                                    {{ item.title }}
+                                </NuxtLink>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+            </section>
+            <section class="channel_6 clearfix"
+                v-if="routeId == 554 || routeId == 555 || routeId == 556 || routeId == 557 || routeId == 760 || routeId == 768 || routeId == 771 || routeId == 773">
+                <div class="channel_6_in">
+                    <div class="channel_name_box clearfix">
+                        <NuxtLink class="channel_name" :href="getLinkPath1(boxData4data)" v-if="boxData4data"
+                            :title="boxData4data.alias">
+                            {{ boxData4data.alias }}
+                        </NuxtLink>
+                        <!-- <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData4data)" v-if="boxData4data"
+                            :title="boxData4data.alias">
+                            栏目简介
+                        </NuxtLink> -->
+                    </div>
+                    <div class="channel_6_line clearfix">
+                        <div class="channel_6_ul_box_in clearfix">
+                            <NuxtLink class="channel_6_ul_left_img_box" :href="getLinkPathDetail(boxData4[0])"
+                                :title="boxData4[0].title" :key="boxData4[0].id" v-if="boxData4.length > 0"
+                                :target="boxData4[0].islink == 1 ? '_blank' : '_self'">
+                                <img class="channel_6_ul_left_img" :src="boxData4[0].imgurl" title="" alt="">
+                                <span class="channel_5_text">{{ boxData4[0].title }}</span>
+                            </NuxtLink>
+                            <div class="channel_6_ul">
+                                <NuxtLink class="channel_6_ul_a dot1" :href="getLinkPathDetail(item)"
+                                    :title="item.title" v-for="item in boxData4data1" :key="item.id"
+                                    :target="item.islink == 1 ? '_blank' : '_self'">
+                                    {{ item.title }}
+                                </NuxtLink>
+                            </div>
+                        </div>
+                        <div class="channel_6_ul_box_in clearfix">
+                            <NuxtLink class="channel_6_ul_left_img_box" :href="getLinkPathDetail(boxData4[1])"
+                                :title="boxData4[1].title" :key="boxData4[1].id" v-if="boxData4.length > 1"
+                                :target="boxData4[1].islink == 1 ? '_blank' : '_self'">
+                                <img class="channel_6_ul_left_img" :src="boxData4[1].imgurl" title="" alt="">
+                                <span class="channel_5_text">{{ boxData4[1].title }}</span>
+                            </NuxtLink>
+                            <div class="channel_6_ul">
+                                <NuxtLink class="channel_6_ul_a dot1" :href="getLinkPathDetail(item)"
+                                    :title="item.title" v-for="item in boxData4data2" :key="item.id"
+                                    :target="item.islink == 1 ? '_blank' : '_self'">
+                                    {{ item.title }}
+                                </NuxtLink>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+                <div class="channel_6_in">
+                    <div class="channel_name_box clearfix">
+                        <NuxtLink class="channel_name" :href="getLinkPath1(boxData5data)" v-if="boxData5data"
+                            :title="boxData5data.alias">
+                            {{ boxData5data.alias }}
+                        </NuxtLink>
+                        <!-- <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData5data)" v-if="boxData5data"
+                            :title="boxData5data.alias">
+                            栏目简介
+                        </NuxtLink> -->
+                    </div>
+                    <div class="channel_6_line clearfix">
+                        <div class="channel_6_ul_box_in clearfix">
+                            <NuxtLink class="channel_6_ul_left_img_box" :href="getLinkPathDetail(boxData5[0])"
+                                :title="boxData5[0].title" :key="boxData5[0].id" v-if="boxData5.length > 0"
+                                :target="boxData5[0].islink == 1 ? '_blank' : '_self'">
+                                <img class="channel_6_ul_left_img" :src="boxData5[0].imgurl" title="" alt="">
+                                <span class="channel_5_text">{{ boxData5[0].title }}</span>
+                            </NuxtLink>
+                            <div class="channel_6_ul">
+                                <NuxtLink class="channel_6_ul_a dot1" :href="getLinkPathDetail(item)"
+                                    :title="item.title" v-for="item in boxData5data1" :key="item.id"
+                                    :target="item.islink == 1 ? '_blank' : '_self'">
+                                    {{ item.title }}
+                                </NuxtLink>
+                            </div>
+                        </div>
+                        <div class="channel_6_ul_box_in clearfix">
+                            <NuxtLink class="channel_6_ul_left_img_box" :href="getLinkPathDetail(boxData5[1])"
+                                :title="boxData5[1].title" :key="boxData5[1].id" v-if="boxData5.length > 1"
+                                :target="boxData5[1].islink == 1 ? '_blank' : '_self'">
+                                <img class="channel_6_ul_left_img" :src="boxData5[1].imgurl" title="" alt="">
+                                <span class="channel_5_text">{{ boxData5[1].title }}</span>
+                            </NuxtLink>
+                            <div class="channel_6_ul">
+                                <NuxtLink class="channel_6_ul_a dot1" :href="getLinkPathDetail(item)"
+                                    :title="item.title" v-for="item in boxData5data2" :key="item.id"
+                                    :target="item.islink == 1 ? '_blank' : '_self'">
+                                    {{ item.title }}
+                                </NuxtLink>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+            </section>
+            <HomeAdvertising :imgurl="adImg2"></HomeAdvertising>
+            <section class="channel_4 clearfix">
+                <div class="index_9_box_1" v-if="pageData[5]">
+                    <div class="index_2_head clearfix">
+                        <NuxtLink class="index_2_head_a index_2_head_a_only" :href="getLinkPath(pageData[5])"
+                            v-if="pageData[5]" :title="pageData[5].alias">
+                            {{ pageData[5].alias }}
+                        </NuxtLink>
+                    </div>
+                    <div class="index_5_box_1 clearfix">
+                        <div class="index_5_big_img_ul">
+                            <div class="index_5_big_img_li" v-if="pageData[5].data">
+                                <NuxtLink class="index_5_big_img_li_a" :href="getLinkPathDetail(item)"
+                                    :title="item.title" v-for="item in pageData[5].data" :key="item.id"
+                                    :target="item.islink == 1 ? '_blank' : '_self'">
+                                    <img class="index_5_big_img_li_img" :src="item.imgurl" :alt="item.title">
+                                    <div class="index_5_big_img_li_dot2 dot2">{{ item.title }}</div>
+                                </NuxtLink>
+                            </div>
+                        </div>
+                        <div class="index_5_img_ul" v-if="pageData[5].data2">
+                            <div class="index_5_img_li" v-for="item in pageData[5].data2">
+                                <NuxtLink class="index_5_img_li_a" :href="getLinkPathDetail(item)" :title="item.title"
+                                    :key="item.id" :target="item.islink == 1 ? '_blank' : '_self'">
+                                    <img class="index_5_img_li_img" :src="item.imgurl" :alt="item.title">
+                                    <div class="index_5_img_li_dot2 dot2">{{ item.title }}</div>
+                                </NuxtLink>
+                            </div>
+                        </div>
+                    </div>
+                    <div class="index_5_box_2 clearfix">
+                        <div class="index_5_ul" v-if="pageData[5].data3">
+                            <NuxtLink class="index_5_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
+                                :key="item.id" v-for="(item, index) in pageData[5].data3"
+                                :target="item.islink == 1 ? '_blank' : '_self'">
+                                <div class="index_5_img_li_dot2 dot2">{{ index + 1 }}{{ item.title }}</div>
+                            </NuxtLink>
+                        </div>
+                    </div>
+                </div>
+                <div class="index_5_box_3 clearfix" v-if="pageData[6]">
+                    <div class="index_2_head clearfix">
+                        <NuxtLink :class="['index_2_head_a', showTabs == 1 ? 'index_2_head_a_only' : '']"
+                            :href="getLinkPath(pageData[6])" v-if="pageData[6]" @mouseenter="qhtabs(1)"
+                            :title="pageData[6].alias">
+                            {{ pageData[6].alias }}
+                        </NuxtLink>
+                        <NuxtLink :class="['index_2_head_a', showTabs == 2 ? 'index_2_head_a_only' : '']"
+                            :href="getLinkPath(pageData[7])" v-if="pageData[7]" @mouseenter="qhtabs(2)"
+                            :title="pageData[7].alias">
+                            {{ pageData[7].alias }}
+                        </NuxtLink>
+                    </div>
+                    <div v-if="showTabs == 1">
+                        <div class="index_5_img_ul_2 clearfix channel_2_head_top" v-if="pageData[6].data">
+                            <div class="index_5_img_ul_2_li" v-for="item in pageData[6].data">
+                                <NuxtLink class="index_5_img_ul_2_li_a" :href="getLinkPathDetail(item)"
+                                    :title="item.title" :key="item.id" :target="item.islink == 1 ? '_blank' : '_self'">
+                                    <img class="index_5_img_ul_2_li_img" :src="item.imgurl" :alt="item.title">
+                                    <div class="index_5_img_ul_2_li_dot1 dot1">{{ item.title }}</div>
+                                </NuxtLink>
+                            </div>
+                        </div>
+                        <div class="index_2_ul channel_4_ul" v-if="pageData[6].data2">
+                            <NuxtLink class="index_2_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
+                                v-for="item in pageData[6].data2" :key="item.id"
+                                :target="item.islink == 1 ? '_blank' : '_self'">
+                                {{ item.title }}
+                            </NuxtLink>
+                        </div>
+                    </div>
+                    <div v-if="showTabs == 2">
+                        <div class="index_5_img_ul_2 clearfix channel_2_head_top" v-if="pageData[7].data">
+                            <div class="index_5_img_ul_2_li" v-for="item in pageData[7].data">
+                                <NuxtLink class="index_5_img_ul_2_li_a" :href="getLinkPathDetail(item)"
+                                    :title="item.title" :key="item.id" :target="item.islink == 1 ? '_blank' : '_self'">
+                                    <img class="index_5_img_ul_2_li_img" :src="item.imgurl" :alt="item.title">
+                                    <div class="index_5_img_ul_2_li_dot1 dot1">{{ item.title }}</div>
+                                </NuxtLink>
+                            </div>
+                        </div>
+                        <div class="index_2_ul channel_4_ul" v-if="pageData[7].data">
+                            <NuxtLink class="index_2_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
+                                v-for="item in pageData[7].data2" :key="item.id"
+                                :target="item.islink == 1 ? '_blank' : '_self'">
+                                {{ item.title }}
+                            </NuxtLink>
+                        </div>
+                    </div>
+                </div>
+            </section>
+        </main>
+        <!-- 页脚部分 -->
+        <HomeFoot1></HomeFoot1>
+    </div>
+</template>
+
+<script setup>
+//0.加载页面依赖 start ---------------------------------------->
+import { ref, onMounted } from 'vue';
+import { ElMessage } from 'element-plus';
+//0.加载页面依赖 end ---------------------------------------->
+
+//1.获得路由id start ---------------------------------------->
+const targetSegment = getRoutePath(1);
+//1.1 获得当前的路由id
+let routeId;
+//通过导航路径反向查询导航id
+const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
+    method: 'GET',
+    query: {
+        'pinyin': targetSegment,
+    },
+});
+if (getRouteId.code == 200) {
+    routeId = getRouteId.data.category_id
+} else {
+    console.log("获得路由id出错!", getRouteId.message)
+}
+//1.获得路由id end ---------------------------------------->
+
+//2.选项卡 start ---------------------------------------->
+let showTabs = ref(1)
+let qhtabs = function (number) {
+    console.log(number)
+    showTabs.value = number
+}
+//2.选项卡 end ---------------------------------------->
+
+//3.广告 start ---------------------------------------->
+let adImg1 = ref({})
+let adImg2 = ref({})
+let adImg3 = ref({})
+let adImg4 = ref({})
+onMounted(async () => {
+    //从客户端获取行政职能部门 加快打开速度
+    const { $webUrl, $CwebUrl } = useNuxtApp();
+    //广告1
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_category_0001`
+    const responseAd1 = await fetch(url, {
+        headers: {
+            'Content-Type': 'application/json',
+            'Userurl': $CwebUrl,
+            'Origin': $CwebUrl
+        }
+    });
+    const resultAd1 = await responseAd1.json();
+    adImg1.value = resultAd1.data[0];
+
+    //广告2
+    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_category_0002`
+    const responseAd2 = await fetch(url2, {
+        headers: {
+            'Content-Type': 'application/json',
+            'Userurl': $CwebUrl,
+            'Origin': $CwebUrl
+        }
+    });
+    const resultAd2 = await responseAd2.json();
+    adImg2.value = resultAd2.data[0];
+
+    //广告3
+    let url3 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_category_0003`
+    const responseAd3 = await fetch(url3, {
+        headers: {
+            'Content-Type': 'application/json',
+            'Userurl': $CwebUrl,
+            'Origin': $CwebUrl
+        }
+    });
+    const resultAd3 = await responseAd3.json();
+    adImg3.value = resultAd3.data[0];
+
+    //广告4
+    let url4 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_category_0004`
+    const responseAd4 = await fetch(url4, {
+        headers: {
+            'Content-Type': 'application/json',
+            'Userurl': $CwebUrl,
+            'Origin': $CwebUrl
+        }
+    });
+    const resultAd4 = await responseAd4.json();
+    adImg4.value = resultAd4.data[0];
+})
+//3.广告 end ---------------------------------------->
+
+//4.页面数据 start ---------------------------------------->
+const pageData = ref([
+    //示例:
+    // {
+    //     id: 1, 
+    //     title: "", //该导航的标题
+    //     data: [], //数据1
+    //     data1: [], //数据2
+    //     data2: [], //数据3
+    //     data3: [], //数据4
+    //     data4: [], //数据5
+    //     category_id1: "",  //子导航id1
+    //     category_id2: "", 
+    //     category_id3: "",
+    //     category_id4: "",
+    //     title1: "", //子导航标题1
+    //     title2: "",
+    //     title3: "",
+    //     title4: "",
+    //     cid: "" //该导航的id
+    // },
+])
+
+//4.1 获取所有导航
+try {
+    const navigateData = await requestDataPromise('/web/getWebsiteModelCategory', {
+        method: 'GET',
+        query: {
+            'placeid': 1,
+            'pid': routeId,
+            'num': 20
+        },
+    });
+    if (navigateData.code == 200) {
+        // 遍历可用的导航池放到页面中
+        for (let index in navigateData.data) {
+            let data = {
+                title: navigateData.data[index].name,
+                cid: navigateData.data[index].category_id,
+                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: "",
+                title1: "",
+                title2: "",
+                title3: "",
+                title4: ""
+            };
+            if (navigateData.data[index].is_url == 1) {
+                // 处理 URL 的逻辑
+            } else {
+                //每个页面最多8个模块
+                pageData.value.push(data);
+            }
+        }
+        //导航池加载完毕,开始申请模块数据
+        let getJson = []
+        for (let i = 0; i < pageData.value.length; i++) {
+            if (i == 0) {
+                getJson.push({ "id": pageData.value[i].cid + ",5,6" });
+            } else if (i == 1) {
+                getJson.push({ "id": pageData.value[i].cid + ",3,10" });
+            } else if (i == 2) {
+                getJson.push({ "id": pageData.value[i].cid + ",2,5" });
+            } else if (i == 3) {
+                getJson.push({ "id": pageData.value[i].cid + ",0,7" });
+            } else if (i == 4) {
+                getJson.push({ "id": pageData.value[i].cid + ",1,0" });
+            } else if (i == 5) {
+                getJson.push({ "id": pageData.value[i].cid + ",3,10" });
+            } else if (i == 6) {
+                getJson.push({ "id": pageData.value[i].cid + ",2,5" });
+            } else if (i == 7) {
+                getJson.push({ "id": pageData.value[i].cid + ",2,5" });
+            }
+        }
+        let jsonString = JSON.stringify(getJson);
+        console.log('jsonString', jsonString);
+        
+        getPageAllData(jsonString);
+
+    } else {
+        console.log("错误:渲染8个模块环节出错,请检查是否存在没有数据的模块!")
+    }
+} catch (error) {
+    console.log("错误:导航池渲染执行接口出错!请检查频道页渲染的模块数据是否完整!")
+}
+
+
+async function getPageAllData(jsonString) {
+    const mkdata = await requestDataPromise('/web/getWebsiteCompany', {
+        method: 'GET',
+        query: {
+            'id': jsonString
+        },
+    });
+    // console.log('mkdata111111111111', mkdata)
+    if (mkdata.code == 200) {
+        if (mkdata.data.length > 0) {
+            //模块1 顶部大图和列表
+            pageData.value[0].data = mkdata.data[0].img_num;
+            pageData.value[0].data2 = mkdata.data[0].text_num;
+        }
+
+        if (mkdata.data.length > 1) {
+            //模块2
+            for (let index in mkdata.data[1].img_num) {
+                if (index < 1) {
+                    pageData.value[1].data.push(mkdata.data[1].img_num[index]);
+                } else {
+                    pageData.value[1].data2.push(mkdata.data[1].img_num[index]);
+                }
+            }
+            pageData.value[1].data3 = mkdata.data[1].text_num;
+        }
+
+        if (mkdata.data.length > 2) {
+            pageData.value[2].data = mkdata.data[2].img_num;
+            pageData.value[2].data2 = mkdata.data[2].text_num;
+        }
+
+        if (mkdata.data.length > 3) {
+            pageData.value[3].data = mkdata.data[3].text_num;
+        }
+
+        if (mkdata.data.length > 4) {
+            pageData.value[4].data = mkdata.data[4].img_num;
+        }
+
+        if (mkdata.data.length > 5) {
+            for (let index in mkdata.data[5].img_num) {
+                if (index < 1) {
+                    pageData.value[5].data.push(mkdata.data[5].img_num[index]);
+                } else {
+                    pageData.value[5].data2.push(mkdata.data[5].img_num[index]);
+                }
+            }
+            pageData.value[5].data3 = mkdata.data[5].text_num;
+        }
+
+        if (mkdata.data.length > 6) {
+            pageData.value[6].data = mkdata.data[6].img_num;
+            pageData.value[6].data2 = mkdata.data[6].text_num;
+        }
+
+        if (mkdata.data.length > 7) {
+            pageData.value[7].data = mkdata.data[7].img_num;
+            pageData.value[7].data2 = mkdata.data[7].text_num;
+        }
+
+
+    } else {
+        ElMessage.error(mkdata.message)
+    }
+}
+
+// 需要固定的二级栏目
+// 模块1
+const boxData1data = ref([])
+const boxData1 = ref([])
+const boxData1data1 = ref([])
+const boxData1data2 = ref([])
+// 模块2
+const boxData2data = ref([])
+const boxData2 = ref([])
+const boxData2data1 = ref([])
+const boxData2data2 = ref([])
+// 模块3
+const boxData3data = ref([])
+const boxData3 = ref([])
+const boxData3data1 = ref([])
+const boxData3data2 = ref([])
+// 模块4
+const boxData4data = ref([])
+const boxData4 = ref([])
+const boxData4data1 = ref([])
+const boxData4data2 = ref([])
+// 模块5
+const boxData5data = ref([])
+const boxData5 = ref([])
+const boxData5data1 = ref([])
+const boxData5data2 = ref([])
+
+const { $pageNav } = useNuxtApp();
+// 需要固定的二级栏目
+let getJson1 = [
+    { "parent": $pageNav[16] + ",0,0", "child": $pageNav[19] + ",2,8" },//模块1 创业项目
+    { "parent": $pageNav[16] + ",0,0", "child": $pageNav[20] + ",2,8" },//模块2 创业故事
+    { "parent": $pageNav[16] + ",0,0", "child": $pageNav[21] + ",2,8" },//模块3 创业服务
+    // { "parent": $pageNav[17] + ",0,0", "child": $pageNav[22] + ",2,8" },//模块4 组织机构
+    // { "parent": $pageNav[18] + ",0,0", "child": $pageNav[23] + ",2,8" },//模块5 招贤纳士
+]
+let jsonString1 = JSON.stringify(getJson1);
+async function getPagePartData(jsonString1) {
+    const mkdata = await requestDataPromise('/web/getWebsiteAllArticle', {
+        method: 'GET',
+        query: {
+            'id': jsonString1
+        },
+    });
+
+    if (mkdata.code == 200) {
+        if (mkdata.data.length > 0) {
+            boxData1data.value = mkdata.data[0].child;
+            boxData1.value = mkdata.data[0].child.imgnum;
+            for (let index in mkdata.data[0].child.textnum) {
+                if (index < 4) {
+                    boxData1data1.value.push(mkdata.data[0].child.textnum[index]);
+                } else if (index < 8) {
+                    boxData1data2.value.push(mkdata.data[0].child.textnum[index]);
+                }
+            }
+        }
+
+        if (mkdata.data.length > 1) {
+            boxData2data.value = mkdata.data[1].child;
+            boxData2.value = mkdata.data[1].child.imgnum;
+            for (let index in mkdata.data[1].child.textnum) {
+                if (index < 4) {
+                    boxData2data1.value.push(mkdata.data[1].child.textnum[index]);
+                } else if (index < 8) {
+                    boxData2data2.value.push(mkdata.data[1].child.textnum[index]);
+                }
+            }
+        }
+
+        if (mkdata.data.length > 2) {
+            boxData3data.value = mkdata.data[2].child;
+            boxData3.value = mkdata.data[2].child.imgnum;
+            for (let index in mkdata.data[2].child.textnum) {
+                if (index < 4) {
+                    boxData3data1.value.push(mkdata.data[2].child.textnum[index]);
+                } else if (index < 8) {
+                    boxData3data2.value.push(mkdata.data[2].child.textnum[index]);
+                }
+            }
+        }
+
+        if (mkdata.data.length > 3) {
+            boxData4data.value = mkdata.data[3].child;
+            boxData4.value = mkdata.data[3].child.imgnum;
+            for (let index in mkdata.data[3].child.textnum) {
+                if (index < 4) {
+                    boxData4data1.value.push(mkdata.data[3].child.textnum[index]);
+                } else if (index < 8) {
+                    boxData4data2.value.push(mkdata.data[3].child.textnum[index]);
+                }
+            }
+        }
+
+        if (mkdata.data.length > 4) {
+            boxData5data.value = mkdata.data[4].child;
+            boxData5.value = mkdata.data[4].child.imgnum;
+            for (let index in mkdata.data[4].child.textnum) {
+                if (index < 4) {
+                    boxData5data1.value.push(mkdata.data[4].child.textnum[index]);
+                } else if (index < 8) {
+                    boxData5data2.value.push(mkdata.data[4].child.textnum[index]);
+                }
+            }
+        }
+    } else {
+        ElMessage.error(mkdata.message)
+    }
+}
+getPagePartData(jsonString1);
+//4.页面数据 end ---------------------------------------->
+
+//5.设置seo信息 start---------------------------------------->
+const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
+    method: 'GET',
+    query: {
+        'catid': routeId
+    },
+});
+
+if (setData.code == 200) {
+    let seoTitle = setData.data.seo_title;
+    let seoDescription = setData.data.seo_description;
+    let seoKeywords = setData.data.seo_keywords;
+    let seoSuffix = setData.data.suffix;
+    let seoName = setData.data.website_name;
+
+    useSeoMeta({
+        title: seoTitle + "_" + seoSuffix,
+        meta: [
+            { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
+            { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 }
+        ]
+    });
+} else {
+    console.log("设置频道页SEO出错!", setData.message)
+}
+//5.设置seo信息 end---------------------------------------->
+</script>
+
+<style lang="less" scoped>
+@import '@/assets/css/class.less';
+</style>

+ 7 - 2
pages/nongmingongqiuzhi/index.html.vue

@@ -78,8 +78,13 @@
                         <div class="cruit_form_per">
                         <div class="cruit_form_per">
                             <label class="cruit_form_label">关键词:</label>
                             <label class="cruit_form_label">关键词:</label>
                             <div class="cruit_form_label_right clearfix">
                             <div class="cruit_form_label_right clearfix">
-                                <el-input v-model="keywords" style="width: 300px" placeholder="请输入搜索关键词" clearable />
-                                <el-button type="success" @click="goSearch">搜索</el-button>
+                                 <span>
+                                    <el-input v-model="keywords" style="width: 300px" placeholder="请输入搜索关键词"
+                                        clearable></el-input>
+                                </span>
+                                <span>
+                                    <el-button type="success" @click="goSearch">搜索</el-button>
+                                </span>
                             </div>
                             </div>
                         </div>
                         </div>
                     </div>
                     </div>

+ 8 - 12
pages/nongmingongqiuzhi/search.vue

@@ -358,10 +358,6 @@ const zwid = ref(route.query.zwid);
 const jtzwid = ref(route.query.jtzwid);
 const jtzwid = ref(route.query.jtzwid);
 const provinceid = ref(route.query.provinceid);
 const provinceid = ref(route.query.provinceid);
 const cityid = ref(route.query.cityid);
 const cityid = ref(route.query.cityid);
-// const zwid = route.query.zwid;
-// const jtzwid = route.query.jtzwid;
-// const provinceid = route.query.provinceid;
-// const cityid = route.query.cityid;
 const keyword = route.query.keywords;
 const keyword = route.query.keywords;
 
 
 
 
@@ -439,7 +435,8 @@ if (getArea.code == 200) {
 }
 }
 
 
 
 
-// 2.1.2 获取
+// 2.1.2 
+// 获取省份和城市
 const provinceChange = (val) => {
 const provinceChange = (val) => {
     provinceid.value = val;
     provinceid.value = val;
     city.value = '';
     city.value = '';
@@ -457,26 +454,25 @@ const getCity = async (value) => {
         cityList.value = getCity.data;
         cityList.value = getCity.data;
     }
     }
 }
 }
-
-
-if (provinceid) {
+// 带参数跳转 省份和城市的回显问题
+if (provinceid.value) {
     for (let i = 0; i < provinceList.value.length; i++) {
     for (let i = 0; i < provinceList.value.length; i++) {
-        if (provinceList.value[i].id == provinceid) {
+        if (provinceList.value[i].id == provinceid.value) {
             province.value = provinceList.value[i].id;
             province.value = provinceList.value[i].id;
         }
         }
     }
     }
     const getCity = await requestDataPromise('/web/selectWebsiteArea', {
     const getCity = await requestDataPromise('/web/selectWebsiteArea', {
         method: 'GET',
         method: 'GET',
         query: {
         query: {
-            'pid': provinceid,
+            'pid': provinceid.value,
         },
         },
     });
     });
     if (getCity.code == 200) {
     if (getCity.code == 200) {
         cityList.value = getCity.data;
         cityList.value = getCity.data;
     }
     }
-    if (cityid) {
+    if (cityid.value) {
         for (let i = 0; i < cityList.value.length; i++) {
         for (let i = 0; i < cityList.value.length; i++) {
-            if (cityList.value[i].id == cityid) {
+            if (cityList.value[i].id == cityid.value) {
                 city.value = cityList.value[i].id;
                 city.value = cityList.value[i].id;
             }
             }
         }
         }

+ 8 - 3
pages/renliziyuanku/index.html.vue

@@ -78,8 +78,13 @@
                         <div class="cruit_form_per">
                         <div class="cruit_form_per">
                             <label class="cruit_form_label">关键词:</label>
                             <label class="cruit_form_label">关键词:</label>
                             <div class="cruit_form_label_right clearfix">
                             <div class="cruit_form_label_right clearfix">
-                                <el-input v-model="keywords" style="width: 300px" placeholder="请输入搜索关键词" clearable />
-                                <el-button type="success" @click="goSearch">搜索</el-button>
+                                 <span>
+                                    <el-input v-model="keywords" style="width: 300px" placeholder="请输入搜索关键词"
+                                        clearable></el-input>
+                                </span>
+                                <span>
+                                    <el-button type="success" @click="goSearch">搜索</el-button>
+                                </span>
                             </div>
                             </div>
                         </div>
                         </div>
                     </div>
                     </div>
@@ -358,7 +363,7 @@ const cityChange = async (val) => {
 const router = useRouter();
 const router = useRouter();
 const goSearch = async () => {
 const goSearch = async () => {
     router.push({
     router.push({
-        path: '/zhaogongzhaopinnongmingong/search',
+        path: '/renliziyuanku/search',
         query: {
         query: {
             'hyid': hyid.value,
             'hyid': hyid.value,
             'zwid': zwid.value,
             'zwid': zwid.value,

+ 8 - 12
pages/renliziyuanku/search.vue

@@ -362,10 +362,6 @@ const zwid = ref(route.query.zwid);
 const jtzwid = ref(route.query.jtzwid);
 const jtzwid = ref(route.query.jtzwid);
 const provinceid = ref(route.query.provinceid);
 const provinceid = ref(route.query.provinceid);
 const cityid = ref(route.query.cityid);
 const cityid = ref(route.query.cityid);
-// const zwid = route.query.zwid;
-// const jtzwid = route.query.jtzwid;
-// const provinceid = route.query.provinceid;
-// const cityid = route.query.cityid;
 const keyword = route.query.keywords;
 const keyword = route.query.keywords;
 
 
 
 
@@ -443,7 +439,8 @@ if (getArea.code == 200) {
 }
 }
 
 
 
 
-// 2.1.2 获取
+// 2.1.2 
+// 获取省份和城市
 const provinceChange = (val) => {
 const provinceChange = (val) => {
     provinceid.value = val;
     provinceid.value = val;
     city.value = '';
     city.value = '';
@@ -461,26 +458,25 @@ const getCity = async (value) => {
         cityList.value = getCity.data;
         cityList.value = getCity.data;
     }
     }
 }
 }
-
-
-if (provinceid) {
+// 带参数跳转 省份和城市的回显问题
+if (provinceid.value) {
     for (let i = 0; i < provinceList.value.length; i++) {
     for (let i = 0; i < provinceList.value.length; i++) {
-        if (provinceList.value[i].id == provinceid) {
+        if (provinceList.value[i].id == provinceid.value) {
             province.value = provinceList.value[i].id;
             province.value = provinceList.value[i].id;
         }
         }
     }
     }
     const getCity = await requestDataPromise('/web/selectWebsiteArea', {
     const getCity = await requestDataPromise('/web/selectWebsiteArea', {
         method: 'GET',
         method: 'GET',
         query: {
         query: {
-            'pid': provinceid,
+            'pid': provinceid.value,
         },
         },
     });
     });
     if (getCity.code == 200) {
     if (getCity.code == 200) {
         cityList.value = getCity.data;
         cityList.value = getCity.data;
     }
     }
-    if (cityid) {
+    if (cityid.value) {
         for (let i = 0; i < cityList.value.length; i++) {
         for (let i = 0; i < cityList.value.length; i++) {
-            if (cityList.value[i].id == cityid) {
+            if (cityList.value[i].id == cityid.value) {
                 city.value = cityList.value[i].id;
                 city.value = cityList.value[i].id;
             }
             }
         }
         }

+ 12 - 38
pages/shukanyinxiangcheng/index.html.vue

@@ -22,14 +22,14 @@
                                 {{ pageData[1].alias }}
                                 {{ pageData[1].alias }}
                             </NuxtLink>
                             </NuxtLink>
                         </div>
                         </div>
-                        <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[0])"
+                        <!-- <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[0])"
                             v-if="pageData[0] && tabsData1 == 1" :title="pageData[0].title">
                             v-if="pageData[0] && tabsData1 == 1" :title="pageData[0].title">
                             栏目简介
                             栏目简介
                         </NuxtLink>
                         </NuxtLink>
                         <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[1])"
                         <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[1])"
                             v-if="pageData[1] && tabsData1 == 2" :title="pageData[1].title">
                             v-if="pageData[1] && tabsData1 == 2" :title="pageData[1].title">
                             栏目简介
                             栏目简介
-                        </NuxtLink>
+                        </NuxtLink> -->
                     </div>
                     </div>
                     <!-- 模块1 -->
                     <!-- 模块1 -->
                     <div class=" clearfix">
                     <div class=" clearfix">
@@ -75,10 +75,10 @@
                                 {{ pageData[2].alias }}
                                 {{ pageData[2].alias }}
                             </NuxtLink>
                             </NuxtLink>
                         </div>
                         </div>
-                        <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[2])" v-if="pageData[2]"
+                        <!-- <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[2])" v-if="pageData[2]"
                             :title="pageData[2].title">
                             :title="pageData[2].title">
                             栏目简介
                             栏目简介
-                        </NuxtLink>
+                        </NuxtLink> -->
                     </div>
                     </div>
                     <div class="book_num_1_ul clearfix">
                     <div class="book_num_1_ul clearfix">
                         <div class="book_num_1_li clearfix" v-for="(item, index) in pageData[2].data" :key="index">
                         <div class="book_num_1_li clearfix" v-for="(item, index) in pageData[2].data" :key="index">
@@ -113,14 +113,14 @@
                                 {{ pageData[4].alias }}
                                 {{ pageData[4].alias }}
                             </NuxtLink>
                             </NuxtLink>
                         </div>
                         </div>
-                        <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[3])"
+                        <!-- <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[3])"
                             v-if="pageData[3] && tabsData2 == 1" :title="pageData[3].title">
                             v-if="pageData[3] && tabsData2 == 1" :title="pageData[3].title">
                             栏目简介
                             栏目简介
                         </NuxtLink>
                         </NuxtLink>
                         <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[4])"
                         <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[4])"
                             v-if="pageData[4] && tabsData2 == 2" :title="pageData[4].title">
                             v-if="pageData[4] && tabsData2 == 2" :title="pageData[4].title">
                             栏目简介
                             栏目简介
-                        </NuxtLink>
+                        </NuxtLink> -->
                     </div>
                     </div>
                     <div class=" clearfix">
                     <div class=" clearfix">
                         <!-- 模块4  -->
                         <!-- 模块4  -->
@@ -189,10 +189,10 @@
                                 {{ pageData[6].alias }}
                                 {{ pageData[6].alias }}
                             </NuxtLink>
                             </NuxtLink>
                         </div>
                         </div>
-                        <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[6])" v-if="pageData[6]"
+                        <!-- <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[6])" v-if="pageData[6]"
                             :title="pageData[6].title">
                             :title="pageData[6].title">
                             栏目简介
                             栏目简介
-                        </NuxtLink>
+                        </NuxtLink> -->
                     </div>
                     </div>
                     <div class="book_5_img_ul clearfix">
                     <div class="book_5_img_ul clearfix">
                         <div class="book_5_img_li clearfix" v-for="(item, index) in pageData[6].data" :key="index">
                         <div class="book_5_img_li clearfix" v-for="(item, index) in pageData[6].data" :key="index">
@@ -221,10 +221,10 @@
                                 {{ pageData[7].alias }}
                                 {{ pageData[7].alias }}
                             </NuxtLink>
                             </NuxtLink>
                         </div>
                         </div>
-                        <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[7])" v-if="pageData[7]"
+                        <!-- <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[7])" v-if="pageData[7]"
                             :title="pageData[7].title">
                             :title="pageData[7].title">
                             栏目简介
                             栏目简介
-                        </NuxtLink>
+                        </NuxtLink> -->
                     </div>
                     </div>
                     <div class="book_4_img_ul clearfix">
                     <div class="book_4_img_ul clearfix">
                         <div class="book_4_img_li clearfix" v-for="(item, index) in pageData[7].data" :key="index">
                         <div class="book_4_img_li clearfix" v-for="(item, index) in pageData[7].data" :key="index">
@@ -322,13 +322,11 @@ let showTabs = ref(1)
 //2.3 展示广告
 //2.3 展示广告
 let adImg1 = ref({})
 let adImg1 = ref({})
 let adImg2 = ref({})
 let adImg2 = ref({})
-let adImg3 = ref({})
-let adImg4 = ref({})
 onMounted(async () => {
 onMounted(async () => {
     //从客户端获取行政职能部门 加快打开速度
     //从客户端获取行政职能部门 加快打开速度
     const { $webUrl, $CwebUrl } = useNuxtApp();
     const { $webUrl, $CwebUrl } = useNuxtApp();
     //广告1
     //广告1
-    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0001`
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_category_0001`
     const responseAd1 = await fetch(url, {
     const responseAd1 = await fetch(url, {
         headers: {
         headers: {
             'Content-Type': 'application/json',
             'Content-Type': 'application/json',
@@ -340,7 +338,7 @@ onMounted(async () => {
     adImg1.value = resultAd1.data[0];
     adImg1.value = resultAd1.data[0];
 
 
     //广告2
     //广告2
-    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0002`
+    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_category_0002`
     const responseAd2 = await fetch(url2, {
     const responseAd2 = await fetch(url2, {
         headers: {
         headers: {
             'Content-Type': 'application/json',
             'Content-Type': 'application/json',
@@ -351,30 +349,6 @@ onMounted(async () => {
     const resultAd2 = await responseAd2.json();
     const resultAd2 = await responseAd2.json();
     adImg2.value = resultAd2.data[0];
     adImg2.value = resultAd2.data[0];
 
 
-    //广告3
-    let url3 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0003`
-    const responseAd3 = await fetch(url3, {
-        headers: {
-            'Content-Type': 'application/json',
-            'Userurl': $CwebUrl,
-            'Origin': $CwebUrl
-        }
-    });
-    const resultAd3 = await responseAd3.json();
-    adImg3.value = resultAd3.data[0];
-
-    //广告4
-    let url4 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0004`
-    const responseAd4 = await fetch(url4, {
-        headers: {
-            'Content-Type': 'application/json',
-            'Userurl': $CwebUrl,
-            'Origin': $CwebUrl
-        }
-    });
-    const resultAd4 = await responseAd4.json();
-    adImg4.value = resultAd4.data[0];
-
 })
 })
 //2.页面交互效果 end ---------------------------------------->
 //2.页面交互效果 end ---------------------------------------->
 
 

+ 12 - 39
pages/shukanyinxiangchengnmgw/index.html.vue

@@ -22,14 +22,14 @@
                                 {{ pageData[1].alias }}
                                 {{ pageData[1].alias }}
                             </NuxtLink>
                             </NuxtLink>
                         </div>
                         </div>
-                        <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[0])"
+                        <!-- <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[0])"
                             v-if="pageData[0] && tabsData1 == 1" :title="pageData[0].title">
                             v-if="pageData[0] && tabsData1 == 1" :title="pageData[0].title">
                             栏目简介
                             栏目简介
                         </NuxtLink>
                         </NuxtLink>
                         <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[1])"
                         <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[1])"
                             v-if="pageData[1] && tabsData1 == 2" :title="pageData[1].title">
                             v-if="pageData[1] && tabsData1 == 2" :title="pageData[1].title">
                             栏目简介
                             栏目简介
-                        </NuxtLink>
+                        </NuxtLink> -->
                     </div>
                     </div>
                     <!-- 模块1 -->
                     <!-- 模块1 -->
                     <div class=" clearfix">
                     <div class=" clearfix">
@@ -75,10 +75,10 @@
                                 {{ pageData[2].alias }}
                                 {{ pageData[2].alias }}
                             </NuxtLink>
                             </NuxtLink>
                         </div>
                         </div>
-                        <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[2])" v-if="pageData[2]"
+                        <!-- <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[2])" v-if="pageData[2]"
                             :title="pageData[2].title">
                             :title="pageData[2].title">
                             栏目简介
                             栏目简介
-                        </NuxtLink>
+                        </NuxtLink> -->
                     </div>
                     </div>
                     <div class="book_num_1_ul clearfix">
                     <div class="book_num_1_ul clearfix">
                         <div class="book_num_1_li clearfix" v-for="(item, index) in pageData[2].data" :key="index">
                         <div class="book_num_1_li clearfix" v-for="(item, index) in pageData[2].data" :key="index">
@@ -113,14 +113,14 @@
                                 {{ pageData[4].alias }}
                                 {{ pageData[4].alias }}
                             </NuxtLink>
                             </NuxtLink>
                         </div>
                         </div>
-                        <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[3])"
+                        <!-- <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[3])"
                             v-if="pageData[3] && tabsData2 == 1" :title="pageData[3].title">
                             v-if="pageData[3] && tabsData2 == 1" :title="pageData[3].title">
                             栏目简介
                             栏目简介
                         </NuxtLink>
                         </NuxtLink>
                         <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[4])"
                         <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[4])"
                             v-if="pageData[4] && tabsData2 == 2" :title="pageData[4].title">
                             v-if="pageData[4] && tabsData2 == 2" :title="pageData[4].title">
                             栏目简介
                             栏目简介
-                        </NuxtLink>
+                        </NuxtLink> -->
                     </div>
                     </div>
                     <div class=" clearfix">
                     <div class=" clearfix">
                         <!-- 模块4  -->
                         <!-- 模块4  -->
@@ -154,10 +154,10 @@
                                 {{ pageData[5].alias }}
                                 {{ pageData[5].alias }}
                             </NuxtLink>
                             </NuxtLink>
                         </div>
                         </div>
-                        <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[5])" v-if="pageData[5]"
+                        <!-- <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[5])" v-if="pageData[5]"
                             :title="pageData[5].title">
                             :title="pageData[5].title">
                             栏目简介
                             栏目简介
-                        </NuxtLink>
+                        </NuxtLink> -->
                     </div>
                     </div>
                     <div class="book_3_img_ul clearfix">
                     <div class="book_3_img_ul clearfix">
                         <div class="book_3_img_li clearfix" v-for="(item, index) in pageData[5].data" :key="index">
                         <div class="book_3_img_li clearfix" v-for="(item, index) in pageData[5].data" :key="index">
@@ -189,10 +189,10 @@
                                 {{ pageData[6].alias }}
                                 {{ pageData[6].alias }}
                             </NuxtLink>
                             </NuxtLink>
                         </div>
                         </div>
-                        <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[6])" v-if="pageData[6]"
+                        <!-- <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[6])" v-if="pageData[6]"
                             :title="pageData[6].title">
                             :title="pageData[6].title">
                             栏目简介
                             栏目简介
-                        </NuxtLink>
+                        </NuxtLink> -->
                     </div>
                     </div>
                     <div class="book_5_img_ul clearfix">
                     <div class="book_5_img_ul clearfix">
                         <div class="book_5_img_li clearfix" v-for="(item, index) in pageData[6].data" :key="index">
                         <div class="book_5_img_li clearfix" v-for="(item, index) in pageData[6].data" :key="index">
@@ -221,10 +221,10 @@
                                 {{ pageData[7].alias }}
                                 {{ pageData[7].alias }}
                             </NuxtLink>
                             </NuxtLink>
                         </div>
                         </div>
-                        <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[7])" v-if="pageData[7]"
+                        <!-- <NuxtLink class="book_head_a_more" :href="getLinkPath(pageData[7])" v-if="pageData[7]"
                             :title="pageData[7].title">
                             :title="pageData[7].title">
                             栏目简介
                             栏目简介
-                        </NuxtLink>
+                        </NuxtLink> -->
                     </div>
                     </div>
                     <div class="book_4_img_ul clearfix">
                     <div class="book_4_img_ul clearfix">
                         <div class="book_4_img_li clearfix" v-for="(item, index) in pageData[7].data" :key="index">
                         <div class="book_4_img_li clearfix" v-for="(item, index) in pageData[7].data" :key="index">
@@ -322,8 +322,6 @@ let showTabs = ref(1)
 //2.3 展示广告
 //2.3 展示广告
 let adImg1 = ref({})
 let adImg1 = ref({})
 let adImg2 = ref({})
 let adImg2 = ref({})
-let adImg3 = ref({})
-let adImg4 = ref({})
 onMounted(async () => {
 onMounted(async () => {
     //从客户端获取行政职能部门 加快打开速度
     //从客户端获取行政职能部门 加快打开速度
     const { $webUrl, $CwebUrl } = useNuxtApp();
     const { $webUrl, $CwebUrl } = useNuxtApp();
@@ -350,31 +348,6 @@ onMounted(async () => {
     });
     });
     const resultAd2 = await responseAd2.json();
     const resultAd2 = await responseAd2.json();
     adImg2.value = resultAd2.data[0];
     adImg2.value = resultAd2.data[0];
-
-    //广告3
-    let url3 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_category_0003`
-    const responseAd3 = await fetch(url3, {
-        headers: {
-            'Content-Type': 'application/json',
-            'Userurl': $CwebUrl,
-            'Origin': $CwebUrl
-        }
-    });
-    const resultAd3 = await responseAd3.json();
-    adImg3.value = resultAd3.data[0];
-
-    //广告4
-    let url4 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_category_0004`
-    const responseAd4 = await fetch(url4, {
-        headers: {
-            'Content-Type': 'application/json',
-            'Userurl': $CwebUrl,
-            'Origin': $CwebUrl
-        }
-    });
-    const resultAd4 = await responseAd4.json();
-    adImg4.value = resultAd4.data[0];
-
 })
 })
 //2.页面交互效果 end ---------------------------------------->
 //2.页面交互效果 end ---------------------------------------->
 
 

+ 9 - 4
pages/zhaogongzhaopin/index.html.vue

@@ -78,8 +78,13 @@
                         <div class="cruit_form_per">
                         <div class="cruit_form_per">
                             <label class="cruit_form_label">关键词:</label>
                             <label class="cruit_form_label">关键词:</label>
                             <div class="cruit_form_label_right clearfix">
                             <div class="cruit_form_label_right clearfix">
-                                <el-input v-model="keywords" style="width: 300px" placeholder="请输入搜索关键词" clearable />
-                                <el-button type="success" @click="goSearch">搜索</el-button>
+                                <span>
+                                    <el-input v-model="keywords" style="width: 300px" placeholder="请输入搜索关键词"
+                                        clearable></el-input>
+                                </span>
+                                <span>
+                                    <el-button type="success" @click="goSearch">搜索</el-button>
+                                </span>
                             </div>
                             </div>
                         </div>
                         </div>
                     </div>
                     </div>
@@ -356,9 +361,9 @@ const cityChange = async (val) => {
 
 
 //2.3 搜索
 //2.3 搜索
 const router = useRouter();
 const router = useRouter();
-const goSearch = async () => {
+const goSearch = () => {
     router.push({
     router.push({
-        path: '/zhaogongzhaopinnongmingong/search',
+        path: '/zhaogongzhaopin/search',
         query: {
         query: {
             'hyid': hyid.value,
             'hyid': hyid.value,
             'zwid': zwid.value,
             'zwid': zwid.value,

+ 8 - 12
pages/zhaogongzhaopin/search.vue

@@ -362,10 +362,6 @@ const zwid = ref(route.query.zwid);
 const jtzwid = ref(route.query.jtzwid);
 const jtzwid = ref(route.query.jtzwid);
 const provinceid = ref(route.query.provinceid);
 const provinceid = ref(route.query.provinceid);
 const cityid = ref(route.query.cityid);
 const cityid = ref(route.query.cityid);
-// const zwid = route.query.zwid;
-// const jtzwid = route.query.jtzwid;
-// const provinceid = route.query.provinceid;
-// const cityid = route.query.cityid;
 const keyword = route.query.keywords;
 const keyword = route.query.keywords;
 
 
 
 
@@ -443,7 +439,8 @@ if (getArea.code == 200) {
 }
 }
 
 
 
 
-// 2.1.2 获取
+// 2.1.2 
+// 获取省份和城市
 const provinceChange = (val) => {
 const provinceChange = (val) => {
     provinceid.value = val;
     provinceid.value = val;
     city.value = '';
     city.value = '';
@@ -461,26 +458,25 @@ const getCity = async (value) => {
         cityList.value = getCity.data;
         cityList.value = getCity.data;
     }
     }
 }
 }
-
-
-if (provinceid) {
+// 带参数跳转 省份和城市的回显问题
+if (provinceid.value) {
     for (let i = 0; i < provinceList.value.length; i++) {
     for (let i = 0; i < provinceList.value.length; i++) {
-        if (provinceList.value[i].id == provinceid) {
+        if (provinceList.value[i].id == provinceid.value) {
             province.value = provinceList.value[i].id;
             province.value = provinceList.value[i].id;
         }
         }
     }
     }
     const getCity = await requestDataPromise('/web/selectWebsiteArea', {
     const getCity = await requestDataPromise('/web/selectWebsiteArea', {
         method: 'GET',
         method: 'GET',
         query: {
         query: {
-            'pid': provinceid,
+            'pid': provinceid.value,
         },
         },
     });
     });
     if (getCity.code == 200) {
     if (getCity.code == 200) {
         cityList.value = getCity.data;
         cityList.value = getCity.data;
     }
     }
-    if (cityid) {
+    if (cityid.value) {
         for (let i = 0; i < cityList.value.length; i++) {
         for (let i = 0; i < cityList.value.length; i++) {
-            if (cityList.value[i].id == cityid) {
+            if (cityList.value[i].id == cityid.value) {
                 city.value = cityList.value[i].id;
                 city.value = cityList.value[i].id;
             }
             }
         }
         }

+ 7 - 2
pages/zhaogongzhaopinnongmingong/index.html.vue

@@ -78,8 +78,13 @@
                         <div class="cruit_form_per">
                         <div class="cruit_form_per">
                             <label class="cruit_form_label">关键词:</label>
                             <label class="cruit_form_label">关键词:</label>
                             <div class="cruit_form_label_right clearfix">
                             <div class="cruit_form_label_right clearfix">
-                                <el-input v-model="keywords" style="width: 300px" placeholder="请输入搜索关键词" clearable />
-                                <el-button type="success" @click="goSearch">搜索</el-button>
+                                <span>
+                                    <el-input v-model="keywords" style="width: 300px" placeholder="请输入搜索关键词"
+                                        clearable></el-input>
+                                </span>
+                                <span>
+                                    <el-button type="success" @click="goSearch">搜索</el-button>
+                                </span>
                             </div>
                             </div>
                         </div>
                         </div>
                     </div>
                     </div>

+ 8 - 8
pages/zhaogongzhaopinnongmingong/search.vue

@@ -443,7 +443,8 @@ if (getArea.code == 200) {
 }
 }
 
 
 
 
-// 2.1.2 获取
+// 2.1.2 
+// 获取省份和城市
 const provinceChange = (val) => {
 const provinceChange = (val) => {
     provinceid.value = val;
     provinceid.value = val;
     city.value = '';
     city.value = '';
@@ -461,26 +462,25 @@ const getCity = async (value) => {
         cityList.value = getCity.data;
         cityList.value = getCity.data;
     }
     }
 }
 }
-
-
-if (provinceid) {
+// 带参数跳转 省份和城市的回显问题
+if (provinceid.value) {
     for (let i = 0; i < provinceList.value.length; i++) {
     for (let i = 0; i < provinceList.value.length; i++) {
-        if (provinceList.value[i].id == provinceid) {
+        if (provinceList.value[i].id == provinceid.value) {
             province.value = provinceList.value[i].id;
             province.value = provinceList.value[i].id;
         }
         }
     }
     }
     const getCity = await requestDataPromise('/web/selectWebsiteArea', {
     const getCity = await requestDataPromise('/web/selectWebsiteArea', {
         method: 'GET',
         method: 'GET',
         query: {
         query: {
-            'pid': provinceid,
+            'pid': provinceid.value,
         },
         },
     });
     });
     if (getCity.code == 200) {
     if (getCity.code == 200) {
         cityList.value = getCity.data;
         cityList.value = getCity.data;
     }
     }
-    if (cityid) {
+    if (cityid.value) {
         for (let i = 0; i < cityList.value.length; i++) {
         for (let i = 0; i < cityList.value.length; i++) {
-            if (cityList.value[i].id == cityid) {
+            if (cityList.value[i].id == cityid.value) {
                 city.value = cityList.value[i].id;
                 city.value = cityList.value[i].id;
             }
             }
         }
         }

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