(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e21cac8"],{"688d6":function(e,t,a){"use strict";a("c095")},c095:function(e,t,a){},efcf:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"login bg"},[a("div",{staticClass:"content"},[a("div",{staticClass:"half-container left-content"}),a("div",{staticClass:"half-container right-content"},[a("div",{staticClass:"mt-215"}),a("div",{staticClass:"fs-36 ta-c"},[e._v("欢迎登录")]),a("div",{staticClass:"fs-12 ta-c"},[e._v("通过您的用户账号密码登录")]),a("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)}}}),a("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)}}}),a("div",{staticClass:"erro"},[e._v(e._s(e.erro))]),a("div",{staticClass:"login-btn",on:{click:e.submit}},[e._v("登录")])])])])},n=[],o=a("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:"/operation"})):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.868vip.live":window.localStorage.setItem("theme","hongshan"),window.document.documentElement.setAttribute("data-theme","hongshan");break;case"admin.lengball.com":window.localStorage.setItem("theme","lengball"),window.document.documentElement.setAttribute("data-theme","lengball");break;case"admin.hszhibo.live":window.localStorage.setItem("theme","hongshan"),window.document.documentElement.setAttribute("data-theme","hongshan");break;case"admin.duomizb.com":window.localStorage.setItem("theme","duomizb"),window.document.documentElement.setAttribute("data-theme","duomizb");break;case"admin.qmtxzb.com":window.localStorage.setItem("theme","qmtxzb"),window.document.documentElement.setAttribute("data-theme","qmtxzb");break;default:window.localStorage.setItem("theme","tvshow"),window.document.documentElement.setAttribute("data-theme","tvshow");break}}},r=i,m=(a("688d6"),a("2877")),d=Object(m["a"])(r,s,n,!1,null,null,null);t["default"]=d.exports}}]);
//# sourceMappingURL=chunk-5e21cac8.efc127a9.js.map