Jing hai 6 días
pai
achega
f5d17bfafa

+ 165 - 0
assets/css/about.less

@@ -0,0 +1,165 @@
+//导航条
+.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;
+            }
+        }
+    }
+}

+ 0 - 340
components/advertising/Foot.vue

@@ -1,340 +0,0 @@
-<template>
-
-    <div class="call_us_box">
-        <div class="inner">
-            <span v-for="(item, index) in bottomMenu" :key="index">
-                <NuxtLink :to="{ path: `/specialList/${item.id}` }" target="_blank" v-if="item.type == 1">
-                    {{ item.name }}
-                </NuxtLink>
-                <NuxtLink :to="{ path: `/speciaArticle/${item.id}` }" target="_blank" v-if="item.type == 0">
-                    {{ item.name }}
-                </NuxtLink>
-            </span>
-        </div>
-    </div>
-    
-    <footer class="index_foot">
-        <div class="foot_text_box">
-            <p class="top_content">
-                {{ bottomBase.statement }}
-                <a :href="bottomBase.record_number_url" target="_blank">乡村网</a>
-                {{ bottomBase.statement_two }}
-            </p>
-            <!-- <p>{{ bottomBase.statistics_onetext }} <a :href="'http://' + bottomBase.statistics_twourl">中农兴业</a> {{ bottomBase.statistics_twotext }}</p> -->
-            <p class="webSitecolor">
-                {{ bottomBase.statistics_onetext }}
-                <a :href="bottomBase.record_number_url" target="_blank" class="webSitecolor">中农兴业</a>
-                {{ bottomBase.statistics_twotext }}
-            </p>
-            <p>
-                {{ bottomBase.organizer }}
-                <a :href="bottomBase.record_number_url" target="_blank">{{ bottomBase.record_number }}</a> &nbsp;&nbsp;
-                <img :src="bottomBase.icp_number_img">
-                <a :href="bottomBase.icp_number_url" target="_blank">
-                    {{ bottomBase.icp_number }}
-                </a>
-            </p>
-            <p>{{ bottomBase.company_address }}</p>
-            <p class="top_content">
-                {{ bottomBase.email }}
-                {{ bottomBase.contact_number }}
-            </p>
-        </div>
-        <div class="foot_logo_out">
-            <a :href="'http://' + bottomBase.company_url" :title="bottomBase.company_name" target="_blank">
-                <img :src="bottomBase.project_logo" class="floatLogoLeft" :alt="bottomBase.company_name">
-            </a>
-        </div>
-        <div class="foot_last_img_box">
-            <a :href="item.url" v-for="(item, index) in bottomphoto" target="_blank">
-                <img :src="item.logo_url" alt="">
-            </a>
-        </div>
-    </footer>
-</template>
-
-<script setup>
-import { onMounted } from 'vue';
-const nuxtApp = useNuxtApp();
-const axios = nuxtApp.$axios;
-
-// const props = defineProps({
-//     bottomLink: Array,
-//     bottomMenu: Array,
-//     bottomBase: Object
-// });
-
-//获得友情链接 图片
-const bottomLink = ref([])
-const getBottomLink = async () => {
-    const response = await axios.get(`/web/selectWebsiteLinks?&type=${1}&num=${7}`);
-    bottomLink.value = response.data;
-    console.log(bottomLink.value)
-}
-//文字
-const bottomText = ref([])
-const getBottomLink2 = async () => {
-    const response = await axios.get(`/web/selectWebsiteLinks?&type=${2}&num=${8}`);
-    bottomText.value = response.data;
-    console.log(bottomLink.value)
-}
-//底部
-const bottomphoto = ref([])
-const getBottomLink1 = async () => {
-    const response = await axios.get(`/web/selectWebsiteLinks?&type=${3}&num=${4}`);
-    bottomphoto.value = response.data;
-    console.log(bottomphoto.value)
-}
-
-//获得底部导航
-const bottomMenu = ref([])
-const getBottomMenu = async () => {
-    const response = await axios.get(`/web/getWebsiteFooterCategory`);
-    bottomMenu.value = response.data;
-    console.log(bottomMenu.value)
-}
-
-//获得底部基本信息
-const bottomBase = ref({})
-const getBottomBase = async () => {
-    const response = await axios.get(`/web/getWebsiteFootInfo`);
-    bottomBase.value = response.data.website_foot;
-    console.log(7777777)
-    console.log('bottomBase', bottomBase.value)
-}
-
-
-onMounted(() => {
-    getBottomLink();
-    getBottomLink1();
-    getBottomLink2();
-    getBottomMenu();
-    getBottomBase();
-    //获取域名
-    getDomain()
-})
-
-//获取当前域名
-const currentDomain = ref('')
-const currentDomainUrl = ref('')
-
-const getDomain = () => {
-    if (process.client) {
-        const url = new URL(window.location.href)
-        currentDomainUrl.value = url.hostname // 获取域名
-        currentDomain.value = url.origin //协议和域名
-    }
-}
-</script>
-
-<style lang="less" scoped>
-.index_foot {
-    box-sizing: border-box;
-    width: 1200px;
-    margin: 0 auto;
-}
-
-.index_foot_name_box {
-    margin: 40px auto 0px;
-    text-align: center;
-    font-size: 0px;
-}
-
-.index_foot_name {
-    display: inline-block;
-    height: 67px;
-    line-height: 67px;
-    color: #f2f9f4;
-    font-size: 51px;
-    font-weight: bold;
-    overflow: hidden;
-}
-
-.index_foot_name:nth-of-type(even) {
-    color: #333;
-    font-size: 32px;
-}
-
-.foot_img_box {
-    overflow: hidden;
-    display: block;
-    // margin: 40px auto 0;
-    width: 100%;
-    display: flex;
-    justify-content: space-between;
-    flex-wrap: wrap;
-}
-
-.foot_img_box>* {
-    margin-top: 20px;
-    float: left;
-    width: 170px;
-    height: 57px;
-    overflow: hidden;
-    /* box-sizing: border-box; */
-    border: solid 1px #D7EDD4;
-}
-
-.foot_img_box>* * {
-    display: block;
-    width: 100%;
-    height: 100%;
-}
-
-.foot_img_box>*:nth-of-type(7n) {
-    margin-right: 0px;
-}
-
-.foot_frind_box {
-    display: block;
-    margin: 40px auto;
-    overflow: hidden;
-    display: flex;
-    width: 100%;
-}
-
-.foot_frind_box span {
-    word-break: keep-all;
-    white-space: nowrap;
-    line-height: 22px;
-    font-size: 16px;
-    color: #333;
-    font-weight: bold;
-}
-
-.foot_frind_box div {
-    width: 100%;
-    overflow: hidden;
-}
-
-.foot_frind_box div * {
-    float: left;
-    line-height: 22px;
-    height: 22px;
-    color: #333;
-    font-size: 16px;
-    margin: 0 30px;
-}
-
-.call_us_box {
-    display: block;
-    width: 100%;
-    margin: 40px auto 0;
-    overflow: hidden;
-    text-align: center;
-    font-size: 0px;
-    background: #a01c0e;
-
-    a {
-        color: #fff;
-    }
-}
-
-.inner {
-    width: 1200px;
-    margin: 0 auto;
-}
-
-.inner>* {
-    height: 12px;
-    line-height: 12px;
-    color: #fff;
-    font-size: 14px;
-    display: inline-block;
-    box-sizing: border-box;
-    padding: 0 19px;
-    font-weight: bold;
-    border-left: solid 1px #7e1c11;
-    margin: 18px 0;
-}
-
-.inner>*:nth-of-type(1) {
-    border-left: 0px;
-}
-
-.foot_text_box {
-    margin: 40px auto 0px;
-    text-align: center;
-    color: #333;
-    font-size: 14px;
-    line-height: 25px;
-
-    p {
-        a {
-            color: #333;
-            font-size: 14px;
-        }
-
-        .webSitecolor {
-            color: #a01c0e;
-        }
-    }
-}
-
-.top_content {
-    padding: 0 170px;
-}
-
-.webSitecolor {
-    color: #a01c0e;
-}
-
-.foot_text_box_green {
-    color: #a01c0e;
-}
-
-.foot_text_box img {
-    display: inline-block;
-    height: 20px;
-    vertical-align: middle;
-}
-
-.foot_logo_out {
-    position: relative;
-    margin: 0px auto;
-    width: 100%;
-    height: 0px;
-}
-
-.foot_logo_out * {
-    width: 120px;
-    display: block;
-}
-
-.foot_logo_out>* {
-    position: absolute;
-    top: -100px;
-}
-
-.foot_logo_out>*:nth-of-type(1) {
-    left: 0px;
-}
-
-.foot_logo_out>*:nth-of-type(2) {
-    right: 0px;
-}
-
-.foot_last_img_box {
-    margin: 40px auto 10px;
-    text-align: center;
-    overflow: hidden;
-    width: 100%;
-    font-size: 0px;
-    padding-bottom: 40px;
-}
-
-.foot_last_img_box>* {
-    height: 50px;
-    width: 150px;
-    margin: 0px 12px;
-    display: inline-block;
-    overflow: hidden;
-}
-
-.foot_last_img_box>* * {
-    display: block;
-    height: 100%;
-    width: 100%;
-    overflow: hidden;
-}
-</style>

