selfcycle.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <template>
  2. <div class="self">
  3. <div class="enter-both">
  4. <div class="enter-title">
  5. <h4>
  6. <router-link to="/myself"><i class="iconfont icon-fanhui"></i></router-link>
  7. <span>个人认证</span>
  8. </h4>
  9. </div>
  10. <div class="both">
  11. <div class="content">
  12. <div class="part" v-for="item,key in list" v-show="seen">
  13. <span>{{item.name}}</span>
  14. <input type="text" :placeholder="'请输入'+item.content" @blur="canonical(key)">
  15. <span>{{objectT[key]}}</span>
  16. </div>
  17. <div class="validation" v-show="seen">
  18. <span>验证码</span>
  19. <input type="text" placeholder="请输入验证码">
  20. <span @click="getnumber()">获取验证码</span>
  21. </div>
  22. <div class="success" v-show="!seen">
  23. <div class="picture">
  24. <div></div>
  25. </div>
  26. <p>
  27. {{name}} <br>
  28. {{phone}}
  29. </p>
  30. </div>
  31. </div>
  32. </div>
  33. <div class="button" v-show="seen" @click="verify()">提交</div>
  34. </div>
  35. </div>
  36. </div>
  37. </template>
  38. <script>
  39. export default{
  40. data(){
  41. return{
  42. objectT:{},
  43. seen:true,
  44. phone:'',
  45. name:'',
  46. first:'',
  47. last:'',
  48. place:"1********",
  49. center:'',
  50. input:'',
  51. regular:'',
  52. innertext:[],
  53. list:[
  54. {
  55. name:'姓名',
  56. content:'真实姓名',
  57. },
  58. {
  59. name:'身份证号',
  60. content:'身份证号码',
  61. },
  62. {
  63. name:'银行卡号',
  64. content:'银行卡号码',
  65. },
  66. {
  67. name:'预留手机',
  68. content:'银行预留手机号码',
  69. }
  70. ]
  71. }
  72. },
  73. watch:{
  74. value:function(){
  75. this. canonical();
  76. }
  77. },
  78. mounted(){
  79. this.canonical();
  80. },
  81. methods:{
  82. verify(){
  83. this.seen=false;
  84. this.name=document.getElementsByTagName("input")[0].value;
  85. this.center=document.getElementsByTagName("input")[3].value;
  86. this.last=this.center.split("")[10];
  87. this.phone=this.phone.concat(this.place,this.last);
  88. },
  89. canonical(e){
  90. console.log(e)//索引值
  91. let ObjectX = ['','','',''];
  92. for(let i in ObjectX){
  93. console.log(ObjectX[i]);
  94. }
  95. }
  96. }
  97. }
  98. </script>
  99. <style scoped>
  100. .self{
  101. .enter-both{
  102. width: 100%;
  103. .enter-title{
  104. height: 3.041667rem;
  105. background: #60c0ff;
  106. width: 100%;
  107. h4{
  108. text-align: center;
  109. color: #fff;
  110. font-size: 0.472222rem;
  111. padding: 0.541667rem 0;
  112. position: relative;
  113. .icon-fanhui{
  114. float: left;
  115. margin-left: 0.513889rem;
  116. color: #fff !important;
  117. }
  118. span{
  119. margin-left: -0.513889rem;
  120. }
  121. }
  122. }
  123. .both{
  124. width: 100%;
  125. padding: 0 0.3rem;
  126. .content{
  127. float: left;
  128. margin-top: -1.1111rem;
  129. width: 100%;
  130. background-color: #fff;
  131. border-radius: 10px;
  132. margin-bottom: 1.388889rem;
  133. box-shadow: 0px 3px 21px 5px rgba(96, 192, 255, 0.35);
  134. padding: 0 0.291667rem;
  135. .part{
  136. width: 100%;
  137. padding-left: 0.305556rem;
  138. border-bottom: 1px solid #e8eff5;
  139. span{
  140. display: inline-block;
  141. font-size: 0.388889rem;
  142. color: #333333;
  143. padding: 0.430556rem 0;
  144. margin-right: 0.5rem;
  145. width: 1.6rem;
  146. text-align: left;
  147. }
  148. input{
  149. border: 0;
  150. width: 3.8rem;
  151. }
  152. }
  153. .part:nth-of-type(4){
  154. border: 0;
  155. }
  156. .validation{
  157. width: 100%;
  158. padding-left: 0.305556rem;
  159. span{
  160. display: inline-block;
  161. font-size: 0.388889rem;
  162. color: #333333;
  163. padding: 0.430556rem 0;
  164. margin-right: 0.5rem;
  165. width: 1.6rem;
  166. text-align: left;
  167. }
  168. input{
  169. border: 0;
  170. }
  171. span:nth-of-type(2){
  172. padding: 0;
  173. margin: 0;
  174. width: 2.377778rem;
  175. height: 0.944444rem;
  176. line-height: 0.944444rem;
  177. text-align:center;
  178. font-size: 0.316667rem;
  179. border: 1px solid #60c0ff;
  180. border-radius: 34px;
  181. color: #60c0ff;
  182. }
  183. }
  184. .success{
  185. width: 100%;
  186. height: 14.722222rem;
  187. position: relative;
  188. padding-top: 3.916667rem;
  189. .picture{
  190. width: 2.777778rem;
  191. height: 2.777778rem;
  192. border-radius: 50%;
  193. background:url("../assets/img/drawable-mdpi/userimg.png");
  194. background-size: cover;
  195. margin: 0 auto;
  196. text-align: center;
  197. div{
  198. width: 1.152778rem;
  199. height: 1.402778rem;
  200. border-radius: 24% 24% 24% 100%;
  201. background-image: url("../assets/img/drawable-mdpi/self.png");
  202. background-position: -1.35rem -1.35rem;
  203. background: cover;
  204. float: left;
  205. margin-left: 2rem;
  206. margin-top: 2rem;
  207. }
  208. }
  209. p{
  210. clear: both;
  211. font-size: 0.5rem;
  212. line-height: 0.8rem;
  213. color: #1491e2;
  214. text-align: center;
  215. }
  216. }
  217. }
  218. }
  219. .button{
  220. clear: both;
  221. width: 9.166667rem;
  222. height: 1.111111rem;
  223. margin-left: 0.4rem;
  224. background-color: #60c0ff;
  225. box-shadow: 0px 3px 21px 5px rgba(96, 192, 255, 0.35);
  226. border-radius: 40px;
  227. line-height: 1.111111rem;
  228. color: #ffffff;
  229. text-align: center;
  230. }
  231. }
  232. }
  233. </style>