authStatusPage.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <template>
  2. <view class="page">
  3. <view class="areaView dis f-c a-c ">
  4. <!-- 认证状态图片 -->
  5. <image :src="resInfo.authStatus==1?'/static/image/my/auth-success.png':'/static/image/my/auth-error.png' "
  6. mode="">
  7. </image>
  8. <text class="mt-3">{{resInfo.authStatus==1?'实名认证已完成':'实名认证失败'}}</text>
  9. <text class="error" v-if="resInfo.authStatus!=1">{{resInfo.authResult}}</text>
  10. <view class="operation-btn dis" v-if="resInfo.authStatus==1">
  11. <view class="dis a-c j-c" @click="goToQuote">
  12. 去报价
  13. </view>
  14. <view class="dis a-c j-c" @click="submitData">
  15. 提交执业资料
  16. </view>
  17. </view>
  18. <view class="operation-btn" v-else>
  19. <view class="dis a-c j-c" @click="resubmit">
  20. 重新提交
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import {
  28. mapState,
  29. mapMutations
  30. } from "vuex"
  31. export default {
  32. data() {
  33. return {
  34. authStatus: false,
  35. resInfo: {},
  36. }
  37. },
  38. onShow() {
  39. },
  40. onLoad() {
  41. this.authenticateInfoQuery();
  42. },
  43. computed: {
  44. ...mapState(['userInfo']),
  45. },
  46. methods: {
  47. //跳转报价页面
  48. goToQuote() {
  49. uni.switchTab({
  50. url: '/pages/index/index'
  51. })
  52. },
  53. //提交资料
  54. submitData() {
  55. uni.navigateTo({
  56. url: '/pages/my/businessLicense'
  57. })
  58. },
  59. //认证驳回重新提交
  60. resubmit() {
  61. uni.navigateTo({
  62. url: '/pages/my/realNameAuth'
  63. })
  64. },
  65. //认证信息查询
  66. async authenticateInfoQuery() {
  67. let res = await this.$http.get('/appUser/authInfoGet?id=' + this.userInfo.sysUser.id)
  68. if (res.code == 200) {
  69. this.resInfo = res.data;
  70. }
  71. }
  72. }
  73. }
  74. </script>
  75. <style lang="scss" scoped>
  76. .areaView {
  77. padding: 45rpx;
  78. box-sizing: border-box;
  79. image {
  80. width: 90rpx;
  81. height: 90rpx;
  82. }
  83. text {
  84. font-size: 36rpx;
  85. color: #1f1f1f;
  86. font-weight: bold;
  87. }
  88. .error {
  89. font-size: 30rpx;
  90. color: #1f1f1f;
  91. font-weight: 400;
  92. text-align: center;
  93. margin-top: 10rpx;
  94. }
  95. .operation-btn {
  96. margin-top: 136rpx;
  97. width: 100%;
  98. view {
  99. width: 100%;
  100. padding: 20rpx 0;
  101. box-sizing: border-box;
  102. font-size: 30rpx;
  103. }
  104. :first-child {
  105. margin-right: 28rpx;
  106. background: rgba(253, 233, 53, 0.2);
  107. border-radius: 50rpx 50rpx 50rpx 50rpx;
  108. border: 1rpx solid #FDE935;
  109. font-weight: bold;
  110. color: #333;
  111. }
  112. :last-child {
  113. background: #FDE935;
  114. border-radius: 50rpx 50rpx 50rpx 50rpx;
  115. font-weight: bold;
  116. color: #1F1F1F;
  117. }
  118. }
  119. }
  120. </style>