+ 0 - 375
components/advertising/Head.vue

@@ -1,375 +0,0 @@
-<template>
-    <div>
-        <!-- 顶部导航 -->
-        <nav class="headerNav">
-            <div class="inner">
-                <div class="left">
-                    <span>中农兴业网团</span>
-                    <span>旗下网站:
-                        <span>农业百强网站(政府类30强)</span>
-                    </span>
-                    <span class="ad">广告服务</span>
-                </div>
-                <div class="right">
-                    <div class="menu">
-                        <button class="reg" @click="goTopic">
-                            <img src="../../public/head/topicon1.png" alt="商圈">
-                            商圈
-                        </button>
-                        <button class="reg" @click="goAdvertising">
-                            <img src="../../public/head/topicon2.png" alt="广告服务">
-                            广告服务
-                        </button>
-                    </div>
-                    <div class="right-top-menu">
-                        <button class="reg" @click="goLogin" v-show="!showToken">
-                            <img src="../../public/head/topicon3.png" alt="登录">
-                            登录
-                        </button>
-                        <button class="reg" @click="goRegister" v-show="!showToken">
-                            <img src="../../public/head/topicon4.png" alt="注册">
-                            注册
-                        </button>
-                        <button class="reg" @click="userCenter" v-show="showToken">
-                            <img src="../../public/head/topicon3.png" alt="用户信息">
-                            {{ username }}
-                        </button>
-                        <button class="reg" @click="goSearch">
-                            <img src="../../public/head/searchicon.png" alt="搜索">
-                            搜索
-                        </button>
-                    </div>
-                    <ul class="userInfo11" v-if="isShow">
-                        <li @click="gotosystem">个人中心</li>
-                        <li @click="exit">退出</li>
-                    </ul>
-
-                </div>
-            </div>
-        </nav>
-        <el-dialog v-model="dialogTableVisible" title="" width="800">
-            <div class="tips">
-                <p>
-                    <img src="../../public/topic/tips.png" alt="">
-                    提示:注册请联系管理员操作!
-                </p>
-                <p>
-                    联系电话:010-56019387
-                </p>
-                <p>
-                    QQ : 2909421493 、213552413
-                </p>
-            </div>
-        </el-dialog>
-    </div>
-
-</template>
-
-<script setup>
-import { ref, onMounted, watch } from 'vue'
-import { ElPopover, ElDialog } from 'element-plus'
-import { getToken, setToken, removeToken } from '@/store/useCookieStore'
-import { setTicket, removeTicket } from '@/store/useticketStore'
-// import { navigateTo } from '@nuxtjs/composables';
-
-const nuxtApp = useNuxtApp();
-console.log("===:", nuxtApp) // 输出: someValue
-const axios = nuxtApp.$axios;
-
-let ticket = ref('')
-let token = ref('')
-let route = useRoute()
-ticket.value = route.query.ticket
-token.value = route.query.admintoken
-if (ticket.value) {
-    setTicket(ticket.value)
-}
-if (token.value) {
-    setToken(token.value)
-}
-
-
-console.log('查询参数:', ticket.value);
-console.log('查询参数:', token.value);
-
-definePageMeta({
-    middleware: 'auth'
-});
-
-let keyword = useState('keyword', () => '')
-let username = useState('username', () => '')
-let isDel = useState('isDel', () => 1)
-let isShow = useState('isShow', () => false)
-
-//点击登录按钮
-let goLogin = () => {
-    isDel.value = 0
-    token1.value = getToken()
-    window.location.href = ("http://admindev.bjzxtw.org.cn/auth/login.php?backurl=http://nwdev.bjzxtw.org.cn")
-    token1.value = getToken()
-}
-let dialogTableVisible = ref(false)
-
-//点击注册按钮
-let goRegister = () => {
-    dialogTableVisible.value = true
-}
-let userCenter = () => {
-    if(isShow.value){
-        isShow.value = false
-        return
-    }else{
-        isShow.value = true
-        return
-    }
-}
-
-let gotosystem = () => {
-    window.location.href = ("http://admindev.bjzxtw.org.cn/#/login?userurl=http://nwdev.bjzxtw.org.cn")
-}
-
-//点击退出按钮
-let exit = () => {
-    window.location.href = ('http://nwdev.bjzxtw.org.cn/')
-
-    isDel.value = 1
-    token1.value = getToken()
-
-    // axios.get(`http://admindev.bjzxtw.org.cn/auth/logoutapi.php?token=${token}`).then(response => {
-    //     console.log("退出登录", response);
-    //     isDel.value = response.data.isDel
-    // })
-    window.location.href = (`http://admindev.bjzxtw.org.cn/auth/logout.php?backurl=http://nwdev.bjzxtw.org.cn&admintoken=${token1}`)
-    removeToken()
-    removeTicket()
-}
-
-//点击搜索按钮
-let goSearch = () => {
-    const route = `/search/search?keyword=${keyword.value}`;
-    window.open(route, '_blank');
-}
-
-// 点击广告服务
-let goAdvertising = () => {
-    // window.location.href = ('http://localhost:3000/advertising?activeName=${1}')
-    if (getToken()) {
-        window.open(`http://nwdev.bjzxtw.org.cn/advertising?activeName=${1}`, '_blank');
-    } else {
-        goLogin()
-    }
-}
-
-//点击商圈
-let goTopic = () => {
-    // window.location.href = ('http://localhost:3000/topic')
-    if (getToken()) {
-        window.open('http://nwdev.bjzxtw.org.cn/topic', '_blank');
-    } else {
-        goLogin()
-    }
-}
-
-
-//获取用户信息
-let getUserInfo = async () => {
-    try {
-        const response = await axios.get("/user/getUserInfo");
-        console.log('获取用户信息', response);
-        username.value = response.data.nickname
-
-    } catch (error) {
-        console.error(error);
-    }
-}
-
-let token1 = useState("token1", () => '')
-let showToken = useState("showToken", () => '')
-token1.value = getToken()
-
-watch(token1, (newval, oldval) => {
-    console.log(newval, oldval);
-    showToken.value = newval
-}, {
-    deep: true,
-    immediate: true,
-})
-
-onMounted(() => {
-
-    //获取用户信息
-    getUserInfo()
-
-    //获取登录状态
-    getLoginStatus()
-})
-
-//检测登录状态
-//http://admindev.bjzxtw.org.cn/auth/loginstatus.php?token=XXXXXXXXXXXX
-let tokenStatus = ref('');
-tokenStatus.value = getToken()
-console.log(tokenStatus.value);
-//获取用户信息
-let getLoginStatus = async () => {
-    try {
-        const response = await axios.get(`http://nwdev.bjzxtw.org.cn/auth/loginstatus.php?token=${tokenStatus}`);
-        console.log('登录状态', response);
-        if (response.data.code == 200) {
-            if(response.data.data.islogin == true){
-                showToken.value = true 
-            }else{
-                showToken.value = false
-                exit()
-            }
-
-        } else if (response.data.code == 0) {
-            //退出登录
-            exit();
-        }
-    } catch (error) {
-        console.error(error);
-    }
-}
-
-
-</script>
-
-<style lang="less" scoped>
-// 广告页面头部
-.headerNav {
-    width: 100%;
-    height: 56px;
-    line-height: 56px;
-    border-bottom: 1px solid #E5E5E5;
-    // background-color: red;
-}
-
-.headerNav .left>span {
-    margin-right: 47px;
-    color: #666666;
-}
-
-.headerNav .left>.ad {
-    border-left: 1px solid #E5E5E5;
-    padding-left: 45px;
-    color: #333333;
-    font-weight: 600px;
-}
-
-.headerNav .right {
-    display: flex;
-    margin-right: 10px;
-    position: relative;
-
-    button {
-        font-size: 12px;
-        color: #666666;
-        border: none;
-        background: none;
-        cursor: pointer;
-    }
-
-    .login {
-        width: 36px;
-        height: 19px;
-        color: #fff;
-        border-radius: 4px;
-        background-color: #028E21;
-        margin-right: 15px;
-        cursor: pointer;
-    }
-
-    .menu,
-    .right-top-menu {
-        display: flex;
-    }
-
-    .reg {
-        margin-right: 20px;
-        display: flex;
-        align-items: center;
-        justify-content: center;
-        height: 50px;
-
-        img {
-            margin-right: 5px;
-        }
-    }
-}
-
-.headerNav .right {
-    float: right;
-    font-size: 12px;
-    // margin-top: 10px;
-
-    span {
-        margin-left: 26px;
-    }
-
-    .home,
-    .collection {
-        display: inline-block;
-        width: 16px;
-        height: 16px;
-        vertical-align: -3px;
-    }
-
-    .exit {
-        line-height: 30px;
-    }
-
-}
-
-.userInfo11 {
-    width: 100px;
-    height: 80px;
-    background-color: #fff;
-    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
-    border-radius: 3px;
-    position: absolute;
-    top: 50px;
-    right: 0;
-    font-size: 14px;
-    z-index: 999;
-
-    li {
-        height: 40px;
-        line-height: 40px;
-        color: #333333;
-        padding-left: 10px;
-    }
-
-    >li:hover {
-        color: #028E21;
-    }
-}
-
-//提示信息
-.tips {
-    padding: 20px 0;
-    text-align: center;
-    font-size: 20px;
-    color: #40663B;
-    font-weight: bold;
-
-    img {
-        width: 78px;
-        height: 78px;
-        vertical-align: middle;
-        margin-right: 20px;
-
-        p {
-            line-height: 30px;
-        }
-    }
-
-    p {
-        line-height: 40px;
-    }
-
-    >p:first-child {
-        margin-bottom: 30px;
-    }
-
-}
-</style>

