var tipMsg=["别捣乱填真的!","请您输入在本站注册的手机号码","您输入的手机号码没有在本网站注册","对不起,您输入的手机号码有误","这回可要记住了!","请您输入以后登录本站的新密码","没收到就多等会儿!","请您输入刚刚收到的手机认证码","您输入的手机认证码有误","重设密码出现未知错误"],antiForgery=$("input[name='__RequestVerificationToken']:first").val();$(function(){$("#retsetmob").focusin(function(){$("#errMob").html(tipMsg[0])});$("#newpw").focusin(function(){$("#errNewpw").html(tipMsg[4])});$("#mobcode").focusin(function(){$("#errMobC").html(tipMsg[6])});$("#retsetmob").change(function(){var t=$.trim($("#retsetmob").val()).length,n=$("#retsetmob").val();t==11?IsMobile(n)?(alert("如果您是中国移动用户,在30秒钟后将接收到手机认证码\n如果您是中国联通用户,在两分钟后将接收到手机认证码"),$.ajax({url:"/User/ResetPwSMMail?t="+new Date,data:{mob:n},type:"post",cache:!1,beforeSend:function(){},success:function(n){n.Code=="A00005"||((n.Code="A00002")?(alert(tipMsg[2]),$("#errMob").html(tipMsg[2])):(n.Code="A00021")?(alert(tipMsg[3]),$("#errMob").html(tipMsg[3])):alert("手机验证码发送失败"))},dataType:"json",error:function(){}})):$("#errMob").html(tipMsg[3]):$("#errMob").html(tipMsg[3])});$("#beginReSet").click(function(){var t=$.trim($("#retsetmob").val()).length,n=$("#retsetmob").val();if($.trim($("#retsetmob").val())==""){alert(tipMsg[1]);$("#errMob").html(tipMsg[1]);return}if($.trim($("#newpw").val())==""){alert(tipMsg[5]);$("#errNewpw").html(tipMsg[5]);return}if($.trim($("#mobcode").val())==""){alert(tipMsg[7]);$("#errMobC").html(tipMsg[7]);return}t==11?IsMobile(n)?$.ajax({url:"/User/ResetPasswd?t="+new Date,data:{Mob:n,newPw:$.trim($("#newpw").val()),MobCode:$.trim($("#mobcode").val())},type:"post",cache:!1,beforeSend:function(){HLYApp.disableAtag($("#beginReSet"))},success:function(n){n.Code=="A00004"?(alert("密码已重置成功,请您用刚设定的新密码重新登录"),window.location.href="/User/LogOn"):n.Code=="A00002"?(alert(tipMsg[2]),$("#errMob").html(tipMsg[2])):n.Code=="A00021"?(alert(tipMsg[3]),$("#errMob").html(tipMsg[3])):n.Code=="A00023"&&(alert(tipMsg[8]),$("#errMob").html(tipMsg[8]));HLYApp.enableAtag($("#beginReSet"))},dataType:"json",error:function(){}}):(alert(tipMsg[3]),$("#errMob").html(tipMsg[3])):(alert(tipMsg[3]),$("#errMob").html(tipMsg[3]))})})