qy-renren-qt/dist/2209300913/static/js/6.js

1 line
4.1 KiB
JavaScript
Raw Normal View History

2022-09-30 09:18:17 +08:00
webpackJsonp([6],{LcsJ:function(t,n,e){var a=e("h7HG");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);e("rjj0")("62bce14c",a,!0)},h7HG:function(t,n,e){(t.exports=e("FZ+f")(!1)).push([t.i,'\n.site-wrapper.site-page--login {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: rgba(38, 50, 56, 0.6);\n overflow: hidden;\n}\n.site-wrapper.site-page--login:before {\n position: fixed;\n top: 0;\n left: 0;\n z-index: -1;\n width: 100%;\n height: 100%;\n content: "";\n background-image: url('+e("npKG")+");\n background-size: cover;\n}\n.site-wrapper.site-page--login .site-content__wrapper {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n padding: 0;\n margin: 0;\n overflow-x: hidden;\n overflow-y: auto;\n background-color: transparent;\n}\n.site-wrapper.site-page--login .site-content {\n min-height: 100%;\n padding: 30px 500px 30px 30px;\n}\n.site-wrapper.site-page--login .brand-info {\n margin: 220px 100px 0 90px;\n color: #fff;\n}\n.site-wrapper.site-page--login .brand-info__text {\n margin: 0 0 22px 0;\n font-size: 48px;\n font-weight: 400;\n text-transform: uppercase;\n}\n.site-wrapper.site-page--login .brand-info__intro {\n margin: 10px 0;\n font-size: 16px;\n line-height: 1.58;\n opacity: .6;\n}\n.site-wrapper.site-page--login .login-main {\n position: absolute;\n top: 0;\n right: 0;\n padding: 150px 60px 180px;\n width: 470px;\n min-height: 100%;\n background-color: #fff;\n}\n.site-wrapper.site-page--login .login-title {\n font-size: 16px;\n}\n.site-wrapper.site-page--login .login-captcha {\n overflow: hidden;\n}\n.site-wrapper.site-page--login .login-captcha > img {\n width: 100%;\n cursor: pointer;\n}\n.site-wrapper.site-page--login .login-btn-submit {\n width: 100%;\n margin-top: 38px;\n}\n",""])},npKG:function(t,n,e){t.exports=e.p+"static/img/login_bg.af8acc7.jpg"},wQTO:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"site-wrapper site-page--login"},[e("div",{staticClass:"site-content__wrapper"},[e("div",{staticClass:"site-content"},[t._m(0),t._v(" "),e("div",{staticClass:"login-main"},[e("h3",{staticClass:"login-title"},[t._v("管理员登录")]),t._v(" "),e("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"status-icon":""},nativeOn:{keyup:function(n){if(!("button"in n)&&t._k(n.keyCode,"enter",13,n.key,"Enter"))return null;t.dataFormSubmit()}}},[e("el-form-item",{attrs:{prop:"username"}},[e("el-input",{attrs:{placeholder:"帐号"},model:{value:t.dataForm.username,callback:function(n){t.$set(t.dataForm,"username",n)},expression:"dataForm.username"}})],1),t._v(" "),e("el-form-item",{attrs:{prop:"password"}},[e("el-input",{attrs:{type:"password",placeholder:"密码"},model:{value:t.dataForm.password,callback:function(n){t.$set(t.dataForm,"password",n)},expression:"dataForm.password"}})],1),t._v(" "),e("el-form-item",[e("el-button",{staticClass:"login-btn-submit",attrs:{type:"primary"},on:{click:function(n){t.dataFormSubmit()}}},[t._v("登录")])],1)],1)],1)])])])},staticRenderFns:[function(){var t=this.$createElement,n=this._self._c||t;return n("div",{staticClass:"brand-info"},[n("h2",{staticClass:"brand-info__text"},[this._v("全友WMS调度管理系统")])])}]};var i=e("VU/8")({data:function(){return{dataForm:{username:"admin",password:"admin"},dataRule:{username:[{required:!0,message:"帐号不能为空",trigger:"blur"}],password:[{required:!0,message:"密码不能为空",trigger:"blur"}]},captchaPath:""}},created:function(){},methods:{dataFormSubmit:function(){var t=this;this.$refs.dataForm.validate(function(n){n&&t.$http({url:t.$http.adornUrl("/sys/login"),method:"post",data:t.$http.adornData({username:t.dataForm.username,password:t.dataForm.password})}).then(function(n){var e=n.data;e&&0===e.code?(t.$cookie.set("token",e.token),t.$router.replace({name: