123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438 |
- <template>
- <div>
- <!-- 面包屑导航 -->
- <div class="breadcrumb">
- <div class="inner">
- <span class="location">当前位置:</span>
- <el-breadcrumb :separator-icon="ArrowRight">
- <el-breadcrumb-item>
- <NuxtLink to="/">首页</NuxtLink>
- </el-breadcrumb-item>
- <el-breadcrumb-item v-if="p_parent_name != ''">
- <NuxtLink :to="`/${targetSegment}/index.html`"> {{ p_parent_name }}</NuxtLink>
- </el-breadcrumb-item>
- <el-breadcrumb-item v-if="parent_name != ''">
- <NuxtLink :to="`/${targetSegment}/${targetSegment1}/index.html`"> {{ parent_name }}
- </NuxtLink>
- </el-breadcrumb-item>
- <el-breadcrumb-item>
- <NuxtLink :to="`/${targetSegment}/${targetSegment1}/${targetSegment2}/list-1.html`">
- {{ navTitle }}
- </NuxtLink>
- </el-breadcrumb-item>
- <el-breadcrumb-item>简历详情</el-breadcrumb-item>
- </el-breadcrumb>
- </div>
- </div>
- <!-- 简历 -->
- <main class="gerenjianli" v-if="type == 2">
- <!-- 个人简历 -->
- <section class="index_1 clearfix">
- <div class="seek_head_box clearfix">
- <div class="seek_head_left">
- <a class="seek_head_a seek_head_only" title="">个人简历</a>
- </div>
- <div class="seek_head_right_box clearfix">
- <span class="seek_head_right_text">更新时间:{{ jobInfo.created_at }}</span>
- </div>
- </div>
- <div class="index_1_left clearfix">
- <div class="seek_introduce_box clearfix">
- <div class="seek_introduce_left clearfix">
- <div class="seek_introduce_head clearfix">
- <h4 class="seek_introduce_h4">{{ jobInfo.name }}</h4>
- <div class="seek_introduce_tag clearfix" v-if="resume">此简历已被推荐</div>
- <div class="seek_introduce_text clearfix" v-if="resume">
- (已有单位把本简历加入人才库)
- </div>
- </div>
- <div class="seek_introduce_title_box clearfix">
- <span class="seek_introduce_label">期望岗位:</span>
- <span class="seek_introduce_title">{{ jobInfo.jtzw_name }}</span>
- <span class="seek_introduce_label">薪资待遇:</span>
- <span class="seek_introduce_title">{{ jobInfo.salary_name }}</span>
- </div>
- </div>
- </div>
- <div class="seek_introduce_foot clearfix">
- <span class="seek_introduce_foot_text" v-if="jobInfo.sexy">
- {{ jobInfo.sexy == 1 ? '男' : '女' }}
- </span>
- <span class="seek_introduce_foot_text" v-if="jobInfo.birth">
- {{ getTime(jobInfo.birth, 'year', 0) }}
- </span>
- <span class="seek_introduce_foot_text" v-if="jobInfo.origin">
- 籍贯:{{ jobInfo.origin }}
- </span>
- <span class="seek_introduce_foot_text" v-if="jobInfo.education_name">
- {{ jobInfo.education_name }}
- </span>
- <span class="seek_introduce_foot_text" v-if="jobInfo.experience_name">
- {{ jobInfo.experience_name }}
- </span>
- <span class="seek_introduce_foot_text" v-if="jobInfo.hunt_cityname">
- 工作地点:{{ jobInfo.hunt_cityname }}
- </span>
- <span class="seek_introduce_foot_text" v-if="jobInfo.language_name">
- {{ jobInfo.language_name }}
- </span>
- </div>
- </div>
- <div class="index_1_right clearfix">
- <img class="index_1_right_img" src="@/public/image/touxiang.png" title="" alt=""
- v-if="!jobInfo.imgurl">
- <img class="index_1_right_img" :src="jobInfo.imgurl" title="" alt="" v-if="jobInfo.imgurl">
- </div>
- </section>
- <!-- 个人简历 -->
- </main>
- <main class="jianli" v-if="type == 2">
- <!-- 自我介绍 -->
- <section class="index_2 clearfix">
- <div class="seek_head_box clearfix">
- <div class="seek_head_left">
- <a class="seek_head_a seek_head_only" title="">自我介绍</a>
- </div>
- </div>
- <article class="seek_article">
- {{ jobInfo.self_evaluation }}
- </article>
- </section>
- <!-- 自我介绍 -->
- <!-- 工作经历 -->
- <section class="index_3 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" v-for="(item, index) in experienceInfo" :key="index">
- <div class="seek_in_head clearfix">
- <span class="seek_in_head_text">{{ index + 1 }}.{{ item.company_name }}</span>
- <span class="seek_in_head_text">
- 职位类别:
- {{ item.zw_name }}
- </span>
- <span class="seek_in_head_text">
- 具体职位:
- {{ item.jtzw_name }}
- </span>
- <span class="seek_in_head_text" style="float: right;" v-if="item.job_timeList">
- {{ getTime(item.job_timeList[0], 'year', 0) }}
- -
- {{ getTime(item.job_timeList[1], 'year', 0) }}
- </span>
- </div>
- <div class="seek_in_ul clearfix">
- <div class="seek_in_li clearfix">
- <label class="seek_in_label">工作内容:</label>
- <div class="seek_in_li_text">{{ item.job_content }}</div>
- </div>
- <div class="seek_in_li clearfix">
- <label class="seek_in_label">工作业绩:</label>
- <div class="seek_in_li_text">{{ item.performance }}</div>
- </div>
- </div>
- </div>
- </section>
- <!-- 工作经历 -->
- <!-- 教育背景 -->
- <section class="index_4 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" v-for="(item, index) in education" :key="index">
- <div class="seek_in_head clearfix">
- <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 }}
- </span>
- <span class="seek_in_head_text">
- {{ item.education_name }}
- </span>
- <span class="seek_in_head_text">{{ item.school_major }}</span>
- <span class="seek_in_head_text" style="float: right;" v-if="item.school_timeList">
- {{ getTime(item.school_timeList[0], 'year', 0) }}
- -
- {{ getTime(item.school_timeList[1], 'year', 0) }}
- </span>
- </div>
- <div class="seek_in_ul clearfix" v-if="item.school_experience">
- <div class="seek_in_li clearfix">
- <label class="seek_in_label">在校经历:</label>
- <div class="seek_in_li_text">{{ item.school_experience }}</div>
- </div>
- </div>
- </div>
- </section>
- <!-- 教育背景 -->
- <!-- 专业技能 -->
- <section class="index_5 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_ul clearfix">
- <div class="seek_in_li clearfix" v-for="(item, index) in skillList">
- <label class="seek_in_label" v-if="item.skill">{{ index + 1 }}.</label>
- <div class="seek_in_li_text">{{ item.skill }}</div>
- </div>
- </div>
- </div>
- </section>
- <!-- 专业技能 -->
- <!-- 联系方式 -->
- <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" 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>
- </div>
- </template>
- <script setup>
- import { ref } from 'vue'
- import { ElBreadcrumb, ElBreadcrumbItem } from 'element-plus'
- import { ArrowRight } from '@element-plus/icons-vue'
- const route = useRoute();
- const type = ref(2);
- const nuxtApp = useNuxtApp();
- const axios = nuxtApp.$axios;
- //获取用户信息
- let type_id = ref('')
- let website_id = ref('')
- let getUserInfo = () => {
- axios.get("/user/getUserInfo").then(response => {
- console.log("gettypeid", response.data);
- type_id.value = response.data.type_id
- website_id.value = response.data.website_id
- })
- }
- onMounted(() => {
- getUserInfo()
- })
- //1.1 获得跳转过来的id
- const articleId = parseInt(route.params.id); //获得该页面的id
- //1.2 获得路由
- const targetSegment = getRoutePath(1);
- const targetSegment1 = getRoutePath(2);
- const targetSegment2 = getRoutePath(3);
- //1.1 获得当前的路由id
- let routeId;
- let routeType;
- let navTitle = ref('')//二级导航标题
- let navCid = ref('')//二级导航id
- //通过导航路径反向查询导航id
- const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
- method: 'GET',
- query: {
- 'pinyin': targetSegment2,
- },
- });
- console.log("getRouteId", getRouteId);
- if (getRouteId.code == 200) {
- navTitle.value = getRouteId.data.alias
- navCid.value = getRouteId.data.category_id
- } else {
- console.log("获得路由id出错!", getRouteId.message)
- }
- //1.2 获取二级栏目
- let parent_name = ref('');//父级名称
- let parent_id = ref('');//父级id
- let parent_pinyin = ref('');//父级拼音
- const getRoutePName = await requestDataPromise('/web/getWebsiteRoute', {
- method: 'GET',
- query: {
- 'pinyin': targetSegment1,
- },
- });
- console.log("getRoutePName", getRoutePName);
- if (getRoutePName.code == 200) {
- routeId = getRoutePName.data.category_id
- parent_id.value = getRoutePName.data.category_id
- parent_name.value = getRoutePName.data.alias
- routeType = getRoutePName.data.type
- } else {
- console.log("获得路由id出错!", getRoutePName.message)
- }
- //1.3 获取一级栏目
- let p_parent_name = ref('');//父级名称
- let p_parent_id = ref('');//父级id
- const getRoutePName_parent = await requestDataPromise('/web/getWebsiteRoute', {
- method: 'GET',
- query: {
- 'pinyin': targetSegment,
- },
- });
- console.log("getRoutePName_parent", getRoutePName_parent);
- if (getRoutePName_parent.code == 200) {
- p_parent_id.value = getRoutePName_parent.data.category_id
- p_parent_name.value = getRoutePName_parent.data.alias
- } else {
- console.log("获得路由id出错!", getRoutePName_parent.message)
- }
- //1.4 展示广告
- let adImg1 = ref({})
- let adImg2 = ref({})
- onMounted(async () => {
- //从客户端获取行政职能部门 加快打开速度
- const { $webUrl, $CwebUrl } = useNuxtApp();
- //广告1
- let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_detail_0001`
- const responseAd1 = await fetch(url, {
- headers: {
- 'Content-Type': 'application/json',
- 'Userurl': $CwebUrl,
- 'Origin': $CwebUrl
- }
- });
- const resultAd1 = await responseAd1.json();
- adImg1.value = resultAd1.data[0];
- //广告2
- let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_detail_0002`
- const responseAd2 = await fetch(url2, {
- headers: {
- 'Content-Type': 'application/json',
- 'Userurl': $CwebUrl,
- 'Origin': $CwebUrl
- }
- });
- const resultAd2 = await responseAd2.json();
- adImg2.value = resultAd2.data[0];
- })
- // 2 获取详情
- let jobInfo = ref([]) //基本信息
- let companyInfo = ref([])// 公司介绍
- let category = ref([]) // 栏目
- let other_job = ref([]) // 岗位
- let experienceInfo = ref([]) // 工作经历
- let education = ref([]) // 教育背景
- let skillList = ref([]) // 专业技能
- let resume = ref(0)
- const getDetail = async () => {
- const listData = await requestDataPromise('/web/getWebsiteJobInfo', {
- method: 'GET',
- query: {
- 'id': articleId,
- 'type': type.value,
- 'pageSize': 10,
- },
- });
- if (listData.code == 200) {
- // console.log("详情1111", listData.data);
- // console.log("详情1111222", listData.data.job[0].job_experience);
- // console.log("详情111122233", JSON.parse(listData.data.job[0].job_experience));
- // console.log("详情1111222233344", JSON.parse(listData.data.job[0].education_experience));
- // jobInfo.value = listData.data.job[0];
- // category.value = listData.data.category;
- 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.value == 2) {
- jobInfo.value = listData.data.job[0];
- category.value = listData.data.category;
- experienceInfo.value = listData.data.job_experience;
- education.value = listData.data.education_experience;
- skillList.value = JSON.parse(listData.data.job[0].skillList);
- resume.value = listData.data.resume;
- }
- }
- }
- getDetail();
- //获取行业 职位 具体职位
- const industry_categoryList = ref([]) //行业类别列表
- const position_categoryList = ref([]) //职位类别列表
- const positionList = ref([]) //具体职位列表
- const getData = async () => {
- const getData = await requestDataPromise('/web/getWebsiteJobSelect', {
- method: 'GET',
- query: {},
- });
- if (getData.code == 200) {
- // console.log("获取到的分类数据:", getData.data);
- industry_categoryList.value = getData.data.hy; //行业
- position_categoryList.value = getData.data.zw; //职位
- positionList.value = getData.data.jtzw; //具体职位
- }
- }
- getData()
- //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">
- @import "@/assets/css/job/detail_jianli.less";
- @import "@/assets/css/job/detail_zhaopin.less";
- </style>
|