certificationResultPage.vue 2.4 KB

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