phone1.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. {extend name="layout:home" /}
  2. {block name="container"}
  3. <style>
  4. .yanzheng{
  5. margin:0px auto;
  6. height: 100px;
  7. width: 600px;
  8. }
  9. ul{
  10. margin:50px auto;
  11. width: 536px;
  12. /*border: 1px red solid;*/
  13. text-align: center;
  14. position: relative;
  15. }
  16. ul li{
  17. /*border: 1px #aaa solid;*/
  18. border-radius: 2px;
  19. height: 30px;
  20. width: 30px;
  21. line-height:30px ;
  22. float: left;
  23. margin-left: 220px;
  24. }
  25. li .num{
  26. border: 1px #aaa solid;
  27. height: 30px;
  28. width: 30px;
  29. line-height:30px ;
  30. text-align: center;
  31. border-radius: 100%;
  32. background-color: white;
  33. }
  34. li .tishi{
  35. width: 100px;
  36. text-align: center;
  37. /*border: 1px #aaa solid;*/
  38. margin-left: -35px;
  39. color: dodgerblue;
  40. }
  41. table{
  42. margin:0 auto;
  43. font-size: 13px;
  44. }
  45. /*.accountinfo_title table{*/
  46. /*margin-left: 150px;*/
  47. /*}*/
  48. table td{
  49. width: 100px;
  50. height: 60px;
  51. line-height: 60px;
  52. }
  53. table input{
  54. border: 1px #aaa solid;
  55. border-radius: 2px;
  56. height: 30px;
  57. width: 220px;
  58. line-height:30px ;
  59. }
  60. </style>
  61. <div class="layui-tab layui-tab-card">
  62. <div class="updatepwd">
  63. <form method="post">
  64. <div class="yanzheng">
  65. <ul>
  66. <div style="border: 1px #aaa solid; width: 530px;margin-top: 15px;position: absolute;z-index: -1;" ></div>
  67. <li style="margin-left: 0px;">
  68. <div class="num">1</div>
  69. <div class="tishi">身份验证</div>
  70. </li>
  71. <li>
  72. <div class="num">2</div>
  73. <div class="tishi">新电话号码验证</div>
  74. </li>
  75. <li>
  76. <div class="num">3</div>
  77. <div class="tishi">下一步</div>
  78. </li>
  79. </ul>
  80. </div>
  81. <div style="height: 280px;">
  82. <table>
  83. <tr>
  84. <td class="td_info">您的电话号码</td>
  85. <td style="position: relative;">+ (86)&nbsp&nbsp{$user['user_phone']}<input type="button" value="获取验证码" style="width: 80px;accept:right;position: absolute;right: 0px;top:15px;"></td>
  86. </tr>
  87. <tr>
  88. <td class="td_info">输入验证码</td>
  89. <td class="td_user_info"><input type="text" name="captcha" id="captcha" placeholder="请输入验证码"></td>
  90. </tr>
  91. <tr>
  92. <td class="td_info"></td>
  93. <td class="next">
  94. <input type="button" value="下一步" style="width: 70px;border-color: dodgerblue;color: dodgerblue;background-color: white;">
  95. <input type="button" id="btn" value="取消" style="width: 70px;border-color: dodgerblue;color: dodgerblue;background-color: white;margin-left: 30px;">
  96. </td>
  97. </tr>
  98. </table>
  99. </div>
  100. </form>
  101. </div>
  102. </div>
  103. <script>
  104. $("#btn").click(function(){
  105. window.history.back(-1);
  106. });
  107. //密码 校验
  108. $("#new_password").blur(function(){
  109. var password = document.getElementById("new_password").value;
  110. var patrn=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,20}$/;
  111. if (!patrn.exec(password)){
  112. document.getElementById("new_password").style.borderColor = "red";
  113. document.getElementById("layui-btn").type = "button";
  114. }else{
  115. document.getElementById("new_password").style.borderColor = "#e6e6e6";
  116. if(document.getElementById("confirm_password").style.borderColor != "red"){
  117. document.getElementById("layui-btn").type = "submit";
  118. }
  119. }
  120. });
  121. $("#confirm_password").blur(function(){
  122. var password = document.getElementById("confirm_password").value;
  123. var patrn=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,20}$/;
  124. if (!patrn.exec(password)){
  125. document.getElementById("confirm_password").style.borderColor = "red";
  126. document.getElementById("layui-btn").type = "button";
  127. }else{
  128. document.getElementById("confirm_password").style.borderColor = "#e6e6e6";
  129. if(document.getElementById("new_password").style.borderColor != "red"){
  130. document.getElementById("layui-btn").type = "submit";
  131. }
  132. }
  133. });
  134. </script>
  135. <script type="text/javascript">
  136. layui.use('laydate', function(){
  137. var laydate = layui.laydate;
  138. //执行一个laydate实例
  139. laydate.render({
  140. elem: '#creatTime' //指定元素
  141. });
  142. laydate.render({
  143. elem:'#timeRang',
  144. range:true,
  145. format: 'yyyy/MM/dd',
  146. done: function(value, date){
  147. /* 时间选择完成后的回调 */
  148. }
  149. })
  150. });
  151. </script>
  152. {/block}