Нема описа
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

reset_password.htm 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. {eyou:static file="/public/static/common/js/mobile_global.js"/}
  17. </head>
  18. <body class="reg">
  19. <div class="register_index ey-member">
  20. <div class="container">
  21. <form name='theForm' id="theForm" class="form-register panel-body fv-form">
  22. <div class="mip-reg-logo"><a href="{eyou:global name='web_cmsurl' /}" class="ey-logo"><img src="{eyou:global name='web_logo'/}" /></a></div>
  23. <div class="mip-reg-heading">重置密码</div>
  24. <div class="form-group">
  25. <div class="input-group">
  26. <span class="input-group-addon" style="color: red;"><i class="fa fa-user"></i>&nbsp;</span>
  27. <input type="text" class="form-control" value="{$users.username|default=''}" disabled="true"/>
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <div class="input-group">
  32. <span class="input-group-addon" style="color: red;"><i class="fa fa-lock"></i>*</span>
  33. <input type="password" name="password" id="password" class="form-control" placeholder="新密码" autocomplete="off"/>
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <div class="input-group input-group-icon">
  38. <span class="input-group-addon" style="color: red;"><i class="fa fa-lock"></i>*</span>
  39. <input type="password" name="password_" id="password_" class="form-control" placeholder="确认新密码" autocomplete="off"/>
  40. </div>
  41. </div>
  42. <button class="btn btn-lg btn-primary btn-block" style="width: 100%;" onclick="check_submit();" type="button">确认提交</button>
  43. </form>
  44. </div>
  45. </div>
  46. <script type="text/javascript">
  47. $(document).keydown(function(event){
  48. if(event.keyCode ==13){
  49. check_submit();
  50. }
  51. });
  52. function check_submit()
  53. {
  54. var password = $('#theForm input[name=password]').val();
  55. var password_ = $('#theForm input[name=password_]').val();
  56. if(password == ''){
  57. layer.msg('新密码不能为空!', {time: 1000});
  58. $('#theForm input[name=password]').focus();
  59. return false;
  60. }
  61. if(password_ == ''){
  62. layer.msg('确认密码不能为空!', {time: 1000});
  63. $('#theForm input[name=password_]').focus();
  64. return false;
  65. }
  66. {$pwdJsCode|default=''}
  67. if(password != password_){
  68. layer.msg('两次密码不一致!', {time: 1000});
  69. $('#theForm input[name=password]').focus();
  70. return false;
  71. }
  72. layer_loading('正在处理');
  73. $.ajax({
  74. // async:false,
  75. url: "{eyou:url link='user/Users/reset_password' /}",
  76. data: $('#theForm').serialize(),
  77. type:'post',
  78. dataType:'json',
  79. success:function(res){
  80. layer.closeAll();
  81. if (res.code == 1) {
  82. layer.msg(res.msg, {time: 1500}, function(){
  83. window.location.href = res.url;
  84. });
  85. } else {
  86. layer.msg(res.msg, {time: 2000, icon: 5});
  87. }
  88. },
  89. error : function(e) {
  90. layer.closeAll();
  91. showErrorAlert(e.responseText);
  92. }
  93. });
  94. };
  95. </script>
  96. </body>
  97. </html>