+ 0 - 374
components/topic/head.vue

@@ -1,374 +0,0 @@
-<template>
-    <div>
-        <!-- 顶部导航 -->
-        <nav class="headerNav">
-            <div class="inner">
-                <div class="left">
-                    <span>中农兴业网团</span>
-                    <span>旗下网站:
-                        <span>农业百强网站(政府类30强)</span>
-                    </span>
-                    <span class="ad">商圈</span>
-                </div>
-                <div class="right">
-                    <div class="menu">
-                        <button class="reg" @click="goTopic">
-                            <img src="../../public/head/topicon1.png" alt="商圈">
-                            商圈
-                        </button>
-                        <button class="reg" @click="goAdvertising">
-                            <img src="../../public/head/topicon2.png" alt="广告服务">
-                            广告服务
-                        </button>
-                    </div>
-                    <div class="right-top-menu">
-                        <button class="reg" @click="goLogin" v-show="!showToken">
-                            <img src="../../public/head/topicon3.png" alt="登录">
-                            登录
-                        </button>
-                        <button class="reg" @click="goRegister" v-show="!showToken">
-                            <img src="../../public/head/topicon4.png" alt="注册">
-                            注册
-                        </button>
-                        <button class="reg" @click="userCenter" v-show="showToken">
-                            <img src="../../public/head/topicon3.png" alt="用户信息">
-                            {{ username }}
-                        </button>
-                        <button class="reg" @click="goSearch">
-                            <img src="../../public/head/searchicon.png" alt="搜索">
-                            搜索
-                        </button>
-                    </div>
-                    <ul class="userInfo11" v-if="isShow">
-                        <li @click="gotosystem">个人中心</li>
-                        <li @click="exit">退出</li>
-                    </ul>
-
-                </div>
-            </div>
-        </nav>
-        <el-dialog v-model="dialogTableVisible" title="" width="800">
-            <div class="tips">
-                <p>
-                    <img src="../../public/topic/tips.png" alt="">
-                    提示:注册请联系管理员操作!
-                </p>
-                <p>
-                    联系电话:010-56019387
-                </p>
-                <p>
-                    QQ : 2909421493 、213552413
-                </p>
-            </div>
-        </el-dialog>
-    </div>
-
-</template>
-
-<script setup>
-import { ref, onMounted, watch } from 'vue'
-import { ElPopover, ElDialog } from 'element-plus'
-import { getToken, setToken, removeToken } from '@/store/useCookieStore'
-import { setTicket, removeTicket } from '@/store/useticketStore'
-// import { navigateTo } from '@nuxtjs/composables';
-
-const nuxtApp = useNuxtApp();
-console.log("===:", nuxtApp) // 输出: someValue
-const axios = nuxtApp.$axios;
-
-let ticket = ref('')
-let token = ref('')
-let route = useRoute()
-ticket.value = route.query.ticket
-token.value = route.query.admintoken
-if (ticket.value) {
-    setTicket(ticket.value)
-}
-if (token.value) {
-    setToken(token.value)
-}
-
-
-console.log('查询参数:', ticket.value);
-console.log('查询参数:', token.value);
-
-definePageMeta({
-    middleware: 'auth'
-});
-
-let keyword = useState('keyword', () => '')
-let username = useState('username', () => '')
-let isDel = useState('isDel', () => 1)
-let isShow = useState('isShow', () => false)
-
-//点击登录按钮
-let goLogin = () => {
-    isDel.value = 0
-    token1.value = getToken()
-    window.location.href = ("http://admindev.bjzxtw.org.cn/auth/login.php?backurl=http://nwdev.bjzxtw.org.cn")
-    token1.value = getToken()
-}
-let dialogTableVisible = ref(false)
-
-//点击注册按钮
-let goRegister = () => {
-    dialogTableVisible.value = true
-}
-let userCenter = () => {
-    if(isShow.value){
-        isShow.value = false
-        return
-    }else{
-        isShow.value = true
-        return
-    }
-}
-
-let gotosystem = () => {
-    window.location.href = ("http://admindev.bjzxtw.org.cn/#/login?userurl=http://nwdev.bjzxtw.org.cn")
-}
-
-//点击退出按钮
-let exit = () => {
-    window.location.href = ('http://nwdev.bjzxtw.org.cn/')
-
-    isDel.value = 1
-    token1.value = getToken()
-
-    // axios.get(`http://admindev.bjzxtw.org.cn/auth/logoutapi.php?token=${token}`).then(response => {
-    //     console.log("退出登录", response);
-    //     isDel.value = response.data.isDel
-    // })
-    window.location.href = (`http://admindev.bjzxtw.org.cn/auth/logout.php?backurl=http://nwdev.bjzxtw.org.cn&admintoken=${token1}`)
-    removeToken()
-    removeTicket()
-}
-
-//点击搜索按钮
-let goSearch = () => {
-    const route = `/search/search?keyword=${keyword.value}`;
-    window.open(route, '_blank');
-}
-
-// 点击广告服务
-let goAdvertising = () => {
-    // window.location.href = ('http://localhost:3000/advertising?activeName=${1}')
-    if (getToken()) {
-        window.open(`http://nwdev.bjzxtw.org.cn/advertising?activeName=${1}`, '_blank');
-    } else {
-        goLogin()
-    }
-}
-
-//点击商圈
-let goTopic = () => {
-    // window.location.href = ('http://localhost:3000/topic')
-    if (getToken()) {
-        window.open('http://nwdev.bjzxtw.org.cn/topic', '_blank');
-    } else {
-        goLogin()
-    }
-}
-
-
-//获取用户信息
-let getUserInfo = async () => {
-    try {
-        const response = await axios.get("/user/getUserInfo");
-        console.log('获取用户信息', response);
-        username.value = response.data.nickname
-
-    } catch (error) {
-        console.error(error);
-    }
-}
-
-let token1 = useState("token1", () => '')
-let showToken = useState("showToken", () => '')
-token1.value = getToken()
-
-watch(token1, (newval, oldval) => {
-    console.log(newval, oldval);
-    showToken.value = newval
-}, {
-    deep: true,
-    immediate: true,
-})
-
-onMounted(() => {
-
-    //获取用户信息
-    getUserInfo()
-
-    //获取登录状态
-    getLoginStatus()
-})
-
-//检测登录状态
-//http://admindev.bjzxtw.org.cn/auth/loginstatus.php?token=XXXXXXXXXXXX
-let tokenStatus = ref('');
-tokenStatus.value = getToken()
-console.log(tokenStatus.value);
-//获取用户信息
-let getLoginStatus = async () => {
-    try {
-        const response = await axios.get(`http://nwdev.bjzxtw.org.cn/auth/loginstatus.php?token=${tokenStatus}`);
-        console.log('登录状态', response);
-        if (response.data.code == 200) {
-            if(response.data.data.islogin == true){
-                showToken.value = true 
-            }else{
-                showToken.value = false
-                exit()
-            }
-        } else if (response.data.code == 0) {
-            //退出登录
-            exit();
-        }
-    } catch (error) {
-        console.error(error);
-    }
-}
-
-
-</script>
-
-<style lang="less" scoped>
-// 广告页面头部
-.headerNav {
-    width: 100%;
-    height: 56px;
-    line-height: 56px;
-    border-bottom: 1px solid #E5E5E5;
-    // background-color: red;
-}
-
-.headerNav .left>span {
-    margin-right: 47px;
-    color: #666666;
-}
-
-.headerNav .left>.ad {
-    border-left: 1px solid #E5E5E5;
-    padding-left: 45px;
-    color: #333333;
-    font-weight: 600px;
-}
-
-.headerNav .right {
-    display: flex;
-    margin-right: 10px;
-    position: relative;
-
-    button {
-        font-size: 12px;
-        color: #666666;
-        border: none;
-        background: none;
-        cursor: pointer;
-    }
-
-    .login {
-        width: 36px;
-        height: 19px;
-        color: #fff;
-        border-radius: 4px;
-        background-color: #028E21;
-        margin-right: 15px;
-        cursor: pointer;
-    }
-
-    .menu,
-    .right-top-menu {
-        display: flex;
-    }
-
-    .reg {
-        margin-right: 20px;
-        display: flex;
-        align-items: center;
-        justify-content: center;
-        height: 50px;
-
-        img {
-            margin-right: 5px;
-        }
-    }
-}
-
-.headerNav .right {
-    float: right;
-    font-size: 12px;
-    // margin-top: 10px;
-
-    span {
-        margin-left: 26px;
-    }
-
-    .home,
-    .collection {
-        display: inline-block;
-        width: 16px;
-        height: 16px;
-        vertical-align: -3px;
-    }
-
-    .exit {
-        line-height: 30px;
-    }
-
-}
-
-.userInfo11 {
-    width: 100px;
-    height: 80px;
-    background-color: #fff;
-    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
-    border-radius: 3px;
-    position: absolute;
-    top: 50px;
-    right: 0;
-    font-size: 14px;
-    z-index: 999;
-
-    li {
-        height: 40px;
-        line-height: 40px;
-        color: #333333;
-        padding-left: 10px;
-    }
-
-    >li:hover {
-        color: #028E21;
-    }
-}
-
-//提示信息
-.tips {
-    padding: 20px 0;
-    text-align: center;
-    font-size: 20px;
-    color: #40663B;
-    font-weight: bold;
-
-    img {
-        width: 78px;
-        height: 78px;
-        vertical-align: middle;
-        margin-right: 20px;
-
-        p {
-            line-height: 30px;
-        }
-    }
-
-    p {
-        line-height: 40px;
-    }
-
-    >p:first-child {
-        margin-bottom: 30px;
-    }
-
-}
-</style>

