certificationResultPage.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. <login-notice></login-notice>
  19. <login></login>
  20. </view>
  21. </template>
  22. <script>
  23. let app = getApp();
  24. export default {
  25. data() {
  26. return {
  27. approvalStatus:-1
  28. };
  29. },
  30. mounted() {
  31. this.getCertificationResult();
  32. uni.$on("request",()=>{
  33. this.getCertificationResult();
  34. })
  35. },
  36. methods:{
  37. async getCertificationResult(){
  38. let ret = await this.$myRequest({
  39. url: "/user/regist/get",
  40. data: {
  41. "userId": app.globalData.userId,
  42. },
  43. method:"GET"
  44. })
  45. if (ret.data.success) {
  46. this.approvalStatus = ret.data.single.approvalStatus;//:0待审核1通过2拒绝
  47. }
  48. },
  49. toHome(){
  50. uni.navigateBack({
  51. delta:1
  52. })
  53. }
  54. }
  55. }
  56. </script>
  57. <style lang="scss">
  58. .renzheng_body{
  59. width: 100%;
  60. height: 100%;
  61. .renzheng{
  62. display: flex;
  63. flex-direction: column;
  64. justify-content: center;
  65. align-items: center;
  66. padding-top: 240rpx;
  67. .renzheng_title{
  68. font-size: 40rpx;
  69. font-family: Verdana, Verdana-Bold;
  70. font-weight: 700;
  71. text-align: center;
  72. color: #333333;
  73. }
  74. .renzheng_desc{
  75. font-size: 32rpx;
  76. font-family: Verdana, Verdana-Regular;
  77. font-weight: 400;
  78. text-align: center;
  79. color: #6a6a6a;
  80. margin-top: 40rpx;
  81. }
  82. .btn_back{
  83. width: 410rpx;
  84. height: 80rpx;
  85. margin-top: 96rpx;
  86. line-height: 80rpx;
  87. background: #f07423;
  88. font-size: 28rpx;
  89. font-family: Verdana, Verdana-Bold;
  90. font-weight: 700;
  91. text-align: center;
  92. color: #ffffff;
  93. border-radius: 40rpx;
  94. box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(240,116,35,0.37);
  95. }
  96. .renzheng_img{
  97. width: 622rpx;
  98. height: 302rpx;
  99. margin-top: 117rpx;
  100. }
  101. }
  102. }
  103. </style>