|
@@ -2,7 +2,14 @@
|
|
|
<div style="background-color: #f0f0f0;">
|
|
|
<div class="inviteView text-center" :style="{'width': isMobile ? '100%' : '750px'}">
|
|
|
<div class="invite-title">
|
|
|
- 门墩儿直聘用户史迪奇,邀请你加入【门墩儿科技有限公司】的招聘团
|
|
|
+ <!-- 门墩儿直聘用户史迪奇,邀请你加入【门墩儿科技有限公司】的招聘团 -->
|
|
|
+ <div style="color: var(--v-primary-base);" class="mb-3">【门墩儿直聘邀请】</div>
|
|
|
+ <div style="font-size: 24px">
|
|
|
+ <span class="color-333">{{ enterpriseInfo.name }}</span>
|
|
|
+ <span class="color-333"> 邀请您加入 </span>
|
|
|
+ <span class="color-333">{{ enterpriseInfo.enterpriseName }}</span>
|
|
|
+ <!-- <span>的招聘团</span> -->
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="mt-10 d-flex flex-column align-center">
|
|
|
<template v-if="joinSuccess">
|
|
@@ -27,7 +34,7 @@ import { ref, onMounted } from 'vue'
|
|
|
import phoneFrom from '@/components/VerificationCode'
|
|
|
import { useUserStore } from '@/store/user'; const userStore = useUserStore()
|
|
|
import { useRoute } from 'vue-router'; const route = useRoute()
|
|
|
-import { enterpriseInviteRecordConsent } from '@/api/recruit/enterprise/enterpriseInvite.js'
|
|
|
+import { enterpriseInviteRecordConsent, getEnterpriseInfoByCode } from '@/api/recruit/enterprise/enterpriseInvite.js'
|
|
|
import Snackbar from '@/plugins/snackbar'
|
|
|
|
|
|
const joinSuccess = ref(false)
|
|
@@ -57,6 +64,19 @@ const handleLogin = async () => {
|
|
|
Snackbar.error('加入失败')
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+const enterpriseInfo = ref({})
|
|
|
+// 根据邀请码获取邀请用户信息
|
|
|
+const getEnterpriseInfo = async () => {
|
|
|
+ try {
|
|
|
+ const data = await getEnterpriseInfoByCode({ code })
|
|
|
+ enterpriseInfo.value = data
|
|
|
+ } catch (error) {
|
|
|
+ console.error('error', error)
|
|
|
+ Snackbar.error('链接失效')
|
|
|
+ }
|
|
|
+}
|
|
|
+getEnterpriseInfo()
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|