1 |
- {"version":3,"sources":["webpack:///./src/views/Login.vue?4215","webpack:///./src/views/Login.vue?812c","webpack:///src/views/Login.vue","webpack:///./src/views/Login.vue?ba03","webpack:///./src/views/Login.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","directives","name","rawName","value","logindata","expression","attrs","domProps","on","$event","target","composing","$set","code","getCode","login","staticRenderFns","data","username","password","imgcode_id","imgcode","methods","created","component"],"mappings":"kHAAA,yBAA2pB,EAAG,G,yCCA9pB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,SAAS,CAACF,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,KAAK,CAACJ,EAAIO,GAAG,cAAcH,EAAG,OAAO,CAACA,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,QAAQ,CAACJ,EAAIO,GAAG,SAASH,EAAG,QAAQ,CAACI,WAAW,CAAC,CAACC,KAAK,QAAQC,QAAQ,UAAUC,MAAOX,EAAIY,UAAkB,SAAEC,WAAW,uBAAuBC,MAAM,CAAC,KAAO,OAAO,YAAc,UAAUC,SAAS,CAAC,MAASf,EAAIY,UAAkB,UAAGI,GAAG,CAAC,MAAQ,SAASC,GAAWA,EAAOC,OAAOC,WAAqBnB,EAAIoB,KAAKpB,EAAIY,UAAW,WAAYK,EAAOC,OAAOP,aAAaP,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,QAAQ,CAACJ,EAAIO,GAAG,UAAUH,EAAG,QAAQ,CAACI,WAAW,CAAC,CAACC,KAAK,QAAQC,QAAQ,UAAUC,MAAOX,EAAIY,UAAkB,SAAEC,WAAW,uBAAuBC,MAAM,CAAC,KAAO,WAAW,YAAc,SAASC,SAAS,CAAC,MAASf,EAAIY,UAAkB,UAAGI,GAAG,CAAC,MAAQ,SAASC,GAAWA,EAAOC,OAAOC,WAAqBnB,EAAIoB,KAAKpB,EAAIY,UAAW,WAAYK,EAAOC,OAAOP,aAAaP,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,MAAM,CAACU,MAAM,CAAC,IAAMd,EAAIqB,KAAK,IAAM,IAAIL,GAAG,CAAC,MAAQhB,EAAIsB,WAAWlB,EAAG,QAAQ,CAACJ,EAAIO,GAAG,SAASH,EAAG,QAAQ,CAACI,WAAW,CAAC,CAACC,KAAK,QAAQC,QAAQ,UAAUC,MAAOX,EAAIY,UAAiB,QAAEC,WAAW,sBAAsBC,MAAM,CAAC,KAAO,OAAO,YAAc,UAAUC,SAAS,CAAC,MAASf,EAAIY,UAAiB,SAAGI,GAAG,CAAC,MAAQ,SAASC,GAAWA,EAAOC,OAAOC,WAAqBnB,EAAIoB,KAAKpB,EAAIY,UAAW,UAAWK,EAAOC,OAAOP,aAAaP,EAAG,YAAY,CAACE,YAAY,YAAYQ,MAAM,CAAC,KAAO,WAAWE,GAAG,CAAC,MAAQhB,EAAIuB,QAAQ,CAACvB,EAAIO,GAAG,WAAW,QAC3jDiB,EAAkB,GCsGtB,GACEf,KAAM,QACNgB,KAFF,WAGI,MAAJ,CACMJ,KAAN,GACMT,UAAN,CACQc,SAAR,OACQC,SAAR,OACQC,WAAR,GACQC,QAAR,MAIEC,QAAF,CACI,MADJ,WACM,IAAN,OACA,iBACM,KAAN,gCACA,OACA,eACU,OAAV,kBAEU,EAAV,8BAGA,mBACQ,EAAR,+BAGI,QAfJ,WAeM,IAAN,OACM,KAAN,iCACQ,EAAR,yBACQ,EAAR,iDAIEC,QAnCF,WAoCI9B,KAAKqB,YC3I0a,I,wBCQ/aU,EAAY,eACd,EACAjC,EACAyB,GACA,EACA,KACA,KACA,MAIa,aAAAQ,E","file":"js/chunk-209da8fc.6977ddd0.js","sourcesContent":["import mod from \"-!../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--8-oneOf-1-1!../../node_modules/_vue-loader@15.9.2@vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.2@vue-loader/lib/index.js??vue-loader-options!./Login.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--8-oneOf-1-1!../../node_modules/_vue-loader@15.9.2@vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.2@vue-loader/lib/index.js??vue-loader-options!./Login.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"login\"},[_c('div',{staticClass:\"login-div\"},[_c('h1',[_vm._v(\"巴中逸沣安全培训\")]),_c('form',[_c('div',{staticClass:\"input_div\"},[_c('label',[_vm._v(\"用户名\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.logindata.username),expression:\"logindata.username\"}],attrs:{\"type\":\"text\",\"placeholder\":\"请输入用户名\"},domProps:{\"value\":(_vm.logindata.username)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.logindata, \"username\", $event.target.value)}}})]),_c('div',{staticClass:\"input_div\"},[_c('label',[_vm._v(\"密 码\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.logindata.password),expression:\"logindata.password\"}],attrs:{\"type\":\"password\",\"placeholder\":\"请输入密码\"},domProps:{\"value\":(_vm.logindata.password)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.logindata, \"password\", $event.target.value)}}})]),_c('div',{staticClass:\"input_div code\"},[_c('img',{attrs:{\"src\":_vm.code,\"alt\":\"\"},on:{\"click\":_vm.getCode}}),_c('label',[_vm._v(\"图形码\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.logindata.imgcode),expression:\"logindata.imgcode\"}],attrs:{\"type\":\"text\",\"placeholder\":\"请输入验证码\"},domProps:{\"value\":(_vm.logindata.imgcode)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.logindata, \"imgcode\", $event.target.value)}}})]),_c('el-button',{staticClass:\"login-btn\",attrs:{\"type\":\"primary\"},on:{\"click\":_vm.login}},[_vm._v(\"登 录\")])],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<style lang=\"scss\">\r\n @import '../style/_base.scss';\r\n .login{\r\n height: 100vh;\r\n min-height: 450px;\r\n background: url(../assets/bg.png) 100%;\r\n background-position: center bottom; \r\n // background: #1F315D;\r\n position: relative;\r\n .login-div{\r\n width:520px;\r\n height:448px;\r\n background:#FFFFFF;\r\n box-shadow:0px 12px 24px 0px rgba(0,0,0,0.24);\r\n border-radius:8px;\r\n position: absolute;\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n margin: auto;\r\n padding:48px 75px;\r\n h1{\r\n text-align: center;\r\n margin-bottom: 40px;\r\n font-size: 28px;\r\n }\r\n .input_div{\r\n position: relative;\r\n margin-bottom: 12px;\r\n input{\r\n padding-left: 80px;\r\n outline: none;\r\n background:rgba(242,245,247,1);\r\n border-radius:8px;\r\n border:1px solid rgba(238,238,238,1);\r\n display: block;\r\n height: 54px;\r\n width: 100%;\r\n font-size: 16px;\r\n }\r\n label{\r\n color: #222;\r\n font-size: 16px;\r\n position: absolute;\r\n left: 16px;\r\n top:16px;\r\n z-index: 99;\r\n }\r\n }\r\n .code{\r\n input{\r\n width: 250px;\r\n }\r\n img{\r\n width: 108px;\r\n height: 54px;\r\n float: right;\r\n background-origin: 1px solid red;\r\n }\r\n }\r\n \r\n .login-btn{\r\n background: #066FE6;\r\n width: 100%;\r\n height: 54px;\r\n margin-top: 36px;\r\n font-size: 18px;\r\n color: #FFF;\r\n font-weight: 600;\r\n border:none;\r\n border-radius: 8px;\r\n }\r\n }\r\n }\r\n</style>\r\n\r\n<template>\r\n <div class=\"login\">\r\n <div class=\"login-div\">\r\n <h1>巴中逸沣安全培训</h1>\r\n <form>\r\n <div class=\"input_div\">\r\n <label>用户名</label>\r\n <input type=\"text\" v-model=\"logindata.username\" placeholder=\"请输入用户名\">\r\n </div>\r\n <div class=\"input_div\">\r\n <label>密 码</label>\r\n <input type=\"password\" v-model=\"logindata.password\" placeholder=\"请输入密码\">\r\n </div>\r\n <div class=\"input_div code\">\r\n <img @click=\"getCode\" :src=\"code\" alt=\"\">\r\n <label>图形码</label>\r\n <input type=\"text\" v-model=\"logindata.imgcode\" placeholder=\"请输入验证码\"> \r\n </div>\r\n <el-button @click=\"login\" class=\"login-btn\" type=\"primary\">登 录</el-button>\r\n </form>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n// import { Base64 } from 'js-base64';\r\nexport default {\r\n name: 'login',\r\n data(){\r\n return{\r\n code:'',\r\n logindata:{\r\n username:'root',\r\n password:'root',\r\n imgcode_id:'',\r\n imgcode:''\r\n }\r\n }\r\n },\r\n methods:{\r\n login(){\r\n let parms=this.logindata; \r\n this.$api.login(parms).then((res)=>{\r\n let data=res.data\r\n if(res.data.code == 0){\r\n window.location.hash='/';\r\n }else{\r\n this.$message.error(\"账号或者密码有误\");\r\n } \r\n })\r\n .catch(err=>{\r\n this.$message.error(\"账号或者密码有误\");\r\n })\r\n },\r\n getCode(){\r\n this.$api.getCode().then(res=>{\r\n this.code=res.data.data.ubase64\r\n this.logindata.imgcode_id=res.data.data.captcha_id\r\n })\r\n }\r\n },\r\n created(){\r\n this.getCode();\r\n }\r\n}\r\n</script>\r\n","import mod from \"-!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../node_modules/_babel-loader@8.1.0@babel-loader/lib/index.js!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.2@vue-loader/lib/index.js??vue-loader-options!./Login.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../node_modules/_babel-loader@8.1.0@babel-loader/lib/index.js!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.2@vue-loader/lib/index.js??vue-loader-options!./Login.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Login.vue?vue&type=template&id=2ddece27&\"\nimport script from \"./Login.vue?vue&type=script&lang=js&\"\nexport * from \"./Login.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Login.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/_vue-loader@15.9.2@vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
|