Ei kuvausta
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_mobile.htm 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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="{$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="新密码"/>
  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="确认新密码"/>
  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) check_submit();
  49. });
  50. function check_submit()
  51. {
  52. var password = $('#theForm input[name=password]').val();
  53. var password_ = $('#theForm input[name=password_]').val();
  54. if(password == ''){
  55. layer.msg('新密码不能为空!', {time: 1000});
  56. $('#theForm input[name=password]').focus();
  57. return false;
  58. }
  59. if(password_ == ''){
  60. layer.msg('确认密码不能为空!', {time: 1000});
  61. $('#theForm input[name=password_]').focus();
  62. return false;
  63. }
  64. {$pwdJsCode|default=''}
  65. if(password != password_){
  66. layer.msg('两次密码不一致!', {time: 1000});
  67. $('#theForm input[name=password]').focus();
  68. return false;
  69. }
  70. layer_loading('正在处理');
  71. $.ajax({
  72. url: "{eyou:url link='user/Users/reset_password_mobile' /}",
  73. data: $('#theForm').serialize(),
  74. type:'post',
  75. dataType:'json',
  76. success:function(res){
  77. layer.closeAll();
  78. if (res.code == 1) {
  79. layer.msg(res.msg, {time: 1500}, function(){
  80. window.location.href = res.url;
  81. });
  82. } else {
  83. layer.msg(res.msg, {time: 2000, icon: 5});
  84. }
  85. },
  86. error : function(e) {
  87. layer.closeAll();
  88. showErrorAlert(e.responseText);
  89. }
  90. });
  91. };
  92. </script>
  93. </body>
  94. </html>