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.
 
 
 
 

79 lines
3.3 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8" name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
  5. <title>修改密码 - 用户中心 - {$kx.config.sitename}</title>
  6. <link rel="stylesheet" href="{$kx.config.resurl}/template/kxmobileno1/css/global.css"/>
  7. <script src="{$kx.config.resurl}/template/kxmobileno1/js/flexible.min.js"></script>
  8. <style>
  9. select {
  10. border: none;
  11. -webkit-appearance: none;
  12. -webkit-tap-highlight-color: #fff;
  13. outline: 0;
  14. padding: 0 .1rem;
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <form method="post">
  20. <div class="w100 vh100">
  21. <div class="w100 bg-white flex-wrp flex-align-center flex-between lh100 plr15 ptb15">
  22. <img src="{$kx.config.resurl}/template/kxmobileno1/images/return.png" class="pt-return">
  23. <div class="size18 bold color37">修改密码</div>
  24. <button type="submit" style="background:none;">保存</button>
  25. </div>
  26. <div class="bg-white mt10">
  27. <div class="flex-wrp flex-align-center flex-between plr15 ptb15 border-b">
  28. <span class="size14 color7">原始密码</span>
  29. <input class="size14 color4 text-right" type="password" name="old_pwd" placeholder="第三方登录用户请留空">
  30. </div>
  31. <div class="flex-wrp flex-align-center flex-between plr15 ptb15 border-b">
  32. <span class="size14 color7">新密码</span>
  33. <input class="size14 color4 text-right" type="password" name="new_pwd">
  34. </div>
  35. <div class="flex-wrp flex-align-center flex-between plr15 ptb15 border-b">
  36. <span class="size14 color7">重复密码</span>
  37. <input class="size14 color4 text-right" type="password" id="repeat_pwd">
  38. </div>
  39. </div>
  40. </div>
  41. </form><!-- 底部版权 -->
  42. {include file="/system/footer"}
  43. <script src="{$kx.config.resurl}/template/kxmobileno1/js/layer/mobile/layer.js"></script>
  44. <script>
  45. $('.pt-return').click(function(){
  46. window.history.back();
  47. })
  48. $('form').submit(function(){
  49. if (!$(this).find('input[name=old_pwd]').val()){
  50. layer.open({
  51. content: '原始密码不能为空,请检查后重试!'
  52. ,skin: 'msg'
  53. ,time: 2
  54. });
  55. return false;
  56. }
  57. if (!$(this).find('input[name=new_pwd]').val()){
  58. layer.open({
  59. content: '新密码不能为空,请检查后重试!'
  60. ,skin: 'msg'
  61. ,time: 2
  62. });
  63. return false;
  64. }
  65. if ($(this).find('input[name=new_pwd]').val() != $(this).find('#repeat_pwd').val()){
  66. $(this).find('input[name=new_pwd]').val('');
  67. $(this).find('#repeat_pwd').val('');
  68. layer.open({
  69. content: '两次输入密码不一致,请检查后重试!'
  70. ,skin: 'msg'
  71. ,time: 2
  72. });
  73. return false;
  74. }
  75. return true;
  76. });
  77. </script>
  78. </body>
  79. </html>