|
@@ -12,17 +12,16 @@
|
|
|
<view class="decoration decoration2">2</view>
|
|
|
</template>
|
|
|
<!-- 岗位要求 -->
|
|
|
- <requirement ref="requirementRef" :data="itemData" @requireTypeChange="bool => isStudent = bool"></requirement>
|
|
|
+ <requirement ref="requirementRef" :data="itemData"></requirement>
|
|
|
</uni-section>
|
|
|
- <template v-if="isStudent">
|
|
|
+ <!-- <template v-if="isStudent">
|
|
|
<uni-section class="ss-m-y-20" title="其他">
|
|
|
<template v-slot:decoration>
|
|
|
<view class="decoration decoration3">3</view>
|
|
|
</template>
|
|
|
- <!-- 扩展信息 -->
|
|
|
<extendInfo ref="extendRef" :data="extendData"></extendInfo>
|
|
|
</uni-section>
|
|
|
- </template>
|
|
|
+ </template> -->
|
|
|
<view class="f-horizon-center">
|
|
|
<button type="primary" size="default" class="send-button" @click="getSubmitParams">提 交</button>
|
|
|
</view>
|
|
@@ -71,9 +70,9 @@ const getPositionDetail = async (id) => {
|
|
|
if (!res?.data || !Object.keys(res.data).length) return
|
|
|
itemData.value = {...res.data, ...dealDictObjData({}, res.data)}
|
|
|
// itemData.value.name = new Date().getTime().toString() + '测试小程序发布职位'
|
|
|
- if (itemData.value?.type === '3') {
|
|
|
- await getPositionExtendDetail(id)
|
|
|
- }
|
|
|
+ // if (itemData.value?.type === '3') {
|
|
|
+ // await getPositionExtendDetail(id)
|
|
|
+ // }
|
|
|
show.value = true
|
|
|
} finally {
|
|
|
uni.hideLoading()
|
|
@@ -86,19 +85,19 @@ const getPositionDetail = async (id) => {
|
|
|
// }, 2000)
|
|
|
|
|
|
// 获取实习扩展信息
|
|
|
-const extendData = ref({})
|
|
|
-const getPositionExtendDetail = async (id) => {
|
|
|
- try {
|
|
|
- const res = await getJobAdvertisedExtend(id)
|
|
|
- extendData.value = res?.data || {}
|
|
|
- isStudent.value = true
|
|
|
- } catch (error) {
|
|
|
- }
|
|
|
-}
|
|
|
+// const extendData = ref({})
|
|
|
+// const getPositionExtendDetail = async (id) => {
|
|
|
+// try {
|
|
|
+// const res = await getJobAdvertisedExtend(id)
|
|
|
+// extendData.value = res?.data || {}
|
|
|
+// isStudent.value = true
|
|
|
+// } catch (error) {
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
const baseInfoRef = ref(null)
|
|
|
const requirementRef = ref(null)
|
|
|
-const extendRef = ref(null)
|
|
|
+// const extendRef = ref(null)
|
|
|
let submitParams = null
|
|
|
const getSubmitParams = async() => {
|
|
|
const baseInfo = await baseInfoRef.value.getQuery()
|
|
@@ -127,14 +126,14 @@ const getSubmitParams = async() => {
|
|
|
}
|
|
|
//
|
|
|
const price = 39900 // 39900 职位价格,传递单位:分
|
|
|
-const isStudent = ref(false)
|
|
|
+// const isStudent = ref(false)
|
|
|
let _jobId = ''
|
|
|
const saveEmit = async (retry) => {
|
|
|
try {
|
|
|
uni.showLoading({ title: '操作中...', mask: true })
|
|
|
const res = await saveJobAdvertised(submitParams)
|
|
|
_jobId = res?.data || res || ''
|
|
|
- if (isStudent.value) handleSaveExtend() // 保存扩展信息
|
|
|
+ // if (isStudent.value) handleSaveExtend() // 保存扩展信息
|
|
|
// status:99为待支付职位,弹窗支付
|
|
|
if (submitParams?.status && submitParams?.status === '99') {
|
|
|
uni.showToast({ title: '当前可发布职位额度不足,请支付', icon: 'none', duration: 2000 })
|
|
@@ -176,16 +175,16 @@ const payClose = () => {
|
|
|
}
|
|
|
|
|
|
// 保存扩展信息
|
|
|
-const handleSaveExtend = async () => {
|
|
|
- if (!_jobId) return
|
|
|
- try {
|
|
|
- const extend = await extendRef.value && extendRef.value.getQuery() || null
|
|
|
- if (!extend) return
|
|
|
- await saveJobAdvertisedExtend({ ...extend, jobId: _jobId })
|
|
|
- } catch (error) {
|
|
|
- console.error('保存扩展信息失败', error)
|
|
|
- }
|
|
|
-}
|
|
|
+// const handleSaveExtend = async () => {
|
|
|
+// if (!_jobId) return
|
|
|
+// try {
|
|
|
+// const extend = await extendRef.value && extendRef.value.getQuery() || null
|
|
|
+// if (!extend) return
|
|
|
+// await saveJobAdvertisedExtend({ ...extend, jobId: _jobId })
|
|
|
+// } catch (error) {
|
|
|
+// console.error('保存扩展信息失败', error)
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
</script>
|
|
|
|