فهرست منبع

修改bug

修改bug
dangyunlong 1 روز پیش
والد
کامیت
0ffc3bea65

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

@@ -1 +1 @@
-{"id":"dev","timestamp":1744935680628}
+{"id":"dev","timestamp":1745201236340}

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

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

+ 3 - 3
.nuxt/nitro.json

@@ -1,5 +1,5 @@
 {
-  "date": "2025-04-18T00:21:29.520Z",
+  "date": "2025-04-21T02:07:29.376Z",
   "preset": "nitro-dev",
   "framework": {
     "name": "nuxt",
@@ -9,9 +9,9 @@
     "nitro": "2.10.4"
   },
   "dev": {
-    "pid": 6540,
+    "pid": 19360,
     "workerAddress": {
-      "socketPath": "\\\\.\\pipe\\nitro\\worker-6540-1.sock"
+      "socketPath": "\\\\.\\pipe\\nitro\\worker-19360-1.sock"
     }
   }
 }

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

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

+ 8 - 8
assets/css/about.less

@@ -78,22 +78,22 @@
             .headImg {
                 width: 1086px;
                 height: 10px;
-                background: url("../../public/special/1.png") no-repeat 100% 100%;
+                background: url("../../public/special/head01.png") no-repeat 100% 100%;
             }
 
             .footImg {
                 width: 1086px;
                 height: 7px;
-                background: url("../../public/special/3.png") no-repeat 100% 100%;
+                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 #c6d9f0;
-                background: url("../../public/special/2.png") repeat-y 100% 100%;
+                box-sizing: border-box; 
+                border-left: 1px solid #8ac5c0;
+                background: url("../../public/special/mid01.png") repeat-y 100% 100%;
             }
 
            .leftBottom::v-deep {
@@ -149,7 +149,7 @@
                     font-family: Microsoft YaHei, Microsoft YaHei;
                     font-weight: 400;
                     font-size: 16px;
-                    color: #255590;
+                    color: #489d97;
                 }
 
             }
@@ -157,7 +157,7 @@
             .active {
                 // border-left: 0;
                 // border: 1px solid #028E21;
-                background: #255590;
+                background: #489d97;
                 color: #fff;
             }
         }
@@ -166,7 +166,7 @@
 /*列表样式*/
 .innerTitle {
     font-size: 24px;
-    border-bottom: 1px solid #255590;
+    border-bottom: 1px solid #489d97;
     padding-bottom: 20px;
 }
 

+ 7 - 7
assets/css/list.less

@@ -117,7 +117,7 @@
                 }
 
                 >li:hover .listTitle {
-                    color: #255590;
+                    color: #489d97;
                 }
 
                 // >li:nth-child(1)::after,
@@ -156,7 +156,7 @@
 
                 // 鼠标移入后字体颜色
                 .el-pagination::v-deep :hover {
-                    color: #255590;
+                    color: #489d97;
                 }
 
                 .el-pagination.is-background::v-deep .btn-next,
@@ -177,7 +177,7 @@
                 .el-pagination.is-background::v-deep .btn-next.is-active,
                 .el-pagination.is-background::v-deep .btn-prev.is-active,
                 .el-pagination.is-background::v-deep .el-pager li.is-active {
-                    background-color: #255590;
+                    background-color: #489d97;
                     color: #fff;
                 }
 
@@ -226,7 +226,7 @@
                 text-align: left;
                 font-style: normal;
                 text-transform: none;
-                border-bottom: 1px solid #255590;
+                border-bottom: 1px solid #489d97;
 
             }
 
@@ -345,11 +345,11 @@
                 }
 
                 >li:hover {
-                    color: #255590;
+                    color: #489d97;
                 }
 
                 >li:hover em {
-                    background-color: #255590;
+                    background-color: #489d97;
                 }
             }
         }
@@ -364,7 +364,7 @@
             width: 380px;
             height: 40px;
             line-height: 40px;
