|
@@ -116,7 +116,7 @@
|
|
>
|
|
>
|
|
<div>
|
|
<div>
|
|
<div class="pa-4" style="background-color: #f0f0f0; border-radius: 8px;">{{ shareUrlTxt }}</div>
|
|
<div class="pa-4" style="background-color: #f0f0f0; border-radius: 8px;">{{ shareUrlTxt }}</div>
|
|
- <v-btn v-if="!getToken()" class="mt-1" color="warning" variant="text">您还未登录,登录后分享可享受分享有礼活动!</v-btn>
|
|
|
|
|
|
+ <v-btn v-if="!getPersonalToken()" class="mt-1" color="warning" variant="text">您还未登录,登录后分享可享受分享有礼活动!</v-btn>
|
|
<v-btn class="mt-4 ml-3" color="success" @click="copyText">复制分享链接</v-btn>
|
|
<v-btn class="mt-4 ml-3" color="success" @click="copyText">复制分享链接</v-btn>
|
|
<v-btn class="mt-4 ml-3" color="primary" variant="outlined" @click="openShareLink">打开分享链接</v-btn>
|
|
<v-btn class="mt-4 ml-3" color="primary" variant="outlined" @click="openShareLink">打开分享链接</v-btn>
|
|
</div>
|
|
</div>
|
|
@@ -148,7 +148,7 @@ import similarPositions from '@/components/Position/similarPositions.vue'
|
|
import EnterpriseInfo from '@/components/Enterprise/info.vue'
|
|
import EnterpriseInfo from '@/components/Enterprise/info.vue'
|
|
import Snackbar from '@/plugins/snackbar'
|
|
import Snackbar from '@/plugins/snackbar'
|
|
import Dialog from '@/components/CtDialog'
|
|
import Dialog from '@/components/CtDialog'
|
|
-import { getToken } from '@/utils/auth'
|
|
|
|
|
|
+import { getPersonalToken } from '@/utils/auth'
|
|
|
|
|
|
const { t } = useI18n()
|
|
const { t } = useI18n()
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
@@ -177,10 +177,11 @@ getPositionDetail()
|
|
|
|
|
|
// 效验是否有投递过简历
|
|
// 效验是否有投递过简历
|
|
const deliveryCheck = async () => {
|
|
const deliveryCheck = async () => {
|
|
|
|
+ if (!getPersonalToken()) return delivery.value = false
|
|
const data = await jobCvRelCheckSend({ jobId: id })
|
|
const data = await jobCvRelCheckSend({ jobId: id })
|
|
if (data) delivery.value = true
|
|
if (data) delivery.value = true
|
|
}
|
|
}
|
|
-if (getToken()) deliveryCheck()
|
|
|
|
|
|
+if (getPersonalToken()) deliveryCheck()
|
|
|
|
|
|
const desc = [
|
|
const desc = [
|
|
{ mdi: 'mdi-map-marker-outline', value: 'areaName' },
|
|
{ mdi: 'mdi-map-marker-outline', value: 'areaName' },
|
|
@@ -191,6 +192,7 @@ const desc = [
|
|
// 效验求职者是否有收藏该职位
|
|
// 效验求职者是否有收藏该职位
|
|
const isCollection = ref(true)
|
|
const isCollection = ref(true)
|
|
const getCollectionStatus = async () => {
|
|
const getCollectionStatus = async () => {
|
|
|
|
+ if (!getPersonalToken()) return isCollection.value = false
|
|
const data = await getJobFavoriteCheck({ jobId: id })
|
|
const data = await getJobFavoriteCheck({ jobId: id })
|
|
isCollection.value = data
|
|
isCollection.value = data
|
|
}
|
|
}
|
|
@@ -248,6 +250,7 @@ const copyText = async () => {
|
|
|
|
|
|
// 收藏&取消收藏职位
|
|
// 收藏&取消收藏职位
|
|
const handleCollection = async () => {
|
|
const handleCollection = async () => {
|
|
|
|
+ if (!getPersonalToken()) return Snackbar.warning(t('resume.changeRolePlease'))
|
|
const api = isCollection.value ? getPersonJobUnfavorite : getPersonJobFavorite
|
|
const api = isCollection.value ? getPersonJobUnfavorite : getPersonJobFavorite
|
|
await api(isCollection.value ? id : { jobId: id })
|
|
await api(isCollection.value ? id : { jobId: id })
|
|
await getCollectionStatus()
|
|
await getCollectionStatus()
|
|
@@ -265,6 +268,7 @@ const handleToUpload = () => {
|
|
const resumeList = ref([])
|
|
const resumeList = ref([])
|
|
const selectResume = ref()
|
|
const selectResume = ref()
|
|
const handleDelivery = async () => {
|
|
const handleDelivery = async () => {
|
|
|
|
+ if (!getPersonalToken()) return Snackbar.warning(t('resume.changeRolePlease'))
|
|
if (delivery.value) return Snackbar.warning(t('resume.alreadyResume'))
|
|
if (delivery.value) return Snackbar.warning(t('resume.alreadyResume'))
|
|
const result = await getPersonResumeCv()
|
|
const result = await getPersonResumeCv()
|
|
resumeList.value = result
|
|
resumeList.value = result
|