lifanagju_citu 10 달 전
부모
커밋
80d63d9c3a
2개의 변경된 파일30개의 추가작업 그리고 2개의 파일을 삭제
  1. 8 0
      src/api/recruit/enterprise/enterpriseInvite.js
  2. 22 2
      src/views/recruit/enterprise/systemManagement/groupAccount/inviteConfirm.vue

+ 8 - 0
src/api/recruit/enterprise/enterpriseInvite.js

@@ -39,3 +39,11 @@ export const enterpriseInviteRecordPage = async (params) => {
     params
   })
 }
+
+// 获得企业邀请记录分页
+export const getEnterpriseInfoByCode = async (params) => {
+  return await request.get({
+    url: '/app-admin-api/menduner/system/enterprise-invite/get/info/by/code',
+    params
+  })
+}

+ 22 - 2
src/views/recruit/enterprise/systemManagement/groupAccount/inviteConfirm.vue

@@ -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">