1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3387554e"],{"09a2":function(e,t,n){},"1d63":function(e,t,n){},"1db7":function(e,t,n){"use strict";n("09a2")},"6a1e":function(e,t,n){"use strict";var r=n("1b69");t.a={verfiy:function(e,t){return Object(r.a)("Api/verify_code",e,"post",t)},resetpwd:function(e,t){return Object(r.a)("Api/passmobile",e,"post",t)},resetmobile:function(e,t){return Object(r.a)("Api/resetmobile",e,"post",t)},setpwd:function(e,t){return Object(r.a)("Api/passsave",e,"post",t)},list:function(e,t){return Object(r.a)("admin/menu",e,"post",t)},detail:function(e,t){return Object(r.a)("Admin/userinfo",e,"post",t)},version:function(e,t){return Object(r.a)("Admin/lastversion",e,"post",t)},prefect:function(e,t){return Object(r.a)("Api/prefect",e,"post",t)}}},"76fb":function(e,t,n){},bf2a:function(e,t,n){"use strict";var r=n("1da1"),i=(n("96cf"),n("61f7")),o=n("6a1e"),a=n("9f53");a={props:{mobile:{type:String,default:""}},mixins:[a.a],data:function(){return{num:60,title:"获取验证码",timer:null}},computed:{},methods:{getCode:function(){var e=this;""!==this.mobile&&Object(i.g)(this.mobile)?60===this.num&&o.a.verfiy({mobile:this.mobile}).then(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n||0!==n.code){t.next=4;break}e.timer=setInterval((function(){0!==e.num?(e.title="".concat(e.num,"s后可重发"),e.num--):(clearInterval(e.timer),e.num=60,e.title="获取验证码")}),1e3),t.next=10;break;case 4:if(n&&100<=n.code&&n.code<=104)return t.next=7,e.logout();t.next=9;break;case 7:t.next=10;break;case 9:e.$message.warning(n.message);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()):this.$emit("mobileErr",!1)}}},n("f36d"),n=n("2877"),n=Object(n.a)(a,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-button",{staticClass:"send-verification-code",attrs:{type:e.num<60?"info":"primary",plain:e.num<60,disabled:e.num<60},on:{click:e.getCode}},[e._v(e._s(e.title))])}),[],!1,null,"a4e6982a",null);t.a=n.exports},dced:function(e,t,n){"use strict";n("76fb")},f36d:function(e,t,n){"use strict";n("1d63")},fdb1:function(e,t,n){"use strict";n.r(t);var r=n("1da1"),i=(n("96cf"),n("61f7")),o=n("bf2a"),a=n("6a1e"),c=n("9f53");o={name:"Login",components:{SocialSign:o.a},mixins:[c.a],data:function(){return{loginForm:{mobile:"",code:""},loginRules:{mobile:[{required:!0,trigger:"blur",validator:function(e,t,n){""===t?n(new Error("手机号不能为空!")):Object(i.g)(t)?n():n(new Error("手机号不正确!"))}}],code:[{required:!0,trigger:"blur",validator:function(e,t,n){""===t?n(new Error("验证码不能为空!")):Object(i.i)(t)&&6===t.length?n():n(new Error("验证码应为6位数字!"))}}]},loading:!1,otherQuery:{}}},mounted:function(){""===this.loginForm.mobile&&this.$refs.mobile.focus(),""===this.loginForm.code&&this.$refs.code.focus()},methods:{handleLogin:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$refs.loginForms.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=4;break}e.loading||(e.loading=!0,a.a.resetmobile(e.loginForm).then(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n&&0===n.code)return e.loading=!1,e.$message.success(n.message),t.next=5,e.logout();t.next=7;break;case 5:t.next=14;break;case 7:if(n&&100<=n.code&&n.code<=104)return t.next=10,e.logout();t.next=12;break;case 10:t.next=14;break;case 12:e.$message.warning(n.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)})))()}}},n("dced"),n("1db7"),c=n("2877"),n=Object(c.a)(o,(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:"loginForms",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",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("SocialSign",{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,"63dd994c",null);t.default=n.exports}}]);
|