auth-progress.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <template>
  2. <view class="auth-progress">
  3. <custom-nav noback="noback" transparent="transparent" ref="ltm" 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 class="big-btn" @tap="logout">退出登录</view>
  42. </view>
  43. </view>
  44. </view>
  45. </template>
  46. <script>
  47. import { _API_SubAuthOver } from '@/apis/user.js'
  48. import { _API_Logout } from '@/apis/verify.js'
  49. export default {
  50. data() {
  51. return {
  52. title: '审核进度',
  53. }
  54. },
  55. computed: {
  56. auth_status() { return this.$store.state.userinfo.cert_status }, // 用户认证状态
  57. reject_reason() { return this.$store.state.userinfo.reject_reason }, // 用户被驳回原因
  58. grey() {
  59. if (this.auth_status === 1) { // 用户认证状态为 1 表示已填写信息提交审核
  60. return [true, true, false, false, false]
  61. } else if (this.auth_status === 2) { // 用户认证状态为 2 表示邀请人已确认
  62. return [true, true, true, true, false]
  63. } else if (this.auth_status === 3) { // 用户认证状态为 3 表示上级已确认 // 认证通过
  64. return [true, true, true, true, true]
  65. } else if (this.auth_status === 4) { // 用户认证状态为 4 表示邀请人驳回
  66. return [true, true, false, false, false]
  67. } else if (this.auth_status === 5) { // 用户认证状态为 5 表示上级驳回驳回
  68. return [true, true, true, true, false]
  69. }
  70. }
  71. },
  72. methods: {
  73. join() { // 点击加入
  74. uni.showLoading({ mask: true })
  75. _API_SubAuthOver().then(() => { uni.reLaunch({ url: '../index/index' }) })
  76. },
  77. auth() { // 点击重新认证
  78. uni.reLaunch({ url: '../auth-identity/auth-identity' })
  79. },
  80. logout() {
  81. uni.showLoading({ mask: true })
  82. _API_Logout().then(() => {
  83. uni.hideLoading()
  84. window.history.replaceState({}, '', '/api/gzh')
  85. location.reload()
  86. })
  87. }
  88. }
  89. }
  90. </script>
  91. <style lang="scss">
  92. .auth-progress {
  93. @include page();
  94. .content {
  95. @include flex(column);
  96. .top {
  97. @include flex();
  98. width: 100%;
  99. height: 200rpx;
  100. background: #FFFFFF;
  101. align-items: flex-start;
  102. border-bottom: 6rpx solid #F2F2F2;
  103. .left, .center, .right {
  104. margin-top: 60rpx;
  105. text {
  106. font-size: 38rpx;
  107. position: relative;
  108. }
  109. text::after {
  110. left: 50%;
  111. top: 63rpx;
  112. font-size: 30rpx;
  113. position: absolute;
  114. white-space: nowrap;
  115. transform: translate(-50%);
  116. color: $app-main-text-color;
  117. }
  118. }
  119. .left>text::after {
  120. content: "提交审核";
  121. }
  122. .center>text::after {
  123. content: "邀请人确认";
  124. }
  125. .right>text::after {
  126. content: "上级审核";
  127. }
  128. .line {
  129. height: 2rpx;
  130. width: 170rpx;
  131. margin: 0 15rpx;
  132. margin-top: 79rpx;
  133. background: #B2B2B2;
  134. &.active {
  135. background: $app-base-color;
  136. }
  137. }
  138. }
  139. .body {
  140. @include flex();
  141. flex-direction: column;
  142. flex: 1;
  143. width: 100%;
  144. background: #FFFFFF;
  145. view {
  146. text-align: center;
  147. }
  148. .ing {
  149. @include flex(column);
  150. justify-content: flex-start;
  151. image {
  152. width: 356rpx;
  153. height: 356rpx;
  154. margin-top: 104rpx;
  155. }
  156. text {
  157. font-size: 32rpx;
  158. color: $app-sec-text-color;
  159. }
  160. .title {
  161. font-size: 46rpx;
  162. margin-top: 42rpx;
  163. color: $app-main-text-color;
  164. }
  165. }
  166. }
  167. }
  168. }
  169. </style>