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