(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dd61c"],{"80c1":function(e,r,n){"use strict";n.r(r);var t=n("5a3e"),a=(n("63ff"),n("57f0"));r["default"]={data:function(){return{form:{mobile:null,password:null,verifyCode:""},saving:!1,loading:!0}},mounted:function(){this.loading=!1},methods:{captchaChange:function(){this.form.verifyCode=""},next:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function r(){var n,a,s,o,i,c;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=e.form,a=n.mobile,s=n.password,a){r.next=3;break}return r.abrupt("return",e.$message.warning("用户名不能为空"));case 3:if(s){r.next=5;break}return r.abrupt("return",e.$message.warning("密码不能为空"));case 5:return e.saving=!0,r.prev=6,r.next=9,e.$store.dispatch("userLogin",e.form);case 9:if("business"!=e.$projectName){r.next=16;break}return r.next=12,e.$store.dispatch("userInfo");case 12:return r.next=14,e.$store.dispatch("shopInfo");case 14:r.next=18;break;case 16:return r.next=18,e.$store.dispatch("adminInfo");case 18:return r.next=20,e.$store.dispatch("permMenu");case 20:o=r.sent,i=Object(t["a"])(o,1),c=i[0],e.saving=!1,c?e.$nextTick((function(){e.$projectName,e.$router.push("/")})):e.$message.error("该账号没有权限"),r.next=31;break;case 27:r.prev=27,r.t0=r["catch"](6),e.saving=!1,e.$message.error(r.t0);case 31:case"end":return r.stop()}}),r,null,[[6,27]])})))()}}}}}]);