Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

reset_password.htm 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>重置密码-{eyou:global name='web_name' /}</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
  9. <link href="{eyou:global name='web_cmspath' /}/favicon.ico" rel="shortcut icon" type="image/x-icon" />
  10. {eyou:static file="users/skin/css/basic.css" /}
  11. {eyou:static file="users/skin/css/eyoucms.css" /}
  12. {eyou:include file="users/skin/css/diy_css.htm" /}
  13. {eyou:static file="/public/static/common/js/jquery.min.js"/}
  14. {eyou:static file="/public/plugins/layer-v3.1.0/layer.js"/}
  15. {eyou:static file="users/skin/js/global.js" /}
  16. </head>
  17. <body class="reg">
  18. <div class="register_index ey-member">
  19. <div class="container">
  20. <form name='theForm' id="theForm" class="form-register panel-body fv-form">
  21. <div class="mip-reg-logo"><a href="{eyou:global name='web_cmsurl' /}" class="ey-logo"><img src="{eyou:global name='web_logo'/}" /></a></div>
  22. <div class="mip-reg-heading"><a class="nav-item " href="javascript:void(0)" style="cursor: unset;">重置密码</a></div>
  23. <div class="form-group group_z">
  24. <input type="text" class="form-control" value="{$users.username|default=''}" disabled="true"/>
  25. </div>
  26. <div class="form-group group_z">
  27. <input type="password" name="password" id="password" class="form-control" placeholder="新密码"/>
  28. </div>
  29. <div class="form-group group_z">
  30. <input type="password" name="password_" id="password_" class="form-control" placeholder="确认新密码"/>
  31. </div>
  32. <button class="btn btn-lg btn-primary btn-block group_z" style="width: 100%;" onclick="check_submit();" type="button">确认提交</button>
  33. </form>
  34. </div>
  35. </div>
  36. <script type="text/javascript">
  37. $(document).keydown(function(event){
  38. if(event.keyCode ==13){
  39. check_submit();
  40. }
  41. });
  42. function check_submit()
  43. {
  44. var password = $('#theForm input[name=password]').val();
  45. var password_ = $('#theForm input[name=password_]').val();
  46. if(password == ''){
  47. layer.msg('新密码不能为空!', {time: 1000});
  48. $('#theForm input[name=password]').focus();
  49. return false;
  50. }
  51. if(password_ == ''){
  52. layer.msg('确认密码不能为空!', {time: 1000});
  53. $('#theForm input[name=password_]').focus();
  54. return false;
  55. }
  56. {$pwdJsCode|default=''}
  57. if(password != password_){
  58. layer.msg('两次密码不一致!', {time: 1000});
  59. $('#theForm input[name=password]').focus();
  60. return false;
  61. }
  62. layer_loading('正在处理');
  63. $.ajax({
  64. // async:false,
  65. url: "{eyou:url link='user/Users/reset_password' /}",
  66. data: $('#theForm').serialize(),
  67. type:'post',
  68. dataType:'json',
  69. success:function(res){
  70. layer.closeAll();
  71. if (res.code == 1) {
  72. layer.msg(res.msg, {time: 1500}, function(){
  73. window.location.href = res.url;
  74. });
  75. } else {
  76. layer.msg(res.msg, {time: 2000, icon: 5});
  77. }
  78. },
  79. error : function(e) {
  80. layer.closeAll();
  81. showErrorAlert(e.responseText);
  82. }
  83. });
  84. };
  85. </script>
  86. </body>
  87. </html>