auth-progress.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <template>
  2. <view class="auth-progress">
  3. <custom-nav ref="ltm" noback :title="title" />
  4. <view class="content">
  5. <view class="top">
  6. <view class="left">
  7. <text v-if="grey[0] == true" class="cuIcon-roundcheckfill basecolor"></text>
  8. <text v-if="grey[0] == false" class="cuIcon-time"></text>
  9. </view>
  10. <view class="line" :class="{ active: grey[1] }"></view>
  11. <view class="center">
  12. <text v-if="grey[2] == true" class="cuIcon-roundcheckfill basecolor"></text>
  13. <text v-if="grey[2] == false" class="cuIcon-time"></text>
  14. </view>
  15. <view class="line" :class="{ active: grey[3] }"></view>
  16. <view class="right">
  17. <text v-if="grey[4] == true" class="cuIcon-roundcheckfill basecolor"></text>
  18. <text v-if="grey[4] == false" class="cuIcon-time"></text>
  19. </view>
  20. </view>
  21. <view class="body">
  22. <view v-if="auth_status === 3">
  23. <view class="text">您的资料已经审核通过,欢迎加入大卫博士</view>
  24. <view class="big-btn bg" @tap="join">立刻加入</view>
  25. </view>
  26. <view v-else-if="auth_status === 4">
  27. <view class="text">您的资料已被邀请人驳回</view>
  28. <view class="text">原因:<text class="basecolor">{{ reject_reason }}</text></view>
  29. <view class="big-btn bg" @tap="auth">重新认证</view>
  30. </view>
  31. <view v-else-if="auth_status === 5">
  32. <view class="text">您的资料已被上级代理驳回</view>
  33. <view class="text">原因:<text class="basecolor">{{ reject_reason }}</text></view>
  34. <view class="big-btn bg" @tap="auth">重新认证</view>
  35. </view>
  36. <view v-else class="ing">
  37. <image src="../../static/icon/auth-progress.png" mode=""></image>
  38. <text class="title">资料审核中...</text>
  39. <text>您的资料正在审核中,请耐心等待</text>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. import { _API_SubAuthOver } from '@/apis/user.js'
  47. export default {
  48. data() {
  49. return {
  50. title: '审核进度',
  51. }
  52. },
  53. computed: {
  54. auth_status() { return this.$store.state.userinfo.cert_status }, // 用户认证状态
  55. reject_reason() { return this.$store.state.userinfo.reject_reason }, // 用户被驳回原因
  56. grey() {
  57. if (this.auth_status === 1) { // 用户认证状态为 1 表示已填写信息提交审核
  58. return [true, true, false, false, false]
  59. } else if (this.auth_status === 2) { // 用户认证状态为 2 表示邀请人已确认
  60. return [true, true, true, true, false]
  61. } else if (this.auth_status === 3) { // 用户认证状态为 3 表示上级已确认 // 认证通过
  62. return [true, true, true, true, true]
  63. } else if (this.auth_status === 4) { // 用户认证状态为 4 表示邀请人驳回
  64. return [true, true, false, false, false]
  65. } else if (this.auth_status === 5) { // 用户认证状态为 5 表示上级驳回驳回
  66. return [true, true, true, true, false]
  67. }
  68. }
  69. },
  70. methods: {
  71. join() { // 点击加入
  72. this.$refs.ltm.loading()
  73. _API_SubAuthOver().then(() => { uni.reLaunch({ url: '../index-index/index-index' }) })
  74. },
  75. auth() { // 点击重新认证
  76. uni.reLaunch({ url: '../auth-identity/auth-identity' })
  77. }
  78. }
  79. }
  80. </script>
  81. <style lang="scss">
  82. .auth-progress {
  83. @include page();
  84. .content {
  85. @include flex(column);
  86. .top {
  87. @include flex();
  88. width: 100%;
  89. height: 200rpx;
  90. background: #FFFFFF;
  91. align-items: flex-start;
  92. border-bottom: 6rpx solid #F2F2F2;
  93. .left, .center, .right {
  94. margin-top: 60rpx;
  95. text {
  96. font-size: 38rpx;
  97. position: relative;
  98. }
  99. text::after {
  100. left: 50%;
  101. top: 63rpx;
  102. font-size: 30rpx;
  103. position: absolute;
  104. white-space: nowrap;
  105. transform: translate(-50%);
  106. color: $app-main-text-color;
  107. }
  108. }
  109. .left>text::after {
  110. content: "提交审核";
  111. }
  112. .center>text::after {
  113. content: "邀请人确认";
  114. }
  115. .right>text::after {
  116. content: "上级审核";
  117. }
  118. .line {
  119. height: 2rpx;
  120. width: 170rpx;
  121. margin: 0 15rpx;
  122. margin-top: 79rpx;
  123. background: #B2B2B2;
  124. &.active {
  125. background: $app-base-color;
  126. }
  127. }
  128. }
  129. .body {
  130. @include flex();
  131. flex: 1;
  132. width: 100%;
  133. background: #FFFFFF;
  134. view {
  135. text-align: center;
  136. }
  137. .ing {
  138. @include flex(column);
  139. height: 100%;
  140. justify-content: flex-start;
  141. image {
  142. width: 356rpx;
  143. height: 356rpx;
  144. margin-top: 104rpx;
  145. }
  146. text {
  147. font-size: 32rpx;
  148. color: $app-sec-text-color;
  149. }
  150. .title {
  151. font-size: 46rpx;
  152. margin-top: 42rpx;
  153. color: $app-main-text-color;
  154. }
  155. }
  156. }
  157. }
  158. }
  159. </style>