{"version":3,"sources":["webpack:///./src/utils/support.js","webpack:///src/views/login/index.vue","webpack:///./src/utils/validate.js","webpack:///./src/views/login/index.vue?3eb1","webpack:///./src/views/login/index.vue","webpack:///./src/assets/images/login_center_bg.png"],"names":["SupportKey","setSupport","isSupport","js_cookie_default","a","set","expires","setCookie","key","value","getCookie","get","login","name","data","loginForm","username","password","loginRules","required","trigger","validator","rule","callback","trim","length","Error","loading","pwdType","login_center_bg","login_center_bg_default","dialogVisible","supportDialogVisible","created","this","undefined","methods","showPwd","handleLogin","_this","$refs","validate","valid","console","log","$store","dispatch","then","$router","push","path","catch","e","handleTry","dialogConfirm","dialogCancel","views_login","render","_vm","_h","$createElement","_c","_self","staticClass","ref","attrs","autoComplete","model","rules","label-position","staticStyle","text-align","width","height","color","icon-class","_v","prop","type","placeholder","$$v","$set","expression","slot","nativeOn","keyup","$event","_k","keyCode","on","click","margin-bottom","preventDefault","src","title","visible","show-close","center","update:visible","margin-top","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__","module","exports","p"],"mappings":"sJACMA,EAAW,aAKV,SAASC,EAAWC,GACzB,OAAOC,EAAAC,EAAQC,IAAIL,EAAYE,GAAYI,QAAS,IAG/C,SAASC,EAAUC,EAAIC,EAAMH,GAClC,OAAOH,EAAAC,EAAQC,IAAIG,EAAKC,GAAQH,QAASA,IAGpC,SAASI,EAAUF,GACxB,OAAOL,EAAAC,EAAQO,IAAIH,4BCyDrBI,GACAC,KAAA,QACAC,KAFA,WAiBA,OACAC,WACAC,SAAA,GACAC,SAAA,IAEAC,YACAF,WAAAG,UAAA,EAAAC,QAAA,OAAAC,UApBA,SAAAC,EAAAb,EAAAc,GACAd,ECzEae,OAAOC,QAAQ,ED4E5BF,IAFAA,EAAA,IAAAG,MAAA,iBAmBAT,WAAAE,UAAA,EAAAC,QAAA,OAAAC,UAdA,SAAAC,EAAAb,EAAAc,GACAd,EAAAgB,OAAA,EACAF,EAAA,IAAAG,MAAA,aAEAH,QA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AAAJ,EAAA,8BC1BAK,EAAAC,QAAAL,EAAAM,EAAA","file":"static/js/18.fe6a1895f2c1a548ba34.js","sourcesContent":["import Cookies from \"js-cookie\";\r\nconst SupportKey='supportKey';\r\nexport function getSupport() {\r\n return Cookies.get(SupportKey)\r\n}\r\n\r\nexport function setSupport(isSupport) {\r\n return Cookies.set(SupportKey, isSupport,{ expires: 3 })\r\n}\r\n\r\nexport function setCookie(key,value,expires) {\r\n return Cookies.set(key, value,{ expires: expires})\r\n}\r\n\r\nexport function getCookie(key) {\r\n return Cookies.get(key)\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/support.js","\r\n\r\n\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/login/index.vue","export function isvalidUsername(str) {\r\n // const valid_map = ['admin', 'test']\r\n // return valid_map.indexOf(str.trim()) >= 0\r\n return str.trim().length>=3\r\n}\r\n\r\n/* 合法uri*/\r\nexport function validateURL(textval) {\r\n const urlregex = /^(https?|ftp):\\/\\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\\.)*[a-zA-Z0-9-]+\\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\\/($|[a-zA-Z0-9.,?'\\\\+&%$#=~_-]+))*$/\r\n return urlregex.test(textval)\r\n}\r\n\r\n/* 小写字母*/\r\nexport function validateLowerCase(str) {\r\n const reg = /^[a-z]+$/\r\n return reg.test(str)\r\n}\r\n\r\n/* 大写字母*/\r\nexport function validateUpperCase(str) {\r\n const reg = /^[A-Z]+$/\r\n return reg.test(str)\r\n}\r\n\r\n/* 大小写字母*/\r\nexport function validatAlphabets(str) {\r\n const reg = /^[A-Za-z]+$/\r\n return reg.test(str)\r\n}\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/validate.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-card',{staticClass:\"login-form-layout\"},[_c('el-form',{ref:\"loginForm\",attrs:{\"autoComplete\":\"on\",\"model\":_vm.loginForm,\"rules\":_vm.loginRules,\"label-position\":\"left\"}},[_c('div',{staticStyle:{\"text-align\":\"center\"}},[_c('svg-icon',{staticStyle:{\"width\":\"56px\",\"height\":\"56px\",\"color\":\"#409EFF\"},attrs:{\"icon-class\":\"login-mall\"}})],1),_vm._v(\" \"),_c('h2',{staticClass:\"login-title color-main\"},[_vm._v(\"管乐迷-商城管理系统\")]),_vm._v(\" \"),_c('el-form-item',{attrs:{\"prop\":\"username\"}},[_c('el-input',{attrs:{\"name\":\"username\",\"type\":\"text\",\"autoComplete\":\"on\",\"placeholder\":\"请输入用户名\"},model:{value:(_vm.loginForm.username),callback:function ($$v) {_vm.$set(_vm.loginForm, \"username\", $$v)},expression:\"loginForm.username\"}},[_c('span',{attrs:{\"slot\":\"prefix\"},slot:\"prefix\"},[_c('svg-icon',{staticClass:\"color-main\",attrs:{\"icon-class\":\"user\"}})],1)])],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"prop\":\"password\"}},[_c('el-input',{attrs:{\"name\":\"password\",\"type\":_vm.pwdType,\"autoComplete\":\"on\",\"placeholder\":\"请输入密码\"},nativeOn:{\"keyup\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleLogin($event)}},model:{value:(_vm.loginForm.password),callback:function ($$v) {_vm.$set(_vm.loginForm, \"password\", $$v)},expression:\"loginForm.password\"}},[_c('span',{attrs:{\"slot\":\"prefix\"},slot:\"prefix\"},[_c('svg-icon',{staticClass:\"color-main\",attrs:{\"icon-class\":\"password\"}})],1),_vm._v(\" \"),_c('span',{attrs:{\"slot\":\"suffix\"},on:{\"click\":_vm.showPwd},slot:\"suffix\"},[_c('svg-icon',{staticClass:\"color-main\",attrs:{\"icon-class\":\"eye\"}})],1)])],1),_vm._v(\" \"),_c('el-form-item',{staticStyle:{\"margin-bottom\":\"60px\",\"text-align\":\"center\"}},[_c('el-button',{staticStyle:{\"width\":\"100%\"},attrs:{\"type\":\"primary\",\"loading\":_vm.loading},nativeOn:{\"click\":function($event){$event.preventDefault();return _vm.handleLogin($event)}}},[_vm._v(\"\\n 登录\\n \")])],1)],1)],1),_vm._v(\" \"),_c('img',{staticClass:\"login-center-layout\",attrs:{\"src\":_vm.login_center_bg}}),_vm._v(\" \"),_c('el-dialog',{attrs:{\"title\":\"公众号二维码\",\"visible\":_vm.dialogVisible,\"show-close\":false,\"center\":true,\"width\":\"30%\"},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('div',{staticStyle:{\"text-align\":\"center\"}},[_c('span',{staticClass:\"font-title-large\"},[_c('span',{staticClass:\"color-main font-extra-large\"},[_vm._v(\"关注公众号\")]),_vm._v(\"回复\"),_c('span',{staticClass:\"color-main font-extra-large\"},[_vm._v(\"体验\")]),_vm._v(\"获取体验账号\")]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('img',{staticStyle:{\"margin-top\":\"10px\"},attrs:{\"src\":\"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/banner/qrcode_for_macrozheng_258.jpg\",\"width\":\"160\",\"height\":\"160\"}})]),_vm._v(\" \"),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.dialogConfirm}},[_vm._v(\"确定\")])],1)])],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-91ac1240\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/login/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-91ac1240\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-91ac1240\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-91ac1240\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/login/index.vue\n// module id = null\n// module chunks = ","module.exports = __webpack_public_path__ + \"static/img/login_center_bg.5307896.png\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/assets/images/login_center_bg.png\n// module id = hNpR\n// module chunks = 18"],"sourceRoot":""}