| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- <!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.min.css" rel="stylesheet" />
- <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet">
- <link rel="stylesheet" type="text/css" href="../css/common.css" />
- <style type="text/css">
- /*input*/
-
- .mui-table-view-cell input {
- line-height: 30px;
- width: 100%;
- height: inherit;
- margin-bottom: 0;
- padding: 0;
- -webkit-user-select: text;
- border: none;
- border-radius: none;
- outline: 0;
- background-color: #fff;
- -webkit-appearance: none;
- }
-
- input::-webkit-input-placeholder {
- color: #BEBEBE;
- }
-
- input::-moz-placeholder {
- /* Mozilla Firefox 19+ */
- color: #BEBEBE;
- }
-
- input:-moz-placeholder {
- /* Mozilla Firefox 4 to 18 */
- color: #BEBEBE;
- }
-
- input:-ms-input-placeholder {
- /* Internet Explorer 10-11 */
- color: #BEBEBE;
- }
-
- .addAddress {
- position: absolute;
- right: 12px;
- top: 29px;
- }
- </style>
- </head>
- <body>
- <header class="mui-bar mui-bar-nav">
- <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
- <h1 class="mui-title">重置密码</h1>
- <a id="submit" class="mui-icon fa fa-cloud-upload mui-pull-right"></a>
- </header>
- <div class="mui-content">
- <ul class="mui-table-view" id="user">
- <li class="mui-table-view-cell">
- <span class="equipTitle">用户名</span>
- <p id="username">121212</p>
- </li>
- <li class="mui-table-view-cell">
- <span class="equipTitle">密码</span>
- <p><input type="password" name="" placeholder="请输入密码" id="password" value="" /></p>
- </li>
- <li class="mui-table-view-cell">
- <span class="equipTitle">电话</span>
- <p><input type="password" name="" placeholder="请再次输入密码" id="password2" value="" /></p>
- </li>
- </ul>
- </div>
- <script src="../js/mui.min.js"></script>
- <script type="text/javascript">
- mui.init();
- mui.plusReady(function(){
- var self = plus.webview.currentWebview();
- console.log(self.name);
- var imei = self.imei;
- //提交信息
- document.getElementById('submit').addEventListener('tap',function(){
- var userpassWord = document.getElementById('password').value,
- userRePassWord = document.getElementById('password2').value;
- if(userpassWord != userRePassWord){
- mui.toast('两次密码输入不一致')
- }else if(userpassWord == '' || userRePassWord == ''){
- mui.toast('请将信息填写完整')
- }else{
- mui.ajax('http://120.27.222.26/systemmanage_user_list',{
- data:{
- id: self.name,
- req: 'resetpwd',
- userName: document.getElementById('username').innerHTML,
- userpassWord: userpassWord,
- userRePassWord: userRePassWord,
- },
- dataType:'json',//服务器返回json格式数据
- type:'post',//HTTP请求类型
- timeout:10000,//超时时间设置为10秒;
- success:function(data){
- mui.alert("修改成功,点击确定关闭","重置密码","确定",function () {
- mui.back();
- });
- },
- error:function(xhr,type,errorThrown){
- console.log(type)
- }
- });
- }
-
-
- })
-
- })
-
- </script>
- </body>
- </html>
|