Explorar o código

修改bug

修改bug
dangyunlong hai 2 meses
pai
achega
681081f253

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

@@ -1 +1 @@
-{"id":"e7711704-a9fe-409f-9912-a3c246faef00","timestamp":1745570522872}
+{"id":"5f3a9c4e-7349-427e-a61e-1b2a7fa600fe","timestamp":1745735587398}

+ 1 - 0
.nuxt/manifest/meta/5f3a9c4e-7349-427e-a61e-1b2a7fa600fe.json

@@ -0,0 +1 @@
+{"id":"5f3a9c4e-7349-427e-a61e-1b2a7fa600fe","timestamp":1745735587398,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

+ 0 - 1
.nuxt/manifest/meta/e7711704-a9fe-409f-9912-a3c246faef00.json

@@ -1 +0,0 @@
-{"id":"e7711704-a9fe-409f-9912-a3c246faef00","timestamp":1745570522872,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

+ 1 - 1
.nuxt/tsconfig.json

@@ -102,7 +102,7 @@
         "./imports"
         "./imports"
       ],
       ],
       "#app-manifest": [
       "#app-manifest": [
-        "./manifest/meta/e7711704-a9fe-409f-9912-a3c246faef00.json"
+        "./manifest/meta/5f3a9c4e-7349-427e-a61e-1b2a7fa600fe.json"
       ],
       ],
       "#components": [
       "#components": [
         "./components"
         "./components"

+ 1 - 1
assets/css/about.less

@@ -92,7 +92,7 @@
                 margin: 0 auto;
                 margin: 0 auto;
                 padding: 30px 50px 40px;
                 padding: 30px 50px 40px;
                 box-sizing: border-box;
                 box-sizing: border-box;
-                border-left: 1px solid #c6d9f0;
+                border-left: 1px solid #FFEEF1;
                 background: url("@/public/special/2.png") repeat-y 100% 100%;
                 background: url("@/public/special/2.png") repeat-y 100% 100%;
             }
             }
 
 

+ 26 - 1
assets/css/public/head.less

