Detail.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <style lang="scss">
  2. .detail{
  3. display: flex;
  4. justify-content: space-between;
  5. margin-top: 20px;
  6. ul{
  7. width: 32%;
  8. background: #fff;
  9. padding: 15px;
  10. box-shadow:0px 4px 12px 0px rgba(0,0,0,0.12);
  11. li{
  12. list-style: none;
  13. color: #666;
  14. margin: 10px 0;
  15. font-size: 14px;
  16. border-bottom: 1px solid #d9d9d9;
  17. padding: 15px 0;
  18. &:last-child{
  19. border:none;
  20. }
  21. span{
  22. float: right;
  23. color: #222;
  24. }
  25. }
  26. .status{
  27. span{
  28. position: relative;
  29. top: -10px;
  30. }
  31. }
  32. .title{
  33. font-weight: 600;
  34. span{
  35. color:#fff;
  36. }
  37. }
  38. }
  39. div{
  40. width: 67%;
  41. display: flex;
  42. justify-content: space-between;
  43. flex-wrap: wrap;
  44. ul{
  45. width: 49%;
  46. height: 300px;
  47. margin-bottom: 15px;
  48. overflow: hidden;
  49. img{
  50. max-height: 200px;
  51. }
  52. }
  53. }
  54. }
  55. </style>
  56. <template>
  57. <section class="edit">
  58. <p>实名认证列表 > 认证详情 </p>
  59. <div class="detail">
  60. <ul>
  61. <li class="title">认证信息 <el-tag size="mini" effect="dark">证</el-tag></li>
  62. <li>
  63. 姓名 <span>{{form.name}}</span>
  64. </li>
  65. <li>
  66. 性别 <span>{{form.sex}}</span>
  67. </li>
  68. <li>
  69. 身份证号 <span>{{form.idno}}</span>
  70. </li>
  71. <li>
  72. 手机号 <span>{{form.phone}}</span>
  73. </li>
  74. <li>
  75. 学历 <span>{{form.education}}</span>
  76. </li>
  77. <li>
  78. 单位名称 <span>{{form.company}}</span>
  79. </li>
  80. <li class="status">
  81. 状态 <el-tag type="success">已通过</el-tag>
  82. </li>
  83. </ul>
  84. <div>
  85. <ul>
  86. <li class="title">身份证正面照</li>
  87. <img width="100%" :src="form.idnoimg_face" alt="">
  88. </ul>
  89. <ul>
  90. <li class="title">身份证反面照</li>
  91. <img width="100%" :src="form.idnoimg_back" alt="">
  92. </ul>
  93. <ul>
  94. <li class="title">半身照</li>
  95. <img width="100%" :src="form.halfbody_img" alt="">
  96. </ul>
  97. <ul>
  98. <li class="title">学历照</li>
  99. <img width="100%" :src="form.education_img" alt="">
  100. </ul>
  101. </div>
  102. </div>
  103. </section>
  104. </template>
  105. <script>
  106. export default {
  107. data(){
  108. return{
  109. form:{},
  110. radios:1,
  111. id:'',
  112. edu:["小学", "初中", "高中", "大专", "本科","硕士","博士"]
  113. }
  114. },
  115. methods:{
  116. getData(){
  117. this.$api.getUser({id:this.id}).then(res=>{
  118. this.form=JSON.parse(res.data.data.userinfo);
  119. })
  120. },
  121. },
  122. created(){
  123. if(this.$route.query.id){
  124. this.id=this.$route.query.id
  125. this.getData()
  126. }
  127. }
  128. }
  129. </script>