chunk-2d0dd61c.6d0a4fd9.js 1.3 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dd61c"],{"80c1":function(e,n,r){"use strict";r.r(n);var a=r("b57b"),s=r("7c6b"),t=r("8998");r("f16c");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(t["a"])(Object(a["a"])().m((function n(){var r,t,c,i,o,u;return Object(a["a"])().w((function(n){while(1)switch(n.p=n.n){case 0:if(r=e.form,t=r.mobile,c=r.password,t){n.n=1;break}return n.a(2,e.$message.warning("用户名不能为空"));case 1:if(c){n.n=2;break}return n.a(2,e.$message.warning("密码不能为空"));case 2:return e.saving=!0,n.p=3,n.n=4,e.$store.dispatch("userLogin",e.form);case 4:if("business"!=e.$projectName){n.n=7;break}return n.n=5,e.$store.dispatch("userInfo");case 5:return n.n=6,e.$store.dispatch("shopInfo");case 6:n.n=8;break;case 7:return n.n=8,e.$store.dispatch("adminInfo");case 8:return n.n=9,e.$store.dispatch("permMenu");case 9:i=n.v,o=Object(s["a"])(i,1),u=o[0],e.saving=!1,u?e.$nextTick((function(){e.$projectName,e.$router.push("/")})):e.$message.error("该账号没有权限"),n.n=11;break;case 10:n.p=10,n.v,e.saving=!1;case 11:return n.a(2)}}),n,null,[[3,10]])})))()}}}}}]);