+ 1 - 1
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} from 'element-plus'
 import { ArrowRight } from '@element-plus/icons-vue'
 
 //1.1 获得跳转过来的id

+ 27 - 8
pages/[dir]/index.html.vue

@@ -591,15 +591,34 @@ try {
         // await getPageData7();
         // await getPageData8();
         let getJson = [
-            { "parent": routeId + ",0,0", "child": pageData.value[0].cid + ",3,10" },//模块1理论前沿
-            { "parent": routeId + ",0,0", "child": pageData.value[1].cid + ",2,6" },//模块2典型经验
-            { "parent": routeId + ",0,0", "child": pageData.value[2].cid + ",3,10" },//模块3农业天地
-            { "parent": routeId + ",0,0", "child": pageData.value[3].cid + ",2,6" },//模块4美丽乡村
-            { "parent": routeId + ",0,0", "child": pageData.value[4].cid + ",1,10" },//模块5农民之家
-            { "parent": routeId + ",0,0", "child": pageData.value[5].cid + ",3,10" },//模块6农业天地
-            { "parent": routeId + ",0,0", "child": pageData.value[6].cid + ",3,10" },//模块7农村建设
-            { "parent": routeId + ",0,0", "child": pageData.value[7].cid + ",3,13" },//模块8高端资讯
+            // { "parent": routeId + ",0,0", "child": pageData.value[0].cid + ",3,10" },//模块1理论前沿
+            // { "parent": routeId + ",0,0", "child": pageData.value[1].cid + ",2,6" },//模块2典型经验
+            // { "parent": routeId + ",0,0", "child": pageData.value[2].cid + ",3,10" },//模块3农业天地
+            // { "parent": routeId + ",0,0", "child": pageData.value[3].cid + ",2,6" },//模块4美丽乡村
+            // { "parent": routeId + ",0,0", "child": pageData.value[4].cid + ",1,10" },//模块5农民之家
+            // { "parent": routeId + ",0,0", "child": pageData.value[5].cid + ",3,10" },//模块6农业天地
+            // { "parent": routeId + ",0,0", "child": pageData.value[6].cid + ",3,10" },//模块7农村建设
+            // { "parent": routeId + ",0,0", "child": pageData.value[7].cid + ",3,13" },//模块8高端资讯
         ]
+        for (let i = 0; i < pageData.value.length; i++) {
+            if (i == 0) {
+                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",3,10" });
+            } else if (i == 1) {
+                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",2,6" });
+            } else if (i == 2) {
+                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",3,10" });
+            } else if (i == 3) {
+                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",2,6" });
+            } else if (i == 4) {
+                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",1,10" });
+            } else if (i == 5) {
+                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",3,10" });
+            } else if (i == 6) {
+                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",3,10" });
+            } else if (i == 7) {
+                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",3,13" });
+            }
+        }
         let jsonString = JSON.stringify(getJson);
         getPageAllData(jsonString);
     } else {

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

@@ -185,170 +185,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>

+ 2 - 166
pages/about/[dir]/index.html.vue

@@ -182,169 +182,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;
-            }
-        }
-    }
-}
-</style>
+    @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>

