|
@@ -116,6 +116,7 @@
|
|
|
>
|
|
|
<div>
|
|
|
<div class="pa-4" style="background-color: #f0f0f0; border-radius: 8px;">{{ shareUrl }}</div>
|
|
|
+ <v-btn v-if="!getToken()" 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="primary" variant="outlined" @click="openShareLink">打开分享链接</v-btn>
|
|
|
</div>
|
|
@@ -137,7 +138,7 @@
|
|
|
<script setup>
|
|
|
defineOptions({ name: 'position-details' })
|
|
|
import { ref } from 'vue'
|
|
|
-import { useRoute, useRouter } from 'vue-router'
|
|
|
+import { useRouter } from 'vue-router'
|
|
|
import { timesTampChange } from '@/utils/date'
|
|
|
import { getPersonResumeCv } from '@/api/resume'
|
|
|
import { useI18n } from '@/hooks/web/useI18n'
|
|
@@ -151,7 +152,6 @@ import { getToken } from '@/utils/auth'
|
|
|
|
|
|
const { t } = useI18n()
|
|
|
const router = useRouter()
|
|
|
-const route = useRoute()
|
|
|
const { id } = router.currentRoute.value.params
|
|
|
const delivery = ref(false) // 是否已投递简历
|
|
|
|
|
@@ -200,10 +200,6 @@ getCollectionStatus()
|
|
|
const shareDialog = ref(false)
|
|
|
const shareUrl = ref('')
|
|
|
const handleShare = async () => {
|
|
|
- if (!getToken()) {
|
|
|
- router.push(`/login?redirect=${route.fullPath}`)
|
|
|
- return
|
|
|
- }
|
|
|
// 分享链接携带参数: 1.用户id。2.手机号。3.附件简历。4.姓名。5.职位id
|
|
|
shareUrl.value = '/shareJob?' + new URLSearchParams({
|
|
|
jobId: id,
|