chunk-3c3b8f3c.26a52d45.js.map 11 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/Login.vue?89a2","webpack:///./src/views/Login.vue?ceaa","webpack:///src/views/Login.vue","webpack:///./src/views/Login.vue?bf5f","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","type","indexOf","_k","keyCode","key","staticRenderFns","data","tp","username","password","imgcode_id","imgcode","utype","methods","created","component"],"mappings":"2IAAA,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,CAACF,EAAG,KAAK,CAACJ,EAAIO,GAAG,iBAAiBH,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,UAAG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U,EAAV,+BAII,QApBJ,WAoBM,IAAN,OACM,KAAN,iCACQ,EAAR,yBACQ,EAAR,iDAKEC,QA3CF,WA4CIrC,KAAKqB,YC3J0a,I,wBCQ/aiB,EAAY,eACd,EACAxC,EACA8B,GACA,EACA,KACA,KACA,MAIa,aAAAU,E","file":"js/chunk-3c3b8f3c.26a52d45.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.6@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.6@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,\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.login($event)}}},[_vm._v(\"登 录\")])],1)]),_c('p',{staticClass:\"footer\"},[_vm._v(\"Copyright © 2020 中科院 版权所有\")])])}\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: #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 .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>期刊微信公众号管理系统</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 © 2020 中科院 版权所有</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 }\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 this.$api.login(parms).then((res)=>{\r\n let data=res.data\r\n if(res.data.code == 0){\r\n window.location.hash='/index/index';\r\n }else{\r\n this.$message.error(\"账号或者密码有误\");\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.captcha_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.6@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.6@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=bb80f548&\"\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.6@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":""}