Browse Source

投票问题及资讯不显示问题

Jing 4 days ago
parent
commit
730104199d

+ 166 - 0
assets/css/about.less

@@ -0,0 +1,166 @@
+//导航条
+.breadcrumb {
+    width: 1200px;
+    margin: 0 auto;
+    height: 22px;
+    padding-bottom: 40px;
+    margin-top: 40px;
+    margin-bottom: 60px;
+    border-bottom: 1px solid #d9d9d9;
+    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;
+    }
+}
+
+// 资讯列表
+.newsDetail {
+    width: 100%;
+    // height: 1400px;
+    // margin-bottom: 70px;
+
+    .inner {
+        width: 1200px;
+        font-size: 16px;
+        position: relative;
+
+        .innerDetail {
+            width: 1080px;
+            margin: 0 auto;
+            margin-bottom: 60px;
+
+            .headImg {
+                width: 1086px;
+                height: 10px;
+                // background: url("../../public/special/head11.png") no-repeat 100% 100%;
+                background: url("@/public/special/head11.png") no-repeat 100% 100%;
+            }
+
+            .footImg {
+                width: 1086px;
+                height: 7px;
+                background: url("@/public/special/foot01.png") no-repeat 100% 100%;
+            }
+
+            .innerDetail1 {
+                width: 1086px;
+                margin: 0 auto;
+                padding: 30px 50px 40px;
+                box-sizing: border-box;
+                border-left: 1px solid #DBBE9E;
+                background: url("@/public/special/mid01.png") repeat-y 100% 100%;
+            }
+
+            .leftBottom::v-deep {
+                font-size: 16px;
+                line-height: 40px;
+            }
+        }
+
+
+
+        .innerLeft {
+            width: 279px;
+            position: absolute;
+            top: 3px;
+            left: -155px;
+
+            // .rightMenuTitle {
+            //     width: 279px;
+            //     height: 69px;
+            //     font-size: 22px;
+            //     font-weight: bold;
+            //     line-height: 58px;
+            //     text-align: center;
+            //     color: #fff;
+            //     background: url("../../../../public/special/projectMoreTitle.png") no-repeat;
+            //     margin-bottom: 30px;
+            // }
+
+            ul {
+                li {
+                    a {
+                        display: inline-block;
+                        width: 144px;
+                        height: 60px;
+                        line-height: 60px;
+                        text-align: center;
+                        background-color: #F4F4F4;
+                        border-top: 1px #fff solid;
+                        font-family: Microsoft YaHei, Microsoft YaHei;
+                        font-weight: 400;
+                        font-size: 16px;
+                        color: #000000;
+                    }
+                }
+
+                li:nth-child(1) {
+                    width: 144px;
+                    height: 60px;
+                    line-height: 60px;
+                    text-align: center;
+                    background-color: #F4F4F4;
+                    border-top: 1px #fff solid;
+                    font-family: Microsoft YaHei, Microsoft YaHei;
+                    font-weight: 400;
+                    font-size: 16px;
+                    color: #a01c0e;
+                }
+
+            }
+
+            .active {
+                // border-left: 0;
+                // border: 1px solid #028E21;
+                background: #a01c0e;
+                color: #fff;
+            }
+        }
+    }
+}

+ 1 - 1
assets/css/detail.less

@@ -390,7 +390,7 @@
 
         .active {
             color: #a01c0e;
-            background: #dff7e8;
+            background: #f0dcd9;
             border: 1px solid #a01c0e;
         }
     }

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

@@ -133,7 +133,7 @@
 <script setup>
 //1.页面依赖 start ---------------------------------------->
 import { onMounted } from 'vue'
-import { ElBreadcrumb, ElBreadcrumbItem, ElRadio, ElRadioGroup } from 'element-plus'
+import { ElBreadcrumb, ElBreadcrumbItem, ElRadio, ElRadioGroup,ElMessage } from 'element-plus'
 import { ArrowRight } from '@element-plus/icons-vue'
 
 

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

