index.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <template>
  2. <view class="cmain">
  3. <view v-if="item.name">
  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('purchaserAuth', res => {
  39. this.$forceUpdate();
  40. this.getData();
  41. });
  42. },
  43. methods: {
  44. getData() {
  45. let param = {
  46. appUserId: this.getUser().id
  47. }
  48. this.http.request({
  49. url: '/level-two-server/app/TbPurchaser/auditStatus',
  50. data: param,
  51. success: res => {
  52. if (res.data.data) {
  53. this.item = res.data.data;
  54. }
  55. }
  56. });
  57. },
  58. go() {
  59. uni.navigateTo({
  60. url: '/pages/authentication/purchaser/info'
  61. });
  62. }
  63. }
  64. };
  65. </script>
  66. <style lang="scss">
  67. .cmain {
  68. text-align: center;
  69. padding: 40px;
  70. color: $font-c;
  71. .icon {
  72. font-size: 150px;
  73. color: $main-color;
  74. }
  75. .title {
  76. margin-top: 10px;
  77. margin-bottom: 7px;
  78. }
  79. .message {
  80. margin-top: 15px;
  81. text-align: left;
  82. }
  83. .desc {
  84. margin-top: -5px;
  85. }
  86. .btn {
  87. margin-top: 30px;
  88. }
  89. }
  90. </style>