| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 | 
							- <!DOCTYPE html>
 
- <html>
 
- <head>
 
- 	<meta charset="utf-8">
 
-     <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
 
-     <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
 
-     <title></title>
 
-     <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
 
-     <link rel="stylesheet" type="text/css" href="../../css/weui.min.css" />
 
-     <link rel="stylesheet" type="text/css" href="../../css/style.css?v=1.2"/>
 
-     <style>
 
-     	body{}
 
-         .editpad-item{
 
-           float:left;
 
-           width:100px;
 
-         }
 
-         .setting-item{
 
-           height: 1rem;
 
-           line-height: 1rem;
 
-           width:100%;
 
-           /*border-bottom:1px solid #e8e8e8;*/
 
-           text-align:left;
 
-           font-size: 0.28rem;
 
-           text-indent: 0.5em;
 
-         }
 
-         .setting-item input{
 
-           width:100%;
 
-         }
 
-         .bot-input {
 
-            padding: 0 0 0 0.25rem;
 
-            font-size: 0.28rem;
 
-         }
 
-     </style>
 
-     <script>
 
-     (function(w, d, m) {
 
-         function r() {
 
-             var t = 100,
 
-                 o = 750,
 
-                 e = d.documentElement.clientWidth || w.innerWidth,
 
-                 n = m.max(m.min(e, 480), 320),
 
-                 h = 50;
 
-             320 >= n && (h = m.floor(n / o * t * .99)),
 
-                 n > 320 && 362 >= n && (h = m.floor(n / o * t * 1)),
 
-                 n > 362 && 375 >= n && (h = m.floor(n / o * t * 1)),
 
-                 n > 375 && (h = m.floor(n / o * t * .97)),
 
-                 d.querySelector("html").style.fontSize = h + "px"
 
-         };
 
-         r();
 
-         w.onresize = function() {
 
-             r()
 
-         }
 
-     })(window, document, Math);
 
-     </script>
 
- </head>
 
- <body>
 
-     <div class="topbar"></div>
 
-  <header class="back-header back-header-bottom">
 
- 	<ul>
 
- 		<li class="padding-20 back-btn"><img class="back-header-ico" src="../../image/nav_button_back_default.png"/></li>
 
- 		<li class="back-header-title">修改密码</li>
 
- 		<li class="more-btn"></li>
 
- 	</ul>
 
- </header>
 
- <section class="white-back padding-top">
 
- <div class="h20"></div>
 
- 	<div class="setting-item">
 
- 	 <input class="bot-input" placeholder="旧密码" id="old-password" type="password" value=""/>
 
- 	</div>
 
- 	<div class="setting-item">
 
- 	 <input class="bot-input" placeholder="新密码" id="new-password" type="password" value=""/>
 
- 	</div>
 
- 	<div class="setting-item">
 
- 	 <input class="bot-input" placeholder="确认密码" id="cfg-password" type="password" value=""/>
 
- 	</div>
 
- <div class="h50" style="height: 0.5rem;"></div>
 
- <div class="m-bottom">提 交</div>
 
- </section>
 
- </body>
 
- <script type="text/javascript" src="../../script/api.js"></script>
 
- <script type="text/javascript" src="../../script/jquery.min.js"></script>
 
- <script type="text/javascript" src="../../script/jquery.tap.js"></script>
 
- <script type="text/javascript">
 
- 	apiready = function(){
 
- 		setFixStatusBar();
 
- 	};
 
- 	$(".m-bottom").on("tap",function(){
 
- 	    if($("#old-password").val()==""){
 
- 	      api.toast({msg:'旧密码不能为空!'}); return false;
 
- 	    }
 
- 	    if($("#new-password").val()==""){
 
- 	      api.toast({msg:'新密码不能为空!'}); return false;
 
- 	    }
 
- 	    if($("#new-password").val()!=$("#cfg-password").val()){
 
- 	      api.toast({msg:'新密码和确认密码不一致'}); return false;
 
- 	    }
 
- 	    toast_loding_show();
 
- 		$.ajax({
 
- 			url : siteurl + 'v2/member/update',//'?do=editpad',
 
- 			data : {
 
- 			   old_password: $("#old-password").val(),
 
- 			   new_password: $("#new-password").val(),
 
- 			   memberid: $api.getStorage("memberid")
 
- 			},
 
- 			headers: { "X-TOKEN": $api.getStorage("accesstoken") },
 
- 			dataType : 'json', 
 
- 			type : 'post', 
 
- 			success : function(datas) {
 
- 				toast_loding_hide();
 
- 		    	if(datas.result){
 
- 					api.toast({msg:'操作成功!'});
 
- 					setTimeCloseWin("editpad");
 
- 		    	}else{
 
- 		    	   errcode(datas, datas.code);
 
- 		    	}
 
- 			}
 
- 		});
 
- 		return false;
 
- 	})
 
- 	
 
- </script>
 
- </html>
 
 
  |