+ 17 - 16
pages/index.vue

@@ -621,7 +621,7 @@
                         </NuxtLink>
                         <em></em>
                     </h2>
-                    <ul class="part4_title_right">
+                    <ul class="part4_title_right" v-if="boxData14menu">
                         <li class="right_titleList" v-for="(item, index) in boxData14menu" :key="index">
                             <NuxtLink :href="getLinkPath1(item)" v-if="index <= 7" :title="item.alias">
                                 {{ item.alias }}
@@ -973,13 +973,13 @@
                     <!-- 乡村商城 -->
                     <div class="part6_left_content1">
                         <h2 class="part6_left_content_title">
-                            <NuxtLink class="active" v-if="pageData[20].cid" href="/" :title="pageData[20].alias">
+                            <NuxtLink class="active" v-if="pageData[20]" href="/" :title="pageData[20].alias">
                                 <img src="../public/index/xcsc.png" alt="乡村商城">
                                 {{ pageData[20].alias }}
                             </NuxtLink>
                         </h2>
                         <ul class="part6_left_content111">
-                            <li class="part6_left_content_list">
+                            <li class="part6_left_content_list" v-if="boxData21menu1">
                                 <span class="jiantou">></span>
                                 <NuxtLink href="/" v-for="(item, index) in boxData21menu1" :key="index"
                                     :title="item.alias">
