12 |
- webpackJsonp([14],{CfYu:function(e,s){},Luci:function(e,s,t){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=t("mvHQ"),i=t.n(a),o=t("Dd8w"),n=t.n(o),r=t("NYxO"),c=t("l/JR"),d={data:function(){return{aa:{},UId:"",username:"",password:"",getcode:"",code:""}},methods:{CreateCode:function(){this.code="";for(var e=new Array(0,1,2,3,4,5,6,7,8,9,"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"),s=0;s<4;s++){var t=Math.floor(36*Math.random());this.code+=e[t]}},UpLogin:function(){var e=this,s=(this.code,this.username),t=this.password;this.getcode.toUpperCase();if(s)if(t){var a={username:this.username,password:this.password};Object(c.n)(a).then(function(s){console.log(s),e.$store.state.login.userData=s})}else this.$message({showClose:!0,message:"请输入密码"});else this.$message({showClose:!0,message:"请输入账号"})}},mounted:function(){this.CreateCode(),document.onkeydown=function(e){var s=e||window.event;s&&13==s.keyCode&&document.getElementById("tologin").click()}},computed:n()({},Object(r.b)(["login"])),watch:{login:function(e){console.log(e),"True"==e.valide_info?(sessionStorage.setItem("userData",i()({userName:this.username,time:Date.now()})),this.$message({message:"登录成功!",type:"success"}),this.$router.push({path:"/admin"})):this.$message({showClose:!0,message:"账户密码有误!"})}},created:function(){for(var e=0;e<5;e++)requestAnimationFrame(function(){return console.log(e)})}},u={render:function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{attrs:{id:"login"}},[e._m(0),e._v(" "),t("div",{attrs:{id:"backPic"}}),e._v(" "),t("div",{staticClass:"nav"},[t("div",{staticClass:"inputs"},[t("span",[e._v("Hi,欢迎登录")]),e._v(" "),t("div",{staticClass:"zhanghao inputDiv"},[t("div",{staticClass:"iconfont username",staticStyle:{"font-size":"20px",margin:"auto 10px"}}),e._v(" "),t("div",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],staticClass:"text",attrs:{type:"text",placeholder:"请输入账号"},domProps:{value:e.username},on:{input:function(s){s.target.composing||(e.username=s.target.value)}}})])]),e._v(" "),t("div",{staticClass:"password inputDiv"},[t("div",{staticClass:"iconfont password",staticStyle:{"font-size":"20px",margin:"auto 10px"}}),e._v(" "),t("div",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],staticClass:"pass",attrs:{type:"password",placeholder:"请输入密码"},domProps:{value:e.password},on:{input:function(s){s.target.composing||(e.password=s.target.value)}}})])]),e._v(" "),t("div",{staticClass:"tologin",attrs:{id:"tologin"},on:{click:e.UpLogin}},[e._v("登 录")])])])])},staticRenderFns:[function(){var e=this.$createElement,s=this._self._c||e;return s("div",{staticClass:"header"},[s("div",{staticClass:"hint"},[s("span",[this._v("AMR")]),this._v(" AMR管理系统")])])}]};var l=t("VU/8")(d,u,!1,function(e){t("CfYu")},"data-v-c79fab2e",null);s.default=l.exports}});
- //# sourceMappingURL=14.d06a2b534adbd838b3d2.js.map
|