rz.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <div class="box">
  3. <image :src="datainfo.auth_code" alt="" />
  4. <div class="flex">
  5. <div>
  6. <span class="green" v-if="datainfo.auth_status.b2b == 1">已认证</span>
  7. <span class="red" v-else>未认证</span>
  8. </div>
  9. <div>
  10. <span class="green" v-if="datainfo.auth_status.scha == 1">已认证</span>
  11. <span class="red" v-else>未认证</span>
  12. </div>
  13. </div>
  14. <div class="button">
  15. <div class="tip">认证成功后点击下方“我已认证”按钮进行确认</div>
  16. <button class="btn" @click="getAuth(da)">我已认证</button>
  17. </div>
  18. </div>
  19. </template>
  20. <script>
  21. import { post } from "@/request/api.js";
  22. export default {
  23. props: {},
  24. components: {},
  25. data() {
  26. return {
  27. datainfo: {},
  28. da:""
  29. };
  30. },
  31. methods: {
  32. getAuth(da) {
  33. post("v1/lakala/getAuth", da).then((res) => {
  34. if (res.code == 0) {
  35. this.datainfo = res.data;
  36. }
  37. });
  38. },
  39. },
  40. onLoad(da) {
  41. this.da = da
  42. this.getAuth(da);
  43. },
  44. mounted() {},
  45. };
  46. </script>
  47. <style scoped lang='scss'>
  48. .box {
  49. width: 100vw;
  50. height: 100vh;
  51. box-sizing: border-box;
  52. padding: 26rpx 0;
  53. position: relative;
  54. background-color: #fff;
  55. image {
  56. width: 100%;
  57. padding: 0 26rpx;
  58. box-sizing: border-box;
  59. }
  60. .flex {
  61. display: flex;
  62. justify-content: space-between;
  63. align-items: center;
  64. padding-top: 30rpx;
  65. padding: 0 26rpx;
  66. div {
  67. width: 50%;
  68. font-size: 26rpx;
  69. text-align: center;
  70. .green {
  71. color: #17bb87;
  72. }
  73. .red {
  74. color: red;
  75. }
  76. }
  77. }
  78. .button {
  79. position: absolute;
  80. bottom: 26rpx;
  81. width: 100%;
  82. box-sizing: border-box;
  83. font-size: 26rpx;
  84. margin-bottom: 50rpx;
  85. .tip {
  86. margin-left: 40rpx;
  87. }
  88. .btn {
  89. color: #fff;
  90. font-size: 36rpx;
  91. text-align: center;
  92. height: 80rpx;
  93. line-height: 80rpx;
  94. border-radius: 45rpx;
  95. margin: 26rpx 26rpx 0;
  96. background: #17bb87;
  97. }
  98. }
  99. }
  100. </style>