@@ -33,7 +33,7 @@ header {
     font-size: 12px;
     font-size: 12px;
     font-family: PingFang SC-Regular;
     font-family: PingFang SC-Regular;
     color: #666666;
     color: #666666;
-    background: url("../../../public/head/headtopbg.png") repeat-x;
+    background: url("@/public/head/headtopbg.png") repeat-x;
 }
 }
 
 
 .headerNav {
 .headerNav {
@@ -49,6 +49,7 @@ header {
 .headerNav .right {
 .headerNav .right {
     display: flex;
     display: flex;
     margin-right: 10px;
     margin-right: 10px;
+    position: relative;
 
 
     button {
     button {
         font-size: 12px;
         font-size: 12px;
@@ -216,4 +217,28 @@ header {
             color: #666666;
             color: #666666;
         }
         }
     }
     }
+}
+
+.userInfo11 {
+    width: 100px;
+    height: 80px;
+    background-color: #fff;
+    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
+    border-radius: 3px;
+    position: absolute;
+    top: 40px;
+    right: 35px;
+    font-size: 14px;
+    z-index: 999;
+
+    li {
+        height: 40px;
+        line-height: 40px;
+        color: #333333;
+        padding-left: 10px;
+    }
+
+    >li:hover {
+        color: #489d97;
+    }
 }
 }

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

@@ -252,7 +252,7 @@
 
 
             .searchRole {
             .searchRole {
                 float: left;
                 float: left;
-                width: 356px;
+                width: 440px;
                 height: 40px;
                 height: 40px;
                 line-height: 35px;
                 line-height: 35px;
                 background-color: #fff;
                 background-color: #fff;
@@ -274,7 +274,7 @@
                 }
                 }
 
 
                 >.ipt {
                 >.ipt {
-                    width: 295px;
+                    width: 379px;
                     font-family: PingFang SC, PingFang SC;
                     font-family: PingFang SC, PingFang SC;
                     font-weight: 400;
                     font-weight: 400;
                     font-size: 14px;
                     font-size: 14px;

+ 2 - 2
components/home/foot.vue

@@ -73,8 +73,8 @@ async function getModelDataAll() {
     const mkdata =  await requestDataPromise('/web/getWebsiteFootAll', {
     const mkdata =  await requestDataPromise('/web/getWebsiteFootAll', {
         method: 'GET',
         method: 'GET',
         query: {
         query: {
-            'link_textnum':8,
-            'link_imgnum':12,
+            'link_textnum':24,
+            'link_imgnum':18,
             'link_footnum':4
             'link_footnum':4
         },
         },
     });
     });

+ 17 - 21
components/home/pageHead.vue

@@ -71,7 +71,7 @@
 <script setup>
 <script setup>
 //1.加载基本依赖 start ---------------------------------------->
 //1.加载基本依赖 start ---------------------------------------->
 import { ref, watch, onMounted } from 'vue'
 import { ref, watch, onMounted } from 'vue'
-import { ElDialog } from 'element-plus'
+import { ElDialog,ElMessage } from 'element-plus'
 import { getToken, setToken, removeToken } from '@/store/useCookieStore'
 import { getToken, setToken, removeToken } from '@/store/useCookieStore'
 import { setTicket, removeTicket } from '@/store/useticketStore'
 import { setTicket, removeTicket } from '@/store/useticketStore'
 //网站地址
 //网站地址
@@ -129,9 +129,11 @@ let goLogin = () => {
     token1.value = getToken()
     token1.value = getToken()
 
 
     //王鹏
     //王鹏
-    window.open($BwebUrl + "/auth/login.php?backurl=" + $CwebUrl, '_blank');
+    //window.open($BwebUrl + "/auth/login.php?backurl=" + $CwebUrl, '_blank');
     //刘佳伟
     //刘佳伟
     //window.open($LoginWebUrl + "/api/goLogin?backurl=" + $CwebUrl, '_blank');
     //window.open($LoginWebUrl + "/api/goLogin?backurl=" + $CwebUrl, '_blank');
+    //党云龙
+    window.open($BwebUrl + "/#/login?backurl=" + $CwebUrl, '_blank');
     //开启线上登录模式 end---------------------------------------->
     //开启线上登录模式 end---------------------------------------->
 
 
     //开启本地登录模式 start---------------------------------------->
     //开启本地登录模式 start---------------------------------------->
@@ -276,30 +278,24 @@ onMounted(async () => {
             });
             });
             const result = await responseStatus.json();
             const result = await responseStatus.json();
             console.log(result)
             console.log(result)
+            
             if (result.code == 200) {
             if (result.code == 200) {
-                if (result.data.isLogin == true) {
-                    console.log("用户已经登录!");
-                    showToken.value = true;
-
-                } else {
-                    console.log("用户已退出登录!");
-                    showToken.value = false;
-                    //退出登录
-                    isShow.value = false;
-                    removeToken();
-                    removeTicket();
-                    ElMessage.error('您已退出登录!')
-                }
-            } else {
-                console.log("用户已退出登录!");
-                //退出登录
+                console.log("用户已经登录!");
+                showToken.value = true;
+            }
+            if (result.code == -1) {
                 isShow.value = false;
                 isShow.value = false;
                 showToken.value = false;
                 showToken.value = false;
                 removeToken();
                 removeToken();
                 removeTicket();
                 removeTicket();
                 ElMessage.error('您没有权限登录该网站!')
                 ElMessage.error('您没有权限登录该网站!')
-                //跳转到首页
-                //window.location.href = $CwebUrl;
+            }
+            if (result.code == -2) {
+                isShow.value = false;
+                showToken.value = false;
+                removeToken();
+                removeTicket();
+                ElMessage.error('您已退出登录!')
             }
             }
         }
         }
     }
     }
