bug修复
This commit is contained in:
51
pages.json
51
pages.json
@@ -3,7 +3,8 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/index/index",
|
"path": "pages/index/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "青岛智慧就业平台",
|
"navigationBarTitleText": "喀什智慧就业平台",
|
||||||
|
"navigationBarTitleTextSize": "30rpx",
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
// #endif
|
// #endif
|
||||||
@@ -13,13 +14,15 @@
|
|||||||
"path": "pages/mine/mine",
|
"path": "pages/mine/mine",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的",
|
"navigationBarTitleText": "我的",
|
||||||
|
"navigationBarTitleTextSize": "30rpx",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/msglog/msglog",
|
"path": "pages/msglog/msglog",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "消息"
|
"navigationBarTitleText": "消息",
|
||||||
|
"navigationBarTitleTextSize": "30rpx"
|
||||||
// "navigationStyle": "custom",
|
// "navigationStyle": "custom",
|
||||||
// "enablePullDownRefresh": false
|
// "enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
@@ -27,21 +30,24 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/careerfair/careerfair",
|
"path": "pages/careerfair/careerfair",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "招聘会"
|
"navigationBarTitleText": "招聘会",
|
||||||
|
"navigationBarTitleTextSize": "30rpx"
|
||||||
// "navigationStyle": "custom"
|
// "navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/complete-info/complete-info",
|
"path": "pages/complete-info/complete-info",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "补全信息"
|
"navigationBarTitleText": "补全信息",
|
||||||
|
"navigationBarTitleTextSize": "30rpx"
|
||||||
// "navigationStyle": "custom"
|
// "navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/complete-info/company-info",
|
"path": "pages/complete-info/company-info",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "企业信息"
|
"navigationBarTitleText": "企业信息",
|
||||||
|
"navigationBarTitleTextSize": "30rpx"
|
||||||
// "navigationStyle": "custom"
|
// "navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -128,6 +134,7 @@
|
|||||||
"path": "pages/chat/chat",
|
"path": "pages/chat/chat",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "AI+",
|
"navigationBarTitleText": "AI+",
|
||||||
|
"navigationBarTitleTextSize": "30rpx",
|
||||||
"navigationBarBackgroundColor": "#4778EC",
|
"navigationBarBackgroundColor": "#4778EC",
|
||||||
"navigationBarTextStyle": "white",
|
"navigationBarTextStyle": "white",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
@@ -146,14 +153,16 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/mine/company-mine",
|
"path": "pages/mine/company-mine",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的"
|
"navigationBarTitleText": "我的",
|
||||||
|
"navigationBarTitleTextSize": "30rpx"
|
||||||
// "navigationStyle": "custom"
|
// "navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/mine/company-info",
|
"path": "pages/mine/company-info",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "企业信息"
|
"navigationBarTitleText": "企业信息",
|
||||||
|
"navigationBarTitleTextSize": "30rpx"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -165,7 +174,8 @@
|
|||||||
"path" : "pages/addWorkExperience/addWorkExperience",
|
"path" : "pages/addWorkExperience/addWorkExperience",
|
||||||
"style" :
|
"style" :
|
||||||
{
|
{
|
||||||
"navigationBarTitleText" : "添加工作经历"
|
"navigationBarTitleText" : "添加工作经历",
|
||||||
|
"navigationBarTitleTextSize": "30rpx"
|
||||||
// "navigationStyle": "custom"
|
// "navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},{
|
},{
|
||||||
@@ -199,22 +209,25 @@
|
|||||||
"navigationBarTextStyle": "white",
|
"navigationBarTextStyle": "white",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/myResume/myResume",
|
"path": "pages/myResume/myResume",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的简历",
|
"navigationBarTitleText": "我的简历",
|
||||||
|
"navigationBarTitleTextSize": "30rpx",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/Intendedposition/Intendedposition",
|
"path": "pages/Intendedposition/Intendedposition",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "投递记录",
|
"navigationBarTitleText": "投递记录",
|
||||||
|
"navigationBarTitleTextSize": "30rpx",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/collection/collection",
|
"path": "pages/collection/collection",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的收藏",
|
"navigationBarTitleText": "我的收藏",
|
||||||
|
"navigationBarTitleTextSize": "30rpx",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF",
|
"navigationBarBackgroundColor": "#FFFFFF",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
@@ -223,6 +236,7 @@
|
|||||||
"path": "pages/browseJob/browseJob",
|
"path": "pages/browseJob/browseJob",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的浏览",
|
"navigationBarTitleText": "我的浏览",
|
||||||
|
"navigationBarTitleTextSize": "30rpx",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF",
|
"navigationBarBackgroundColor": "#FFFFFF",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
@@ -231,6 +245,7 @@
|
|||||||
"path": "pages/addPosition/addPosition",
|
"path": "pages/addPosition/addPosition",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "添加岗位",
|
"navigationBarTitleText": "添加岗位",
|
||||||
|
"navigationBarTitleTextSize": "30rpx",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -245,13 +260,15 @@
|
|||||||
"path": "pages/personalInfo/personalInfo",
|
"path": "pages/personalInfo/personalInfo",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "个人信息",
|
"navigationBarTitleText": "个人信息",
|
||||||
|
"navigationBarTitleTextSize": "30rpx",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/jobExpect/jobExpect",
|
"path": "pages/jobExpect/jobExpect",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "求职期望"
|
"navigationBarTitleText": "求职期望",
|
||||||
|
"navigationBarTitleTextSize": "30rpx"
|
||||||
// "navigationStyle": "custom"
|
// "navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -259,6 +276,7 @@
|
|||||||
"path": "pages/reservation/reservation",
|
"path": "pages/reservation/reservation",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的预约",
|
"navigationBarTitleText": "我的预约",
|
||||||
|
"navigationBarTitleTextSize": "30rpx",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -266,6 +284,7 @@
|
|||||||
"path": "pages/choicenessList/choicenessList",
|
"path": "pages/choicenessList/choicenessList",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "精选企业",
|
"navigationBarTitleText": "精选企业",
|
||||||
|
"navigationBarTitleTextSize": "30rpx",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF",
|
"navigationBarBackgroundColor": "#FFFFFF",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
@@ -274,6 +293,7 @@
|
|||||||
"path": "pages/newJobPosition/newJobPosition",
|
"path": "pages/newJobPosition/newJobPosition",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "新职位推荐",
|
"navigationBarTitleText": "新职位推荐",
|
||||||
|
"navigationBarTitleTextSize": "30rpx",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -281,6 +301,7 @@
|
|||||||
"path": "pages/systemNotification/systemNotification",
|
"path": "pages/systemNotification/systemNotification",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "系统通知",
|
"navigationBarTitleText": "系统通知",
|
||||||
|
"navigationBarTitleTextSize": "30rpx",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -296,6 +317,7 @@
|
|||||||
"path": "pages/moreJobs/moreJobs",
|
"path": "pages/moreJobs/moreJobs",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "更多岗位",
|
"navigationBarTitleText": "更多岗位",
|
||||||
|
"navigationBarTitleTextSize": "30rpx",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -303,6 +325,7 @@
|
|||||||
"path": "pages/collection/compare",
|
"path": "pages/collection/compare",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": " 岗位对比",
|
"navigationBarTitleText": " 岗位对比",
|
||||||
|
"navigationBarTitleTextSize": "30rpx",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -310,6 +333,7 @@
|
|||||||
"path": "pages/myResume/corporateInformation",
|
"path": "pages/myResume/corporateInformation",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": " 企业详情",
|
"navigationBarTitleText": " 企业详情",
|
||||||
|
"navigationBarTitleTextSize": "30rpx",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -357,7 +381,8 @@
|
|||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "black",
|
||||||
"navigationBarTitleText": "uni-app",
|
"navigationBarTitleText": "uni-app",
|
||||||
"navigationBarBackgroundColor": "#F8F8F8",
|
"navigationBarBackgroundColor": "#F8F8F8",
|
||||||
"backgroundColor": "#F8F8F8"
|
"backgroundColor": "#F8F8F8",
|
||||||
|
"navigationBarTitleTextSize": "18px"
|
||||||
// "enablePullDownRefresh": false,
|
// "enablePullDownRefresh": false,
|
||||||
// "navigationStyle": "custom"
|
// "navigationStyle": "custom"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -883,6 +883,7 @@ function getJobRecommend(type = 'add') {
|
|||||||
sessionId: useUserStore().seesionId,
|
sessionId: useUserStore().seesionId,
|
||||||
...pageState.search,
|
...pageState.search,
|
||||||
...conditionSearch.value,
|
...conditionSearch.value,
|
||||||
|
isPublish: 1,
|
||||||
};
|
};
|
||||||
let comd = { recommend: true, jobCategory: '', tip: '确认你的兴趣,为您推荐更多合适的岗位' };
|
let comd = { recommend: true, jobCategory: '', tip: '确认你的兴趣,为您推荐更多合适的岗位' };
|
||||||
$api.createRequest('/app/job/recommend', params).then((resData) => {
|
$api.createRequest('/app/job/recommend', params).then((resData) => {
|
||||||
|
|||||||
@@ -105,7 +105,7 @@
|
|||||||
class="input"
|
class="input"
|
||||||
placeholder="请输入招聘人数"
|
placeholder="请输入招聘人数"
|
||||||
type="number"
|
type="number"
|
||||||
v-model="formData.recruitCount"
|
v-model="formData.vacancies"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view class="form-group">
|
<view class="form-group">
|
||||||
@@ -233,7 +233,7 @@ const formData = reactive({
|
|||||||
companyName: '',
|
companyName: '',
|
||||||
minSalary: '',
|
minSalary: '',
|
||||||
maxSalary: '',
|
maxSalary: '',
|
||||||
recruitCount: '', // 对应接口字段 idCardPictureBackUrl
|
vacancies: '', // 招聘人数
|
||||||
description: '', // 对应接口字段 description
|
description: '', // 对应接口字段 description
|
||||||
jobRequirements: '',
|
jobRequirements: '',
|
||||||
jobCategory: '', // 新增:岗位分类
|
jobCategory: '', // 新增:岗位分类
|
||||||
@@ -494,7 +494,7 @@ const publishJob = async () => {
|
|||||||
experience: formData.experience,
|
experience: formData.experience,
|
||||||
jobLocation: formData.jobLocation,
|
jobLocation: formData.jobLocation,
|
||||||
jobLocationAreaCode: formData.jobLocationAreaCode,
|
jobLocationAreaCode: formData.jobLocationAreaCode,
|
||||||
idCardPictureBackUrl: formData.recruitCount, // 招聘人数
|
vacancies: formData.vacancies, // 招聘人数
|
||||||
latitude: formData.latitude,
|
latitude: formData.latitude,
|
||||||
longitude: formData.longitude,
|
longitude: formData.longitude,
|
||||||
description: formData.description,
|
description: formData.description,
|
||||||
@@ -553,7 +553,7 @@ const validateForm = () => {
|
|||||||
{ field: 'experience', message: '请选择工作经验' },
|
{ field: 'experience', message: '请选择工作经验' },
|
||||||
{ field: 'jobLocation', message: '请选择工作地点' },
|
{ field: 'jobLocation', message: '请选择工作地点' },
|
||||||
{ field: 'jobLocationAreaCode', message: '请选择工作区县' },
|
{ field: 'jobLocationAreaCode', message: '请选择工作区县' },
|
||||||
{ field: 'recruitCount', message: '请输入招聘人数' },
|
{ field: 'vacancies', message: '请输入招聘人数' },
|
||||||
{ field: 'description', message: '请输入岗位描述' },
|
{ field: 'description', message: '请输入岗位描述' },
|
||||||
{ field: 'jobCategory', message: '请选择岗位分类' }
|
{ field: 'jobCategory', message: '请选择岗位分类' }
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<AppLayout back-gorund-color="#F4F4F4">
|
<AppLayout back-gorund-color="#F4F4F4">
|
||||||
<!-- 编辑头像 -->
|
<!-- 编辑头像 -->
|
||||||
<view class="avatar-section btn-feel" @click="editAvatar">
|
<view class="avatar-section btn-feel" @click="editAvatar">
|
||||||
<view class="avatar-label">编辑头像</view>
|
<view class="avatar-label">编辑信息</view>
|
||||||
<view class="avatar-container">
|
<view class="avatar-container">
|
||||||
<image class="company-avatar" :src="companyInfo.avatar || '/static/imgs/avatar.jpg'"></image>
|
<image class="company-avatar" :src="companyInfo.avatar || '/static/imgs/avatar.jpg'"></image>
|
||||||
<uni-icons color="#A2A2A2" type="right" size="16"></uni-icons>
|
<uni-icons color="#A2A2A2" type="right" size="16"></uni-icons>
|
||||||
@@ -51,35 +51,24 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="info-item btn-feel" @click="editInfo('contact1')">
|
<!-- 企业联系人列表 -->
|
||||||
<view class="info-label">企业联系人名称</view>
|
<view v-for="(contact, index) in companyInfo.companyContactList" :key="contact.id || index" class="contact-group">
|
||||||
<view class="info-content">
|
<view class="contact-group-title">企业联系人{{ index + 1 }}</view>
|
||||||
<text class="info-value">{{ companyInfo.contact1Name || '暂无联系人' }}</text>
|
|
||||||
<uni-icons color="#A2A2A2" type="right" size="16"></uni-icons>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="info-item btn-feel" @click="editInfo('contact1Phone')">
|
<view class="info-item btn-feel" @click="editContact(index, 'name')">
|
||||||
<view class="info-label">企业联系人电话</view>
|
<view class="info-label">联系人姓名</view>
|
||||||
<view class="info-content">
|
<view class="info-content">
|
||||||
<text class="info-value">{{ companyInfo.contact1Phone || '暂无联系电话' }}</text>
|
<text class="info-value">{{ contact.contactPerson || '暂无联系人' }}</text>
|
||||||
<uni-icons color="#A2A2A2" type="right" size="16"></uni-icons>
|
<uni-icons color="#A2A2A2" type="right" size="16"></uni-icons>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="info-item btn-feel" @click="editInfo('contact2')">
|
<view class="info-item btn-feel" @click="editContact(index, 'phone')">
|
||||||
<view class="info-label">企业联系人名称</view>
|
<view class="info-label">联系电话</view>
|
||||||
<view class="info-content">
|
<view class="info-content">
|
||||||
<text class="info-value">{{ companyInfo.contact2Name || '暂无联系人' }}</text>
|
<text class="info-value">{{ contact.contactPersonPhone || '暂无联系电话' }}</text>
|
||||||
<uni-icons color="#A2A2A2" type="right" size="16"></uni-icons>
|
<uni-icons color="#A2A2A2" type="right" size="16"></uni-icons>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="info-item btn-feel" @click="editInfo('contact2Phone')">
|
|
||||||
<view class="info-label">企业联系人电话</view>
|
|
||||||
<view class="info-content">
|
|
||||||
<text class="info-value">{{ companyInfo.contact2Phone || '暂无联系电话' }}</text>
|
|
||||||
<uni-icons color="#A2A2A2" type="right" size="16"></uni-icons>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -97,27 +86,24 @@ const { $api, navTo } = inject('globalFunction');
|
|||||||
const companyInfo = reactive({
|
const companyInfo = reactive({
|
||||||
name: '',
|
name: '',
|
||||||
avatar: '/static/imgs/avatar.jpg',
|
avatar: '/static/imgs/avatar.jpg',
|
||||||
completeness: '100%',
|
completeness: '65%',
|
||||||
socialCode: '',
|
socialCode: '',
|
||||||
location: '',
|
location: '',
|
||||||
description: '',
|
description: '',
|
||||||
legalPerson: '',
|
legalPerson: '',
|
||||||
contact1Name: '',
|
companyContactList: [], // 企业联系人列表
|
||||||
contact1Phone: '',
|
|
||||||
contact2Name: '',
|
|
||||||
contact2Phone: '',
|
|
||||||
isVerified: false // 实名状态
|
isVerified: false // 实名状态
|
||||||
});
|
});
|
||||||
|
|
||||||
function editAvatar() {
|
function editAvatar() {
|
||||||
// 编辑头像逻辑
|
// 编辑头像逻辑
|
||||||
uni.chooseImage({
|
// uni.chooseImage({
|
||||||
count: 1,
|
// count: 1,
|
||||||
success: (res) => {
|
// success: (res) => {
|
||||||
// 上传头像
|
// // 上传头像
|
||||||
uploadAvatar(res.tempFilePaths[0]);
|
// uploadAvatar(res.tempFilePaths[0]);
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
function uploadAvatar(filePath) {
|
function uploadAvatar(filePath) {
|
||||||
@@ -146,11 +132,7 @@ function editInfo(type) {
|
|||||||
code: '/pages/mine/edit-company-code',
|
code: '/pages/mine/edit-company-code',
|
||||||
location: '/pages/mine/edit-company-location',
|
location: '/pages/mine/edit-company-location',
|
||||||
description: '/pages/mine/edit-company-description',
|
description: '/pages/mine/edit-company-description',
|
||||||
legalPerson: '/pages/mine/edit-legal-person',
|
legalPerson: '/pages/mine/edit-legal-person'
|
||||||
contact1: '/pages/mine/edit-contact1',
|
|
||||||
contact1Phone: '/pages/mine/edit-contact1-phone',
|
|
||||||
contact2: '/pages/mine/edit-contact2',
|
|
||||||
contact2Phone: '/pages/mine/edit-contact2-phone'
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (editPages[type]) {
|
if (editPages[type]) {
|
||||||
@@ -158,6 +140,27 @@ function editInfo(type) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function editContact(contactIndex, field) {
|
||||||
|
// 编辑联系人信息
|
||||||
|
const contact = companyInfo.companyContactList[contactIndex];
|
||||||
|
if (!contact) return;
|
||||||
|
|
||||||
|
// 跳转到联系人编辑页面,传递联系人索引和字段类型
|
||||||
|
const editPages = {
|
||||||
|
name: '/pages/mine/edit-contact-name',
|
||||||
|
phone: '/pages/mine/edit-contact-phone'
|
||||||
|
};
|
||||||
|
|
||||||
|
if (editPages[field]) {
|
||||||
|
// 传递联系人索引和联系人ID
|
||||||
|
const params = {
|
||||||
|
contactIndex: contactIndex,
|
||||||
|
contactId: contact.id
|
||||||
|
};
|
||||||
|
navTo(editPages[field], params);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
// 获取企业信息
|
// 获取企业信息
|
||||||
getCompanyInfo();
|
getCompanyInfo();
|
||||||
@@ -180,16 +183,8 @@ function getCompanyInfo() {
|
|||||||
companyInfo.description = company.description || '';
|
companyInfo.description = company.description || '';
|
||||||
companyInfo.legalPerson = company.legalPerson || '';
|
companyInfo.legalPerson = company.legalPerson || '';
|
||||||
|
|
||||||
// 联系人信息
|
// 联系人信息 - 直接使用companyContactList数组
|
||||||
if (company.companyContactList && company.companyContactList.length > 0) {
|
companyInfo.companyContactList = company.companyContactList || [];
|
||||||
const contacts = company.companyContactList;
|
|
||||||
companyInfo.contact1Name = contacts[0]?.contactPerson || '';
|
|
||||||
companyInfo.contact1Phone = contacts[0]?.contactPersonPhone || '';
|
|
||||||
if (contacts.length > 1) {
|
|
||||||
companyInfo.contact2Name = contacts[1]?.contactPerson || '';
|
|
||||||
companyInfo.contact2Phone = contacts[1]?.contactPersonPhone || '';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 判断是否实名:legalIdCard字段有值则表示已实名
|
// 判断是否实名:legalIdCard字段有值则表示已实名
|
||||||
companyInfo.isVerified = !!(company.legalIdCard && company.legalIdCard.trim());
|
companyInfo.isVerified = !!(company.legalIdCard && company.legalIdCard.trim());
|
||||||
@@ -289,4 +284,16 @@ function goBack() {
|
|||||||
transform: scale(0.98);
|
transform: scale(0.98);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.contact-group {
|
||||||
|
border-top: 20rpx solid #F4F4F4;
|
||||||
|
|
||||||
|
.contact-group-title {
|
||||||
|
padding: 20rpx 30rpx 10rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999999;
|
||||||
|
background: #F8F8F8;
|
||||||
|
border-bottom: 1rpx solid #F5F5F5;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user