123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title></title>
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <link href="css/mui.css" rel="stylesheet" />
- <script src="assets/js/jquery-3.1.0.js"></script>
- <script src="assets/js/jquery.base64.js"></script>
- <script src="CommonJS/Config_JS/Config_Load.js"></script>
- <script src="CommonJS/DBUtil_JS/WsCommonClassJava.js"></script>
- <script src="CommonJS/Data_ProcessJS/CommonData.js"></script>
- <script src="CommonJS/HTML_ElementCommonJS/Select_Common.js"></script>
- <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
- <script src="js/recordAction.js"></script>
- <script src="js/mui.min.js"></script>
- <style>
- * {
- margin: 0;
- padding: 0;
- }
- html,
- body {
- width: 100%;
- height: 100%;
- overflow: hidden;
- }
- .logon_bg{
- position: absolute;
- width:100%;
- bottom: 0;
- }
- .mainDiv{
- top: 0;
- position: absolute;
- width: 100%;
- height: 100%;
- }
- .bak{
- width: 100%;
- height: 100%;
- }
- .loginmain{
- margin-top: 6.25rem;
- margin-left: 0.3125rem;
- margin-right: 0.3125rem;
- }
- .loginbtn{
- margin-top: 3.125rem;
- width: 95%;
- height: 2.5rem;
- margin-left: 0.3125rem;
- margin-right: 0.3125rem;
- }
- </style>
- <script>
- function changPassword(){
- var username = localStorage.getItem("username");
- if(username == undefined){
- mui.alert('用户尚未登录!', '系统提示', function() {});
- return;
- }
- var newpass = $("#newpass").val();
- var passconfirm = $("#passconfirm").val();
- if(newpass == ""||passconfirm == ""){
- mui.alert('请完整输入两次密码!', '系统提示', function() {});
- }else if(newpass != passconfirm){
- mui.alert('两次密码输入不一致!', '系统提示', function() {});
- }else{
- var btnArray = ['否', '是'];
- mui.confirm('是否确认更改密码?\n更改后下次登录必须使用新密码!', '系统提示', btnArray, function(e) {
- if (e.index == 1) {
- debugger
- var strSql = "update 系统用户信息表新 t set t.password='"+newpass+"' where t.mobile='"+username+"'";
- new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryUser");
- } else {
- }
- })
- }
- }
-
- function querySuccess(evt,keyvalue){
- // var result = evt.substr(76,evtlength);
- // var evtlength = evt.length-85;
- // result = result.substr(0,evtlength);
- // // var jsonData = JSON.parse(result);
- // var jsonObj = JSON.parse(result)
- // var jsonData = jsonObj[0].data;
- // if(jsonData != null){
- mui.toast("密码修改成功!");
- window.location="main.html";
- // }
-
- insertActionRecord('用户修改密码');
- }
- </script>
- </head>
- <body background="assets/image/login.png" style=" background-repeat:no-repeat ;background-size:100% 100%;background-attachment: fixed;">
- <script type="text/javascript">
- mui.init()
- </script>
- <!-- <div class="logon_bg">
- <img src="assets/image/login.png" class="bak"/>
- </div> -->
- <div class="mainDiv">
- <header class="mui-bar mui-bar-nav">
- <a id="back" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
- <h1 class="mui-title">密码修改</h1>
- </header>
-
- <div class="mui-input-group loginmain" >
- <div class="mui-input-row">
- <label>新密码:</label>
- <input id="newpass" type="text" class="mui-input-clear" value="" placeholder="请输入新密码">
- </div>
-
- <div class="mui-input-row">
- <label>密码确认:</label>
- <input id="passconfirm" type="text" class="mui-input-clear" value="" placeholder="密码确认">
- </div>
- </div>
- <button type="button" class="mui-btn mui-btn-primary loginbtn" onclick="changPassword()" >提交 </button>
- </div>
-
- </body>
- </html>
|