certificationResultPage.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. wx.hideMenuItems({
  56. menuList: ['menuItem:share:qq','menuItem:share:QZone','menuItem:favorite','menuItem:originPage','menuItem:copyUrl','menuItem:openWithSafari','menuItem:openWithQQBrowser'] // 要隐藏的菜单项,只能隐藏“传播类”和“保护类”按钮,所有menu项见附录3
  57. });
  58. },
  59. toHome(){
  60. uni.$emit('request');
  61. uni.navigateBack({
  62. delta:1
  63. })
  64. }
  65. }
  66. }
  67. </script>
  68. <style lang="scss">
  69. .renzheng_body{
  70. width: 100%;
  71. height: 100%;
  72. .renzheng{
  73. display: flex;
  74. flex-direction: column;
  75. justify-content: center;
  76. align-items: center;
  77. padding-top: 240rpx;
  78. .renzheng_title{
  79. font-size: 40rpx;
  80. font-family: Verdana, Verdana-Bold;
  81. font-weight: 700;
  82. text-align: center;
  83. color: #333333;
  84. }
  85. .renzheng_desc{
  86. font-size: 32rpx;
  87. font-family: Verdana, Verdana-Regular;
  88. font-weight: 400;
  89. text-align: center;
  90. color: #6a6a6a;
  91. margin-top: 40rpx;
  92. }
  93. .btn_back{
  94. width: 410rpx;
  95. height: 80rpx;
  96. margin-top: 96rpx;
  97. line-height: 80rpx;
  98. background: #f07423;
  99. font-size: 28rpx;
  100. font-family: Verdana, Verdana-Bold;
  101. font-weight: 700;
  102. text-align: center;
  103. color: #ffffff;
  104. border-radius: 40rpx;
  105. box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(240,116,35,0.37);
  106. }
  107. .renzheng_img{
  108. width: 622rpx;
  109. height: 302rpx;
  110. margin-top: 117rpx;
  111. }
  112. }
  113. }
  114. </style>