webpackJsonp([198],{"3uUo":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("l9V+"),a=o("TIfe"),s={name:"change_pwd",filters:{mobile:function(e){return e?""==e?e:e.replace(e.substring(3,7),"****"):""}},data:function(){return{countdownSet:null,next_loading:!1,reg_loading:!1,username_error:"",code_error:"",mobile_error:"",mobile_success:"",complite_btn_enable:!1,login_error:!1,login_error_msg:"",next_btn_enable:!1,userinfo:this.$userInfo(),account_info:this.$store.getters.account_info,setp:1,countdown:90,sended:!1,sendMsgText:"获取验证码",sendMsgLoading:!1,formData:{verify:"",origin_verify:"",tel:""}}},created:function(){this.formData.aff_code=this.$route.query.aff_code},watch:{formData:{handler:function(e,t){""!=e.username&&""!=e.code?this.next_btn_enable=!0:this.next_btn_enable=!1,this.checkMobile(e.username)?(this.mobile_error="",this.mobile_success="success"):(this.mobile_error="手机号格式错误",this.mobile_success=""),""!=e.password&&""!=e.password_check?this.complite_btn_enable=!0:this.complite_btn_enable=!1},deep:!0}},methods:{show_error:function(e){var t=this;t.login_error=!0,setTimeout(function(){t.login_error=!1},3e3),t.login_error_msg=e},nextReg:function(){var e=this;e.next_loading=!0,Object(n.a)("post","/api/verify/check",{type:3,tel:this.account_info.tel,verify:e.formData.origin_verify}).then(function(t){e.next_loading=!1,1==t.data.code?(e.countdown=0,clearTimeout(e.countdownSet),setTimeout(function(){e.sendMsgText="获取验证码",e.sended=!1,e.countdown=90},1e3),e.setp++):e.$notify({message:t.data.msg,duration:1e3,background:"#f44"})})},countDownInit:function(){var e=this;if(e.sendMsgText="已发送("+e.countdown+")",0==e.countdown)return e.countdown=90,e.sendMsgText="重新发送",e.sended=!1,!1;e.countdownSet=setTimeout(function(){e.countdown--,e.countDownInit()},1e3)},sendLogin:function(){var e=this;e.$toast.loading({mask:!0,message:"正在登录..."}),this.$store.dispatch("login",{account:e.formData.username,password:e.formData.password}).then(function(t){e.$toast.clear(),0==t.code?e.$notify({message:t.msg,duration:1e3,background:"#f44"}):e.$router.push({name:"home"})})},sendReg:function(){var e=this;if(""==e.formData.code)return e.$toast("请输入验证码!"),!1;var t,o;if(t="/api/account/replace",o={type:"mobile",tel:e.formData.tel,verify:e.formData.verify,origin_verify:e.formData.origin_verify},!this.checkMobile(e.formData.tel))return e.$toast("请输入正确的手机号"),!1;e.reg_loading=!0,Object(n.a)("post",t,o).then(function(t){if(1==t.data.code){if(e.$toast(t.data.msg),window.plus?plus.storage.removeItem("account_info"):localStorage.removeItem("account_info"),window.plus)for(var o=plus.webview.all(),n=0;n