certificationResultPage.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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.$emit('request');
  58. uni.navigateBack({
  59. delta:1
  60. })
  61. }
  62. }
  63. }
  64. </script>
  65. <style lang="scss">
  66. .renzheng_body{
  67. width: 100%;
  68. height: 100%;
  69. .renzheng{
  70. display: flex;
  71. flex-direction: column;
  72. justify-content: center;
  73. align-items: center;
  74. padding-top: 240rpx;
  75. .renzheng_title{
  76. font-size: 40rpx;
  77. font-family: Verdana, Verdana-Bold;
  78. font-weight: 700;
  79. text-align: center;
  80. color: #333333;
  81. }
  82. .renzheng_desc{
  83. font-size: 32rpx;
  84. font-family: Verdana, Verdana-Regular;
  85. font-weight: 400;
  86. text-align: center;
  87. color: #6a6a6a;
  88. margin-top: 40rpx;
  89. }
  90. .btn_back{
  91. width: 410rpx;
  92. height: 80rpx;
  93. margin-top: 96rpx;
  94. line-height: 80rpx;
  95. background: #f07423;
  96. font-size: 28rpx;
  97. font-family: Verdana, Verdana-Bold;
  98. font-weight: 700;
  99. text-align: center;
  100. color: #ffffff;
  101. border-radius: 40rpx;
  102. box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(240,116,35,0.37);
  103. }
  104. .renzheng_img{
  105. width: 622rpx;
  106. height: 302rpx;
  107. margin-top: 117rpx;
  108. }
  109. }
  110. }
  111. </style>