@@ -132,7 +132,7 @@
 <script setup>
 //1.页面依赖 start ---------------------------------------->
 import { onMounted } from 'vue'
-import { ElBreadcrumb, ElBreadcrumbItem, ElRadio, ElRadioGroup } from 'element-plus'
+import { ElBreadcrumb, ElBreadcrumbItem, ElRadio, ElRadioGroup ,ElMessage,ElCheckboxGroup,ElCheckbox} from 'element-plus'
 import { ArrowRight } from '@element-plus/icons-vue'
 
 //1.1 获得跳转过来的id
@@ -313,7 +313,7 @@ let voteList = ref([]);
 async function getVoteList() {
     const voteData = await requestHome('/web/getWebsiteSurvey', { method: 'GET', query: { 'art_id': articleId } });
     console.log(778899)
-    console.log(voteData)
+    console.log('778899',voteData)
     if (voteData.code == 200) {
         voteList.value = voteData.data;
         console.log(voteList.value)
@@ -346,6 +346,7 @@ async function getVoteList() {
 
 //3.2当用户选择了选项,判断是否展示其他输入框
 const handleRadioChange = (value) => {
+    console.log('11111',value,userIsChoice.value);
     if (value == userIsChoice.value) {
         showUserChoice.value = true;
     } else {
@@ -419,6 +420,9 @@ async function addWebsiteSurvey() {
                     ElMessage.error('请输入选项内容!')
                 }
             } else {
+                console.log('111',userSurId.value);
+                console.log('222',radio1.value);
+                
                 //如果没选择其他,直接提交选择的内容
                 const mkData = await requestHome('/web/addWebsiteSurveyVote', {
                     method: 'GET',

+ 15 - 172
pages/about/[dir]/[dir]/[id].vue

@@ -41,13 +41,21 @@
                     </li>
                     <li v-for="(item, index) in bottomMenu" :key="index">
                         <NuxtLink :to="`/about/${item.name_pinyin}/index.html`" :title="item.name"
-                            v-if="item.id == pageId && item.id != 7" class="active">
+                            v-if="item.id == pageId && item.id != 7">
                             {{ item.name }}
                         </NuxtLink>
                         <NuxtLink :to="`/about/${item.name_pinyin}/index.html`" :title="item.name"
                             v-else-if="item.id != pageId && item.id != 7">
                             {{ item.name }}
                         </NuxtLink>
+                        <NuxtLink :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name"
+                            v-if="item.id == 7 && pageId == 7 && routeHref == '/specialList/7'">
+                            {{ item.name }}
+                        </NuxtLink>
+                        <NuxtLink :to="`/about/${item.name_pinyin}/list-1.html`" class="active" :title="item.name"
+                            v-else-if="item.id == 7">
+                            {{ item.name }}
+                        </NuxtLink>
                     </li>
                 </ul>
             </div>
@@ -73,8 +81,8 @@ const route = useRoute();
 //获得当前的完整路径
 const fullPath = route.path;
 //拆分,取出来中间这一段,然后提取数字部分
-const segments = fullPath.split('/'); 
-const targetSegment = segments[2]; 
+const segments = fullPath.split('/');
+const targetSegment = segments[2];
 //const numberPart = targetSegment.match(/\d+$/)?.[0]; 
 
 let articleId;
@@ -86,13 +94,13 @@ const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
         'foot_pinyin': targetSegment,
     },
 });
-if(getRouteId.code == 200){
+if (getRouteId.code == 200) {
     articleId = getRouteId.data.id;
     pageId = getRouteId.data.id;
-}else{
+} else {
     console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
     console.log("错误位置:通过url路径查询导航池id")
-    console.log("后端错误反馈:",getRouteId.message)
+    console.log("后端错误反馈:", getRouteId.message)
     console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
 }
 
@@ -185,170 +193,5 @@ onMounted(async () => {
 </script>
 
 <style lang="less" scoped>
-//导航条
-.breadcrumb {
-    width: 1200px;
-    margin: 0 auto;
-    height: 22px;
-    padding-bottom: 40px;
-    margin-top: 40px;
-    margin-bottom: 60px;
-    border-bottom: 1px solid #d9d9d9;
-    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;
-    }
-}
-
-// 资讯列表
-.newsDetail {
-    width: 100%;
-    // height: 1400px;
-    // margin-bottom: 70px;
-
-    .inner {
-        width: 1200px;
-        font-size: 16px;
-        position: relative;
-
-        .innerDetail {
-            width: 1080px;
-            margin: 0 auto;
-            margin-bottom: 60px;
-
-            .headImg {
-                width: 1086px;
-                height: 10px;
-                // background: url("../../public/special/head11.png") no-repeat 100% 100%;
-                background: url("../../../../public/special/head11.png") no-repeat 100% 100%;
-            }
-
-            .footImg {
-                width: 1086px;
-                height: 7px;
-                background: url("../../../../public/special/foot01.png") no-repeat 100% 100%;
-            }
-
-            .innerDetail1 {
-                width: 1086px;
-                margin: 0 auto;
-                padding: 30px 50px 40px;
-                box-sizing: border-box;
-                border-left: 1px solid #DBBE9E;
-                background: url("../../../../public/special/mid01.png") repeat-y 100% 100%;
-            }
-
-            .leftBottom::v-deep {
-                font-size: 16px;
-                line-height: 40px;
-            }
-        }
-
-
-
-        .innerLeft {
-            width: 279px;
-            position: absolute;
-            top: 3px;
-            left: -155px;
-
-            // .rightMenuTitle {
-            //     width: 279px;
-            //     height: 69px;
-            //     font-size: 22px;
-            //     font-weight: bold;
-            //     line-height: 58px;
-            //     text-align: center;
-            //     color: #fff;
-            //     background: url("../../../../public/special/projectMoreTitle.png") no-repeat;
-            //     margin-bottom: 30px;
-            // }
-
-            ul {
-                li {
-                    a {
-                        display: inline-block;
-                        width: 144px;
-                        height: 60px;
-                        line-height: 60px;
-                        text-align: center;
-                        background-color: #F4F4F4;
-                        border-top: 1px #fff solid;
-                        font-family: Microsoft YaHei, Microsoft YaHei;
-                        font-weight: 400;
-                        font-size: 16px;
-                        color: #000000;
-                    }
-                }
-
-                li:nth-child(1) {
-                    width: 144px;
-                    height: 60px;
-                    line-height: 60px;
-                    text-align: center;
-                    background-color: #F4F4F4;
-                    border-top: 1px #fff solid;
-                    font-family: Microsoft YaHei, Microsoft YaHei;
-                    font-weight: 400;
-                    font-size: 16px;
-                    color: #a01c0e;
-                }
-
-            }
-
-            .active {
-                // border-left: 0;
-                // border: 1px solid #028E21;
-                background: #a01c0e;
-                color: #fff;
-            }
-        }
-    }
-}
+@import '@/assets/css/about.less';
 </style>

+ 14 - 170
pages/about/[dir]/index.html.vue

@@ -45,6 +45,14 @@
                             v-else-if="item.id != pageId && item.id != 7">
                             {{ item.name }}
                         </NuxtLink>
+                        <NuxtLink :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name"
+                            v-if="item.id == 7 && pageId == 7 && routeHref == '/specialList/7'" class="active">
+                            {{ item.name }}
+                        </NuxtLink>
+                        <NuxtLink :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name"
+                            v-else-if="item.id == 7">
+                            {{ item.name }}
+                        </NuxtLink>
                     </li>
                 </ul>
             </div>
@@ -70,8 +78,8 @@ const route = useRoute();
 //获得当前的完整路径
 const fullPath = route.path;
 //拆分,取出来中间这一段,然后提取数字部分
-const segments = fullPath.split('/'); 
-const targetSegment = segments[2]; 
+const segments = fullPath.split('/');
+const targetSegment = segments[2];
 //const numberPart = targetSegment.match(/\d+$/)?.[0]; 
 
 let articleId;
@@ -83,13 +91,13 @@ const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
         'foot_pinyin': targetSegment,
     },
 });
-if(getRouteId.code == 200){
+if (getRouteId.code == 200) {
     articleId = getRouteId.data.id;
     pageId = getRouteId.data.id;
-}else{
+} else {
     console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
     console.log("错误位置:通过url路径查询导航池id")
-    console.log("后端错误反馈:",getRouteId.message)
+    console.log("后端错误反馈:", getRouteId.message)
     console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
 }
 
@@ -182,169 +190,5 @@ onMounted(async () => {
 </script>
 
 <style lang="less" scoped>
-//导航条
-.breadcrumb {
-    width: 1200px;
-    margin: 0 auto;
-    height: 22px;
-    padding-bottom: 40px;
-    margin-top: 40px;
-    margin-bottom: 60px;
-    border-bottom: 1px solid #d9d9d9;
-    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;
-    }
-}
-
-// 资讯列表
-.newsDetail {
-    width: 100%;
-    // height: 1400px;
-    // margin-bottom: 70px;
-
-    .inner {
-        width: 1200px;
-        font-size: 16px;
-        position: relative;
-
-        .innerDetail {
-            width: 1080px;
-            margin: 0 auto;
-            margin-bottom: 60px;
-
-            .headImg {
-                width: 1086px;
-                height: 10px;
-                background: url("../../../public/special/head11.png") no-repeat 100% 100%;
-            }
-
-            .footImg {
-                width: 1086px;
-                height: 7px;
-                background: url("../../../public/special/foot01.png") no-repeat 100% 100%;
-            }
-
-            .innerDetail1 {
-                width: 1086px;
-                margin: 0 auto;
-                padding: 30px 50px 40px;
-                box-sizing: border-box;
-                border-left: 1px solid #DBBE9E;
-                background: url("../../../public/special/mid01.png") repeat-y 100% 100%;
-            }
-
-            .leftBottom::v-deep {
-                font-size: 16px;
-                line-height: 40px;
-            }
-        }
-
-
-
-        .innerLeft {
-            width: 279px;
-            position: absolute;
-            top: 3px;
-            left: -155px;
-
-            // .rightMenuTitle {
-            //     width: 279px;
-            //     height: 69px;
-            //     font-size: 22px;
-            //     font-weight: bold;
-            //     line-height: 58px;
-            //     text-align: center;
-            //     color: #fff;
-            //     background: url("../../../../public/special/projectMoreTitle.png") no-repeat;
-            //     margin-bottom: 30px;
-            // }
-
-            ul {
-                li {
-                    a {
-                        display: inline-block;
-                        width: 144px;
-                        height: 60px;
-                        line-height: 60px;
-                        text-align: center;
-                        background-color: #F4F4F4;
-                        border-top: 1px #fff solid;
-                        font-family: Microsoft YaHei, Microsoft YaHei;
-                        font-weight: 400;
-                        font-size: 16px;
-                        color: #000000;
-                    }
-                }
-
-                li:nth-child(1) {
-                    width: 144px;
-                    height: 60px;
-                    line-height: 60px;
-                    text-align: center;
-                    background-color: #F4F4F4;
-                    border-top: 1px #fff solid;
-                    font-family: Microsoft YaHei, Microsoft YaHei;
-                    font-weight: 400;
-                    font-size: 16px;
-                    color: #a01c0e;
-                }
-
-            }
-
-            .active {
-                // border-left: 0;
-                // border: 1px solid #028E21;
-                background: #a01c0e;
-                color: #fff;
-            }
-        }
-    }
-}
+@import '@/assets/css/about.less';
 </style>

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

@@ -0,0 +1,261 @@
+<template>
+    <div id="newsList">
+        <!-- 页面头部 -->
+        <HomePageHead></HomePageHead>
+        <!-- 导航栏 -->
+        <HomePageNavigation1></HomePageNavigation1>
+        <!-- 列表页广告一 -->
+        <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>本网招聘</el-breadcrumb-item>
+                </el-breadcrumb>
+            </div>
+        </div>
+
+        <div class="newsDetail">
+            <div class="inner">
+                
+                <div class="innerDetail">
+                    <div class="headImg"></div>
+                    <div class="innerDetail1">
+                        <!-- <div class="projectMoreBox">
+                            <div class="projectMoreTitle">社会保障在线网</div>
+                            <div class="projectMoreText">
+                                <p><b>政讯通·全国文化旅游项目</b>网络平台由<b>政讯通-全国政务信息一体化办公室</b>主管,联合30多家企事业单位组成,由北京政讯通文化传播有限公司对外牵头运营。</p>
+                                <p><b>政讯通·全国文化旅游项目</b>网络平台有政务、行业独立域名网站各<b>100</b>个和<b>4</b>个综合管理网站共<b>204</b>个网站,按照不同的行业和功能分类为用户提供大体系、广领域、全方位、全过程,有针对性的全国性文化旅游法制综合服务平台。</p>
+                                <p><b>政讯通·全国旅游资讯发布中心</b>是<b>政讯通·全国文化旅游项目</b>网络平台的4个综合管理网站之一,目前开设了栏目上千个,地市中心可全面覆盖我国334个地级市,<b>业务范围</b>涵盖旅游资讯、與情监测、法律咨询、旅游调研、法律宣传、群众监督、旅游安全等领域,日均会员访问量超过万次,累计完成文化旅游领域法制调研课题千余件,网络信息化会员遍布全国各地,实施<b>行业、区域</b>全覆盖,是我国具有广泛传播力、影响力的新型主流媒体。</p>
+                            </div>
+                        </div> -->
+                        <div class="innerTitle">本网招聘</div>
+                        <ul class="list">
+                            <li v-for="(item, index) in newsList" :key="index">
+                                <NuxtLink :to="{ path: `zhaopin/${item.id}.html` }" :title="item.con_title">{{item.con_title}}</NuxtLink>
+                            </li>
+                        </ul>
+                    </div>
+                    <div class="footImg"></div>
+                </div>
+                <div class="innerLeft">
+                    <ul>
+                        <li>
+                            导航列表
+                        </li>
+                        <li v-for="(item, index) in bottomMenu" :key="index">
+                            <NuxtLink :to="`/about/${item.name_pinyin}/index.html`" :title="item.name"
+                                v-if="item.id == pageId && item.id != 7" class="active">
+                                {{ item.name }}
+                            </NuxtLink>
+                            <NuxtLink :to="`/about/${item.name_pinyin}/index.html`" :title="item.name"
+                                v-else-if="item.id != pageId && item.id != 7">
+                                {{ item.name }}
+                            </NuxtLink>
+                            <NuxtLink :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name"
+                                v-if="item.id == 7 && pageId == 7" class="active">
+                                {{item.name }}
+                            </NuxtLink>
+                            <NuxtLink :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name" v-else-if="item.id == 7">
+                                {{ item.name}}
+                            </NuxtLink>
+                        </li>
+                    </ul>
+                </div>
+                <div style="clear: both;"></div>
+            </div>
+        </div>
+        
+        <!-- 资讯列表 -->
+        <!-- <div class="newsList">
+            <div class="inner">
+                <div class="innerLeft">
+                    <div class="projectMoreBox">
+                        <div class="projectMoreTitle">社会保障在线网</div>
+                        <div class="projectMoreText">
+                            <p><b>政讯通·全国文化旅游项目</b>网络平台由<b>政讯通-全国政务信息一体化办公室</b>主管,联合30多家企事业单位组成,由北京政讯通文化传播有限公司对外牵头运营。</p>
+                            <p><b>政讯通·全国文化旅游项目</b>网络平台有政务、行业独立域名网站各<b>100</b>个和<b>4</b>个综合管理网站共<b>204</b>个网站,按照不同的行业和功能分类为用户提供大体系、广领域、全方位、全过程,有针对性的全国性文化旅游法制综合服务平台。</p>
+                            <p><b>政讯通·全国旅游资讯发布中心</b>是<b>政讯通·全国文化旅游项目</b>网络平台的4个综合管理网站之一,目前开设了栏目上千个,地市中心可全面覆盖我国334个地级市,<b>业务范围</b>涵盖旅游资讯、與情监测、法律咨询、旅游调研、法律宣传、群众监督、旅游安全等领域,日均会员访问量超过万次,累计完成文化旅游领域法制调研课题千余件,网络信息化会员遍布全国各地,实施<b>行业、区域</b>全覆盖,是我国具有广泛传播力、影响力的新型主流媒体。</p>
+                        </div>
+                    </div>
+                    <div class="innerTitle">本网招聘</div>
+                    <ul class="list">
+                        <li v-for="(item, index) in newsList" :key="index">
+                            <NuxtLink :to="{ path: `zhaopin/${item.id}.html` }" :title="item.con_title">{{item.con_title}}</NuxtLink>
+                        </li>
+                    </ul>
+                </div>
+                <div class="innerRight">
+                    <div class="rightMenuTitle">导航列表</div>
+                    <ul>
+                        <li v-for="(item, index) in bottomMenu" :key="index">
+                            <NuxtLink :to="`/about/${item.name_pinyin}/index.html`" :title="item.name"
+                                v-if="item.id == pageId && item.id != 7" class="active">
+                                {{ item.name }}
+                            </NuxtLink>
+                            <NuxtLink :to="`/about/${item.name_pinyin}/index.html`" :title="item.name"
+                                v-else-if="item.id != pageId && item.id != 7">
+                                {{ item.name }}
+                            </NuxtLink>
+                            <NuxtLink :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name"
+                                v-if="item.id == 7 && pageId == 7" class="active">
+                                {{item.name }}
+                            </NuxtLink>
+                            <NuxtLink :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name" v-else-if="item.id == 7">
+                                {{ item.name}}
+                            </NuxtLink>
+                        </li>
+                    </ul>
+                </div>
+                <div style="clear: both;"></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';
+
+//获得跳转过来的id
+const route = useRoute();
+//获得当前的完整路径
+const fullPath = route.path;
+//拆分,取出来中间这一段,然后提取数字部分
+const segments = fullPath.split('/'); 
+const targetSegment = segments[2]; 
+//const numberPart = targetSegment.match(/\d+$/)?.[0]; 
+
+let articleId;
+let pageId;
+//通过导航路径反向查询导航id
+const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
+    method: 'GET',
+    query: {
+        'foot_pinyin': targetSegment,
+    },
+});
+if(getRouteId.code == 200){
+    articleId = getRouteId.data.id;
+    pageId = getRouteId.data.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 ---------->")
+}
+
+//1.页面依赖 end ---------------------------------------->
+
+//2.页面数据 start ---------------------------------------->
+//广告
+let adImg1 = ref([]);
+let adImg2 = ref([]);
+// async function getAdData(){
+//     const adData = await requestDataPromise('/web/getWebsiteAdvertisement',{method:'GET',query:{'ad_tag':'PAGE'}});
+//     if(adData.code==200){
+//         for(let item of adData.data){
+//             if(item.ad_tag == 'PAGE_0001'){
+//                 adImg1.value = item;
+//             }
+//             if(item.ad_tag == 'PAGE_0002'){
+//                 adImg2.value = item;
+//             }
+//         }
+//     }else{
+//         console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+//         console.log("错误位置:获取详情页广告列表")
+//         console.log("后端错误反馈:",adData.message)
+//         console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+//     }
+// }
+// getAdData();
+onMounted(async ()  => {
+    //从客户端获取行政职能部门 加快打开速度
+    const { $webUrl, $CwebUrl } = useNuxtApp();
+    //广告1
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_page_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=snzxw_page_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];
+})
+
+//左侧导航
+const bottomMenu = ref([]);
+async function getPageMenu() {
+    const mkdata =  await requestDataPromise('/web/getWebsiteFooterCategory', {
+        method: 'GET',
+        query: {},
+    });
+    bottomMenu.value = mkdata.data;
+}
+getPageMenu();
+
+//列表
+const newsList = ref([]);
+let newslists = async () => {
+    const listData =  await requestDataPromise('/web/getWebsiteFooterCategoryList', {
+        method: 'GET',
+        query: {
+            'fcat_id':pageId,
+        },
+    });
+    newsList.value = listData.data;
+}
+//获得列表
+newslists();
+//2.页面数据 end ---------------------------------------->
+
+//3 设置seo信息
+const setData =  await requestDataPromise('/web/getWebsiteFootInfo', {
+    method: 'GET',
+    query: {},
+});
+
+let seoTitle = setData.data.website_head.title;
+let seoDescription = setData.data.website_head.description;
+let seoKeywords = setData.data.website_head.keywords;
+let seoSuffix = setData.data.website_head.suffix;
+let seoName = setData.data.website_head.website_name;
+
+useSeoMeta({
+    title: seoTitle + "_" + seoSuffix,
+    meta: [
+        { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10  },
+        { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10  }
+    ]
+});
+//3.设置seo信息 end---------------------------------------->
+</script>
+
+<style lang="less" scoped>
+    @import '@/assets/css/about.less';
+</style>

+ 8 - 8
pages/index.vue

@@ -1406,20 +1406,20 @@ try {
 
 
 let getJson = [
-    { "parent": "445,0,20", "child": "445,0,0" },//模块1 三农资讯445
-    { "parent": "27,0,4", "child": "27,0,0" },//模块2 三农服务27
+    { "parent": "445,0,20", "child": "445,1,1" },//模块1 三农资讯445
+    { "parent": "27,0,4", "child": "27,1,1" },//模块2 三农服务27
     { "parent": "410,0,4", "child": "" },//模块3 网站公告410
-    { "parent": "325,3,10", "child": "325,0,0" },//模块4 乡村招商325
+    { "parent": "325,3,10", "child": "325,1,1" },//模块4 乡村招商325
     { "parent": "320,2,0", "child": "" },//模块5 乡村建设320
     { "parent": "319,2,0", "child": "" },//模块6 乡村管理319
     { "parent": "321,2,0", "child": "" },//模块7 乡村文化321
-    { "parent": "12,3,10", "child": "12,0,0" },//模块8 三农投资1 12
+    { "parent": "12,3,10", "child": "12,1,1" },//模块8 三农投资1 12
     { "parent": "322,2,0", "child": "" },//模块9 乡村生活322
     { "parent": "323,2,0", "child": "" },//模块10 乡村经济323
     { "parent": "318,2,0", "child": "" },//模块11 乡村风采318
     { "parent": "407,1,5", "child": "" },//模块12 乡村名企407
     { "parent": "331,1,5", "child": "" },//模块13 特色乡村331 
-    { "parent": "330,1,13", "child": "330,0,0" },//模块14 产业集群330
+    { "parent": "330,1,13", "child": "330,1,1" },//模块14 产业集群330
     { "parent": "18,1,10", "child": "" },//模块15 三农人物18
     { "parent": "335,1,10", "child": "" },//模块16 三农名企335
     { "parent": "348,3,10", "child": "" },//模块17 农技推广348
@@ -1428,9 +1428,9 @@ let getJson = [
     { "parent": "344,2,7", "child": "" },//模块20 招工求职344
 
     //不包含资讯的导航
-    { "parent": "346,0,0", "child": "346,0,0" },//模块1 乡村商城346
-    { "parent": "345,0,0", "child": "345,0,0" },//模块5 市场报价345
-    { "parent": "343,0,0", "child": "343,0,0" },//模块5 乡土特色343
+    { "parent": "346,0,0", "child": "346,1,1" },//模块1 乡村商城346
+    { "parent": "345,0,0", "child": "345,1,1" },//模块5 市场报价345
+    { "parent": "343,0,0", "child": "343,1,1" },//模块5 乡土特色343
 ]
 
 let jsonString = JSON.stringify(getJson);