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