username1.html 5.0 KB

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