(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1d0a69b6"],{"6ac1":function(e,t,r){},"76fb":function(e,t,r){},dced:function(e,t,r){"use strict";r("76fb")},efc5:function(e,t,r){"use strict";r("6ac1")},fdb1:function(e,t,r){"use strict";r.r(t);var n=r("1da1"),o=(r("96cf"),r("61f7")),a=r("6a1e"),i={name:"Login",mixins:[r("9f53").a],data:function(){return{loginForm:{mobile:"",code:""},loginRules:{mobile:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("手机号不能为空！")):Object(o.h)(t)?r():r(new Error("手机号不正确！"))}}],code:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("验证码不能为空！")):Object(o.l)(t)&&6===t.length?r():r(new Error("验证码应为6位数字！"))}}]},loading:!1,otherQuery:{}}},mounted:function(){this.resetForm()},methods:{resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={mobile:"",code:""})}));case 2:case"end":return t.stop()}}),t)})))()},handleLogin:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$refs.loginForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=4;break}e.loading||(e.loading=!0,a.a.resetmobile(e.loginForm).then(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r&&0===r.code)return e.loading=!1,e.$message.success(r.message),t.next=5,e.logout();t.next=7;break;case 5:t.next=14;break;case 7:if(r&&100<=r.code&&r.code<=104)return t.next=10,e.logout();t.next=12;break;case 10:t.next=14;break;case 12:e.$message.warning(r.message),e.loading=!1;case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())),t.next=6;break;case 4:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()}}};r("dced"),r("efc5"),r=r("2877"),r=Object(r.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"change-mobile"},[t("div",{staticClass:"change"},[t("div",{staticClass:"title"},[e._v("更换手机号")]),t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"right","label-width":"100px"}},[t("el-form-item",{attrs:{prop:"mobile",label:"新手机号："}},[t("el-input",{ref:"mobile",attrs:{placeholder:"手机号",name:"mobile",type:"text",maxlength:"11",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.mobile,callback:function(t){e.$set(e.loginForm,"mobile",t)},expression:"loginForm.mobile"}})],1),t("el-form-item",{staticClass:"code-sign",attrs:{prop:"code",label:"验证码："}},[t("ul",{staticClass:"code-main"},[t("li",[t("el-input",{ref:"code",attrs:{placeholder:"验证码",name:"code",type:"code",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.code,callback:function(t){e.$set(e.loginForm,"code",t)},expression:"loginForm.code"}})],1),t("li",[t("send-verification-code",{attrs:{mobile:e.loginForm.mobile}})],1)])]),t("el-button",{staticStyle:{width:"98%",margin:"15px 0 0 5%"},attrs:{loading:e.loading,type:"primary",round:""},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("确认修改")])],1)],1)])}),[],!1,null,"aae05b16",null);t.default=r.exports}}]);