Browse Source

修改招工招聘bug

Jing 2 weeks ago
parent
commit
052fbf690f

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

@@ -1 +1 @@
-{"id":"4b83ae7c-967f-42ab-b87c-efa9d949eeb8","timestamp":1748247901212}
+{"id":"50e87899-39a6-4f00-87ca-779795dfba92","timestamp":1748507281652}

+ 0 - 1
.nuxt/manifest/meta/4b83ae7c-967f-42ab-b87c-efa9d949eeb8.json

@@ -1 +0,0 @@
-{"id":"4b83ae7c-967f-42ab-b87c-efa9d949eeb8","timestamp":1748247901212,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

+ 1 - 0
.nuxt/manifest/meta/50e87899-39a6-4f00-87ca-779795dfba92.json

@@ -0,0 +1 @@
+{"id":"50e87899-39a6-4f00-87ca-779795dfba92","timestamp":1748507281652,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

+ 1 - 1
.nuxt/tsconfig.json

@@ -102,7 +102,7 @@
         "./imports"
       ],
       "#app-manifest": [
-        "./manifest/meta/4b83ae7c-967f-42ab-b87c-efa9d949eeb8.json"
+        "./manifest/meta/50e87899-39a6-4f00-87ca-779795dfba92.json"
       ],
       "#components": [
         "./components"

+ 20 - 20
assets/css/index.less

@@ -274,10 +274,7 @@ section {
 
 .index_3_ul {
     margin-top: 25px;
-}
-
-.index_3_li_a:hover .index_3_li_dot1 {
-    color: #489D97;
+    min-height: 252px;
 }
 
 .index_3_li {
@@ -293,6 +290,19 @@ section {
     background: linear-gradient(to top, #fff, #F7FCFC);
 }
 
+.index_3_li:nth-child(1)::before {
+    content: '';
+    display: block;
+    position: absolute;
+    width: 30px;
+    height: 30px;
+    right: -15px;
+    top: -15px;
+    z-index: 11;
+    background: url(@/public/img/5.png) no-repeat left top;
+    background-size: 100% 100%;
+}
+
 .index_3_li_name_box {
     display: flex;
     height: 28px;
@@ -330,18 +340,7 @@ section {
     margin: 15px auto 20px;
 }
 
-.index_3_li_tag::before {
-    content: '';
-    display: block;
-    position: absolute;
-    width: 30px;
-    height: 30px;
-    right: -15px;
-    top: -15px;
-    z-index: 11;
-    background: url(@/public/img/5.png) no-repeat left top;
-    background-size: 100% 100%;
-}
+
 
 .index_3_li:nth-of-type(3n-1) {
     margin: 10px 24px;
@@ -373,17 +372,18 @@ section {
     box-sizing: border-box;
     padding: 10px 0px;
     border-radius: 10px;
+    height: 165px;
 
     .index_3_ol_li {
         float: left;
-        width: 320px;
+        width: 535px;
         box-sizing: border-box;
         margin: 10px 30px;
     }
 
-    .index_3_ol_li:nth-of-type(3n-1) {
-        margin: 10px 58px;
-    }
+    // .index_3_ol_li:nth-of-type(3n-1) {
+    //     margin: 10px 58px;
+    // }
 }
 
 .index_3_ol_li_a {

+ 18 - 0
assets/css/zgzpClass.less

@@ -176,6 +176,7 @@ section {
 }
 
 .cruit_head_right_a {
+    cursor: pointer;
     float: left;
     height: 31px;
     line-height: 31px;
@@ -1641,4 +1642,21 @@ input[type="radio"]:checked.cruit_form_radio::before {
     border: none;
     margin-left: 20px;
     background-color: #489d97;
+}
+
+.empty {
+    width: 100%;
+    height: 150px;
+    line-height: 150px;
+    text-align: center;
+}
+
+.empty_img {
+    vertical-align: -30px;
+    margin-right: 20px;
+}
+
+.empty_text {
+    font-size: 26px;
+    color: #999;
 }

+ 15 - 4
assets/css/zgzpjianli.less

@@ -68,6 +68,16 @@ a {
       margin: auto;
 }
 
+.gerenjianli {
+      width: 100%;
+      height: 250px;
+      background-color: #fbfbfb;
+}
+.index_1{
+      width: 1200px;
+      margin: 0 auto;
+}
+
 ul,
 ol {
       list-style: none;
@@ -219,10 +229,10 @@ section {
       float: left;
       height: 55px;
       line-height: 55px;
-      color: #49A769;
+      color: #489d97;
       font-weight: bold;
       font-size: 22px;
-      border-bottom: solid 3px #49A769;
+      border-bottom: solid 3px #489d97;
 }
 
 .seek_head_right_box {
@@ -339,7 +349,7 @@ section {
       width: 130px;
       height: 130px;
       margin-top: 28px;
-      opacity: .6;
+      // opacity: .6;
 }
 
 .index_2 {
@@ -364,6 +374,7 @@ section {
 
 .index_6 {
       margin-top: 10px;
+      margin-bottom: 40px;
 }
 
 .index_6 .seek_in {
@@ -420,7 +431,7 @@ section {
       font-size: 18px;
 }
 
-.seek_article{
+.seek_article {
       color: #333;
       font-size: 18px;
 }

+ 18 - 1
assets/css/zgzplist.less

@@ -999,4 +999,21 @@ input[type="checkbox"]:checked.society_inp_checkbox_box_li_3_btn::after {
 
 @media screen and (max-width:599px) {}
 
-@media screen and (max-width:320px) {}
+@media screen and (max-width:320px) {}
+
+.empty {
+    width: 100%;
+    height: 150px;
+    line-height: 150px;
+    text-align: center;
+}
+
+.empty_img {
+    vertical-align: -30px;
+    margin-right: 20px;
+}
+
+.empty_text {
+    font-size: 26px;
+    color: #999;
+}

+ 4 - 2
assets/css/zgzpsearch.less

@@ -659,6 +659,7 @@ input[type="radio"]:checked.cruit_form_radio::before {
 .society_form_right_a_box {}
 
 .society_form_right_a {
+    cursor: pointer;
     float: left;
     height: 30px;
     line-height: 30px;
@@ -769,6 +770,7 @@ input[type="checkbox"]:checked.society_head_checkbox::after {
 }
 
 .society_head_right_a {
+    cursor: pointer;
     float: left;
     height: 31px;
     line-height: 31px;
@@ -879,6 +881,7 @@ input[type="checkbox"]:checked.society_inp_checkbox_box_li_1_btn::after {
 
 .society_li_3_text_box {
     margin-top: 20px;
+    margin-left: 30px;
 }
 
 .society_li_3_text {
@@ -912,7 +915,7 @@ input[type="checkbox"]:checked.society_inp_checkbox_box_li_1_btn::after {
 }
 
 .society_li_3_tag_box {
-    margin: 20px 0 20px;
+    margin: 20px 0 20px 25px;
 }
 
 .society_li_3_tag {
@@ -1035,7 +1038,6 @@ input[type="checkbox"]:checked.society_inp_checkbox_box_li_3_btn::after {
     .cruit_alert_rgb_close {
         width: 26px;
         height: 26px;
-        background-image: url(@/public/img/4.png);
         position: absolute;
         top: 0px;
         right: 24px;

+ 8 - 0
assets/css/zgzpzhaopin.less

@@ -298,6 +298,14 @@ section {
     margin-top: 32px;
 }
 
+.demand_ul_1_span {
+    height: 21px;
+    line-height: 21px;
+    color: #333;
+    font-size: 18px;
+    margin-bottom: 33px;
+}
+
 .demand_ul_1_a {
     height: 21px;
     line-height: 21px;

+ 9 - 9
composables/getData.js

@@ -8,9 +8,9 @@ import { getToken } from '@/store/useCookieStore';
 // requestData方法 如果只是单一请求,可以直接调用这个方法
 function requestData(url, options = {}) {
     //获得全局变量中的webUrl和userUrl
-    const { $webUrl, $userUrl,$CwebUrl } = useNuxtApp()
+    const { $webUrl, $userUrl, $CwebUrl } = useNuxtApp()
     let fullUrl = $webUrl + url;
-   
+
     // 生成唯一的 key
     const key = `${url}-${JSON.stringify(options.query || options.body)}`;
 
@@ -43,7 +43,7 @@ function requestData(url, options = {}) {
 function requestDataPromise(url, options = {}) {
     return new Promise(async (resolve, reject) => {
         //获得全局变量中的webUrl和userUrl
-        const { $webUrl, $userUrl , $CwebUrl } = useNuxtApp()
+        const { $webUrl, $userUrl, $CwebUrl } = useNuxtApp()
         let fullUrl = $webUrl + url;
 
         let key = `${url}-${JSON.stringify(options.query)}`;
@@ -73,9 +73,9 @@ function requestDataPromise(url, options = {}) {
                     body: method === 'POST' ? options.body : undefined, // 仅在 POST 请求时设置 body
                     query: method === 'GET' ? options.query : undefined, // 仅在 GET 请求时设置 query
                 });
-            }, { 
+            }, {
                 lazy: false,
-            }); 
+            });
 
             if (error.value) {
                 reject(error.value); // 如果有错误,拒绝 Promise
@@ -136,7 +136,7 @@ function requestDataWebUrl(url, options = {}) {
 function requestHome(url, options = {}) {
     return new Promise(async (resolve, reject) => {
         //获得全局变量中的webUrl和userUrl
-        const { $webUrl, $userUrl,$CwebUrl } = useNuxtApp()
+        const { $webUrl, $userUrl, $CwebUrl } = useNuxtApp()
         let fullUrl = $webUrl + url;
 
         let key = `${url}-${JSON.stringify(options.query)}`;
@@ -164,9 +164,9 @@ function requestHome(url, options = {}) {
                     body: method === 'POST' ? options.body : undefined, // 仅在 POST 请求时设置 body
                     query: method === 'GET' ? options.query : undefined, // 仅在 GET 请求时设置 query
                 });
-            }, { 
+            }, {
                 lazy: true, //使用缓存
-            }); 
+            });
 
             if (error.value) {
                 reject(error.value); // 如果有错误,拒绝 Promise
@@ -179,4 +179,4 @@ function requestHome(url, options = {}) {
     });
 }
 
-export { requestData, requestDataPromise ,requestDataWebUrl,requestHome };
+export { requestData, requestDataPromise, requestDataWebUrl, requestHome };

+ 53 - 95
pages/index.vue

@@ -65,114 +65,35 @@
             <section class="index_3 clearfix">
                 <div class="index_3_h4_box">
                     <h4 class="index_3_h4">
-                        <a class="index_3_h4_a" href="" title="">最新热门职位</a>
+                        <span class="index_3_h4_a">最新热门职位</span>
                     </h4>
                 </div>
+                <!-- {{ job_vacancy }} -->
                 <!-- open 最新热门职位1-->
                 <div class="index_3_ul clearfix_2">
-                    <div class="index_3_li index_3_li_tag clearfix_2">
-                        <a class="index_3_li_a" href="" title="">
+                    <div class="index_3_li clearfix_2" v-for="(item, index) in job_vacancy" :key="index">
+                        <NuxtLink class="index_3_li_a" :href="`/${item.pinyin}/${item.id}.html`" title="">
                             <div class="index_3_li_name_box">
-                                <div class="index_3_li_num">1</div>
-                                <div class="index_3_li_name dot1">日式厨师</div>
+                                <div class="index_3_li_num">{{ index + 1 }}</div>
+                                <div class="index_3_li_name dot1">{{ item.title }}</div>
                             </div>
                             <div class="index_3_li_dot1 dot1">
-                                北京若森科技动漫委培生北京若森科技动漫委培生北京若森科技动漫委培生北京若森科技动漫委培生北京若森科技动漫委培生</div>
-                        </a>
-                    </div>
-                    <div class="index_3_li clearfix_2">
-                        <a class="index_3_li_a" href="" title="">
-                            <div class="index_3_li_name_box">
-                                <div class="index_3_li_num">2</div>
-                                <div class="index_3_li_name dot1">厨师/厨师长</div>
-                            </div>
-                            <div class="index_3_li_dot1 dot1">
-                                北京若森科技动漫委培生北京若森科技动漫委培生北京若森科技动漫委培生北京若森科技动漫委培生北京若森科技动漫委培生</div>
-                        </a>
-                    </div>
-                    <div class="index_3_li clearfix_2">
-                        <a class="index_3_li_a" href="" title="">
-                            <div class="index_3_li_name_box">
-                                <div class="index_3_li_num">3</div>
-                                <div class="index_3_li_name dot1">汽车修理工</div>
-                            </div>
-                            <div class="index_3_li_dot1 dot1">
-                                北京若森科技动漫委培生北京若森科技动漫委培生北京若森科技动漫委培生北京若森科技动漫委培生北京若森科技动漫委培生</div>
-                        </a>
-                    </div>
-                    <div class="index_3_li clearfix_2">
-                        <a class="index_3_li_a" href="" title="">
-                            <div class="index_3_li_name_box">
-                                <div class="index_3_li_num">4</div>
-                                <div class="index_3_li_name dot1">北京若森科技动漫委培生</div>
-                            </div>
-                            <div class="index_3_li_dot1 dot1">
-                                北京若森科技动漫委培生北京若森科技动漫委培生北京若森科技动漫委培生北京若森科技动漫委培生北京若森科技动漫委培生</div>
-                        </a>
-                    </div>
-                    <div class="index_3_li clearfix_2">
-                        <a class="index_3_li_a" href="" title="">
-                            <div class="index_3_li_name_box">
-                                <div class="index_3_li_num">5</div>
-                                <div class="index_3_li_name dot1">烧烤师</div>
+                                {{ item.business_name }}
                             </div>
-                            <div class="index_3_li_dot1 dot1">
-                                北京若森科技动漫委培生北京若森科技动漫委培生北京若森科技动漫委培生北京若森科技动漫委培生北京若森科技动漫委培生</div>
-                        </a>
-                    </div>
-                    <div class="index_3_li clearfix_2">
-                        <a class="index_3_li_a" href="" title="">
-                            <div class="index_3_li_name_box">
-                                <div class="index_3_li_num">6</div>
-                                <div class="index_3_li_name dot1">高薪法务助理+五险双休</div>
-                            </div>
-                            <div class="index_3_li_dot1 dot1">
-                                北京若森科技动漫委培生北京若森科技动漫委培生北京若森科技动漫委培生北京若森科技动漫委培生北京若森科技动漫委培生</div>
-                        </a>
+                        </NuxtLink>
                     </div>
                 </div>
                 <!-- over 最新热门职位1-->
                 <!-- open 最新热门职位2ul-->
                 <div class="index_3_ol_box">
-                    <h3 class="index_3_ol_h3">
-                        <a class="index_3_ol_h3_a" href="" title="">北京中农兴业资讯发展股份有限公司</a>
-                    </h3>
                     <div class="index_3_ol clearfix">
-                        <div class="index_3_ol_li">
-                            <a class="index_3_ol_li_a" href="" title="">
-                                <div class="index_3_li_num">1</div>
-                                <div class="index_3_ol_li_dot1 dot1">php程序员</div>
-                            </a>
-                        </div>
-                        <div class="index_3_ol_li">
-                            <a class="index_3_ol_li_a" href="" title="">
-                                <div class="index_3_li_num">2</div>
-                                <div class="index_3_ol_li_dot1 dot1">网页设计</div>
-                            </a>
-                        </div>
-                        <div class="index_3_ol_li">
-                            <a class="index_3_ol_li_a" href="" title="">
-                                <div class="index_3_li_num">3</div>
-                                <div class="index_3_ol_li_dot1 dot1">行政助理文员</div>
-                            </a>
-                        </div>
-                        <div class="index_3_ol_li">
-                            <a class="index_3_ol_li_a" href="" title="">
-                                <div class="index_3_li_num">4</div>
-                                <div class="index_3_ol_li_dot1 dot1">网站编辑</div>
-                            </a>
-                        </div>
-                        <div class="index_3_ol_li">
-                            <a class="index_3_ol_li_a" href="" title="">
-                                <div class="index_3_li_num">5</div>
-                                <div class="index_3_ol_li_dot1 dot1">文案策划</div>
-                            </a>
-                        </div>
-                        <div class="index_3_ol_li">
-                            <a class="index_3_ol_li_a" href="" title="">
-                                <div class="index_3_li_num">6</div>
-                                <div class="index_3_ol_li_dot1 dot1">网站运营推广</div>
-                            </a>
+                        <div class="index_3_ol_li" v-for="(item, index) in recommend_job" :key="index">
+                            <NuxtLink class="index_3_ol_li_a" :href="`/${item.pinyin}/${item.id}.html`" title="">
+                                <div class="index_3_li_num">{{ index + 1 }}</div>
+                                <div class="index_3_ol_li_dot1 dot1">
+                                    {{ item.business_name }}--{{ item.title }}
+                                </div>
+                            </NuxtLink>
                         </div>
                     </div>
                 </div>
@@ -926,7 +847,7 @@ let getJson = [
     { "parent": $pageNav[2] + ",0,6", "child": "" },//模块3 人才市场554
     { "parent": $pageNav[3] + ",5,15", "child": "" },//模块4 致富信息545
     { "parent": $pageNav[4] + ",5,15", "child": "" },//模块5 书刊音像城561
-    { "parent": $pageNav[5] + ",6,0", "child": $pageNav[15] + ",0,4" },//模块6 农民工资讯552pre 必须含有一个子导航的id 才能获取到子导航列表
+    { "parent": $pageNav[5] + ",6,6", "child": $pageNav[15] + ",0,4" },//模块6 农民工资讯552pre 必须含有一个子导航的id 才能获取到子导航列表
     { "parent": $pageNav[6] + ",5,15", "child": "" },//模块7人才服务539
     { "parent": $pageNav[7] + ",0,6", "child": "" },//模块8 农民工创业546
     { "parent": $pageNav[8] + ",0,6", "child": "" },//模块9 农民工培训547
@@ -1107,6 +1028,43 @@ if (setData.code == 200) {
     console.log("设置首页SEO出错!", setData.message)
 }
 //5.设置seo数据 start---------------------------------------->
+
+//6.获取页面职位 及推荐单位 start---------------------------------------->
+//6.1 获取最新热门岗位
+const job_vacancy = ref('') // 招聘岗位
+const getJob = async () => {
+    const getJob = await requestDataPromise('/web/getWebsiteJob', {
+        method: 'GET',
+        query: {
+            'job1_num': 6,
+            'job2_num': 6,
+        },
+    });
+    if (getJob.code == 200) {
+        console.log("获取到的岗位和简历:", getJob.data);
+        job_vacancy.value = getJob.data.job_recuiting; // 招聘岗位
+    }
+}
+getJob()
+//6.2 获取推荐岗位
+const recommend_job = ref('') // 推荐岗位
+const getRecommendJob = async () => {
+    const getRecommendJob = await requestDataPromise('/web/getWebsiteLevelJob', {
+        method: 'GET',
+        query: {
+            'job_level': 1,
+            'pageSize': 6,
+        },
+    });
+    console.log("获取推荐岗位1111:", getRecommendJob);
+    if (getRecommendJob.code == 200) {
+        console.log("获取推荐岗位1111222:", getRecommendJob.data);
+        recommend_job.value = getRecommendJob.data; // 推荐岗位
+    }
+}
+getRecommendJob()
+
+// 6.获取页面职位 及推荐单位 end---------------------------------------->
 </script>
 
 <style lang="less" scoped>

+ 89 - 16
pages/zhaogongzhaopinnongmingong/[dir]/[id].vue

@@ -19,7 +19,7 @@
             </div>
         </div>
         <!-- 简历 -->
-        <main class="jianli" v-if="type == 2">
+        <main class="gerenjianli" v-if="type == 2">
             <!-- 个人简历 -->
             <section class="index_1 clearfix">
                 <div class="seek_head_box clearfix">
@@ -81,6 +81,9 @@
                 </div>
             </section>
             <!-- 个人简历 -->
+        </main>
+
+        <main class="jianli" v-if="type == 2">
             <!-- 自我介绍 -->
             <section class="index_2 clearfix">
                 <div class="seek_head_box clearfix">
@@ -139,8 +142,10 @@
                 </div>
                 <div class="seek_in clearfix" v-for="(item, index) in education" :key="index">
                     <div class="seek_in_head clearfix">
-                        <span class="seek_in_head_text" v-if="education">{{ index + 1 }}. {{ item.school_name
-                            }}</span>
+                        <span class="seek_in_head_text"
+                            v-if="item.school_name || item.education_name || item.school_major || item.school_timeList">
+                            {{ index + 1 }}. {{ item.school_name }} {{ education }}
+                        </span>
                         <span class="seek_in_head_text">
                             {{ item.education_name }}
                         </span>
@@ -178,17 +183,22 @@
             </section>
             <!-- 专业技能 -->
             <!-- 联系方式 -->
-            <section class="index_6 clearfix" v-if="type_id == 10000 || type_id == 3">
+            <section class="index_6 clearfix">
                 <div class="seek_head_box clearfix">
                     <div class="seek_head_left">
                         <a class="seek_head_a seek_head_only" title="">联系方式</a>
                     </div>
                 </div>
-                <div class="seek_in clearfix">
+                <div class="seek_in clearfix" v-if="type_id == 10000 || type_id == 3">
                     <article class="seek_article_2">
                         {{ jobInfo.phone }}
                     </article>
                 </div>
+                <div class="seek_in clearfix" v-else>
+                    <article class="seek_article_2">
+                        登录后可查看
+                    </article>
+                </div>
             </section>
             <!-- 联系方式 -->
         </main>
@@ -205,7 +215,7 @@
                         <div class="index_1_box clearfix">
                             <div class="demand_head_box clearfix">
                                 <div class="demand_head_name">{{ jobInfo.title }}</div>
-                                <div class="demand_head_btn hand" v-if="type_id == 1">申请该职位</div>
+                                <div class="demand_head_btn hand" v-if="type_id == 1" @click="applyJob">申请该职位</div>
                                 <div class="demand_head_btn1" v-if="type_id != 1">申请该职位</div>
                             </div>
                             <div class="cruit_li_2_foot clearfix">
@@ -338,9 +348,9 @@
                                 </div>
                             </div>
                             <div class="demand_ul_1">
-                                <a class="demand_ul_1_a dot1" href="" title="">
+                                <span class="demand_ul_1_span dot1">
                                     {{ companyInfo.business_name }}
-                                </a>
+                                </span>
                             </div>
                         </div>
                         <div class="demand_right_2 clearfix">
@@ -350,10 +360,10 @@
                                 </div>
                             </div>
                             <div class="demand_ul_1">
-                                <a class="demand_ul_1_a dot1" href="" title="" v-for="(item, index) in other_job"
-                                    :key="item.id">
+                                <NuxtLink class="demand_ul_1_a dot1" :href="`/${item.pinyin}/${item.id}.html`" title=""
+                                    v-for="(item, index) in other_job" :key="item.id">
                                     {{ item.title }}
-                                </a>
+                                </NuxtLink>
                             </div>
                         </div>
                     </div>
@@ -370,22 +380,25 @@ import { ref } from 'vue'
 import { ElBreadcrumb, ElBreadcrumbItem } from 'element-plus'
 import { ArrowRight } from '@element-plus/icons-vue'
 const route = useRoute();
-const type = route.query.type;
+const type = ref(1);
 
 //获取用户信息
 let type_id = ref('')
+let website_id = ref('')
 const gettypeid = await requestDataPromise('/user/getUserInfo', {
     method: 'GET',
     query: {},
 });
-// console.log("gettypeid", gettypeid);
+console.log("gettypeid", gettypeid);
 if (gettypeid.code == 200) {
     type_id.value = gettypeid.data.type_id
+    website_id.value = gettypeid.data.website_id
 }
 
 
 //1.1 获得跳转过来的id
 const articleId = parseInt(route.params.id);  //获得该页面的id
+let articleIdArr = Array.of(articleId);
 // console.log('111222111', articleId);
 
 //1.2 获得父级栏目的名称、id
@@ -394,6 +407,18 @@ const fullPath = route.path;
 //拆分,取出来中间这一段,然后提取数字部分
 const segments = fullPath.split('/');
 const targetSegment = segments[1];
+const targetRoute = segments[2];
+console.log("targetSegment1", targetSegment);
+console.log("targetSegment2", targetRoute);
+
+if (targetRoute == 'shehuizhaopin') {
+    type.value = 1;
+} else if (targetRoute == 'dagongqiuzhi') {
+    type.value = 2;
+} else {
+    console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+}
+
 // const numberPart = targetSegment.match(/\d+$/)?.[0]; 
 // const routeId = numberPart;
 
@@ -488,7 +513,7 @@ const getDetail = async () => {
         method: 'GET',
         query: {
             'id': articleId,
-            'type': type,
+            'type': type.value,
             'pageSize': 10,
         },
     });
@@ -500,13 +525,13 @@ const getDetail = async () => {
         // console.log("详情1111222233344", JSON.parse(listData.data.job[0].education_experience));
         // jobInfo.value = listData.data.job[0];
         // category.value = listData.data.category;
-        if (type == 1) {
+        if (type.value == 1) {
             jobInfo.value = listData.data.job[0];
             category.value = listData.data.category;
             companyInfo.value = listData.data.company[0];
             other_job.value = listData.data.other_job;
         }
-        if (type == 2) {
+        if (type.value == 2) {
             jobInfo.value = listData.data.job[0];
             category.value = listData.data.category;
             experienceInfo.value = listData.data.job_experience;
@@ -537,6 +562,54 @@ const getData = async () => {
     }
 }
 getData()
+
+// 3 申请该职位
+const applyJob = async () => {
+    const applyJob = await requestDataPromise('/web/getWebsiteJobApply', {
+        method: 'POST',
+        query: {
+            'website_id': website_id.value,
+            'recruit_id': articleIdArr,
+        },
+    });
+    if (applyJob.code == 200) {
+        ElMessage({
+            message: '申请成功',
+            type: 'success',
+        });
+    }
+}
+
+//4.设置seo信息 start---------------------------------------->
+//4.1 设置seo信息
+const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
+    method: 'GET',
+    query: {
+        'catid': routeId,
+    },
+});
+
+if (setData.code == 200) {
+    let seoTitle = setData.data.seo_title;
+    let seoDescription = setData.data.seo_description;
+    let seoKeywords = setData.data.seo_keywords;
+    let seoSuffix = setData.data.suffix;
+    let seoName = setData.data.website_name;
+
+    useSeoMeta({
+        title: seoTitle + "_" + seoName + "_" + seoSuffix,
+        meta: [
+            { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
+            { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 }
+        ]
+    });
+} else {
+    console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+    console.log("错误位置:设置列表页面SEO数据")
+    console.log("后端错误反馈:", setData.message)
+    console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+}
+//4.设置seo信息 end---------------------------------------->
 </script>
 
 <style scoped lang="less">

+ 39 - 19
pages/zhaogongzhaopinnongmingong/[dir]/list-[id].vue

@@ -26,10 +26,9 @@
                     </div>
                     <div class=" clearfix">
                         <div class=" clearfix" v-show="job_resume_tabs == 1">
-                            <div class="cruit_ul_2 clearfix">
+                            <div class="cruit_ul_2 clearfix" v-if="job_vacancy">
                                 <div class="cruit_li_2 clearfix" v-for="(item, index) in job_vacancy" :key="item.id">
-                                    <NuxtLink class="cruit_li_2_a" :href="`/${item.pinyin}/${item.id}.html?type=${1}`"
-                                        title="">
+                                    <NuxtLink class="cruit_li_2_a" :href="`/${item.pinyin}/${item.id}.html`" title="">
                                         <div class="cruit_li_2_head_box clearfix">
                                             <div class="cruit_li_2_head clearfix dot1">{{ item.title }}</div>
                                             <div class="cruit_li_2_head_name clearfix dot1">
@@ -55,18 +54,21 @@
                                     </NuxtLink>
                                 </div>
                             </div>
-                            <div class="pagination">
-                                <el-pagination size="small" background layout="prev, pager, next" :total="total"
+                            <div class="pagination" v-if="zptotal">
+                                <el-pagination size="small" background layout="prev, pager, next" :total="zptotal"
                                     class="mt-4" prev-text="上一页" next-text="下一页" @change="change" />
                             </div>
+                            <div class="empty" v-if="job_vacancy == false">
+                                <img src="@/public/topic/empty.png" alt="" class="empty_img">
+                                <span class="empty_text">当前暂无数据</span>
+                            </div>
                         </div>
                         <!-- 找工作 -->
                         <!-- 招人才 -->
                         <div class=" clearfix" v-show="job_resume_tabs == 2">
-                            <div class="society_ul_3 clearfix">
+                            <div class="society_ul_3 clearfix" v-if="job_resume">
                                 <div class="society_li_3 clearfix" v-for="(item, index) in job_resume" :key="item">
-                                    <NuxtLink class="society_li_3_a" :href="`/${item.pinyin}/${item.id}.html?type=${2}`"
-                                        title="">
+                                    <NuxtLink class="society_li_3_a" :href="`/${item.pinyin}/${item.id}.html`" title="">
                                         <div class="society_li_3_head_box clearfix">
                                             <div class="society_li_3_head clearfix dot1">
                                                 {{ item.name }}
@@ -99,10 +101,14 @@
                                     </NuxtLink>
                                 </div>
                             </div>
-                            <div class="pagination">
-                                <el-pagination size="small" background layout="prev, pager, next" :total="total"
+                            <div class="pagination" v-if="qztotal">
+                                <el-pagination size="small" background layout="prev, pager, next" :total="qztotal"
                                     class="mt-4" prev-text="上一页" next-text="下一页" @change="change" />
                             </div>
+                            <div class="empty" v-if="job_resume == false">
+                                <img src="@/public/topic/empty.png" alt="" class="empty_img">
+                                <span class="empty_text">当前暂无数据</span>
+                            </div>
                         </div>
                     </div>
                 </section>
@@ -139,10 +145,11 @@ const getLinkPathDetail = (item) => {
 //1.获得路由id start ---------------------------------------->
 const route = useRoute();
 let articleId = 0;//路由id
+let activeId = 0;//一级导航id
 let pageNum = ref(2);
 let total = ref(1);
-let zptotal = ref(1);
-let qztotal = ref(1);
+let zptotal = ref(0);
+let qztotal = ref(0);
 let page = ref(1);
 let pageSize = ref(20);
 
@@ -172,6 +179,21 @@ if (getRouteId.code == 200) {
     console.log("后端错误反馈:", getRouteId.message)
     console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
 }
+// 通过第一级路径反向查询导航id
+const getRouteId1 = await requestDataPromise('/web/getWebsiteRoute', {
+    method: 'GET',
+    query: {
+        'pinyin': targetRoute,
+    },
+});
+if (getRouteId1.code == 200) {
+    activeId = getRouteId1.data.category_id
+} else {
+    console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+    console.log("错误位置:通过url路径查询导航池id")
+    console.log("后端错误反馈:", getRouteId1.message)
+    console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
+}
 //获得html前的数字
 // const pageUrl = segments[3]; 
 // const pageNumber = pageUrl.split('.')[0];
@@ -186,7 +208,8 @@ pageNum.value = parseInt(route.params.id);
 
 if (targetSegment == 'shehuizhaopin') {
     job_resume_tabs.value = 2;
-} else {
+}
+if (targetSegment == 'dagongqiuzhi') {
     job_resume_tabs.value = 1;
 }
 // 2.1 获取岗位和简历
@@ -196,7 +219,7 @@ const getJob = async () => {
     const getJob = await requestDataPromise('/web/getWebsiteJobList', {
         method: 'GET',
         query: {
-            'catid': articleId,
+            'catid': activeId,
             'page': page.value,
             'pageSize': pageSize.value
         },
@@ -205,11 +228,8 @@ const getJob = async () => {
         console.log("获取到的岗位和简历:", getJob.data);
         job_vacancy.value = getJob.data.JobRecruiting; // 招聘岗位
         job_resume.value = getJob.data.JobHunting; // 简历
-        if (job_resume_tabs == 1) {
-            total.value = getJob.data.recruit_count;
-        } else {
-            total.value = getJob.data.hunt_count;
-        }
+        zptotal.value = getJob.data.recruit_count;
+        qztotal.value = getJob.data.hunt_count;
     }
 }
 getJob()

+ 26 - 23
pages/zhaogongzhaopinnongmingong/index.html.vue

@@ -13,8 +13,8 @@
                         <a class="cruit_head_a cruit_head_only" href="" title="">职位搜索</a>
                     </div>
                     <div class="cruit_head_right clearfix">
-                        <a class="cruit_head_right_a" href="" title="" v-if="job_search == 1 && type_id == 1">创建个人简历</a>
-                        <a class="cruit_head_right_a" href="" title="" v-if="job_search == 1 && type_id == 3">发布招聘信息</a>
+                        <span class="cruit_head_right_a" @click="createResume" v-if="type_id == 1">创建个人简历</span>
+                        <span class="cruit_head_right_a" @click="createJob" v-if="type_id == 3">发布招聘信息</span>
                     </div>
                 </div>
                 <div class="cruit_ul_1 clearfix">
@@ -102,7 +102,7 @@
                     </div>
                     <div class="cruit_ul_2 clearfix" v-if="job_vacancy">
                         <div class="cruit_li_2 clearfix" v-for="(item, index) in job_vacancy" :key="item.id">
-                            <NuxtLink class="cruit_li_2_a" :href="`/${item.pinyin}/${item.id}.html?type=${1}`" title="">
+                            <NuxtLink class="cruit_li_2_a" :href="`/${item.pinyin}/${item.id}.html`" title="">
                                 <div class="cruit_li_2_head_box clearfix">
                                     <div class="cruit_li_2_head clearfix dot1">{{ item.title }}</div>
                                     <div class="cruit_li_2_head_name clearfix dot1">{{ item.business_name }}</div>
@@ -124,6 +124,10 @@
                             </NuxtLink>
                         </div>
                     </div>
+                    <div class="empty" v-if="job_vacancy == false">
+                        <img src="@/public/topic/empty.png" alt="" class="empty_img">
+                        <span class="empty_text">当前暂无数据</span>
+                    </div>
                 </section>
 
                 <section class="index_4 clearfix">
@@ -133,9 +137,9 @@
                         </div>
                         <!-- <a class="cruit_head_a_more" href="" title=""> 更多 &gt </a> -->
                     </div>
-                    <div class="cruit_ul_3 clearfix">
+                    <div class="cruit_ul_3 clearfix" v-if="job_resume">
                         <div class="cruit_li_3 clearfix" v-for="(item, index) in job_resume" :key="item.id">
-                            <NuxtLink class="cruit_li_3_a" :href="`/${item.pinyin}/${item.id}.html?type=${2}`" title="">
+                            <NuxtLink class="cruit_li_3_a" :href="`/${item.pinyin}/${item.id}.html`" title="">
                                 <div class="cruit_li_3_head_box clearfix">
                                     <div class="cruit_li_3_head clearfix dot1">{{ item.name }}</div>
                                     <div class="cruit_li_3_head_name clearfix dot1">{{ item.jtzw_name }}</div>
@@ -167,6 +171,10 @@
                             </NuxtLink>
                         </div>
                     </div>
+                    <div class="empty" v-if="job_resume == false">
+                        <img src="@/public/topic/empty.png" alt="" class="empty_img">
+                        <span class="empty_text">当前暂无数据</span>
+                    </div>
                 </section>
             </main>
         </main>
@@ -441,24 +449,7 @@
 //0.加载页面依赖 start ---------------------------------------->
 import { ref, onMounted } from 'vue';
 import { ElMessage, ElSelect, ElOption, ElInput, ElButton } from 'element-plus';
-
-//格式化跳转路径 - 标题
-//首页分类栏目标题,不需要考虑外链
-const getLinkPath = (item) => {
-    //return `/${item.url}/1.html`;
-    //return `/newsList/${item.cid}?page=1`;
-    return `/${item.aLIas_pinyin}/list-1.html`;
-}
-//首页跳转到详情,这里需要考虑外链
-const getLinkPathDetail = (item) => {
-    if (item.islink == 1) {
-        return `${item.linkurl}`;
-    } else {
-        //return `/${item.aLIas_pinyin}/${item.id}`;
-        //return `/newsDetail/${item.id}`
-        return `/${item.pinyin}/${item.id}.html`;
-    }
-}
+const { $webUrl, $CwebUrl, $BwebUrl } = useNuxtApp()
 
 //获取用户信息
 let type_id = ref('')
@@ -520,6 +511,7 @@ if (getArea.code == 200) {
 const provinceChange = async (val) => {
     console.log('获取到的省份id', val);
     provinceid.value = val;
+    city.value = '';
     getCity(val)
 }
 const getCity = async (val) => {
@@ -587,6 +579,7 @@ const zwChange = async (val) => {
     console.log('111', val);
 
     zwid.value = val;
+    position.value = '';
     const getPosition = await requestDataPromise('/web/getPositionList', {
         method: 'GET',
         query: {
@@ -597,6 +590,8 @@ const zwChange = async (val) => {
 
     if (getPosition.code == 200) {
         positionList.value = getPosition.data; //具体职位 
+    }else{
+        positionList.value = []; //具体职位
     }
 }
 const jtzwChange = async (val) => {
@@ -621,6 +616,14 @@ const goSearch = async () => {
         }
     })
 }
+// 创建个人简历
+let createResume = () => {
+    window.open($BwebUrl + '/#/addJobHunting', '_blank');
+}
+// 发布招聘信息
+let createJob = () => {
+    window.open($BwebUrl + '/#/creatJob', '_blank');
+}
 
 
 //2.4 展示广告

+ 123 - 60
pages/zhaogongzhaopinnongmingong/search.vue

@@ -32,15 +32,17 @@
                     <div class="society_form_tip clearfix">
                         <label class="society_form_label">行业类别:</label>
                         <div class="society_form_right_a_box clearfix">
-                            <a class="society_form_right_a" :class="{ society_form_right_a_only: hyid == '' || !hyid }"
-                                title="全部">
+                            <a class="society_form_right_a"
+                                :class="{ society_form_right_a_only: hyid == '' || !hyid || hyid == 0 }" title="全部"
+                                @click="hyChange(0)">
                                 全部
                             </a>
                             <NuxtLink v-for="(item, index) in industry_categoryList" :key="item">
                                 <span class="society_form_right_a"
                                     :class="{ society_form_right_a_only: item.hyid == hyid }" :title="item.hyname"
-                                    v-if="index < 20 && hyIndex == 1">{{ item.hyname }}</span>
-                                <span class="society_form_right_a" v-if="hyIndex == 2"
+                                    @click="hyChange(item.hyid)" v-if="index < 20 && hyIndex == 1">{{ item.hyname
+                                    }}</span>
+                                <span class="society_form_right_a" v-if="hyIndex == 2" @click="hyChange(item.hyid)"
                                     :class="{ society_form_right_a_only: item.hyid == hyid }" :title="item.hyname">
                                     {{ item.hyname }}
                                 </span>
@@ -52,14 +54,16 @@
                     <div class="society_form_tip clearfix">
                         <label class="society_form_label">职位类别:</label>
                         <div class="society_form_right_a_box clearfix">
-                            <a class="society_form_right_a" :class="{ society_form_right_a_only: zwid == '' || !zwid }"
-                                title="">全部</a>
+                            <a class="society_form_right_a"
+                                :class="{ society_form_right_a_only: zwid == '' || !zwid || zwid == 0 }" title=""
+                                @click="zwChange(0)">全部</a>
                             <span v-for="(item, index) in position_categoryList" :key="item">
                                 <span class="society_form_right_a" v-if="index < 20 && zwIndex == 1"
+                                    @click="zwChange(item.zwid)"
                                     :class="{ society_form_right_a_only: item.zwid == zwid }" :title="item.zwname">
                                     {{ item.zwname }}
                                 </span>
-                                <span class="society_form_right_a" v-if="zwIndex == 2"
+                                <span class="society_form_right_a" v-if="zwIndex == 2" @click="zwChange(item.zwid)"
                                     :class="{ society_form_right_a_only: item.zwid == zwid }" :title="item.zwname">
                                     {{ item.zwname }}
                                 </span>
@@ -70,17 +74,19 @@
                                 v-if="zwIndex == 2">收起</span>
                         </div>
                     </div>
-                    <div class="society_form_tip clearfix" v-if="job_search == 2">
+                    <div class="society_form_tip clearfix">
                         <label class="society_form_label">具体职位:</label>
                         <div class="society_form_right_a_box clearfix">
-                            <a class="society_form_right_a"
-                                :class="{ society_form_right_a_only: jtzwid == '' || !jtzwid }" title="">全部</a>
+                            <a class="society_form_right_a" @click="jtzwChange(0)"
+                                :class="{ society_form_right_a_only: jtzwid == '' || !jtzwid || jtzwid == 0 }"
+                                title="">全部</a>
                             <span v-for="(item, index) in positionList" :key="item">
                                 <span class="society_form_right_a" v-if="index < 20 && jtzwIndex == 1"
+                                    @click="jtzwChange(item.zwid)"
                                     :class="{ society_form_right_a_only: item.zwid == jtzwid }" :title="item.zwname">
                                     {{ item.zwname }}
                                 </span>
-                                <span class="society_form_right_a" v-if="jtzwIndex == 2"
+                                <span class="society_form_right_a" v-if="jtzwIndex == 2" @click="jtzwChange(item.zwid)"
                                     :class="{ society_form_right_a_only: item.zwid == jtzwid }" :title="item.zwname">
                                     {{ item.zwname }}
                                 </span>
@@ -100,7 +106,7 @@
                                         :value="item.id" />
                                 </el-select>
                                 <el-select v-model="city" placeholder="请选择市" style="width: 140px" no-data-text="请先选择省"
-                                    clearable @change="cityChange">
+                                    clearable>
                                     <el-option v-for="item in cityList" :key="item.id" :label="item.name"
                                         :value="item.id" />
                                 </el-select>
@@ -157,15 +163,12 @@
                     <div class=" clearfix">
                         <!-- 找工作 -->
                         <div class=" clearfix" v-show="job_search == 1">
-                            <div class="cruit_ul_2 clearfix">
+                            <div class="cruit_ul_2 clearfix" v-if="job_vacancy">
                                 <div class="cruit_li_2 clearfix" v-for="(item, index) in job_vacancy" :key="item.id">
-
-                                    <div class="society_inp_checkbox_box_li_1 hand">
+                                    <div class="society_inp_checkbox_box_li_1 hand" v-if="type_id == 1">
                                         <el-checkbox v-model="selectedJobs" :value="item.id" @change="jobChange" />
                                     </div>
-                                    <NuxtLink class="cruit_li_2_a"
-                                        :href="`/${item.pinyin}/${item.id}.html?type=${job_search}`" title="">
-
+                                    <NuxtLink class="cruit_li_2_a" :href="`/${item.pinyin}/${item.id}.html`" title="">
                                         <div class="cruit_li_2_head_box clearfix">
                                             <div class="cruit_li_2_head clearfix dot1">{{ item.title }}</div>
                                             <div class="cruit_li_2_head_name clearfix dot1">
@@ -191,21 +194,24 @@
                                     </NuxtLink>
                                 </div>
                             </div>
-                            <div class="pagination">
-                                <el-pagination size="small" background layout="prev, pager, next" :total="total"
-                                    class="mt-4" prev-text="上一页" next-text="下一页" @change="change" />
+                            <div class="pagination" v-if="zptotal">
+                                <el-pagination size="small" background layout="prev, pager, next" :total="zptotal"
+                                    class="mt-4" prev-text="上一页" next-text="下一页" @change="changePage" />
+                            </div>
+                            <div class="empty" v-if="job_vacancy == false">
+                                <img src="@/public/topic/empty.png" alt="" class="empty_img">
+                                <span class="empty_text">当前暂无数据</span>
                             </div>
                         </div>
                         <!-- 找工作 -->
                         <!-- 招人才 -->
                         <div class=" clearfix" v-show="job_search == 2">
-                            <div class="society_ul_3 clearfix">
+                            <div class="society_ul_3 clearfix" v-if="job_resume">
                                 <div class="society_li_3 clearfix" v-for="(item, index) in job_resume" :key="item">
-                                    <div class="society_inp_checkbox_box_li_3 hand">
+                                    <div class="society_inp_checkbox_box_li_3 hand" v-if="type_id == 3">
                                         <el-checkbox v-model="selectedResume" :value="item.id" @change="jobChange" />
                                     </div>
-                                    <NuxtLink class="society_li_3_a"
-                                        :href="`/${item.pinyin}/${item.id}.html?type=${job_search}`" title="">
+                                    <NuxtLink class="society_li_3_a" :href="`/${item.pinyin}/${item.id}.html`" title="">
                                         <div class="society_li_3_head_box clearfix">
                                             <div class="society_li_3_head clearfix dot1">
                                                 {{ item.name }}
@@ -238,9 +244,13 @@
                                     </NuxtLink>
                                 </div>
                             </div>
-                            <div class="pagination">
-                                <el-pagination size="small" background layout="prev, pager, next" :total="total"
-                                    class="mt-4" prev-text="上一页" next-text="下一页" @change="change" />
+                            <div class="pagination" v-if="qztotal">
+                                <el-pagination size="small" background layout="prev, pager, next" :total="qztotal"
+                                    class="mt-4" prev-text="上一页" next-text="下一页" @change="changePage" />
+                            </div>
+                            <div class="empty" v-if="job_resume == false">
+                                <img src="@/public/topic/empty.png" alt="" class="empty_img">
+                                <span class="empty_text">当前暂无数据</span>
                             </div>
                         </div>
                         <!-- 招人才 -->
@@ -276,7 +286,7 @@
                 <div class="cruit_alert_rgb_box">
                     <div class="cruit_alert_rgb_head_box">
                         <div class="cruit_alert_rgb_close hand back100"></div>
-                        <div class="cruit_alert_rgb_head">请选择要投递的简历
+                        <div class="cruit_alert_rgb_head">请选择要沟通的岗位
                             <span class="close" @click="resumeBoo = false">x</span>
                         </div>
 
@@ -351,18 +361,26 @@ if (gettypeid.code == 200) {
 //1.获得路由id start ---------------------------------------->
 const route = useRoute();
 
-const hyid = route.query.hyid;
-const zwid = route.query.zwid;
-const jtzwid = route.query.jtzwid;
-const provinceid = route.query.provinceid;
-const cityid = route.query.cityid;
+const hyid = ref(route.query.hyid);
+const zwid = ref(route.query.zwid);
+const jtzwid = ref(route.query.jtzwid);
+const provinceid = ref(route.query.provinceid);
+const cityid = ref(route.query.cityid);
+// const zwid = route.query.zwid;
+// const jtzwid = route.query.jtzwid;
+// const provinceid = route.query.provinceid;
+// const cityid = route.query.cityid;
 const keyword = route.query.keywords;
 
+
+
 let articleId = 0;//路由id
 let pageNum = ref(2);
-let total = ref(1);
+let total = ref(0);
+let zptotal = ref(0);
+let qztotal = ref(0);
 const page = ref(1)
-let pageSize = ref(20);
+const pageSize = ref(10);
 let hyIndex = ref(1);
 let zwIndex = ref(1);
 let jtzwIndex = ref(1);
@@ -418,7 +436,6 @@ let createJob = () => {
 // 2.1.1 获取省份
 const province = ref('')  //省
 const city = ref('')  //市
-let province_id = ref('')
 const provinceList = ref([])  //省列表
 const cityList = ref([])  //市列表
 const getArea = await requestDataPromise('/web/selectWebsiteArea', {
@@ -432,7 +449,8 @@ if (getArea.code == 200) {
 
 // 2.1.2 获取
 const provinceChange = (val) => {
-    province_id.value = val;
+    provinceid.value = val;
+    city.value = '';
     console.log('获取到的省份id', val);
     getCity(val)
 }
@@ -489,7 +507,10 @@ const getData = async () => {
         // console.log("获取到的分类数据:", getData.data);
         industry_categoryList.value = getData.data.hy; //行业
         position_categoryList.value = getData.data.zw; //职位
-        positionList.value = getData.data.jtzw; //具体职位
+        if (zwid.value == 0 || zwid.value == '' || zwid.value == undefined || zwid.value == null) {
+            positionList.value = getData.data.jtzw; //具体职位
+        }
+
     }
 }
 getData()
@@ -504,10 +525,10 @@ const getJob = async () => {
         method: 'GET',
         query: {
             'catid': articleId,
-            'city_id': provinceid,
-            'hy_id': hyid,
-            'zw_id': zwid,
-            'jtzw_id': jtzwid,
+            'city_id': provinceid.value,
+            'hy_id': hyid.value,
+            'zw_id': zwid.value,
+            'jtzw_id': jtzwid.value,
             'page': page.value,
             'pageSize': pageSize.value,
             'keyword': keywords.value,
@@ -517,39 +538,64 @@ const getJob = async () => {
         // console.log("获取到的岗位和简历:", getJob.data);
         job_vacancy.value = getJob.data.JobRecruiting; // 招聘岗位
         job_resume.value = getJob.data.JobHunting; // 简历
-        if (job_search == 1) {
-            total.value = getJob.data.recruit_count;
-        } else {
-            total.value = getJob.data.hunt_count;
-        }
+        zptotal.value = getJob.data.recruit_count;
+        qztotal.value = getJob.data.hunt_count;
     }
 }
 getJob()
 
+let hyChange = (val) => {
+    console.log('hyChange', val)
+    hyid.value = val;
+    getJob()
+}
+let zwChange = async (val) => {
+    console.log('zwChange', val)
+    zwid.value = val;
+    const getPosition = await requestDataPromise('/web/getPositionList', {
+        method: 'GET',
+        query: {
+            'zwpid': val,
+        },
+    })
+    console.log("11112222", getPosition);
+
+    if (getPosition.code == 200) {
+        positionList.value = getPosition.data; //具体职位 
+    }else{
+        positionList.value = []; //具体职位
+        jtzwid.value = 0; //职位id
+    }
+    getJob()
+}
+let jtzwChange = (val) => {
+    console.log('jtzwChange', val)
+    jtzwid.value = val;
+    getJob()
+}
+
 // 搜索
 const goSearch = async () => {
     const getJob = await requestDataPromise('/web/getWebsiteJobList', {
         method: 'GET',
         query: {
             'catid': articleId,
-            'city_id': province_id.value,
-            'hy_id': hyid,
-            'zw_id': zwid,
-            'jtzw_id': jtzwid,
+            'city_id': provinceid.value,
+            'hy_id': hyid.value,
+            'zw_id': zwid.value,
+            'jtzw_id': jtzwid.value,
             'page': page.value,
             'pageSize': pageSize.value,
             'keyword': keywords.value,
         },
     });
+    console.log("111获取到的岗位和简历:", getJob.data);
+
     if (getJob.code == 200) {
-        // console.log("获取到的岗位和简历:", getJob.data);
         job_vacancy.value = getJob.data.JobRecruiting; // 招聘岗位
         job_resume.value = getJob.data.JobHunting; // 简历
-        if (job_search == 1) {
-            total.value = getJob.data.recruit_count;
-        } else {
-            total.value = getJob.data.hunt_count;
-        }
+        zptotal.value = getJob.data.recruit_count;
+        qztotal.value = getJob.data.hunt_count;
     }
 }
 
@@ -644,8 +690,8 @@ let companyJOb = async () => {
     const companyJOb = await requestDataPromise('/web/getWebsiteJobRecruiting', {
         method: 'POST',
         body: {
-            'pageSize': 10,
-            'website_id': 2,
+            'pageSize': pageSize.value,
+            'website_id': website_id.value,
         }
     })
     // console.log("获取到的企业会员的职位11:", companyJOb.data);
@@ -841,4 +887,21 @@ onMounted(async () => {
 
 <style lang="less" scoped>
 @import url('@/assets/css/zgzpsearch.less');
+
+.empty {
+    width: 100%;
+    height: 150px;
+    line-height: 150px;
+    text-align: center;
+}
+
+.empty_img {
+    vertical-align: -30px;
+    margin-right: 20px;
+}
+
+.empty_text {
+    font-size: 26px;
+    color: #999;
+}
 </style>

BIN
public/topic/empty.png