2024-04-12 17:57:52 +08:00
|
|
|
|
<template>
|
2024-04-18 10:30:16 +08:00
|
|
|
|
<view class="container">
|
2024-04-25 22:24:50 +08:00
|
|
|
|
<view class="select">用工单位招工服务通道</view>
|
|
|
|
|
|
<view class="select-text">提交资料,审核通过后可快速发布招工信息</view>
|
|
|
|
|
|
<view class="select-text">第一步:首次开通,点击“我要招工”填写信息</view>
|
|
|
|
|
|
<view class="select-text">第二步:提交认证资料,后台机构审核资料</view>
|
|
|
|
|
|
<view class="select-text">第三步:通过认证后,即可发布专属招工信息</view>
|
2024-04-18 10:30:16 +08:00
|
|
|
|
<view class="block" @click="next(1)">
|
|
|
|
|
|
<img src="../../static/img/zhao_icon2.png" alt="" />
|
|
|
|
|
|
<view class="block-text" style="background-color: #4171F9;">我要招工</view>
|
|
|
|
|
|
</view>
|
2024-04-12 17:57:52 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2024-04-18 10:30:16 +08:00
|
|
|
|
import {
|
|
|
|
|
|
seeIsHaveCodep
|
|
|
|
|
|
} from '@/api/userrecruit.js'
|
|
|
|
|
|
import {
|
|
|
|
|
|
mapState
|
|
|
|
|
|
} from 'vuex'
|
2024-04-18 20:50:22 +08:00
|
|
|
|
let reviewStatus = {
|
2024-05-11 16:13:50 +08:00
|
|
|
|
'-1': "全选择",
|
|
|
|
|
|
'0': "待审核",
|
|
|
|
|
|
'1': "已审核",
|
|
|
|
|
|
'9': "已驳回",
|
2024-04-18 20:50:22 +08:00
|
|
|
|
};
|
2024-04-18 10:30:16 +08:00
|
|
|
|
export default {
|
|
|
|
|
|
data() {
|
2024-04-18 11:49:14 +08:00
|
|
|
|
return {}
|
2024-04-18 10:30:16 +08:00
|
|
|
|
},
|
|
|
|
|
|
computed: {
|
|
|
|
|
|
...mapState({
|
|
|
|
|
|
idNumber: (state) => state.auth.authInfo.idNumber
|
|
|
|
|
|
}),
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
next(type) {
|
|
|
|
|
|
switch (type) {
|
|
|
|
|
|
case 0:
|
|
|
|
|
|
this.isHaveCode(this.idNumber).then(() => {
|
|
|
|
|
|
this.$store.commit('setEnterprise', type)
|
|
|
|
|
|
this.navTo('/pages/recruit/subPage/index?type=none')
|
|
|
|
|
|
})
|
|
|
|
|
|
break;
|
|
|
|
|
|
case 1:
|
|
|
|
|
|
this.isHaveCode(this.idNumber).then(() => {
|
|
|
|
|
|
this.$store.commit('setEnterprise', type)
|
|
|
|
|
|
this.navTo('/pages/recruit/subPage/index?type=enterprise')
|
|
|
|
|
|
})
|
|
|
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
isHaveCode(idNumber) {
|
|
|
|
|
|
uni.showLoading({
|
|
|
|
|
|
title: '请求中'
|
|
|
|
|
|
})
|
|
|
|
|
|
return new Promise(async (resolve, reject) => {
|
|
|
|
|
|
let resData = await seeIsHaveCodep({
|
|
|
|
|
|
idNumber
|
|
|
|
|
|
})
|
|
|
|
|
|
uni.hideLoading()
|
|
|
|
|
|
if (resData.data.code === 200) {
|
2024-04-18 20:50:22 +08:00
|
|
|
|
if (resData.data.data.haveCode) {
|
2024-04-18 10:30:16 +08:00
|
|
|
|
resolve()
|
|
|
|
|
|
} else {
|
2024-04-18 20:50:22 +08:00
|
|
|
|
switch (resData.data.data.reviewStatus) {
|
|
|
|
|
|
case 0:
|
2024-04-19 16:56:28 +08:00
|
|
|
|
this.$api.msg('您提交的认证信息正在审核中')
|
2024-04-18 20:50:22 +08:00
|
|
|
|
break
|
|
|
|
|
|
case 1:
|
2024-04-19 16:56:28 +08:00
|
|
|
|
this.$api.msg('您提交的认证信息正在审核中')
|
2024-04-18 20:50:22 +08:00
|
|
|
|
break
|
|
|
|
|
|
case 9:
|
|
|
|
|
|
this.navTo(
|
2024-04-19 15:02:55 +08:00
|
|
|
|
'/pages/recruit/subPage/enterpriceCertification/enterpriceCertification?reviewStatus=9'
|
|
|
|
|
|
)
|
2024-04-18 20:50:22 +08:00
|
|
|
|
this.$api.sleep(1000).then(() => {
|
2024-04-19 16:56:28 +08:00
|
|
|
|
this.$api.msg('您提交的认证信息被驳回,请重新提交资料')
|
2024-04-18 20:50:22 +08:00
|
|
|
|
})
|
|
|
|
|
|
break
|
|
|
|
|
|
default: // -1 未提交
|
|
|
|
|
|
this.navTo(
|
|
|
|
|
|
'/pages/recruit/subPage/enterpriceCertification/enterpriceCertification'
|
|
|
|
|
|
)
|
|
|
|
|
|
}
|
2024-04-18 10:30:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
|
|
|
reject()
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
2024-04-12 17:57:52 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
2024-04-18 10:30:16 +08:00
|
|
|
|
.container {
|
|
|
|
|
|
padding: 60rpx;
|
2024-04-12 17:57:52 +08:00
|
|
|
|
|
2024-04-18 10:30:16 +08:00
|
|
|
|
.select {
|
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
|
color: #000;
|
|
|
|
|
|
}
|
2024-04-12 17:57:52 +08:00
|
|
|
|
|
2024-04-18 10:30:16 +08:00
|
|
|
|
.select-text {
|
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
|
color: #999;
|
|
|
|
|
|
margin-top: 10rpx;
|
|
|
|
|
|
}
|
2024-04-12 17:57:52 +08:00
|
|
|
|
|
2024-04-18 10:30:16 +08:00
|
|
|
|
.block {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 300rpx;
|
|
|
|
|
|
border-radius: 20rpx;
|
|
|
|
|
|
background-color: #f3f4f8;
|
|
|
|
|
|
margin: 40rpx auto;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2024-04-12 17:57:52 +08:00
|
|
|
|
|
2024-04-18 10:30:16 +08:00
|
|
|
|
.block-text {
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
width: 180rpx;
|
|
|
|
|
|
height: 60rpx;
|
|
|
|
|
|
border-radius: 30rpx;
|
|
|
|
|
|
background-color: #45D4B6;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
line-height: 60rpx;
|
|
|
|
|
|
right: 20rpx;
|
|
|
|
|
|
top: 50%;
|
|
|
|
|
|
margin-top: -30rpx;
|
|
|
|
|
|
}
|
2024-04-12 17:57:52 +08:00
|
|
|
|
|
2024-04-18 10:30:16 +08:00
|
|
|
|
img {
|
|
|
|
|
|
width: 300rpx;
|
|
|
|
|
|
margin-left: 50rpx;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-04-15 16:31:23 +08:00
|
|
|
|
|
2024-04-18 10:30:16 +08:00
|
|
|
|
}
|
2024-04-12 17:57:52 +08:00
|
|
|
|
</style>
|