(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dd61c"],{"80c1":function(e,n,r){"use strict";r.r(n);var t=r("0d11"),a=r("60b5");r("6a61");n["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 n(){var r,a,s,o,i,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=e.form,a=r.mobile,s=r.password,a){n.next=3;break}return n.abrupt("return",e.$message.warning("用户名不能为空"));case 3:if(s){n.next=5;break}return n.abrupt("return",e.$message.warning("密码不能为空"));case 5:return e.saving=!0,n.prev=6,n.next=9,e.$store.dispatch("userLogin",e.form);case 9:if("business"!=e.$projectName){n.next=16;break}return n.next=12,e.$store.dispatch("userInfo");case 12:return n.next=14,e.$store.dispatch("shopInfo");case 14:n.next=18;break;case 16:return n.next=18,e.$store.dispatch("adminInfo");case 18:return n.next=20,e.$store.dispatch("permMenu");case 20:o=n.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("该账号没有权限"),n.next=30;break;case 27:n.prev=27,n.t0=n["catch"](6),e.saving=!1;case 30:case"end":return n.stop()}}),n,null,[[6,27]])})))()}}}}}]);