(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-886d6682"],{"10dd":function(e,t,n){var a=n("3b43"),i=n("5e68").EXISTS,o=n("ce5b"),r=n("98fb").f,l=Function.prototype,s=o(l.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,m=o(c.exec),d="name";a&&!i&&r(l,d,{configurable:!0,get:function(){try{return m(c,s(this))[1]}catch(e){return""}}})},1723:function(e,t,n){},"379d":function(e,t,n){companyInfo={url:"http://det.shandongewall.com/",main:"alloutlong",year:(new Date).getFullYear()},headapi="../"},"57d4":function(e,t,n){e.exports=n.p+"img/logo_goallout.f0477b24.png"},a55b:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"bg"}},[a("el-container",[a("el-header"),a("el-main",[a("div",{staticClass:"bg"},[a("el-card",{staticClass:"box-card"},[a("h5",{staticClass:"title"},[a("img",{attrs:{src:n("57d4"),alt:""}})]),a("span",{staticClass:"subtitle"},[e._v("小飞龙运动视频管理平台")]),a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"0px"}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"用户名"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"密码",type:"password"},model:{value:e.form.pwd,callback:function(t){e.$set(e.form,"pwd",t)},expression:"form.pwd"}})],1),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"验证码",maxlength:"4"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSubmit.apply(null,arguments)}},model:{value:e.form.valid,callback:function(t){e.$set(e.form,"valid",t)},expression:"form.valid"}}),a("img",{attrs:{id:"validImg",src:e.valImgSrc,alt:"",width:"100px",height:"42px",title:"看不清?刷一下试试!"},on:{click:e.getGenVerifyPic}})],1),a("br"),a("br"),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("登陆")])],1)],1)],1)],1)]),a("el-footer")],1)],1)},i=[],o=(n("10dd"),n("379d"),n("cad8")),r=n("b74f"),l=(n("daf0"),{data:function(){return{form:{name:"",pwd:"",valid:""},valImgSrc:"",valImgId:"",overtime:"",userLevel:"",userLevelText:""}},mounted:function(){this.overtime=new Date,this.getGenVerifyPic(),1==this.$route.query.status&&(this.changeValImg(),this.overtime=new Date),document.body.clientWidth<1024&&this.$message.warning("请横屏使用本系统")},methods:{getGenVerifyPic:function(){var e=this,t=new r["GenVerifyPicRequest"];t.setWidth(100),t.setHeight(42),t.setNoisecount(4),t.setLength(4),t.setSource("123456789"),e.client.genVerifyPic(t,{},(function(t,n){if(null!=n)e.valImgId=n.getId(),e.valImgSrc=n.getPic();else{var a=t;e.$message.error(a.message+",错误代码:"+a.code),console.log(a)}}))},changeValImg:function(){this.getGenVerifyPic()},onSubmit:function(){this.pwdLoginBtn()},pwdLoginBtn:function(){var e=this,t=this.form.name,n=this.form.pwd,a=this.form.valid;e.overtime=new Date,o["a"].globalValid(t,2,17,"用户名",e)&&o["a"].globalValid(n,5,17,"密码",e)&&o["a"].globalValid(a,3,5,"验证码",e)&&this.loginInfo()},loginInfo:function(){var e=this,t=this.form.name,n=this.form.pwd,a=this.form.valid,i=this.valImgId,o=new Date,l=o-e.overtime,s=120;if(l>1e3*s)return e.changeValImg(),e.$message.error("验证码已超时,请重新输入"),!1;var c=new r["ManagerSignInRequest"];c.setUsercode(t),c.setPassword(n),c.setPicid(i),c.setPiccode(a),e.client.managerSignIn(c,{},(function(t,n){n?(e.$router.push({path:"/"}),localStorage.token=n.getToken(),console.log(localStorage.token)):t&&(console.log(t),e.$notify({title:"警告",message:t.message+",错误代码:"+t.code,type:"warning"}),e.form.valid="",e.changeValImg())}))}}}),s=l,c=(n("e789"),n("cba8")),m=Object(c["a"])(s,a,i,!1,null,"e3048aaa",null);t["default"]=m.exports},e789:function(e,t,n){"use strict";n("1723")}}]);