review.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <view style="padding: 15px;">
  3. <!-- 提交企业注册以后跳转显示页面 -->
  4. <view v-if="!applyInfo || !(Object.keys(applyInfo).length)">
  5. <view class="d-flex flex-column align-center">
  6. <image src="/static/svg/submit.svg" style="height: 200px; width: "></image>
  7. </view>
  8. <view><span class="color-primary font-size-20 font-weight-bold">提交成功,</span>已收到您的企业账号申请,审核时间预计在1~3个工作日内,申请结果会以短信方式通知到您的手机上,请注意查收。</view>
  9. <view style="width: 100%;">
  10. <view class="mt-5 mb-1">如有疑问请长按二维码添加下方企业微信联系我们:</view>
  11. <view style="width: 150px; height: 150px; margin: auto;">
  12. <image show-menu-by-longpress="true" src="https://minio.menduner.com/dev/menduner/contact.png" style="width: 150px; height: 150px;"></image>
  13. </view>
  14. <view class="text-center ml-5">潘青海先生(Peter Pan)</view>
  15. </view>
  16. </view>
  17. <!-- 等待审核 -->
  18. <view v-else-if="applyInfo?.status === '0'">
  19. <view class="d-flex flex-column align-center">
  20. <image src="/static/svg/submit.svg" style="height: 200px; width: "></image>
  21. </view>
  22. <view>
  23. 您的企业账号申请<span class="color-primary font-size-20 font-weight-bold"> 正在审核中,</span>审核时间在1~3个工作日内,申请结果会以短信方式通知到您的手机上,请注意查收。
  24. </view>
  25. <view class="ss-m-t-30">
  26. <span>提交时间:{{ applyInfo.createTime }}</span>
  27. </view>
  28. <view style="width: 100%;">
  29. <view class="mt-5 mb-1">如有疑问请长按二维码添加下方企业微信联系我们:</view>
  30. <view style="width: 150px; height: 150px; margin: auto;">
  31. <image show-menu-by-longpress="true" src="https://minio.menduner.com/dev/menduner/contact.png" style="width: 150px; height: 150px;"></image>
  32. </view>
  33. <view class="text-center ml-5">潘青海先生(Peter Pan)</view>
  34. </view>
  35. </view>
  36. <!-- 审核不通过 -->
  37. <view v-else-if="applyInfo?.status === '2'" class="ss-m-b-100">
  38. <view class="ss-m-b-20 color-error">
  39. 您的企业账号注册申请<span class="color-error font-size-20 font-weight-bold"> 审核不通过</span>
  40. </view>
  41. <view class="ss-m-b-20 color-error">具体原因如下:{{ applyInfo.reason }}</view>
  42. <view v-if="applyInfo.remark">备注:{{ applyInfo.remark }}</view>
  43. <view class="mt-5">
  44. <span>审核时间:{{ applyInfo.updateTime }}</span>
  45. </view>
  46. <view>
  47. <span>提交时间:{{ applyInfo.createTime }}</span>
  48. </view>
  49. <view style="width: 100%;">
  50. <view class="mt-5 mb-1">如有疑问请长按二维码添加下方企业微信联系我们:</view>
  51. <view style="width: 150px; height: 150px; margin: auto;">
  52. <image show-menu-by-longpress="true" src="https://minio.menduner.com/dev/menduner/contact.png" style="width: 150px; height: 150px;"></image>
  53. </view>
  54. <view class="text-center ml-5">潘青海先生(Peter Pan)</view>
  55. </view>
  56. </view>
  57. <view class="d-flex">
  58. <button :class="{'second-button': applyInfo.status === '2', 'send-button': applyInfo.status !== '2'}" @tap="handleToHome">回到首页</button>
  59. <button v-if="applyInfo.status === '2'" class="second-button" @tap="handleConfirm">重新提交</button>
  60. </view>
  61. </view>
  62. </template>
  63. <script setup>
  64. import { ref } from 'vue'
  65. import { getUserRegisterEnterpriseApply } from '@/api/enterprise.js'
  66. import { timesTampChange } from '@/utils/date'
  67. import { onLoad } from '@dcloudio/uni-app'
  68. import { userStore } from '@/store/user'
  69. const user = userStore()
  70. const applyInfo = ref({})
  71. // 查看用户是否有在申请中的数据
  72. const getApplyInfo = async (hasData) => {
  73. // 已经有数据说明已经申请过了
  74. let result = {}
  75. if (hasData) {
  76. result = JSON.parse(uni.getStorageSync('entRegisterData'))
  77. } else {
  78. const { data } = await getUserRegisterEnterpriseApply()
  79. result = data
  80. uni.setStorageSync('applyInfo', JSON.stringify(result))
  81. }
  82. applyInfo.value = {
  83. phone: result.phone,
  84. createTime: timesTampChange(result.createTime), // 创建时间
  85. updateTime: timesTampChange(result.updateTime), // 更新时间
  86. status: result.status, // 审核状态(0审核中 1审核通过 2审核不通过)) // 审核状态
  87. reason: result.reason, // 审核原因
  88. remark: result.remark // 备注
  89. }
  90. console.log(result, 'review----查看是否有申请中的数据', applyInfo.value)
  91. }
  92. onLoad((options) => {
  93. getApplyInfo(options?.hasData)
  94. })
  95. // 回到首页时需将当前个人登录状态及缓存中的数据清除
  96. const handleToHome = async () => {
  97. await user.handleUserLogout()
  98. uni.reLaunch({
  99. url: '/pages/index/my'
  100. })
  101. }
  102. const handleConfirm = () => {
  103. uni.reLaunch({
  104. url: `/pages/register/phoneValidate?phone=${applyInfo.value?.phone}`
  105. })
  106. }
  107. </script>
  108. <style scoped lang="scss">
  109. </style>