12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-45d58480"],{"0763":function(e,t,a){},"206d":function(e,t,a){"use strict";a("0763")},a55b:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"login"},[a("div",{staticClass:"login-div"},[a("h1",[e._v("期刊微信公众号管理系统")]),a("form",[a("div",{staticClass:"input_div"},[a("label",[e._v("账号")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.logindata.username,expression:"logindata.username"}],attrs:{type:"text",placeholder:"请输入用户名"},domProps:{value:e.logindata.username},on:{input:function(t){t.target.composing||e.$set(e.logindata,"username",t.target.value)}}})]),a("div",{staticClass:"input_div"},[a("label",[e._v("密 码")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.logindata.password,expression:"logindata.password"}],attrs:{type:"password",placeholder:"请输入密码"},domProps:{value:e.logindata.password},on:{input:function(t){t.target.composing||e.$set(e.logindata,"password",t.target.value)}}})]),a("div",{staticClass:"input_div code"},[a("img",{attrs:{src:e.code,alt:""},on:{click:e.getCode}}),a("label",[e._v("图形码")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.logindata.imgcode,expression:"logindata.imgcode"}],attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.logindata.imgcode},on:{input:function(t){t.target.composing||e.$set(e.logindata,"imgcode",t.target.value)}}})]),a("el-button",{staticClass:"login-btn",attrs:{type:"primary"},on:{click:e.login,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.login(t)}}},[e._v("登 录")])],1)]),a("p",{staticClass:"footer"},[e._v("Copyright © "+e._s(e.copyrightdate)+" 中国科学院 版权所有")])])},n=[],i={name:"login",data:function(){return{tp:"xt",code:"",logindata:{username:"",password:"",imgcode_id:"",imgcode:"",utype:2},copyrightdate:(new Date).getFullYear()}},methods:{keyupEnter:function(){var e=this;document.onkeydown=function(t){13===t.keyCode&&(console.log("enter"),e.login())}},login:function(){var e=this,t=this.logindata;console.log(t),this.$api.login(t).then((function(t){t.data;0==t.data.code?window.location.hash="/message/message":e.$message.error(t.data.message)}))},getCode:function(){var e=this;this.$api.getCode().then((function(t){e.code=t.data.data.imgcode,e.logindata.imgcode_id=t.data.data.imgcode_id}))}},created:function(){this.getCode()}},s=i,d=(a("206d"),a("5d22")),l=Object(d["a"])(s,o,n,!1,null,null,null);t["default"]=l.exports}}]);
- //# sourceMappingURL=chunk-45d58480.800de26b.js.map
|