password.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <!--#include file="inc/header.html"-->
  2. <script type="text/javascript">
  3. $(function(){
  4. $(".password-update-btn").off().on("click",function(){
  5. var validate=$(".change-pwd-form").form("validate");
  6. if(!validate){
  7. $.messager.alert('提示', base.tooltip, 'info');
  8. return false;
  9. }
  10. var data = $('.change-pwd-form').serializeArray();
  11. base.ajaxFunc('post', config.updatePwd, data, function(e) {
  12. //请求成功后的提示
  13. $(".change-pwd-form").form('clear');
  14. // base.requestTip(e, '#changePwd', '', 0);
  15. if (e.code === 0) {
  16. $.messager.alert('提示', e.msg, 'info');
  17. $("#wSelector").window('close');
  18. window.location.href="/sys/logout";
  19. } else {
  20. $.messager.alert('警告', e.msg, 'error');
  21. }
  22. });
  23. });
  24. });
  25. </script>
  26. <style type="text/css">
  27. .window{
  28. background-color: #0F6136;
  29. }
  30. .window, .window .window-body {
  31. border-color: #165634;
  32. }
  33. .combo-arrow {
  34. background-color: #A3CEB7;
  35. }
  36. .window .window-header .panel-tool {
  37. right: 1px;
  38. background: #B8D8A5;
  39. }
  40. .hide{
  41. display: none;
  42. }
  43. #changePwd{
  44. width: 1200px;
  45. margin: 0 auto;
  46. padding: 20px;
  47. margin-top: 10px;
  48. border: 1px solid rgba(56, 128, 90, 0.14);
  49. min-height: 400px;
  50. }
  51. #changePwd .item-line{
  52. width: 650px;
  53. display: inline-block;
  54. margin-bottom: 5px;
  55. }
  56. #changePwd .item-line-t{
  57. width: 100px;
  58. display: inline-block;
  59. margin-bottom: 5px;
  60. }
  61. #changePwd .item-line-v{
  62. width: 250px;
  63. display: inline-block;
  64. margin-bottom: 5px;
  65. }
  66. #changePwd input{
  67. width: 200px;
  68. }
  69. </style>
  70. <div class="con-wrap">
  71. <div class="tree-breadcrumb">
  72. <span class="nav-prov">首页</span>&gt;
  73. <span class="nav-prov">个人设置</span>&gt;
  74. <span class="nav-city">修改密码</span>
  75. </div>
  76. <div id="changePwd" style="padding: 20px;" class="panel">
  77. <h2>修改密码</h2>
  78. <form class="change-pwd-form">
  79. <span class="item-line ">
  80. <span class="item-line-t">原密码:</span>
  81. <span class="item-line-v">
  82. <input type="password" class="easyui-textbox easyui-validatebox item-v oldpassword" data-options="validType:'length[6,12]',required:true" name="oldpassword" >
  83. </span>
  84. </span>
  85. <br />
  86. <span class="item-line">
  87. <span class="item-line-t">新密码:</span>
  88. <span class="item-line-v">
  89. <input type="password" class="easyui-textbox easyui-validatebox item-v password" data-options="validType:'length[6,12]',required:true" name="password">
  90. </span>
  91. </span>
  92. <br />
  93. <span class="item-line">
  94. <span class="item-line-t">确认新密码:</span>
  95. <span class="item-line-v">
  96. <input type="password" class="easyui-textbox easyui-validatebox item-v password2" data-options="validType:'length[6,12]',required:true" name="password2">
  97. </span>
  98. </span>
  99. <br />
  100. <a href="#" class="easyui-linkbutton bd-add-s password-update-btn" plain="true" style="margin-top: 20px;">确定</a>
  101. </form>
  102. </div>
  103. </div>
  104. <div class="bottom-wrap">&copy; 2018 中储粮-单仓档案管理系统 版权所有</div>
  105. </body>
  106. </html>