schoolInReview.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <!-- 注册企业进度 -->
  2. <template>
  3. <div class="my-5">
  4. <v-card class="default-width" elevation="3">
  5. <div style="margin: 70px auto; width: 600px;">
  6. <!-- 提交企业注册以后跳转显示页面 -->
  7. <div v-if="applyInfo && applyInfo?.school?.authStatus === '0'" class="d-flex flex-column align-center">
  8. <svg-icon name="submit" size="300"></svg-icon>
  9. <div><strong class="color-primary font-size-20">已收到您的老师账号注册申请,</strong>审核时间预计在1~3个工作日内,申请结果会以短信方式通知到您的手机上,请注意查收。</div>
  10. <div style="width: 100%;">
  11. <div class="mt-5 mb-1">如有疑问请扫码添加下方企业微信联系我们:</div>
  12. <div style="width: 150px; height: 150px; margin: auto;">
  13. <v-img src="https://minio.menduner.com/dev/menduner/contact.png" width="150" height="150"></v-img>
  14. </div>
  15. <div class="text-center ml-5">潘青海先生(Peter Pan)</div>
  16. </div>
  17. </div>
  18. <!-- 审核不通过 -->
  19. <div v-else-if="applyInfo?.school?.authStatus === '2'">
  20. <div class="mb-3" style="color: red;">
  21. 您的老师账号注册申请<strong class="color-error font-size-20"> 审核不通过,</strong>
  22. 具体原因如下:{{ reason }}
  23. </div>
  24. <div class="mt-5">
  25. <span>审核时间:{{ createTime }}</span>
  26. </div>
  27. <div style="width: 100%;">
  28. <div class="mt-5 mb-1">如有疑问请扫码添加下方企业微信联系我们:</div>
  29. <div style="width: 150px; height: 150px; margin: auto;">
  30. <v-img src="https://minio.menduner.com/dev/menduner/contact.png" width="150" height="150"></v-img>
  31. </div>
  32. <div class="text-center ml-5">潘青海先生(Peter Pan)</div>
  33. </div>
  34. </div>
  35. <div class="text-center">
  36. <!-- 应把登录缓存清空 -->
  37. <v-btn class="mt-16 mr-3 buttons" color="primary" to="/flame">回到火苗儿校企</v-btn>
  38. <v-btn v-if="applyInfo.status === '2'" class="mt-16 buttons" color="primary" @click="handleConfirm">{{ $t('common.resubmit') }}</v-btn>
  39. </div>
  40. </div>
  41. </v-card>
  42. </div>
  43. </template>
  44. <script setup>
  45. defineOptions({ name: 'register-schoolForm'})
  46. import { ref, onMounted } from 'vue'
  47. import { webContentStore } from '@/store/webContent'
  48. import Snackbar from '@/plugins/snackbar'
  49. // import navBar from '@/layout/personal/navBar.vue'
  50. import { useRouter } from 'vue-router'
  51. import { getSchoolAuditById } from '@/api/school'
  52. import { timesTampChange } from '@/utils/date'
  53. const applyInfo = ref(localStorage.getItem('registerSchoolInfo') ? JSON.parse(localStorage.getItem('registerSchoolInfo')) : {})
  54. console.log(applyInfo.value, '注册审核信息')
  55. const reason = ref('')
  56. const createTime = ref('')
  57. const getRefuseInfo = async () => {
  58. try {
  59. const data = await getSchoolAuditById({ schoolId: applyInfo.value.school.schoolId })
  60. reason.value = data.message
  61. createTime.value = data?.createDate ? timesTampChange(data.createDate) : ''
  62. } catch {}
  63. }
  64. // 获取申请被拒绝的原因
  65. if (applyInfo.value && applyInfo.value?.school?.authStatus === '2') {
  66. getRefuseInfo()
  67. }
  68. const router = useRouter()
  69. const webContent = webContentStore()
  70. onMounted(async () => {
  71. await webContent.getSystemWebContent()
  72. })
  73. // 重新提交
  74. const handleConfirm = async () => {
  75. }
  76. </script>
  77. <style scoped lang="scss">
  78. .navBar {
  79. position: absolute;
  80. top: 0;
  81. }
  82. .box {
  83. position: relative;
  84. width: 100%;
  85. height: 100%;
  86. background-size: cover;
  87. background-repeat: no-repeat;
  88. background-position: center center;
  89. }
  90. .content {
  91. position: absolute;
  92. top: 50%;
  93. left: 50%;
  94. translate: -50% -50%;
  95. width: 600px;
  96. height: 80%;
  97. overflow: auto;
  98. background-color: #fff;
  99. border-radius: 10px;
  100. }
  101. .upload-box {
  102. width: 100px;
  103. }
  104. </style>