await-audit.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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">确认</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();
  23. }, 5000)
  24. },
  25. methods: {
  26. getMemberInfo() {
  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. }
  37. }else {
  38. tools.error(res.msg)
  39. }
  40. })
  41. },
  42. },
  43. }
  44. </script>
  45. <style lang="scss">
  46. .page-box{
  47. min-height: 100vh;
  48. background-image: url("https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/app-serve/2024-4-17/gvbst5vy0m.png?imageMogr2/quality/20");
  49. background-repeat: no-repeat;
  50. background-size: 100% auto;
  51. .img-box{
  52. padding-top: 360rpx;
  53. display: flex;
  54. justify-content: center;
  55. .await-img{
  56. margin: 0 auto;
  57. width: 200rpx;
  58. height: 200rpx;
  59. }
  60. }
  61. .await-status{
  62. text-align: center;
  63. margin-top: 30rpx;
  64. }
  65. .await-msg{
  66. text-align: center;
  67. margin-top: 14rpx;
  68. }
  69. .await-but{
  70. width: 330rpx;
  71. height: 80rpx;
  72. line-height: 80rpx;
  73. margin: 48rpx auto;
  74. text-align: center;
  75. }
  76. }
  77. </style>