view={api:new ec.api("forgetpwd"),init:function(){this.stepIndexs=$(".secondary li");this.stepBox=$(".step")},showVcode:function(){var info=Account.get();if(!info){ec.notifyQ(L.G("请输入您的账号"));return}this.api.put("/validateAccount?account="+info,function(r){ec.showImageVcode(function(code){ec.hideWindow();ec.toggleValidateCode(true);this.api.put("getvcode?account="+info+"&imageVcode="+code,null,function(r){ec.btnTimeout(60)},function(r){ec.toggleValidateCode(false)})})})},validate:{filed:function(){var msg=ec.validate(Password,Checkpwd);if(!msg&&Password.get()!=Checkpwd.get()){msg=L.G("两次输入的密码不一致,请重新输入");ec.notifyQ(msg);return msg}var items=ke.ui.findControls("#register","input");msg=ec.validate(items);return msg},vCode:function(){var msg=ec.validate(Account,ValidateCode);if(!msg){view.api.put("validateVcode?account="+Account.get()+"&vcode="+ValidateCode.get(),function(r){view.refreshStep(1)})}}},refreshStep:function(i){if(view.stepIndexs){view.stepIndexs.eq(i-1).removeClass("active");view.stepIndexs.eq(i-1).addClass("finish");view.stepIndexs.eq(i).addClass("active")}view.stepBox.removeClass("active");view.stepBox.eq(i).addClass("active")},confirm:function(){var info={Account:Account.get(),Password:Password.get(),ValidateCode:ValidateCode.get()};var msg=this.validate.filed();if(!msg){view.api.put("confirm",info,function(r){view.refreshStep(2)})}}};L.push(["请输入您的账号","Please enter your account","两次输入的密码不一致,请重新输入","The passwords entered twice do not match. Please re-enter"]);