|
|
@ -94,6 +94,8 @@ |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
showSex: false, |
|
|
showSex: false, |
|
|
|
|
|
callback: '', // 回调类型 |
|
|
|
|
|
callbackStatus: '', // 回调状态参数 |
|
|
sexList: [ |
|
|
sexList: [ |
|
|
{ |
|
|
{ |
|
|
name: '男', |
|
|
name: '男', |
|
|
@ -319,15 +321,24 @@ |
|
|
"headImage": that.form.idCardFile.map(item => item.url).join(','), |
|
|
"headImage": that.form.idCardFile.map(item => item.url).join(','), |
|
|
} |
|
|
} |
|
|
updateResume(params).then(response=>{ |
|
|
updateResume(params).then(response=>{ |
|
|
uni.$u.toast("保存成功!") |
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
|
|
|
|
uni.$u.toast("保存成功!") |
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
|
// 根据回调参数决定跳转页面 |
|
|
|
|
|
if (this.callback === 'release' && this.callbackStatus) { |
|
|
|
|
|
// 跳转到发布页面 |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: "/pages_subpack/release/index?status=" + this.callbackStatus |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
// 默认返回上一页 |
|
|
uni.navigateBack({ |
|
|
uni.navigateBack({ |
|
|
delta:1 |
|
|
delta:1 |
|
|
}) |
|
|
}) |
|
|
},1500) |
|
|
|
|
|
}).catch(error=>{ |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
},1500) |
|
|
|
|
|
}).catch(error=>{ |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
}else{ |
|
|
}else{ |
|
|
let params = { |
|
|
let params = { |
|
|
"name": that.form.name, |
|
|
"name": that.form.name, |
|
|
@ -344,18 +355,27 @@ |
|
|
"headImage": that.form.idCardFile.map(item => item.url).join(','), |
|
|
"headImage": that.form.idCardFile.map(item => item.url).join(','), |
|
|
} |
|
|
} |
|
|
addResume(params).then(response => { |
|
|
addResume(params).then(response => { |
|
|
uni.$u.toast("提交成功,等待申请") |
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
|
uni.switchTab({ |
|
|
|
|
|
url:"/pages/home/index" |
|
|
|
|
|
|
|
|
uni.$u.toast("提交成功,等待申请") |
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
|
// 根据回调参数决定跳转页面 |
|
|
|
|
|
if (this.callback === 'release' && this.callbackStatus) { |
|
|
|
|
|
// 跳转到发布页面 |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: "/pages_subpack/release/index?status=" + this.callbackStatus |
|
|
}) |
|
|
}) |
|
|
},1500) |
|
|
|
|
|
}).catch(error => { |
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
// 默认跳转到首页 |
|
|
uni.switchTab({ |
|
|
uni.switchTab({ |
|
|
url:"/pages/home/index" |
|
|
url:"/pages/home/index" |
|
|
}) |
|
|
}) |
|
|
},1500) |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
},1500) |
|
|
|
|
|
}).catch(error => { |
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
|
uni.switchTab({ |
|
|
|
|
|
url:"/pages/home/index" |
|
|
|
|
|
}) |
|
|
|
|
|
},1500) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
@ -380,6 +400,15 @@ |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
onLoad(options) { |
|
|
|
|
|
// 接收页面参数 |
|
|
|
|
|
if (options.callback) { |
|
|
|
|
|
this.callback = options.callback |
|
|
|
|
|
} |
|
|
|
|
|
if (options.status) { |
|
|
|
|
|
this.callbackStatus = options.status |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
onReady() { |
|
|
onReady() { |
|
|
this.onIndustryList() |
|
|
this.onIndustryList() |
|
|
this.$refs.uForm.setRules(this.rules) |
|
|
this.$refs.uForm.setRules(this.rules) |
|
|
|