|
@@ -54,7 +54,7 @@ let fairId = ''
|
|
|
onLoad((options) => {
|
|
|
jobId = options?.jobId || props.jobId || ''
|
|
|
fairId = options?.fairId || ''
|
|
|
- // console.log('jobId:', jobId); console.log('fairId:', fairId)
|
|
|
+ console.log('jobId:', jobId); console.log('fairId:', fairId)
|
|
|
if (jobId) getPositionDetail(jobId)
|
|
|
else {
|
|
|
show.value = showExtend.value = true
|
|
@@ -76,13 +76,13 @@ const getPositionDetail = async (id) => {
|
|
|
}
|
|
|
// getPositionDetail('1904154452278009858')
|
|
|
|
|
|
-// 获取编辑的职位详情
|
|
|
+// 获取实习扩展信息
|
|
|
const showExtend = ref(false)
|
|
|
const extendData = ref({})
|
|
|
const getPositionExtendDetail = async (jobId) => {
|
|
|
const res = await getJobAdvertisedExtend(jobId)
|
|
|
extendData.value = res?.data || {}
|
|
|
- showExtend.value = true
|
|
|
+ showExtend.value = true // 实习表单显示
|
|
|
}
|
|
|
|
|
|
const baseInfoRef = ref(null)
|
|
@@ -130,7 +130,8 @@ const saveEmit = async (retry) => {
|
|
|
return
|
|
|
}
|
|
|
uni.switchTab({ url: '/pages/index/position' })
|
|
|
- setTimeout(() => { uni.showToast({ title: '发布成功', icon: 'success' }) }, 1000)
|
|
|
+ // const title = itemData.value?.status === '99' '编辑成功,请前往支付' :
|
|
|
+ setTimeout(() => { uni.showToast({ title: jobId ? '编辑成功' : '发布成功', icon: 'success' }) }, 1000)
|
|
|
|
|
|
} catch (error) {
|
|
|
console.log('error:', error)
|