inReview.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!-- 注册企业进度 -->
  2. <template>
  3. <div class="pt-5">
  4. <div :class="isMobile? 'mobileBox' : 'default-width'">
  5. <v-btn class="my-2" color="primary" variant="text" @click="router.go(-1)">{{ `<< 返回` }}</v-btn>
  6. </div>
  7. <v-card class="pa-5" :class="isMobile? 'mobileBox' : 'default-width'" :elevation="isMobile? '0' : '3'">
  8. <div style="margin: 80px auto;" :style="{width: isMobile ? '' : '600px'}">
  9. <!-- 提交企业注册以后跳转显示页面 -->
  10. <div v-if="!applyInfo || !(Object.keys(applyInfo).length)" class="d-flex flex-column align-center">
  11. <svg-icon name="submit" size="300"></svg-icon>
  12. <div>提交成功,审核时间在1~3个工作日内,申请结果会以短信方式通知到您的手机上,请注意查收</div>
  13. </div>
  14. <!-- 等待审核 -->
  15. <div v-else-if="applyInfo.status === '0'">
  16. <span>您的申请正在审核中,审核时间在1~3个工作日内,申请结果会以短信方式通知到您的手机上,请注意查收</span>
  17. <div class="mt-5">
  18. <span>提交时间:{{ applyInfo.createTime }}</span>
  19. </div>
  20. </div>
  21. <!-- 审核不通过 -->
  22. <div v-else-if="applyInfo.status === '2'">
  23. <div class="mb-3" style="color: red;">审核不通过</div>
  24. <div class="mb-3">原因:{{ applyInfo.reason }}</div>
  25. <div v-if="applyInfo.remark">备注:{{ applyInfo.remark }}</div>
  26. <div class="mt-5">
  27. <span>审核时间:{{ applyInfo.updateTime }}</span>
  28. </div>
  29. <div class="mt-5">
  30. <span>提交时间:{{ applyInfo.createTime }}</span>
  31. </div>
  32. </div>
  33. <!-- 审核通过(审核通过不会进入此页面) -->
  34. <div v-else-if="applyInfo.status === '1'">
  35. <span>审核通过</span>
  36. </div>
  37. <div class="text-center" v-if="!isMobile">
  38. <v-btn class="mt-16 buttons" color="primary" to="/recruitHome">{{ $t('common.toHome') }}</v-btn>
  39. <v-btn v-if="applyInfo.status === '2'" class="mt-16 ml-12 buttons" color="primary" to="/recruit/enterprise/register">{{ $t('common.resubmit') }}</v-btn>
  40. </div>
  41. </div>
  42. </v-card>
  43. </div>
  44. </template>
  45. <script setup>
  46. import { timesTampChange } from '@/utils/date'
  47. import { getUserRegisterEnterpriseApply } from '@/api/personal/user'
  48. import { onMounted, ref } from 'vue';
  49. import { useRouter } from 'vue-router'; const router = useRouter()
  50. defineOptions({name: 'enterprise-enterpriseRegister-inReview'})
  51. const applyInfo = ref({})
  52. // 组件挂载后添加事件监听器
  53. const isMobile = ref(false)
  54. onMounted(() => {
  55. const userAgent = navigator.userAgent
  56. isMobile.value = /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i.test(userAgent)
  57. })
  58. // 查看用户是否有在申请中的数据
  59. const getApplyInfo = async () => {
  60. const data = await getUserRegisterEnterpriseApply() // 已经有数据说明已经申请过了
  61. localStorage.setItem('userApplyInfo', JSON.stringify(data))
  62. const obj = {
  63. createTime: timesTampChange(data.createTime), // 创建时间
  64. updateTime: timesTampChange(data.updateTime), // 更新时间
  65. status: data.status, // 审核状态(0审核中 1审核通过 2审核不通过)) // 审核状态
  66. reason: data.reason, // 审核原因
  67. remark: data.remark, // 备注
  68. }
  69. applyInfo.value = obj
  70. }
  71. getApplyInfo()
  72. </script>
  73. <style lang="scss" scoped>
  74. .mobileBox {
  75. width: 100vw;
  76. .resume-header {
  77. margin-bottom: 12px;
  78. }
  79. }
  80. </style>