certificationResultPage.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <view class="renzheng_body">
  3. <view class="renzheng" v-if="approvalStatus==0">
  4. <text class="renzheng_title">认证审核中…</text>
  5. <view class="btn_back" @click="toHome">
  6. 任务大厅
  7. </view>
  8. <image class="renzheng_img" src="../../static/icons/icon_renzhenging.png" mode=""></image>
  9. </view>
  10. <view class="renzheng" v-if="approvalStatus==1">
  11. <text class="renzheng_title">审核已通过!</text>
  12. <text class="renzheng_desc">可以点击下方“任务大厅”开始做任务啦</text>
  13. <view class="btn_back" @click="toHome">
  14. 任务大厅
  15. </view>
  16. <image class="renzheng_img" src="../../static/icons/icon_renzheng_pass.png" mode=""></image>
  17. </view>
  18. <view class="renzheng" v-if="approvalStatus==2">
  19. <text class="renzheng_title">审核被拒绝!</text>
  20. <view class="btn_back" @click="toHome">
  21. 任务大厅
  22. </view>
  23. <image class="renzheng_img" src="../../static/icons/icon_renzhenging.png" mode=""></image>
  24. </view>
  25. <login-notice></login-notice>
  26. <login></login>
  27. </view>
  28. </template>
  29. <script>
  30. let app = getApp();
  31. export default {
  32. data() {
  33. return {
  34. approvalStatus:-1
  35. };
  36. },
  37. mounted() {
  38. this.getCertificationResult();
  39. uni.$on("request",()=>{
  40. this.getCertificationResult();
  41. })
  42. },
  43. methods:{
  44. async getCertificationResult(){
  45. let ret = await this.$myRequest({
  46. url: "/user/regist/get",
  47. data: {
  48. "userId": app.globalData.userId,
  49. },
  50. method:"GET"
  51. })
  52. if (ret.data.success) {
  53. this.approvalStatus = ret.data.single.approvalStatus;//:0待审核1通过2拒绝
  54. }
  55. },
  56. toHome(){
  57. uni.navigateBack({
  58. delta:1
  59. })
  60. }
  61. }
  62. }
  63. </script>
  64. <style lang="scss">
  65. .renzheng_body{
  66. width: 100%;
  67. height: 100%;
  68. .renzheng{
  69. display: flex;
  70. flex-direction: column;
  71. justify-content: center;
  72. align-items: center;
  73. padding-top: 240rpx;
  74. .renzheng_title{
  75. font-size: 40rpx;
  76. font-family: Verdana, Verdana-Bold;
  77. font-weight: 700;
  78. text-align: center;
  79. color: #333333;
  80. }
  81. .renzheng_desc{
  82. font-size: 32rpx;
  83. font-family: Verdana, Verdana-Regular;
  84. font-weight: 400;
  85. text-align: center;
  86. color: #6a6a6a;
  87. margin-top: 40rpx;
  88. }
  89. .btn_back{
  90. width: 410rpx;
  91. height: 80rpx;
  92. margin-top: 96rpx;
  93. line-height: 80rpx;
  94. background: #f07423;
  95. font-size: 28rpx;
  96. font-family: Verdana, Verdana-Bold;
  97. font-weight: 700;
  98. text-align: center;
  99. color: #ffffff;
  100. border-radius: 40rpx;
  101. box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(240,116,35,0.37);
  102. }
  103. .renzheng_img{
  104. width: 622rpx;
  105. height: 302rpx;
  106. margin-top: 117rpx;
  107. }
  108. }
  109. }
  110. </style>