identityInfo.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view class="page">
  3. <uni-Cell :celllist="celllist" :leftStyle="{fontSize:'30rpx'}">
  4. <template #customContent="{ item }">
  5. <view class="dis a-c j-c" v-if="item.title=='实名认证状态'">
  6. <text>{{dataInfo.name}}</text>
  7. <view class="authtag">
  8. {{userInfo.sysUser.authStatus==0?'未认证':userInfo.sysUser.authStatus==1?'已认证':'认证驳回'}}
  9. </view>
  10. </view>
  11. </template>
  12. </uni-Cell>
  13. </view>
  14. </template>
  15. <script>
  16. import {
  17. mapState,
  18. mapMutations
  19. } from "vuex"
  20. export default {
  21. data() {
  22. return {
  23. dataInfo: {},
  24. }
  25. },
  26. onShow() {
  27. },
  28. async onLoad() {
  29. await this.authenticateInfoQuery();
  30. },
  31. computed: {
  32. ...mapState(['userInfo']),
  33. celllist() {
  34. return [{
  35. title: "实名认证状态",
  36. url: "/pages/set/set",
  37. rightIcon: false,
  38. useSlot: true,
  39. },
  40. {
  41. title: "姓名",
  42. url: "/pages/quote/quoteInfo",
  43. value: this.dataInfo.name,
  44. rightIcon: false,
  45. },
  46. {
  47. title: "身份证号",
  48. rightIcon: false,
  49. value: this.dataInfo.identity,
  50. }, {
  51. title: "手机号",
  52. value: this.dataInfo.mobile,
  53. rightIcon: false,
  54. },
  55. {
  56. title: "证件照片",
  57. url: "/pages/my/idPhoto?list=" + encodeURIComponent(JSON.stringify(this.dataInfo
  58. .fileList)),
  59. clickType: 'navigate',
  60. },
  61. {
  62. title: "展业资格证",
  63. url: "/pages/my/businessLicense?list=" + encodeURIComponent(JSON.stringify(this.dataInfo
  64. .fileList)),
  65. clickType: 'navigate',
  66. }
  67. ]
  68. }
  69. },
  70. methods: {
  71. //认证信息查询
  72. async authenticateInfoQuery() {
  73. let res = await this.$http.get('/appUser/authInfoGet?id=' + this.userInfo.sysUser.id)
  74. if (res.code == 200) {
  75. this.dataInfo = res.data;
  76. }
  77. }
  78. }
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. .page {
  83. background-color: #F8F8F8;
  84. height: 100vh;
  85. }
  86. //身份标签
  87. .authtag {
  88. padding: 2rpx 8rpx;
  89. box-sizing: border-box;
  90. background: linear-gradient(270deg, #FDE935 0%, #F1FF91 100%);
  91. border-radius: 4rpx 4rpx 4rpx 4rpx;
  92. font-size: 22rpx;
  93. color: #333;
  94. margin-left: 16rpx;
  95. }
  96. </style>