@@ -988,7 +988,7 @@
                                     </span>
                                 </NuxtLink>
                             </li>
-                            <li class="part6_left_content_list">
+                            <li class="part6_left_content_list" v-if="boxData21menu2">
                                 <span class="jiantou">></span>
                                 <NuxtLink href="/" v-for="(item, index) in boxData21menu2" :key="index"
                                     :title="item.alias">
@@ -997,7 +997,7 @@
                                     </span>
                                 </NuxtLink>
                             </li>
-                            <li class="part6_left_content_list">
+                            <li class="part6_left_content_list" v-if="boxData21menu3">
                                 <span class="jiantou">></span>
                                 <NuxtLink href="/" v-for="(item, index) in boxData21menu3" :key="index"
                                     :title="item.alias">
@@ -1006,7 +1006,7 @@
                                     </span>
                                 </NuxtLink>
                             </li>
-                            <li class="part6_left_content_list">
+                            <li class="part6_left_content_list" v-if="boxData21menu4">
                                 <span class="jiantou">></span>
                                 <NuxtLink href="/" v-for="(item, index) in boxData21menu4" :key="index"
                                     :title="item.alias">
@@ -1020,7 +1020,7 @@
                     <!-- 市场报价 -->
                     <div class="part6_left_content2">
                         <h2 class="part6_left_content_title">
