chunk-2032f0f4.a4feea6a.js.map 12 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/Login.vue?5967","webpack:///./src/views/Login.vue?6251","webpack:///src/views/Login.vue","webpack:///./src/views/Login.vue?66dc","webpack:///./src/views/Login.vue","webpack:///./src/assets/title.png"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_m","_v","directives","name","rawName","value","logindata","expression","attrs","domProps","on","$event","target","composing","$set","code","getCode","login","type","indexOf","_k","keyCode","key","apply","arguments","_s","copyrightdate","staticRenderFns","data","tp","username","password","imgcode_id","imgcode","utype","methods","created","component","module","exports"],"mappings":"kHAAA,W,yCCAA,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,CAACN,EAAIO,GAAG,GAAGH,EAAG,OAAO,CAACA,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,QAAQ,CAACJ,EAAIQ,GAAG,SAASJ,EAAG,QAAQ,CAACK,WAAW,CAAC,CAACC,KAAK,QAAQC,QAAQ,UAAUC,MAAOZ,EAAIa,UAAkB,SAAEC,WAAW,uBAAuBC,MAAM,CAAC,KAAO,OAAO,YAAc,UAAUC,SAAS,CAAC,MAAShB,EAAIa,UAAkB,UAAGI,GAAG,CAAC,MAAQ,SAASC,GAAWA,EAAOC,OAAOC,WAAqBpB,EAAIqB,KAAKrB,EAAIa,UAAW,WAAYK,EAAOC,OAAOP,aAAaR,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,QAAQ,CAACJ,EAAIQ,GAAG,UAAUJ,EAAG,QAAQ,CAACK,WAAW,CAAC,CAACC,KAAK,QAAQC,QAAQ,UAAUC,MAAOZ,EAAIa,UAAkB,SAAEC,WAAW,uBAAuBC,MAAM,CAAC,KAAO,WAAW,YAAc,SAASC,SAAS,CA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,GACEL,KAAM,QACNyB,KAFF,WAGI,MAAJ,CACMC,GAAN,KACMd,KAAN,GACMT,UAAN,CACQwB,SAAR,OACQC,SAAR,SACQC,WAAR,GACQC,QAAR,GACQC,MAAR,GAEMR,eAAN,0BAGES,QAAF,CACI,WADJ,WACM,IAAN,OACM,SAAN,sBACA,iBACU,QAAV,aACU,EAAV,WAII,MATJ,WASM,IAAN,OACA,iBACM,QAAN,OACM,KAAN,gCACA,OACA,eACU,OAAV,sBAEU,EAAV,mCAII,QArBJ,WAqBM,IAAN,OACM,KAAN,iCACQ,EAAR,yBACQ,EAAR,iDAKEC,QA7CF,WA8CI1C,KAAKsB,YC/J0a,I,wBCQ/aqB,EAAY,eACd,EACA7C,EACAmC,GACA,EACA,KACA,KACA,MAIa,aAAAU,E,qDCnBfC,EAAOC,QAAU,IAA0B","file":"js/chunk-2032f0f4.a4feea6a.js","sourcesContent":["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.7@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.7@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\"},[_vm._m(0),_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,\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.login.apply(null, arguments)}}},[_vm._v(\"登 录\")])],1)]),_c('p',{staticClass:\"footer\"},[_vm._v(\"Copyright © \"+_vm._s(_vm.copyrightdate)+\" 湖南顽主杯 版权所有\")])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('h1',[_c('img',{attrs:{\"width\":\"345\",\"src\":require(\"../assets/title.png\"),\"alt\":\"\"}})])}]\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) no-repeat;\r\n background-size: 100%;\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:#F2F5F7;\r\n border-radius:8px;\r\n border:1px solid #EEEEEE;\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 border:1px solid #EEEEEE;\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: #FF5151;\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 .footer{\r\n position: fixed;\r\n width: 100%;\r\n bottom: 10px;\r\n left:0;\r\n z-index: 9;\r\n text-align: center;\r\n color:#fff;\r\n font-size: 14px;\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><img width=\"345\" src=\"../assets/title.png\" alt=\"\"></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>密&nbsp;&nbsp;码</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\" @keyup.enter=\"login\" class=\"login-btn\" type=\"primary\">登 录</el-button>\r\n </form>\r\n </div>\r\n <p class=\"footer\">Copyright © {{copyrightdate}} 湖南顽主杯 版权所有</p>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'login',\r\n data(){\r\n return{\r\n tp:'xt',\r\n code:'',\r\n logindata:{\r\n username:'root',\r\n password:'123456',\r\n imgcode_id:'',\r\n imgcode:'',\r\n utype:2\r\n },\r\n copyrightdate:new Date().getFullYear()\r\n }\r\n },\r\n methods:{\r\n keyupEnter(){\r\n document.onkeydown = e =>{\r\n if (e.keyCode === 13) {\r\n console.log('enter')\r\n this.login()\r\n }\r\n }\r\n },\r\n login(){\r\n let parms=this.logindata;\r\n console.log(parms)\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='/data';\r\n }else{\r\n this.$message.error(res.data.message);\r\n } \r\n })\r\n },\r\n getCode(){\r\n this.$api.getCode().then(res=>{\r\n this.code=res.data.data.imgcode\r\n this.logindata.imgcode_id=res.data.data.imgcode_id\r\n })\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.2.2@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.7@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.2.2@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.7@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=3eeeecd2&\"\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.7@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","module.exports = __webpack_public_path__ + \"img/title.d49039aa.png\";"],"sourceRoot":""}