webpackJsonp([28],{"9otS":function(t,n,e){(t.exports=e("FZ+f")(!1)).push([t.i,"\n.login[data-v-447c3950] {\n    width: 100%;\n    height: 100%;\n    /*background-image: url('../../assets/image/login-bg.jpeg');*/\n    /*background-size: 100% 100%;*/\n    min-width: 1200px;\n    overflow: auto;\n}\n.content[data-v-447c3950] {\n    position: absolute;\n    left: 40%;\n    top: 208px;\n    /*background: rgb(38, 38, 184);*/\n}\n.login-input[data-v-447c3950] {\n    border: none;\n    /*background: #2627b8;*/\n    color: #333333;\n    border-bottom:1px solid #999999;\n    width: 410px;\n    line-height: 34px;\n    height: 34px;\n    font-size: 12px;\n    outline: none;\n    margin-top: 20px;\n}\n.login-input[data-v-447c3950]::-webkit-input-placeholder {\n  color: #333333;\n}\n.fs-12[data-v-447c3950] {\n    font-size: 12px;\n  color: #333333;\n}\n.fs-30[data-v-447c3950] {\n    font-size: 30px;\n    letter-spacing: 5px;\n  color: #333333;\n}\n.login-btn[data-v-447c3950] {\n    width: 410px;\n    line-height: 48px;\n    text-align: center;\n    background: -webkit-gradient(linear,left top, right top,from(#ff8d86),to(#f8413d));\n    background: linear-gradient(90deg,#ff8d86,#f8413d);\n    border-radius: 5px;\n    color: white;\n    margin-top: 60px;\n    letter-spacing: 10px;\n}\n.erro[data-v-447c3950] {\n    color: white;\n    margin-top: 20px;\n}\n",""])},Q7zM:function(t,n,e){var s=e("9otS");"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);e("rjj0")("2cf0e15a",s,!0,{})},jT7l:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var s=e("YgNb"),a={name:"index",data:function(){return{password:"",username:"",erro:""}},methods:{submit:function(){var t=this;if(""===this.username)this.erro="*用户账号不可为空";else if(""===this.password)this.erro="*密码不可为空";else{var n={password:this.password,userName:this.username};this.$axios("post","/sys/login",n).then(function(n){200===n.code?(t.erro="",s.a.set("token",n.data.token),sessionStorage.setItem("username",n.data.userName),sessionStorage.setItem("channel",n.data.channel),sessionStorage.setItem("roleId",n.data.roleId),t.$router.push({path:"/"})):t.$message({type:"info",message:n.msg})})}}}},o={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"login"},[t._m(0),t._v(" "),e("div",{staticClass:"content"},[e("div",{staticClass:"fs-30 ta-c"},[t._v("欢迎登录")]),t._v(" "),e("div",{staticClass:"fs-12 ta-c mt-30"},[t._v("通过您的用户账号密码登录")]),t._v(" "),e("div",{staticClass:"mt-10"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.username,expression:"username"}],staticClass:"login-input",attrs:{type:"text",placeholder:"请输入您的用户账号"},domProps:{value:t.username},on:{input:function(n){n.target.composing||(t.username=n.target.value)}}})]),t._v(" "),e("div",{staticClass:"mt-20"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"login-input",attrs:{type:"password",placeholder:"请输入登录密码"},domProps:{value:t.password},on:{input:function(n){n.target.composing||(t.password=n.target.value)}}})]),t._v(" "),e("div",{staticClass:"erro"},[t._v(t._s(t.erro))]),t._v(" "),e("div",{staticClass:"login-btn",on:{click:t.submit}},[t._v("登录")])])])},staticRenderFns:[function(){var t=this.$createElement,n=this._self._c||t;return n("div",{staticStyle:{padding:"30px 0px 0px 120px"}},[n("img",{attrs:{src:"logo2.png",width:"118px"}})])}]};var i=e("VU/8")(a,o,!1,function(t){e("Q7zM")},"data-v-447c3950",null);n.default=i.exports}});