flat: 企业招工身份校验
This commit is contained in:
@@ -60,4 +60,12 @@ export const getuserrecruitDetailApp = (params) => {
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export const seeIsHaveCodep = (params) => {
|
||||
return request({
|
||||
url: '/api/jobslink-api/tenant/company/app/isHaveCode',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
@@ -14,6 +14,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {seeIsHaveCodep} from '@/api/userrecruit.js'
|
||||
import { mapState } from 'vuex'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -21,6 +23,9 @@
|
||||
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState({idNumber: (state) => state.auth.authInfo.idNumber}),
|
||||
},
|
||||
methods: {
|
||||
next(type) {
|
||||
switch (type){
|
||||
@@ -29,10 +34,22 @@
|
||||
this.navTo('/pages/recruit/subPage/index?type=none')
|
||||
break;
|
||||
case 1:
|
||||
this.$store.commit('setEnterprise', type)
|
||||
this.navTo('/pages/recruit/subPage/index?type=enterprise')
|
||||
this.isHaveCode(this.idNumber).then(() => {
|
||||
this.$store.commit('setEnterprise', type)
|
||||
this.navTo('/pages/recruit/subPage/index?type=enterprise')
|
||||
})
|
||||
break;
|
||||
}
|
||||
},
|
||||
isHaveCode(idNumber) {
|
||||
return new Promise(async(resolve, reject) => {
|
||||
let resData = await seeIsHaveCodep({idNumber})
|
||||
if(resData.data.code === 200) {
|
||||
resData.data.data && resolve()
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,9 +4,9 @@ module.exports = {
|
||||
proxy: {
|
||||
'/api': {
|
||||
// target: 'http://192.168.3.104:8000', // 本地服务接口地址
|
||||
target: "http://39.98.184.58:8000", // 阿里云后台地址
|
||||
// target: "http://39.98.184.58:8000", // 阿里云后台地址
|
||||
// target: 'http://192.168.3.108:8000', // 本地服务接口地址
|
||||
// target: 'http://192.168.3.111:8000', // 本地服务接口地址
|
||||
target: 'http://192.168.3.111:8000', // 本地服务接口地址
|
||||
ws: true,
|
||||
pathRewrite: {
|
||||
'^/api': '/'
|
||||
|
||||
Reference in New Issue
Block a user