diff --git a/api/mission.js b/api/mission.js index e4a4cda..083d2fb 100644 --- a/api/mission.js +++ b/api/mission.js @@ -120,6 +120,18 @@ export const missionDetail = (missionNo) => { }) } +/*岗位详情*/ +// workDetail +export const workDetail = (workId) => { + return request({ + url: '/api/jobslink-api/user/userWork/getWorksInfoByWorkId', + method: 'get', + params: { + workId + } + }) +} + /*获取收藏状态*/ export const getCollectState = (workId) => { return request({ diff --git a/components/companyList/workList.vue b/components/companyList/workList.vue index 78a1475..6661d1c 100644 --- a/components/companyList/workList.vue +++ b/components/companyList/workList.vue @@ -104,9 +104,10 @@ export default { }) }, goInfo: function (no) { + console.log('11111') const isCan = this.noApply === false ? '0' : '1' uni.navigateTo({ - url: `/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(no)}&isCan=${isCan}` + url: `/pages/projectInfo/workInfo?workId=${encodeURIComponent(no)}&isCan=${isCan}` }) }, getCity: function (val) { diff --git a/pageMy/setUserBase/index.vue b/pageMy/setUserBase/index.vue index 8759af1..630817c 100644 --- a/pageMy/setUserBase/index.vue +++ b/pageMy/setUserBase/index.vue @@ -37,7 +37,7 @@ --> - + + - + + + + + 姓名 + + {{auth.authInfo.realName}} + + + + + + 身份证号 + + {{idNumberFilter(auth.authInfo.idNumber)}} + + + 身份证填写有误 + + + + + + 身份信息 + + 完成实名认证,提高信息可信度 + + + + 已认证 + 未认证 + + + + + + + + + + 社保信息 + + 选择个人身份,获得精准推荐 + + + + {{insureList[indexBao]}} + 未选择 + + + + + + + + + + 个人标签 + + 选择个人标签,获得精准推荐 + + + + {{insureList[indexBao]}} + 未选择 + + + + + + + + + 认证中 + + + + + 认证 + + + + + 认证 + @@ -99,6 +185,11 @@ import { idNumberFilter } from '@/untils/format.js' + + import { + check18IdCardNo, + validatenull + } from '@/untils/validate.js' export default { data() { @@ -106,6 +197,14 @@ laborType: textdata.laborType, index: 0, insureType: textdata.insureType, + + name: '', + card: '', + loading: false, + error: false, + identityList: textdata.laborType, + insureList: textdata.insureType, + realIndex: 0, }; }, onLoad() { @@ -119,6 +218,17 @@ } else { return 0 } + }, + ...mapGetters(['auth', 'authInfo']), + check() { + return check18IdCardNo(this.card) && !validatenull(this.name) + }, + indexBao() { + if (this.auth.insureState) { + return this.authInfo.bakValue - 1 + } else { + return 0 + } } }, methods: { @@ -168,7 +278,48 @@ uni.hideLoading() }) }, - idNumberFilter + idNumberFilter, + + + setName: function(e) { + this.name = e.detail.value; + }, + setCard: function(e) { + this.card = e.detail.value.toUpperCase(); + this.error = !check18IdCardNo(this.card) + return e.detail.value.toUpperCase() + }, + goSet: function() { + this.loading = true + this.$store.dispatch('authRealName', { + name: this.name, + idNumber: this.card + }) + .then(() => { + this.loading = false + uni.navigateBack() + }).catch(() => { + this.loading = false + }) + }, + idNumberFilter, + identityChange(val) { + uni.showLoading(); + this.$store.dispatch('authLabor').then(() => { + this.realIndex = val.detail.value; + uni.hideLoading(); + }).catch(() => { + uni.hideLoading(); + }) + }, + insureChange(val) { + uni.showLoading(); + this.$store.dispatch('authInsure', val.detail.value * 1 + 1).then(() => { + uni.hideLoading(); + }).catch(()=>{ + uni.hideLoading(); + }) + }, } }; @@ -301,4 +452,95 @@ page { background-color: #f6f6f6; } + + .bottombtn { + background-color: #1B66FF; + color: #fff; + text-align: center; + border-radius: 10rpx; + font-family: PingFangSC-Medium; + font-size: 32rpx; + height: 90rpx; + line-height: 90rpx; + } + + .btn { + background-color: #fefefe; + width: 690rpx; + padding: 30rpx; + padding-bottom: 80rpx; + position: fixed; + bottom: 0; + left: 0; + } + + .name { + font-family: PingFangSC-Regular; + font-size: 32rpx; + color: #333333; + width: 200rpx; + } + + .error { + font-family: PingFangSC-Regular; + font-size: 26rpx; + color: red; + margin: 5px 0 0 200rpx; + padding-bottom: 5px; + } + + .list { + padding: 20rpx; + padding-left: 0; + display: flex; + align-items: center; + justify-content: space-between; + border-bottom: 1rpx solid #f2f2f2; + font-size: 28rpx; + } + + .pickerList { + padding: 20rpx; + padding-left: 0; + + border-bottom: 1rpx solid #f2f2f2; + } + + .listRight { + display: flex; + align-items: center; + justify-content: space-between; + font-family: PingFangSC-Regular; + font-size: 28rpx; + color: #999999; + } + + .listRightContent { + color: #1b66ff; + } + + .listRight image { + width: 40rpx; + height: 40rpx; + margin-left: 15rpx; + } + + .listContent { + color: #999; + font-size: 28rpx; + } + + .body { + background-color: #fefefe; + padding-left: 20rpx; + margin-top: 20rpx; + } + + .nocheck { + opacity: 0.3; + } + + page { + background-color: #f6f6f6; + } diff --git a/pages.json b/pages.json index 41fa360..c83cbc3 100644 --- a/pages.json +++ b/pages.json @@ -22,6 +22,13 @@ "navigationBarBackgroundColor" : "#FFFFFF" } }, + { + "path" : "pages/projectInfo/workInfo", + "style" : { + "navigationBarTitleText" : "岗位详情", + "navigationBarBackgroundColor" : "#FFFFFF" + } + }, { "path" : "pages/projectInfo/signContract", "style" : { diff --git a/pages/my/my.vue b/pages/my/my.vue index 5960eda..6743f3a 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -11,7 +11,7 @@ 实名认证:{{auth.realNameState?'已认证':'未认证'}} - 银行卡核验:{{auth.bankCardState?'已认证':'未认证'}} + @@ -22,15 +22,15 @@ - 我的任务 + 我的申请 - 技能提升 + 我的收藏 - 就业政策 + 我的评价 @@ -47,22 +47,22 @@ 认证信息 - + - 我的评价 + 咨询信箱 - + - 变更手机号 + 问卷调查 - + - VIP会员申请 + 投诉建议 - + 帮助与反馈 diff --git a/pages/projectInfo/workInfo.vue b/pages/projectInfo/workInfo.vue new file mode 100644 index 0000000..3b9924a --- /dev/null +++ b/pages/projectInfo/workInfo.vue @@ -0,0 +1,554 @@ + + + + + diff --git a/vue.config.js b/vue.config.js index fdcb0d0..c4294a3 100644 --- a/vue.config.js +++ b/vue.config.js @@ -3,8 +3,8 @@ module.exports = { port: 1887, proxy: { '/api': { - // target: 'http://192.168.0.104:8000', // 本地服务接口地址 - target: "http://39.98.184.58:8000", // 阿里云后台地址 + target: 'http://192.168.0.104:8000', // 本地服务接口地址 + // target: "http://39.98.184.58:8000", // 阿里云后台地址 // target: "http://192.168.0.100:8000", // 本地网关 ws: true, pathRewrite: {