| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>四平市政府</title>
- <link rel="stylesheet" href="css/basic.css" />
- <script type="text/javascript" src="js/jquery-1.8.3.min.js" ></script>
- <script type="text/javascript" src="js/basic.js" ></script>
- <script type="text/javascript" src="js/plusShare.js"></script>
- <script type="text/javascript" src="js/unslider-min.js" ></script>
- <script type="text/javascript" src="js/idealDic/idealDicInclude.js"></script>
- <script src="js/mui.min.js"></script>
- <script>
- /**2017/11/29
- * 全局电话号变量
- * lining
- */
- var mobilePhone='';
- (function($){
- $.getUrlParam = function(name)
- {
- var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
- var r = window.location.search.substr(1).match(reg);
- if (r!=null) return unescape(r[2]); return null;
- }
- })(jQuery);
- function close_page(){
- mui.fire(plus.webview.getWebviewById("zhmm.html"),"loginReload");
- mui.currentWebview.close();
- }
- /**
- * 2017/11/29
- * 找回密码第一页传过来的电话号的值
- * lining
- */
- $(function(){
- mobilePhone=$.getUrlParam("mobilePhone");
- sjhm=mobilePhone.replace(mobilePhone.substring(3,7),'****');
- $("#sjhm span").text(""+sjhm+"");
- })
- /**
- * 2017/11/29
- * 吉大正元服务根据手机号获取验证码
- * lining
- */
- function yzmbtn(){
- plus.nativeUI.showWaiting();
- var param="{'loginName':"+mobilePhone+"}";
- mui.post(
- DengluUrl+'login_appAction!duijieMethod.action',{
- name:'sendSMS',
- param:param
- },
- function(data){
- if(data.success==true){
- if(data.result==1){
- plus.nativeUI.closeWaiting();
- timeout();
- }
- }else if(data.success==false){
- if(data.result==2){
- mui.alert(data.message);
- }
- }
- },'json'
- );
- }
- /**2017/11/29
- * 验证码时间函数
- * lining
- */
- var time=60;
- function timeout(){
-
- if(time>=0){
- $("#yzmbtn").attr('disabled',true);
- $("#yzmbtn").attr('readonly','readonly');
- document.getElementById("yzmbtn").style.backgroundColor = "#dddddd";
- $("#yzmbtn").val(time);
- time--;
- setTimeout("timeout();",1000);
- }else{
- $("#yzmbtn").removeAttr("style");
- $("#yzmbtn").val('重发验证码');
- $("#yzmbtn").attr('disabled',false);
- $("#yzmbtn").attr("readonly","readonly");
- time=60;
- }
- }
- /**
- * 2017/11/30
- * lining
- * 判断密码是否为最低6位的正则表达式
- */
- function xmm(){
- var reg=/^(?!(?:\d+|[a-zA-Z]+)$)[\da-zA-Z]{5,}$/;
- var newpassword=$("#newpassword").val();
- var newspassword=$("#newspassword").val();
- if(!(reg.test(newpassword))){
-
- $("#mima1").text('不符合密码规范,至少六位');
- $("#xyb").removeAttr("onclick");
-
- }else {
-
- $("#mima1").empty();
- $("#mima2").text('不符合密码规范,至少六位')
-
- }
- if(reg.test(newpassword)&®.test(newspassword)){
- $("#xyb").attr('onclick','xyb()');
- }
-
- }
- function xmm1(){
- var reg=/^(?!(?:\d+|[a-zA-Z]+)$)[\da-zA-Z]{5,}$/;
- var newpassword=$("#newpassword").val();
- var newspassword=$("#newspassword").val();
- if(!(reg.test(newspassword))){
-
- $("#mima2").text('不符合密码规范,至少六位');
- $("#xyb").removeAttr("onclick");
- }else {
-
- $("#xyb").attr("onclick","xyb()");
- $("#mima2").empty();
-
- }
- if(reg.test(newpassword)&®.test(newspassword)){
- $("#xyb").attr('onclick','xyb()');
- }
- }
- /***
- * 2017/11/30
- * 提交后台修改密码
- * lining
- */
- function xyb(){
- var newpassword=$("#newpassword").val();
- var newspassword=$("#newspassword").val();
- var yanzhengma=$("#yzmtext").val();
- if(newpassword==newspassword){
- if(yanzhengma==null||yanzhengma==''){
- mui.alert('请输入验证码');
- }else if((newpassword==null||newpassword=='')||(newspassword==null||newspassword=='')){
- mui.alert('密码不能为空');
- }else{
- plus.nativeUI.showWaiting();
- var param='{"loginName":'+mobilePhone+',"newPassword":"'+newspassword+'","vericode":'+yanzhengma+'}'
- mui.post(
- DengluUrl+'login_appAction!duijieMethod.action',{
- name:'findPsd',
- param:param
- },
- function(data){
- if(data.success==true){
- if(data.result==1){
- plus.nativeUI.closeWaiting();
- mui.openWindow({
- url:'zhmm3.html',
- id:'zhmm3.html',
- styles:{top:'0px', bottom:'0px'},
- createNew:true
- });
- }
- }else if(data.success==false){
- if(data.result==4){
- plus.nativeUI.closeWaiting();
- mui.alert(data.message);
- }
- }
- },'json');
- }
- }else if(newpassword!=newspassword){
- mui.alert('两次输入的密码不一致,请重新输入');
- $("#newpassword").val('');
- $("#newspassword").val('');
- }
- }
- </script>
- </head>
- <body style="background:url(images/sp_dlbg.gif) 0 0 repeat;">
- <div class="jfhead" align='center'>
- <a href="#" onclick='close_page();'><img src="images/fh.png"></a><b>找回密码</b>
- </div>
- <div class="clear"></div>
- <div class="sjbdcont" align='center'>
- <ul>
- <li class="li1 fl">1<p align='center'>设置新密码</p></li>
- <li class="li2act fl">2</li>
- <li class="li3 fr">3</li>
- </ul>
-
- <p>手机号码 <i id='sjhm'><span></span></span></i></p>
- <!--
- <p><input type="text" placeholder="请输入您的手机号"></p>
- -->
- <p class="yzm"><input type="text" placeholder="请输入手机验证码" id="yzmtext"><input type="button" value="获取验证码" id="yzmbtn" onclick='yzmbtn();'></p>
- <p class="bluefont">注:短信验证码有效期为60秒!</p>
- <p>新密码 <i>*</i></p>
- <p><input type="password" placeholder="由数字、字母或符号两种以上组成" id='newpassword' onkeydown="xmm();" style="font-size: 2.8rem;width: 100%;border-radius: 10px;border: solid 1px #999;padding: 20px;" placeholder="........."></p>
- <span id='mima1' class="bluefont"></span>
- <p><input type="password" placeholder="请输入确认密码" id='newspassword' onkeydown="xmm1();" style="font-size: 2.8rem;width: 100%;border-radius: 10px;border: solid 1px #999;padding: 20px;" placeholder="........."></p>
- <span id='mima2' class="bluefont"></span>
- <!--
- <p class="typ"><input type="checkbox" class="checkbox">我已阅读并同意<u class="bluefont">《四平市政务服务网注册协议》</u></p>-->
- <h3><input type="button" class="btn" value="下一步" onclick="xyb();" id='xyb'></h3>
- </div>
- </body>
- </html>
|