@@ -310,7 +306,7 @@ onMounted(async () => {
     //从客户端获取行政职能部门 加快打开速度
     //从客户端获取行政职能部门 加快打开速度
     const { $webUrl, $CwebUrl } = useNuxtApp();
     const { $webUrl, $CwebUrl } = useNuxtApp();
     //广告1
     //广告1
-    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_top`
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nzgxw_top`
     const responseAd1 = await fetch(url, {
     const responseAd1 = await fetch(url, {
         headers: {
         headers: {
             'Content-Type': 'application/json',
             'Content-Type': 'application/json',

+ 7 - 7
components/home/pageNavigation.vue

@@ -61,11 +61,11 @@
                         </NuxtLink>
                         </NuxtLink>
                     </div>
                     </div>
                     <el-checkbox-group v-model="checkList">
                     <el-checkbox-group v-model="checkList">
-                        <el-checkbox label="产品" value="1" />
-                        <el-checkbox label="企业" value="2" />
-                        <el-checkbox label="人才" value="3" />
-                        <el-checkbox label="展会" value="4" />
-                        <el-checkbox label="资讯" value="5" />
+                        <el-checkbox label="产品" value="1" disabled />
+                        <el-checkbox label="企业" value="2" disabled/>
+                        <el-checkbox label="人才" value="3" disabled/>
+                        <el-checkbox label="展会" value="4" disabled/>
+                        <el-checkbox label="资讯" value="5" checked disabled/>
                     </el-checkbox-group>
                     </el-checkbox-group>
                     <div class="serverTitle1">
                     <div class="serverTitle1">
                         <a href="">
                         <a href="">
@@ -78,9 +78,9 @@
                         <input type="text" v-model="inputValue" placeholder="输入关键词" class="ipt">
                         <input type="text" v-model="inputValue" placeholder="输入关键词" class="ipt">
                         <em @click="goToPrimary"></em>
                         <em @click="goToPrimary"></em>
                     </div>
                     </div>
-                    <div class="serverTitle_right">
+                    <!-- <div class="serverTitle_right">
                         【高级搜索】
                         【高级搜索】
-                    </div>
+                    </div> -->
                 </div>
                 </div>
             </div>
             </div>
         </div>
         </div>

+ 7 - 7
components/home/pageNavigation1.vue

@@ -61,11 +61,11 @@
                         </NuxtLink>
                         </NuxtLink>
                     </div>
                     </div>
                     <el-checkbox-group v-model="checkList">
                     <el-checkbox-group v-model="checkList">
-                        <el-checkbox label="产品" value="1" />
-                        <el-checkbox label="企业" value="2" />
-                        <el-checkbox label="人才" value="3" />
-                        <el-checkbox label="展会" value="4" />
-                        <el-checkbox label="资讯" value="5" />
+                        <el-checkbox label="产品" value="1" disabled />
+                        <el-checkbox label="企业" value="2" disabled/>
+                        <el-checkbox label="人才" value="3" disabled/>
+                        <el-checkbox label="展会" value="4" disabled/>
+                        <el-checkbox label="资讯" value="5" checked disabled/>
                     </el-checkbox-group>
                     </el-checkbox-group>
                     <div class="serverTitle1">
                     <div class="serverTitle1">
                         <a href="">
                         <a href="">
@@ -78,9 +78,9 @@
                         <input type="text" v-model="inputValue" placeholder="输入关键词" class="ipt">
                         <input type="text" v-model="inputValue" placeholder="输入关键词" class="ipt">
                         <em @click="goToPrimary"></em>
                         <em @click="goToPrimary"></em>
                     </div>
                     </div>
-                    <div class="serverTitle_right">
+                    <!-- <div class="serverTitle_right">
                         【高级搜索】
                         【高级搜索】
-                    </div>
+                    </div> -->
                 </div>
                 </div>
             </div>
             </div>
         </div>
         </div>

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

@@ -26,12 +26,12 @@
                             <el-breadcrumb-item>
                             <el-breadcrumb-item>
                                 <NuxtLink :to="`list-1.html`"> {{ routLevelTitle }}</NuxtLink>
                                 <NuxtLink :to="`list-1.html`"> {{ routLevelTitle }}</NuxtLink>
                             </el-breadcrumb-item>
                             </el-breadcrumb-item>
-                            <el-breadcrumb-item>{{ routeNewsTtitle }}</el-breadcrumb-item>
+                            <el-breadcrumb-item>{{getTitleLength(routeNewsTtitle,20)}}</el-breadcrumb-item>
                         </el-breadcrumb>
                         </el-breadcrumb>
                     </div>
                     </div>
                 </div>
                 </div>
                 <div class="LeftTop">
                 <div class="LeftTop">
-                    <h1>{{ newsDetail.title }}</h1>
+                    <h1>{{newsDetail.title}}</h1>
                     <p>
                     <p>
                         来源: <span>{{ newsDetail.copyfrom }}</span>
                         来源: <span>{{ newsDetail.copyfrom }}</span>
                         作者: <span>{{ newsDetail.author }}</span>
                         作者: <span>{{ newsDetail.author }}</span>
@@ -185,7 +185,7 @@ let adImg1 = ref([]);
 onMounted(async ()  => {
 onMounted(async ()  => {
     const { $webUrl, $CwebUrl } = useNuxtApp();
     const { $webUrl, $CwebUrl } = useNuxtApp();
     //广告1
     //广告1
-    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_detail_0001`
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nzgxw_detail_0001`
     const responseAd1 = await fetch(url, {
     const responseAd1 = await fetch(url, {
         headers: {
         headers: {
             'Content-Type': 'application/json',
             'Content-Type': 'application/json',

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

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

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

@@ -24,7 +24,7 @@
                             <el-breadcrumb-item v-else">
                             <el-breadcrumb-item v-else">
                                 <NuxtLink :to="`/${parent_pinyin}/list-1.html`"> {{ routLevelTitle }}</NuxtLink>
                                 <NuxtLink :to="`/${parent_pinyin}/list-1.html`"> {{ routLevelTitle }}</NuxtLink>
                             </el-breadcrumb-item>
                             </el-breadcrumb-item>
-                            <el-breadcrumb-item>{{ routeNewsTtitle }}</el-breadcrumb-item>
+                            <el-breadcrumb-item>{{  getTitleLength(routeNewsTtitle,20) }}</el-breadcrumb-item>
                         </el-breadcrumb>
                         </el-breadcrumb>
                     </div>
                     </div>
                 </div>
                 </div>
@@ -177,7 +177,7 @@ let adImg1 = ref([]);
 onMounted(async ()  => {
 onMounted(async ()  => {
     const { $webUrl, $CwebUrl } = useNuxtApp();
     const { $webUrl, $CwebUrl } = useNuxtApp();
     //广告1
     //广告1
-    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_detail_0001`
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nzgxw_detail_0001`
     const responseAd1 = await fetch(url, {
     const responseAd1 = await fetch(url, {
         headers: {
         headers: {
             'Content-Type': 'application/json',
             'Content-Type': 'application/json',

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

@@ -434,7 +434,7 @@ onMounted(async () => {
     //从客户端获取行政职能部门 加快打开速度
     //从客户端获取行政职能部门 加快打开速度
     const { $webUrl, $CwebUrl } = useNuxtApp();
     const { $webUrl, $CwebUrl } = useNuxtApp();
     //广告1
     //广告1
-    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0001`
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nzgxw_category_0001`
     const responseAd1 = await fetch(url, {
     const responseAd1 = await fetch(url, {
         headers: {
         headers: {
             'Content-Type': 'application/json',
             'Content-Type': 'application/json',
@@ -446,7 +446,7 @@ onMounted(async () => {
     adImg1.value = resultAd1.data[0];
     adImg1.value = resultAd1.data[0];
 
 
     //广告2
     //广告2
-    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0002`
+    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nzgxw_category_0002`
     const responseAd2 = await fetch(url2, {
     const responseAd2 = await fetch(url2, {
         headers: {
         headers: {
             'Content-Type': 'application/json',
             'Content-Type': 'application/json',
@@ -458,7 +458,7 @@ onMounted(async () => {
     adImg2.value = resultAd2.data[0];
     adImg2.value = resultAd2.data[0];
 
 
     //广告3
     //广告3
-    let url3 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0003`
+    let url3 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nzgxw_category_0003`
     const responseAd3 = await fetch(url3, {
     const responseAd3 = await fetch(url3, {
         headers: {
         headers: {
             'Content-Type': 'application/json',
             'Content-Type': 'application/json',
@@ -470,7 +470,7 @@ onMounted(async () => {
     adImg3.value = resultAd3.data[0];
     adImg3.value = resultAd3.data[0];
 
 
     //广告4
     //广告4
-    let url4 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0004`
+    let url4 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nzgxw_category_0004`
     const responseAd4 = await fetch(url4, {
     const responseAd4 = await fetch(url4, {
         headers: {
         headers: {
             'Content-Type': 'application/json',
             'Content-Type': 'application/json',

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

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

+ 4 - 4
pages/index.vue

@@ -1083,7 +1083,7 @@ onMounted(async () => {
 
 
     //从客户端启动广告
     //从客户端启动广告
     //广告1
     //广告1
-    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_index_0001`
+    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nzgxw_index_0001`
     const responseAd1 = await fetch(url, {
     const responseAd1 = await fetch(url, {
         headers: {
         headers: {
             'Content-Type': 'application/json',
             'Content-Type': 'application/json',
@@ -1095,7 +1095,7 @@ onMounted(async () => {
     adImg1.value = resultAd1.data[0];
     adImg1.value = resultAd1.data[0];
 
 
     //广告2
     //广告2
-    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_index_0002`
+    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nzgxw_index_0002`
     const responseAd2 = await fetch(url2, {
     const responseAd2 = await fetch(url2, {
         headers: {
         headers: {
             'Content-Type': 'application/json',
             'Content-Type': 'application/json',
@@ -1107,7 +1107,7 @@ onMounted(async () => {
     adImg2.value = resultAd2.data[0];
     adImg2.value = resultAd2.data[0];
 
 
     //广告3
     //广告3
-    let url3 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_index_0003`
+    let url3 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nzgxw_index_0003`
     const responseAd3 = await fetch(url3, {
     const responseAd3 = await fetch(url3, {
         headers: {
         headers: {
             'Content-Type': 'application/json',
             'Content-Type': 'application/json',
@@ -1119,7 +1119,7 @@ onMounted(async () => {
     adImg3.value = resultAd3.data[0];
     adImg3.value = resultAd3.data[0];
 
 
     //广告4
     //广告4
-    let url4 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_index_0004`
+    let url4 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nzgxw_index_0004`
     const responseAd4 = await fetch(url4, {
     const responseAd4 = await fetch(url4, {
         headers: {
         headers: {
             'Content-Type': 'application/json',
             'Content-Type': 'application/json',

BIN=BIN
public/special/1.png


BIN=BIN
public/special/2.png


BIN=BIN
public/special/3.png