RealAuthentication.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <template>
  2. <div class="vh100">
  3. <!-- 导航栏 -->
  4. <div class="nav-bar">
  5. <div class="back-btn" @click="$router.back()">
  6. <i class="arrow-left"></i>
  7. </div>
  8. <div class="title">实名认证</div>
  9. </div>
  10. <!-- 认证表单 -->
  11. <div class="flex bgwhite alcenter radius4 pl10 pt10 bdb_blue3">
  12. <div class="flex between h40 lh40 pr10 tr flex1">
  13. <span>证件认证</span>
  14. <span>身份证</span>
  15. </div>
  16. </div>
  17. <div class="flex bgwhite alcenter radius4 pl10 pt10 bdb_blue3">
  18. <span>证件姓氏:</span>
  19. <input
  20. type="text"
  21. class="h40 lh40 pr10 tr flex1 input-uni"
  22. placeholder="姓名"
  23. v-model="formData.realName"
  24. >
  25. </div>
  26. <div class="flex bgwhite alcenter radius4 pl10 mt10 bdb_blue3">
  27. <span>证件号码:</span>
  28. <input
  29. type="text"
  30. class="h40 lh40 pr10 tr flex1 input-uni"
  31. placeholder="输入证件号码"
  32. v-model="formData.idCard"
  33. >
  34. </div>
  35. <div
  36. class="mt30 h40 lh40 tc white bgBlue radius28 ft14 w90 mauto"
  37. @click="handleSubmit"
  38. >
  39. 确 认
  40. </div>
  41. <div class="flex alcenter mt10">
  42. <div class="bottom">
  43. <ul>
  44. <li style="height: 45px;">为保证您的权益请认真查看以下条例,如有疑问请及时联系在线客服</li>
  45. <li>身份证件拍摄不完整有反光</li>
  46. <li>提交信息和身份证件不一致</li>
  47. <li style="height: 45px;">为了您的信息安全审核期间由AI机器人全程负责我们无法干预</li>
  48. <li style="height: 45px;">使用虚假信息的用户我们将采取相应措施,包含且不限于封号、冻结资产、限制登录等</li>
  49. </ul>
  50. </div>
  51. </div>
  52. </div>
  53. </template>
  54. <script>
  55. export default {
  56. name: 'RealAuthentication',
  57. data() {
  58. return {
  59. formData: {
  60. realName: '',
  61. idCard: ''
  62. }
  63. }
  64. },
  65. methods: {
  66. async handleSubmit() {
  67. if (!this.formData.realName) {
  68. alert('请输入姓名');
  69. return;
  70. }
  71. if (!this.formData.idCard) {
  72. alert('请输入证件号码');
  73. return;
  74. }
  75. // TODO: 实现实名认证提交逻辑
  76. alert('认证信息提交成功');
  77. this.$router.back();
  78. }
  79. }
  80. }
  81. </script>
  82. <style scoped>
  83. .vh100 {
  84. min-height: 100vh;
  85. background: #fff;
  86. }
  87. .nav-bar {
  88. height: 44px;
  89. background-color: #ed4b39;
  90. color: #fff;
  91. display: flex;
  92. align-items: center;
  93. position: relative;
  94. padding: 0 15px;
  95. }
  96. .back-btn {
  97. width: 24px;
  98. height: 44px;
  99. display: flex;
  100. align-items: center;
  101. cursor: pointer;
  102. }
  103. .arrow-left {
  104. width: 12px;
  105. height: 12px;
  106. border-left: 2px solid #fff;
  107. border-bottom: 2px solid #fff;
  108. transform: rotate(45deg);
  109. }
  110. .title {
  111. position: absolute;
  112. left: 50%;
  113. transform: translateX(-50%);
  114. font-size: 16px;
  115. font-weight: 500;
  116. }
  117. .flex { display: flex; }
  118. .between { justify-content: space-between; }
  119. .alcenter { align-items: center; }
  120. .tc { text-align: center; }
  121. .tr { text-align: right; }
  122. .mt10 { margin-top: 10px; }
  123. .mt30 { margin-top: 30px; }
  124. .pl10 { padding-left: 10px; }
  125. .pr10 { padding-right: 10px; }
  126. .pt10 { padding-top: 10px; }
  127. .h40 { height: 40px; }
  128. .lh40 { line-height: 40px; }
  129. .ft14 { font-size: 14px; }
  130. .white { color: #fff; }
  131. .bgwhite { background: #fff; }
  132. .flex1 { flex: 1; }
  133. .w90 { width: 90%; }
  134. .mauto { margin: 0 auto; }
  135. .radius4 { border-radius: 4px; }
  136. .radius28 { border-radius: 28px; }
  137. .bgBlue {
  138. margin-top: 20px;
  139. background: #ed4b39;
  140. cursor: pointer;
  141. }
  142. .bgBlue:active {
  143. opacity: 0.9;
  144. }
  145. .bdb_blue3 {
  146. border-bottom: 1px solid rgba(85, 89, 105, 0.12);
  147. }
  148. .input-uni {
  149. border: none;
  150. outline: none;
  151. background: transparent;
  152. }
  153. .bottom {
  154. padding: 0 20px;
  155. width: 100%;
  156. }
  157. .bottom ul {
  158. list-style: none;
  159. padding: 0;
  160. margin: 0;
  161. }
  162. .bottom li {
  163. color: #666;
  164. font-size: 12px;
  165. line-height: 1.5;
  166. margin-bottom: 10px;
  167. padding-left: 15px;
  168. position: relative;
  169. }
  170. .bottom li::before {
  171. content: '';
  172. position: absolute;
  173. left: 0;
  174. top: 8px;
  175. width: 4px;
  176. height: 4px;
  177. background: #666;
  178. border-radius: 50%;
  179. }
  180. </style>