-            border-top: 1px solid #255590;
+            border-top: 1px solid #489d97;
             border-bottom: 1px solid #e7e7e7;
 
             >h4 {

+ 10 - 22
assets/css/search.less

@@ -103,12 +103,11 @@
 
                 >li {
                     width: 100%;
-                    padding: 10px 0;
-                    // height: 56px;
-                    // line-height: 56px;
+                    height: 56px;
                     white-space: nowrap;
                     overflow: hidden;
                     text-overflow: ellipsis;
+                    line-height: 56px;
 
 
                     >a {
@@ -134,7 +133,7 @@
                 }
 
                 >li:hover>a {
-                    color: #255590;
+                    color: #489d97;
                 }
 
                 >li:nth-child(1)::after,
@@ -149,17 +148,6 @@
 
                 >li:nth-child(5n) {
                     border-bottom: 1px solid #D9D9D9;
-                    padding-bottom: 30px;
-                }
-
-                >li:nth-child(5n+1) {
-                    span {
-                        font-weight: bold;
-                    }
-
-                    font-weight: bold;
-                    padding-top: 30px;
-
                 }
             }
 
@@ -173,7 +161,7 @@
 
                 // 鼠标移入后字体颜色
                 .el-pagination::v-deep :hover {
-                    color: #255590;
+                    color: #489d97;
                 }
 
                 .el-pagination.is-background::v-deep .btn-next,
@@ -194,7 +182,7 @@
                 .el-pagination.is-background::v-deep .btn-next.is-active,
                 .el-pagination.is-background::v-deep .btn-prev.is-active,
                 .el-pagination.is-background::v-deep .el-pager li.is-active {
-                    background-color: #255590;
+                    background-color: #489d97;
                     color: #fff;
                 }
 
@@ -245,7 +233,7 @@
                 text-align: left;
                 font-style: normal;
                 text-transform: none;
-                border-bottom: 1px solid #255590;
+                border-bottom: 1px solid #489d97;
 
             }
 
@@ -364,11 +352,11 @@
                 }
 
                 >li:hover {
-                    color: #255590;
+                    color: #489d97;
                 }
 
                 >li:hover em {
-                    background-color: #255590;
+                    background-color: #489d97;
                 }
             }
         }
@@ -383,7 +371,7 @@
             width: 380px;
             height: 40px;
             line-height: 40px;
-            border-top: 1px solid #255590;
+            border-top: 1px solid #489d97;
             border-bottom: 1px solid #e7e7e7;
 
             >h4 {
@@ -479,7 +467,7 @@
         button {
             width: 120px;
             height: 48px;
-            background-color: #255590;
+            background-color: #489d97;
             font-size: 16px;
             letter-spacing: 4px;
             color: #fff;

+ 4 - 4
components/detail/HotNews.vue

@@ -71,10 +71,10 @@ getPageData();
     font-family: Microsoft YaHei, Microsoft YaHei;
     font-weight: bold;
     font-size: 22px;
-    color: #255590;
+    color: #489D97;
     margin: 10px 0 20px;
     position: relative;
-    border-left: #255590 5px solid;
+    border-left: #489D97 5px solid;
     padding-left: 15px;
 
 }
@@ -115,7 +115,7 @@ getPageData();
 
     .hotList_photo_text1:hover {
         .hotlist_text {
-            color: #255590;
+            color: #489d97;
         }
     }
 }
@@ -154,7 +154,7 @@ getPageData();
     }
 
     >li:hover>a {
-        color: #255590;
+        color: #489d97;
     }
 
 }

+ 9 - 9
components/detail/HotNews2.vue

@@ -60,13 +60,13 @@ getPageData();
     //标题
     .hotNews_title {
         width: 100px;
+        height: 40px;
+        line-height: 40px;
         font-family: Microsoft YaHei, Microsoft YaHei;
         font-weight: bold;
-        margin: 30px 0 10px;
+        margin: 20px 0 5px;
         font-size: 20px;
-        color: #255590;
-        border-left: #255590 5px solid;
-        padding-left: 17px;
+        color: #333333;
     }
 
     //新闻列表
@@ -99,27 +99,27 @@ getPageData();
 
         .hotNews_messageList:nth-child(1) {
             .number {
-                color: #255590;
+                color: #489d97;
             }
         }
 
         .hotNews_messageList:nth-child(2) {
             .number {
-                color: #255590;
+                color: #489d97;
             }
         }
 
         .hotNews_messageList:nth-child(3) {
             .number {
-                color: #255590;
+                color: #489d97;
             }
         }
 
         .hotNews_messageList:hover {
-            color: #255590;
+            color: #489d97;
 
             a {
-                color: #255590;
+                color: #489d97;
             }
         }
     }

