await-audit.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <view class="page-box">
  3. <view class="img-box">
  4. <image src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/login/await_audit.png" class="await-img" mode="widthFix"></image>
  5. </view>
  6. <view class="await-status text-color-333 sys-size-36 sys-weight-600">已提交</view>
  7. <view class="await-msg text-color-333 sys-size-30 sys-weight-400">请耐心等待审核</view>
  8. <view class="await-but sys-radius-100 sys-background-dominant sys-size-30 text-color-fff sys-weight-500" @click.stop="getMemberInfo(true)">确认</view>
  9. </view>
  10. </template>
  11. <script>
  12. import {getMemberInfo} from "@/api/user";
  13. import tools from "@/service/tools";
  14. export default {
  15. data() {
  16. return {
  17. timeServe: null
  18. };
  19. },
  20. mounted() {
  21. this.timeServe = setInterval(() => {
  22. this.getMemberInfo(false);
  23. }, 5000)
  24. },
  25. methods: {
  26. getMemberInfo(type) {
  27. getMemberInfo().then((res) => {
  28. if (res.code === 1) {
  29. if (res.data.status === 1) {
  30. clearInterval(this.timeServe)
  31. uni.setStorageSync('receivingType',res.data.receivingType)
  32. uni.setStorageSync('enteringType',res.data.enteringType)
  33. uni.reLaunch({
  34. url: '/pages/index/index'
  35. });
  36. }else {
  37. if(type) tools.error('正在审核...')
  38. }
  39. }else {
  40. tools.error(res.msg)
  41. }
  42. })
  43. },
  44. },
  45. }
  46. </script>
  47. <style lang="scss">
  48. .page-box{
  49. min-height: 100vh;
  50. background-image: url("https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/app-serve/2024-4-17/gvbst5vy0m.png?imageMogr2/quality/20");
  51. background-repeat: no-repeat;
  52. background-size: 100% auto;
  53. .img-box{
  54. padding-top: 360rpx;
  55. display: flex;
  56. justify-content: center;
  57. .await-img{
  58. margin: 0 auto;
  59. width: 200rpx;
  60. height: 200rpx;
  61. }
  62. }
  63. .await-status{
  64. text-align: center;
  65. margin-top: 30rpx;
  66. }
  67. .await-msg{
  68. text-align: center;
  69. margin-top: 14rpx;
  70. }
  71. .await-but{
  72. width: 330rpx;
  73. height: 80rpx;
  74. line-height: 80rpx;
  75. margin: 48rpx auto;
  76. text-align: center;
  77. }
  78. }
  79. </style>