(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e21cac8"],{"688d6":function(e,t,s){"use strict";s("c095")},c095:function(e,t,s){},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:"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}},[e._v("登录")])])])])},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:"/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.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=(s("688d6"),s("2877")),d=Object(m["a"])(r,a,n,!1,null,null,null);t["default"]=d.exports}}]);
//# sourceMappingURL=chunk-5e21cac8.594b7817.js.map