+ 2 - 2
components/home/Surveyvote.vue

@@ -383,7 +383,7 @@ async function addWebsiteSurvey(){
         padding-left: 20px;
         width: 100%;
         border-bottom: 1px solid #E7E7E7;
-        border-top: 1px solid #255590;
+        border-top: 1px solid #489D97;
         box-sizing: border-box;
     }
     width:100%;
@@ -507,7 +507,7 @@ async function addWebsiteSurvey(){
                 color: #999999;
             }
             .voting {
-                background-color: #255590;
+                background-color: #489D97 ;
                 color: #fff;
                 margin-right: 44px;
                 cursor: pointer;

+ 107 - 64
components/home/pageNavigation1.vue

@@ -2,58 +2,76 @@
     <div class="navigate">
         <div class="partOne">
             <div class="inner">
-                <div class="navLeft">
-                    <div class="navIndex">
-                        <NuxtLink :to="'/'" title="首页">首页</NuxtLink> 
-                    </div>
-                    <div class="navClass">
-                        <div>
-                            商城类
-                        </div>
-                        <div>
-                            资讯类
-                        </div>
-                    </div>
-                </div>
                 <ul class="navigationOne">
+                    <li>
+                        <NuxtLink href="/">
+                            首页
+                        </NuxtLink>
+                    </li>
                     <li v-for="(item, index) in navigation1" :key="index">
-                        <NuxtLink :href="getLinkPath(item)" :title="item.alias" v-if="index<=23" :target="item.is_url == 1 ? '_blank' : '_self'">
+                        <NuxtLink :href="getLinkPath(item)" :title="item.alias" :target="item.is_url == 1 ? '_blank' : '_self'">
                             {{ item.alias }}
                         </NuxtLink>
                     </li>
                 </ul>
             </div>
         </div>
-
-        <!-- 深度服务 -->
-        <div class="deepServer">
+        <div class="partTwo">
+            <div class="inner">
+                <ul class="partTwoNav">
+                    <li class="navList">农民工资讯</li>
+                    <li class="navList" v-for="(item, index) in navigation2" :key="index">
+                        <NuxtLink :href="getLinkPath(item)" :title="item.alias" :target="item.is_url == 1 ? '_blank' : '_self'">
+                            {{ item.alias }}
+                        </NuxtLink>
+                    </li>
+                </ul>
+            </div>
+        </div>
+        <div class="partThree">
             <div class="inner">
-                <div class="deepServer_left">
-                    <div class="serverTitle">
-                        深度服务
-                    </div>
-                    <ul class="contentList">
-                        <li v-for="(item, index) in navigation2" :key="index">
-                            <NuxtLink :href="getLinkPath(item)" :title="item.alias" :target="item.is_url == 1 ? '_blank' : '_self'">
-                                {{ item.alias }}
-                            </NuxtLink>
-                        </li>
-                    </ul>
+                <div class="title">
+                    搜索职位 : 
+                </div>
+                <div class="searchRole">
+                    <!--下拉框只在客户端渲染-->
+                    <client-only> 
+                        <el-select v-model="searchInputValue1" placeholder="招聘" size="large" style="width: 75px" :key="'select1'">
+                            <el-option v-for="item in selectOptions" :key="item.id" :label="item.name" :value="item.id" />
+                        </el-select>
+                    </client-only>
+                    <i></i>
+                    <input type="text" v-model="typeValue" placeholder="输入关键词" class="ipt">
+                    <em class="search"></em>
                 </div>
-                <!-- <div class="deepServer_right">
-                    <div class="serverTitle_right">
-                        站内搜索:
-                    </div>
-                    <div class="searchRole">
-                        <el-select v-model="depValue" placeholder="资讯" size="large" style="width: 100px">
-                            <el-option v-for="(item, index) in department" :key="index" :label="item.name"
-                                :value="item.id" />
+                <div class="searchRole">
+                    <client-only> 
+                        <el-select v-model="searchInputValue2" placeholder="选择职业" size="large" style="width: 80px" :key="'select2'">
+                            <el-option 
+                                v-for="item in selectOptions2" 
+                                :label="item.name"
+                                :value="item.id" 
+                                :key="item.id"
+                            />
                         </el-select>
-                        <i></i>
-                        <input type="text" v-model="typeValue" placeholder="输入关键词" class="ipt">
-                        <em @click="goToPrimary"></em>
-                    </div>
-                </div> -->
+                    </client-only>
+                    <i></i>
+                    <client-only> 
+                    <el-select v-model="searchInputValue3" placeholder="选择地区" size="large" style="width: 80px" :key="'select3'">
+                        <el-option 
+                            v-for="item in selectOptions3" 
+                            :key="item.id" 
+                            :label="item.name"
+                            :value="item.id" 
+                        />
+                        </el-select>
+                    </client-only>
+                    <i></i>
+                    <!-- <em class="search1" @click="goToPrimary"></em> -->
+                </div>
+                <div class="title1">
+                    更多搜索条件>>
+                </div>
             </div>
         </div>
     </div>
@@ -71,7 +89,7 @@ async function getNavigation1() {
         method: 'GET',
         query: {
             'pid': 0,
-            'num': 20,
+            'num': 10,
             'placeid': 1
         },
     });
