(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5af82a4a"],{"69fa":function(e,t,s){},db94:function(e,t,s){"use strict";s("69fa")},efcf:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"login bg"},[s("div",{staticClass:"content"},[s("div",{staticClass:"half-container left-content"}),s("div",{staticClass:"half-container right-content"},[s("div",{staticClass:"logo-img mt-215"}),s("div",{staticClass:"fs-36 ta-c"},[e._v("欢迎登录")]),s("div",{staticClass:"fs-12 ta-c"},[e._v("通过您的用户账号密码登录")]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],staticClass:"login-input",attrs:{type:"text",placeholder:"请输入您的用户账号"},domProps:{value:e.username},on:{input:function(t){t.target.composing||(e.username=t.target.value)}}}),s("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],staticClass:"login-input",attrs:{type:"password",placeholder:"请输入登录密码"},domProps:{value:e.password},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submit.apply(null,arguments)},input:function(t){t.target.composing||(e.password=t.target.value)}}}),s("div",{staticClass:"erro"},[e._v(e._s(e.erro))]),s("div",{staticClass:"login-btn",on:{click:e.submit}})])])])},n=[],o=s("6ace"),i={name:"index",data:function(){return{password:"",username:"",erro:"",isHS:!0}},methods:{submit:function(){var e=this;if(""===this.username)this.erro="*用户账号不可为空";else if(""===this.password)this.erro="*密码不可为空";else{var t={password:this.password,userName:this.username};this.$axios("post","/sys/login",t).then((function(t){200===t.code?(e.erro="",o["a"].set("token",t.data.token),sessionStorage.setItem("username",t.data.userName),sessionStorage.setItem("channel",t.data.channel),sessionStorage.setItem("roleId",t.data.roleId),e.$router.push({path:"/"})):e.$message({type:"info",message:t.msg})}))}}},mounted:function(){var e=document.domain;switch(e){case"admin.qiujuzb.com":window.localStorage.setItem("theme","qiuju"),window.document.documentElement.setAttribute("data-theme","qiuju");break;case"admin.hszb.vip":window.localStorage.setItem("theme","hongshan"),window.document.documentElement.setAttribute("data-theme","hongshan");break;default:window.localStorage.setItem("theme","hongshan"),window.document.documentElement.setAttribute("data-theme","hongshan");break}}},r=i,u=(s("db94"),s("2877")),d=Object(u["a"])(r,a,n,!1,null,"7be07f05",null);t["default"]=d.exports}}]);
//# sourceMappingURL=chunk-5af82a4a.5f765a33.js.map