index.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view class="cmain">
  3. <view v-if="item.id">
  4. <view v-if="item.judgeStatus == 0">
  5. <view class="icon">&#xe64d;</view>
  6. <view class="title">您的资料已经提交审核</view>
  7. <view class="desc">请耐心等待。</view>
  8. <button class="btn" @click="go()">重新编辑</button>
  9. </view>
  10. <view v-if="item.judgeStatus == 1">
  11. <view class="icon">&#xe631;</view>
  12. <view class="title">审核通过</view>
  13. <button class="btn" @click="go()">我的认证信息</button>
  14. </view>
  15. <view v-if="item.judgeStatus == 2">
  16. <view class="icon" style="color: #f44336">&#xe61a;</view>
  17. <view class="title">审核不通过</view>
  18. <view class="message _error">{{ item.judgeContent }}</view>
  19. <button class="btn" @click="go()">重新认证</button>
  20. </view>
  21. </view>
  22. <view v-else>
  23. <view class="icon">&#xe64e;</view>
  24. <view class="title">您还未进行认证</view>
  25. <button class="btn" @click="go()">去认证</button>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. data() {
  32. return {
  33. item: {}
  34. };
  35. },
  36. onLoad() {
  37. this.getData();
  38. uni.$on('authentication', res => {
  39. this.getData();
  40. });
  41. },
  42. methods: {
  43. getData() {
  44. this.http.request({
  45. url: '/level-two-server/app/TbPurchaser/info',
  46. success: res => {
  47. if (res.data.data) {
  48. this.item = res.data.data;
  49. }
  50. }
  51. });
  52. },
  53. go() {
  54. uni.navigateTo({
  55. url: '/pages/authentication/info'
  56. });
  57. }
  58. }
  59. };
  60. </script>
  61. <style lang="scss">
  62. .cmain {
  63. text-align: center;
  64. padding: 40px;
  65. color: $font-c;
  66. .icon {
  67. font-size: 150px;
  68. color: $main-color;
  69. }
  70. .title {
  71. margin-top: 10px;
  72. margin-bottom: 7px;
  73. }
  74. .message {
  75. margin-top: 15px;
  76. text-align: left;
  77. }
  78. .desc {
  79. margin-top: -5px;
  80. }
  81. .btn {
  82. margin-top: 30px;
  83. }
  84. }
  85. </style>