|
@@ -331,7 +331,7 @@ const shareUrl = ref('')
|
|
const userInfo = ref(localStorage.getItem('userInfo') ? JSON.parse(localStorage.getItem('userInfo')) : {})
|
|
const userInfo = ref(localStorage.getItem('userInfo') ? JSON.parse(localStorage.getItem('userInfo')) : {})
|
|
const handleShare = async () => {
|
|
const handleShare = async () => {
|
|
// 分享链接携带参数: 用户id、职位id
|
|
// 分享链接携带参数: 用户id、职位id
|
|
- if (!getToken()) return quickLogonOpen()
|
|
|
|
|
|
+ if (!getToken()) return quickLogonOpen()
|
|
generateAndDownloadImage()
|
|
generateAndDownloadImage()
|
|
shareUrl.value = '/shareJob?' + new URLSearchParams({
|
|
shareUrl.value = '/shareJob?' + new URLSearchParams({
|
|
jobId: id,
|
|
jobId: id,
|
|
@@ -342,7 +342,7 @@ const handleShare = async () => {
|
|
|
|
|
|
// 收藏&取消收藏职位
|
|
// 收藏&取消收藏职位
|
|
const handleCollection = async () => {
|
|
const handleCollection = async () => {
|
|
- if (!getToken()) return quickLogonOpen()
|
|
|
|
|
|
+ if (!getToken()) return quickLogonOpen()
|
|
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()
|
|
@@ -387,7 +387,7 @@ const showResume = ref(false)
|
|
const resumeList = ref([])
|
|
const resumeList = ref([])
|
|
const selectResume = ref()
|
|
const selectResume = ref()
|
|
const handleDelivery = async () => {
|
|
const handleDelivery = async () => {
|
|
- if (!getToken()) return quickLogonOpen()
|
|
|
|
|
|
+ if (!getToken()) return quickLogonOpen()
|
|
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
|
|
@@ -422,7 +422,7 @@ const handleSubmit = async (val) =>{
|
|
|
|
|
|
// 沟通
|
|
// 沟通
|
|
const toDetails = async (info) => {
|
|
const toDetails = async (info) => {
|
|
- if (!getToken()) return quickLogonOpen()
|
|
|
|
|
|
+ if (!getToken()) return quickLogonOpen()
|
|
try {
|
|
try {
|
|
const userId = info.contact.userId
|
|
const userId = info.contact.userId
|
|
const enterpriseId = info.contact.enterpriseId
|
|
const enterpriseId = info.contact.enterpriseId
|