@@ -84,7 +102,7 @@ async function getNavigation2() {
         method: 'GET',
         query: {
             'pid': 0,
-            'num': 3,
+            'num': 10,
             'placeid': 11
         },
     });
@@ -95,37 +113,62 @@ getNavigation2();
 
 //2.搜索 start ---------------------------------------->
 import { ElSelect, ElOption, ElMessage } from 'element-plus'
-let department = ref("") //下拉框选项
-const depValue = ref("") //搜索左侧下拉选择的值
-const typeValue = ref("") //搜索右侧框输入的值
+
+const searchInputValue1 = ref("")
+const searchInputValue2 = ref("")
+const searchInputValue3 = ref("")
+
+let selectOptions = [
+    {name:'资讯',id:1},
+    {name:'商城',id:2},
+    {name:'招工招聘',id:3},
+]
+let selectOptions2 = [
+    {name:'职业1',id:1},
+    {name:'职业2',id:2},
+    {name:'职业3',id:3},
+]
+let selectOptions3 = [ 
+    {name:'地区1',id:1},
+    {name:'地区2',id:2},
+    {name:'地区3',id:3},
+]
+const selectValue = ref("") //搜索左侧下拉选择的值
+const inputValue = ref("") //搜索右侧框输入的值
+
 
 //2.1跳转到搜索页面
 let goToPrimary = async () => {
-    
-    if (depValue.value == "" || typeValue.value=="") {
+    if (inputValue.value==""||selectValue.value=="") {
         ElMessage.error('搜索项不能为空!')
     }else{
-        const route = `/search/search?depValue=${depValue.value}&typeValue=${typeValue.value}`;
-        window.location.href = route;
+        if(selectValue.value == 2||selectValue.value == 3){
+            ElMessage.error('所选分类暂不支持检索!')
+        }else{
+            const route = `/search/search?type=${selectValue.value}&keyword=${inputValue.value}`;
+            window.location.href = route;
+        }
     }
 }
 
 onMounted(async ()  => {
     //2.2 获得搜索选项
-    try {
-        const { $webUrl, $CwebUrl } = useNuxtApp();
-        const response = await fetch($webUrl + '/web/selectWebsiteDepartment', {
-            headers: {
-                'Content-Type': 'application/json',
-                'Userurl': $CwebUrl,
-                'Origin': $CwebUrl
-            }
-        });
-        const result = await response.json();
-        department.value = result.data;
-    } catch (error) {
-        console.error('获取部门数据失败:', error);
-    }
+    //暂时为固定
+    //商城、招工招聘 都不能跳转
+    // try {
+    //     const { $webUrl, $CwebUrl } = useNuxtApp();
+    //     const response = await fetch($webUrl + '/web/selectWebsiteDepartment', {
+    //         headers: {
+    //             'Content-Type': 'application/json',
+    //             'Userurl': $CwebUrl,
+    //             'Origin': $CwebUrl
+    //         }
+    //     });
+    //     const result = await response.json();
+    //     department.value = result.data;
+    // } catch (error) {
+    //     console.error('获取部门数据失败:', error);
+    // }
 })
 //2.搜索 end ---------------------------------------->