bug修复
This commit is contained in:
@@ -139,13 +139,15 @@ const validateRole = () => {
|
||||
|
||||
const getPhoneNumber = (e) => {
|
||||
console.log('获取手机号:', e);
|
||||
|
||||
console.log('userType.value', userType.value)
|
||||
// 验证角色是否已选择
|
||||
if (!validateRole()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (e.detail.errMsg === 'getPhoneNumber:ok') {
|
||||
if (userType.value === null) {
|
||||
$api.msg('请先选择您的角色');
|
||||
return true;
|
||||
}
|
||||
uni.login({
|
||||
provider: 'weixin',
|
||||
success: (loginRes) => {
|
||||
|
||||
@@ -525,6 +525,11 @@ function previewImage(url, index) {
|
||||
current: index
|
||||
});
|
||||
}
|
||||
|
||||
// 查看简历
|
||||
function viewResume(userId) {
|
||||
navTo(`/packageA/pages/myResume/myResume?userId=${userId}`);
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
|
||||
@@ -216,6 +216,14 @@
|
||||
v-model="contact.name"
|
||||
/>
|
||||
</view>
|
||||
<view class="form-group">
|
||||
<view class="label">职位</view>
|
||||
<input
|
||||
class="input"
|
||||
placeholder="请输入职位"
|
||||
v-model="contact.position"
|
||||
/>
|
||||
</view>
|
||||
<view class="form-group">
|
||||
<view class="label">联系电话</view>
|
||||
<input
|
||||
@@ -280,6 +288,7 @@ const formData = reactive({
|
||||
contacts: [
|
||||
{
|
||||
name: '',
|
||||
position: '',
|
||||
phone: ''
|
||||
}
|
||||
]
|
||||
@@ -504,6 +513,7 @@ const addContact = () => {
|
||||
if (formData.contacts.length < 3) {
|
||||
formData.contacts.push({
|
||||
name: '',
|
||||
position: '',
|
||||
phone: ''
|
||||
});
|
||||
}
|
||||
@@ -653,7 +663,11 @@ const publishJob = async () => {
|
||||
jobCategory: formData.jobCategory,
|
||||
companyId: formData.companyId,
|
||||
companyName: formData.companyName,
|
||||
jobContactList: formData.contacts.filter(contact => contact.name.trim() && contact.phone.trim()),
|
||||
jobContactList: formData.contacts.filter(contact => contact.name.trim() && contact.phone.trim()).map(contact => ({
|
||||
contactPerson: contact.name,
|
||||
contactPersonPhone: contact.phone,
|
||||
position: contact.position
|
||||
})),
|
||||
filesList: formData.images.map(image => ({ bussinessid: image.bussinessid })) // 新增:岗位图片列表,使用bussinessid
|
||||
};
|
||||
|
||||
|
||||
@@ -193,7 +193,8 @@ const handleLogin = async () => {
|
||||
title: '登录成功',
|
||||
icon: 'success'
|
||||
})
|
||||
window.location.assign('http://222.80.110.161:11111/mechine-dual-vue/login')
|
||||
// window.location.assign('http://222.80.110.161:11111/mechine-dual-vue/login')
|
||||
window.location.assign('http://222.80.110.161:11111/mechine-single-vue/login')
|
||||
// // 跳转到首页
|
||||
// uni.reLaunch({
|
||||
// url: '/pages/index/index'
|
||||
|
||||
Reference in New Issue
Block a user