changePwd.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <!DOCTYPE html>
  2. <html style="background-color: #f2f2f2; height: 100%">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>修改密码</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  10. <meta name="apple-mobile-web-app-capable" content="yes">
  11. <meta name="format-detection" content="telephone=no">
  12. <link rel="stylesheet" href="../layui/css/layui.css" media="all" />
  13. <link rel="stylesheet" href="../css/user.css" media="all" />
  14. <style>
  15. html body {
  16. height: 100%;
  17. }
  18. .flexBox {
  19. display: flex;
  20. align-items: center;
  21. height: 100%;
  22. }
  23. .layui-userInfo {
  24. height: 400px;
  25. width: 600px;
  26. margin: 0 auto;
  27. }
  28. </style>
  29. <script id="demo" type="text/html">
  30. <form class="layui-form" lay-filter="userInfo">
  31. <div class="layui-form-item">
  32. <label class="layui-form-label">账号:</label>
  33. <div class="layui-input-block">
  34. <div class="layui-form-mid layui-word-aux">{{d.name || ''}}</div>
  35. </div>
  36. </div>
  37. <div class="layui-form-item">
  38. <label class="layui-form-label">姓名:</label>
  39. <div class="layui-input-block">
  40. <div class="layui-form-mid layui-word-aux">{{d.realName || ''}}</div>
  41. </div>
  42. </div>
  43. <div class="layui-form-item" pane="">
  44. <label class="layui-form-label">性别:</label>
  45. <div class="layui-input-block">
  46. <div class="layui-form-mid layui-word-aux">{{d.sex || ''}}</div>
  47. </div>
  48. </div>
  49. <div class="layui-form-item">
  50. <label class="layui-form-label">区域:</label>
  51. <div class="layui-input-block">
  52. <div class="layui-form-mid layui-word-aux">{{d.areaName || ''}}</div>
  53. </div>
  54. </div>
  55. <div class="layui-form-item">
  56. <label class="layui-form-label">角色:</label>
  57. <div class="layui-input-block">
  58. <div class="layui-form-mid layui-word-aux">{{d.roleName || ''}}</div>
  59. </div>
  60. </div>
  61. <div class="layui-form-item">
  62. <label class="layui-form-label">手机号码:</label>
  63. <div class="layui-input-block">
  64. <div class="layui-form-mid layui-word-aux">{{d.phone || ''}}</div>
  65. </div>
  66. </div>
  67. </form>
  68. </script>
  69. </head>
  70. <body class="childrenBody">
  71. <div class="flexBox">
  72. <div class="layui-card layui-userInfo">
  73. <div class="layui-card-header">修改密码</div>
  74. <div class="layui-card-body" style="padding: 25px 30px 0 0">
  75. <form class="layui-form changePwd" lay-filter="changePwd">
  76. <div class="layui-form-item">
  77. <label class="layui-form-label">用户名</label>
  78. <div class="layui-input-block">
  79. <input name="guid" hidden="hidden">
  80. <input type="text" name="name" value="匿名用户" readonly class="layui-input layui-disabled">
  81. </div>
  82. </div>
  83. <div class="layui-form-item">
  84. <label class="layui-form-label">旧密码</label>
  85. <div class="layui-input-block">
  86. <input type="password" name="oldPasswd" value="" placeholder="请输入旧密码" lay-verify="required"
  87. class="layui-input pwd">
  88. </div>
  89. </div>
  90. <div class="layui-form-item">
  91. <label class="layui-form-label">新密码</label>
  92. <div class="layui-input-block">
  93. <input type="password" value="" name="passwd" placeholder="请输入新密码" lay-verify="required|newPwd"
  94. id="oldPwd" class="layui-input pwd">
  95. </div>
  96. </div>
  97. <div class="layui-form-item">
  98. <label class="layui-form-label">确认密码</label>
  99. <div class="layui-input-block">
  100. <input type="password" value="" placeholder="请确认密码" lay-verify="required|confirmPwd"
  101. class="layui-input pwd">
  102. </div>
  103. </div>
  104. <div class="layui-form-item">
  105. <div class="layui-input-block">
  106. <button class="layui-btn" lay-submit="" lay-filter="changePwdSub">立即修改</button>
  107. <!--<button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
  108. </div>
  109. </div>
  110. </form>
  111. </div>
  112. </div>
  113. </div>
  114. <script type="text/javascript">
  115. function loadJS(url) {
  116. document.write("<script src='" + url + "?ver=" + new Date().getTime() + "'><\/script>")
  117. }
  118. loadJS("../layui/layui.js");
  119. loadJS("../js/ajaxhook.min.js");
  120. loadJS("../js/config.js");
  121. loadJS("user.js");
  122. </script>
  123. </body>
  124. </html>