-                            <NuxtLink class="active" v-if="pageData[21].cid" href="/" :title="pageData[21].alias">
+                            <NuxtLink class="active" v-if="pageData[21]" href="/" :title="pageData[21].alias">
                                 <img src="../public/index/scbj.png" alt="市场报价">
                                 {{ pageData[21].alias }}
                             </NuxtLink>
@@ -1406,20 +1406,20 @@ try {
 
 
 let getJson = [
-    { "parent": "328,0,20", "child": "328,0,0" },//模块1 三农资讯328
-    { "parent": "27,0,4", "child": "27,0,0" },//模块2 三农服务27
+    { "parent": "328,0,20", "child": "328,1,1" },//模块1 三农资讯328
+    { "parent": "27,0,4", "child": "27,1,2" },//模块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,3,3" },//模块1 乡村商城346
+    { "parent": "345,0,0", "child": "345,3,3" },//模块5 市场报价345
+    { "parent": "343,0,0", "child": "343,3,3" },//模块5 乡土特色343
 ]
 
 let jsonString = JSON.stringify(getJson);
@@ -1630,8 +1630,9 @@ async function getPageData() {
             'id': jsonString1
         },
     });
+    console.log("成功获取模块数据2222!", mkdata);
     if (mkdata.code == 200) {
-        // console.log("成功获取模块数据2222!", mkdata);
+        console.log("成功获取模块数据2222!", mkdata);
 
         //模块5乡村建设
         boxData5data1.value = mkdata.data[0].textnum;

+ 3 - 3
plugins/request.js

@@ -5,8 +5,8 @@ import { getToken } from '@/store/useCookieStore'
 export default defineNuxtPlugin(nuxtApp => {
     const service = axios.create({
         //baseURL: 'http://apidev.bjzxtw.org.cn' //测试服务器地址
-        // baseURL: 'http://apipre1.bjzxtw.org.cn:29501' //pre服务器地址
-        baseURL: 'https://flzxw.bjzxtw.org.cn' //正式环境服务器地址
+        baseURL: 'http://apipre1.bjzxtw.org.cn:29501' //pre服务器地址
+        // baseURL: 'https://flzxw.bjzxtw.org.cn' //正式环境服务器地址
         // baseURL: 'http://192.168.1.117:9501'  //冯蕊的服务器地址
         // baseURL: 'http://192.168.1.201:9501'  //刘佳伟的服务器地址
     });
@@ -20,7 +20,7 @@ export default defineNuxtPlugin(nuxtApp => {
         if (token) {
             config.headers.token = token;
         }
-        config.headers.userurl = "nw.china-village.com.cn";
+        config.headers.userurl = "pre.china-village.com.cn";
         return config;
     }, error => {
         console.log(error)