bug修复

This commit is contained in:
francis_fh
2025-12-08 21:20:33 +08:00
parent bc48d7fff0
commit 16d1e50c85
4 changed files with 28 additions and 6 deletions

View File

@@ -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) => {

View File

@@ -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>

View File

@@ -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
};

View File

@@ -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'