|
@@ -176,6 +176,9 @@
|
|
|
<text>发送简历选择</text>
|
|
|
<uni-icons type="closeempty" size="20" @tap="handleClose"></uni-icons>
|
|
|
</view>
|
|
|
+ <view v-if="isStudent" class="ss-p-x-50" style="width: 272px;">
|
|
|
+ <studentDeliveryForm ref="studentDeliveryFormRef" />
|
|
|
+ </view>
|
|
|
<view v-for="resume in resumeList" :key="resume.id" class="popup-content" @tap="resumeCheck = resume">
|
|
|
<view class="iconBox">
|
|
|
<uni-icons
|
|
@@ -212,7 +215,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { ref, watch, onMounted } from 'vue'
|
|
|
+import { ref, watch, onMounted, computed } from 'vue'
|
|
|
import { onLoad } from '@dcloudio/uni-app'
|
|
|
import { useIMStore } from '@/store/im'
|
|
|
import { userStore } from '@/store/user'
|
|
@@ -231,6 +234,7 @@ import {
|
|
|
jobCvRelCheckSend,
|
|
|
jobCvRelHireSend
|
|
|
} from '@/api/position'
|
|
|
+import studentDeliveryForm from '@/components/studentDeliveryForm'
|
|
|
|
|
|
const useUserStore = userStore()
|
|
|
const IM = useIMStore()
|
|
@@ -263,6 +267,8 @@ const isSendResume = ref(false)
|
|
|
const positionInfo = ref({})
|
|
|
const isEmployment = ref('-1')
|
|
|
|
|
|
+const isStudent = ref(false) // 已测试,待开放上线 const isStudent = computed(() => useUserStore.baseInfo?.type && Boolean(Number(useUserStore.baseInfo.type) === 1))
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
setTimeout(() => {
|
|
|
scrollAnimation.value = true
|
|
@@ -415,12 +421,20 @@ function handleClose () {
|
|
|
popup.value.close()
|
|
|
}
|
|
|
|
|
|
+const studentDeliveryFormRef = ref()
|
|
|
+
|
|
|
// 发送简历
|
|
|
async function handleSendResume () {
|
|
|
if (!Object.keys(resumeCheck.value).length) {
|
|
|
uni.showToast({ title: '请选择要投递的简历', icon: 'none' })
|
|
|
return
|
|
|
}
|
|
|
+ let practice = null
|
|
|
+ if (isStudent.value) {
|
|
|
+ practice = await studentDeliveryFormRef.value.getQueryParams()
|
|
|
+ if (!practice) return
|
|
|
+ }
|
|
|
+
|
|
|
const text = {
|
|
|
remark: '发送简历',
|
|
|
query: {
|
|
@@ -437,7 +451,8 @@ async function handleSendResume () {
|
|
|
jobId: positionInfo.value.id,
|
|
|
// ...(jobFairId && { jobFairId }),
|
|
|
url: resumeCheck.value.url,
|
|
|
- recommendUserId: isEmployment.value
|
|
|
+ recommendUserId: isEmployment.value,
|
|
|
+ ...(practice && { practice }),
|
|
|
})
|
|
|
} else {
|
|
|
await jobCvRelSend({
|
|
@@ -445,7 +460,8 @@ async function handleSendResume () {
|
|
|
// ...(jobFairId && { jobFairId }),
|
|
|
title: resumeCheck.value.title,
|
|
|
url: resumeCheck.value.url,
|
|
|
- type: positionInfo.value.hire ? 1 : 0
|
|
|
+ type: positionInfo.value.hire ? 1 : 0,
|
|
|
+ ...(practice && { practice }),
|
|
|
})
|
|
|
}
|
|
|
isSendResume.value = true
|