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