webpackJsonp([15],{"6Qob":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("3cXf"),o=s.n(i),n=s("5reh"),r=s("R2wu");function a(t){return t?(r.Message.warning(t),!1):(r.Message.warning("操作失败"),!1)}function l(t){return"cancel"==t?(r.Message.info(t||"cancel"),!1):t.hasOwnProperty("response")?401==t.response.status?(r.Message.error("登录过期"),!1):500==t.response.status?(r.Message.error("服务器错误500"),!1):void 0:(r.Message.error(t),!1)}var c=s("6iV/"),u={name:"login",data:function(){return{redirect:this.$route.query.redirect,token:"",form:{loginName:"damogic",password:"1",eid:"ff808081593917d90159398ec6340012"}}},computed:{imgHeight:function(){return document.body.clientHeight},imgWidth:function(){return document.body.clientWidth}},methods:{submitLogin:function(){var t=this;this.axios.post("/api-auth/do-login",c.stringify({loginName:this.form.loginName,password:this.form.password,eid:"ff808081593917d90159398ec6340012"})).then(function(e){if(e.data.success){(i=e.data.message)?r.Message.success(i):r.Message.success("操作成功");var s=decodeURIComponent(t.$route.query.redirect||"/index");t.$router.push({path:s})}else a(e.data.message);var i}).catch(function(t){l(t)})},getMenu:function(){var t=this;this.axios.get("/gic/get-menu").then(function(e){if(e.data.success){t.menuList=e.data.list,sessionStorage.setItem("menuList",o()(t.menuList));var s=t.$route.query.redirect||"/index";t.$router.push({path:s})}else a(e.data.errorMessage)}).catch(function(t){l(t)})}},mounted:function(){this.$store.commit(n.d,"login"),document.title=this.$store.state.title}},m={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"loginwrap",style:{height:t.imgHeight+"px"}},[s("div",{staticStyle:{position:"absolute",left:"0",height:"0",width:"100%"}},[s("canvas",{attrs:{id:"loginwrap",width:t.imgWidth,height:t.imgHeight}})]),t._v(" "),t._m(0),t._v(" "),s("div",{staticClass:"login_contetnt"},[s("h3",{staticClass:"login-top"},[t._v("让信息连接一切")]),t._v(" "),s("h4",{staticClass:"login-bottom"},[t._v("GIC商户后台")]),t._v(" "),s("div",{staticClass:"formlogin"},[s("el-form",{ref:"form",attrs:{model:t.form,"label-width":""}},[s("el-form-item",{attrs:{label:""}},[s("el-input",{staticClass:"forminput",attrs:{placeholder:"账号"},model:{value:t.form.loginName,callback:function(e){t.$set(t.form,"loginName",e)},expression:"form.loginName"}})],1),t._v(" "),s("el-form-item",{attrs:{label:""}},[s("el-input",{attrs:{type:"password",placeholder:"密码"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submitLogin("form")}},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),t._v(" "),s("el-form-item",[s("button",{staticClass:"submit",on:{click:function(e){return e.preventDefault(),t.submitLogin("form")}}},[t._v("立即登录")])])],1)],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logintop"},[e("div",{staticClass:"fl loginlogo"},[e("a",{staticClass:"fr logo",attrs:{href:"#"}},[this._v("login_logo.png")])]),this._v(" "),e("a",{staticClass:"home-link fr",attrs:{href:"http://www.demogic.com/"}},[this._v("返回首页")])])}]};var d=s("C7Lr")(u,m,!1,function(t){s("bzRT")},null,null);e.default=d.exports},bzRT:function(t,e){}});
//# sourceMappingURL=15.c25a001336023a697dd2.js.map