chunk-b4c73768.8546d04b.js 9.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b4c73768"],{"0a2a":function(e,t,s){"use strict";s("2ec9")},"2ec9":function(e,t,s){},d726:function(e,t,s){e.exports=s.p+"static/img/口腔医院.ee8416ec.png"},dd7b:function(e,t,s){"use strict";s.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"login"},[r("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules}},[r("h3",{staticClass:"title"},[e._v("慧思盈合管理系统")]),r("el-form-item",{attrs:{prop:"username"}},[r("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:"账号"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}},[r("svg-icon",{staticClass:"el-input__icon input-icon",attrs:{slot:"prefix","icon-class":"user"},slot:"prefix"})],1)],1),r("el-form-item",{attrs:{prop:"password"}},[r("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:"密码"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}},[r("svg-icon",{staticClass:"el-input__icon input-icon",attrs:{slot:"prefix","icon-class":"password"},slot:"prefix"})],1)],1),e.captchaEnabled?r("el-form-item",{attrs:{prop:"code"}},[r("el-input",{staticStyle:{width:"63%"},attrs:{"auto-complete":"off",placeholder:"验证码"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}},model:{value:e.loginForm.code,callback:function(t){e.$set(e.loginForm,"code",t)},expression:"loginForm.code"}},[r("svg-icon",{staticClass:"el-input__icon input-icon",attrs:{slot:"prefix","icon-class":"validCode"},slot:"prefix"})],1),r("div",{staticClass:"login-code"},[r("img",{staticClass:"login-code-img",attrs:{src:e.codeUrl},on:{click:e.getCode}})])],1):e._e(),r("el-form-item",{staticStyle:{width:"100%"}},[r("el-button",{staticStyle:{width:"100%"},attrs:{loading:e.loading,size:"medium",type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e.loading?r("span",[e._v("登 录 中...")]):r("span",[e._v("登 录")])]),e.register?r("div",{staticStyle:{float:"right"}},[r("router-link",{staticClass:"link-type",attrs:{to:"/register"}},[e._v("立即注册")])],1):e._e()],1),r("div",{staticStyle:{"text-align":"right"}},[r("el-popover",{attrs:{placement:"bottom",width:"270px",trigger:"click"}},[r("div",{staticStyle:{display:"flex"}},[r("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center"}},[r("img",{staticStyle:{width:"100px",height:"100px"},attrs:{src:s("fa23")}}),r("p",[e._v("慧视通")])]),r("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center","margin-left":"20px"}},[r("img",{staticStyle:{width:"100px",height:"100px"},attrs:{src:s("d726")}}),r("p",[e._v("口腔医院")])])]),r("span",{staticStyle:{color:"#897d7d",cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"},[e._v("App下载")])])],1)],1),e._m(0)],1)},n=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"el-login-footer"},[s("span",{staticStyle:{"font-size":"15px","font-weight":"700"}},[e._v(" 使用推荐:谷歌浏览器 "),s("a",{staticStyle:{color:"#f00"},attrs:{href:"https://www.google.cn/chrome/",target:"_blank"}},[e._v("(点此下载)")]),e._v(" 推荐屏幕分辨率1920 * 1080 ")])])}],i=(s("14d9"),s("7ded")),a=s("852e"),A=s.n(a),o=s("24e5"),g=s.n(o),c="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKoR8mX0rGKLqzcWmOzbfj64K8ZIgOdH\nnzkXSOVOZbFu/TJhZ7rFAN+eaGkl3C4buccQd/EjEsj9ir7ijT7h96MCAwEAAQ==",l="MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAqhHyZfSsYourNxaY\n7Nt+PrgrxkiA50efORdI5U5lsW79MmFnusUA355oaSXcLhu5xxB38SMSyP2KvuKN\nPuH3owIDAQABAkAfoiLyL+Z4lf4Myxk6xUDgLaWGximj20CUf+5BKKnlrK+Ed8gA\nkM0HqoTt2UZwA5E2MzS4EI2gjfQhz5X28uqxAiEA3wNFxfrCZlSZHb0gn2zDpWow\ncSxQAgiCstxGUoOqlW8CIQDDOerGKH5OmCJ4Z21v+F25WaHYPxCFMvwxpcw99Ecv\nDQIgIdhDTIqD2jfYjPTY8Jj3EDGPbH2HHuffvflECt3Ek60CIQCFRlCkHpi7hthh\nYhovyloRYsM+IS9h/0BzlEAuO0ktMQIgSPT3aFAgJYwKpqRYKlLDVcflZFCKY7u3\nUP8iWi1Qw0Y=";function I(e){var t=new g.a;return t.setPublicKey(c),t.encrypt(e)}function C(e){var t=new g.a;return t.setPrivateKey(l),t.decrypt(e)}var d={name:"Login",data:function(){return{codeUrl:"",loginForm:{username:"",password:"",rememberMe:!1,code:"",uuid:""},loginRules:{username:[{required:!0,trigger:"blur",message:"请输入您的账号"}],password:[{required:!0,trigger:"blur",message:"请输入您的密码"}],code:[{required:!0,trigger:"change",message:"请输入验证码"}]},loading:!1,captchaEnabled:!1,register:!1,redirect:void 0}},watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},created:function(){this.getCode(),this.getCookie()},methods:{getCode:function(){var e=this;Object(i["a"])().then((function(t){e.captchaEnabled=void 0===t.captchaEnabled||t.captchaEnabled,e.captchaEnabled&&(e.codeUrl="data:image/gif;base64,"+t.img,e.loginForm.uuid=t.uuid)}))},getCookie:function(){var e=A.a.get("username"),t=A.a.get("password"),s=A.a.get("rememberMe");this.loginForm={username:void 0===e?this.loginForm.username:e,password:void 0===t?this.loginForm.password:C(t),rememberMe:void 0!==s&&Boolean(s)}},handleLogin:function(){var e=this;this.$refs.loginForm.validate((function(t){t&&(e.loading=!0,e.loginForm.rememberMe?(A.a.set("username",e.loginForm.username,{expires:30}),A.a.set("password",I(e.loginForm.password),{expires:30}),A.a.set("rememberMe",e.loginForm.rememberMe,{expires:30})):(A.a.remove("username"),A.a.remove("password"),A.a.remove("rememberMe")),e.$store.dispatch("Login",e.loginForm).then((function(){e.$router.push({path:e.redirect||"/"}).catch((function(){})),e.captchaEnabled&&(e.loading=!1,e.getCode())})).catch((function(){e.loading=!1,e.captchaEnabled&&e.getCode()})))}))}}},m=d,p=(s("0a2a"),s("2877")),u=Object(p["a"])(m,r,n,!1,null,null,null);t["default"]=u.exports},fa23:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAJ30lEQVR4nO3dS45lxw1AwW7D+9+yPPFU1waRonhKEfN6/zrIAcH8/ccff/wCKPjX3/0CAP5fggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAxr8Hf/P79+/nr2PNny0s/HhTHzsOZ381s/lca9Z+S7OPaPbyNr+O7j/j7FNywgIyBAvIECwgQ7CADMECMgQLyBAsIEOwgIzJ4OiHIxOMg2m62XTopguf7fPx2g9v53XTI6CDl3Hh1/LrL/jfccICMgQLyBAsIEOwgAzBAjIEC8gQLCBDsICMx4OjH56PkF0YjfuR46ab06HHX8bmyOua9H+iExaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWTsDY4etzlNtzmOeGFS8e3u0Oc25zyPz5Te54QFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZBkf/azamuHkB+tvn2tzn+Xw6dO2q+g/P51ovbNC9zwkLyBAsIEOwgAzBAjIEC8gQLCBDsIAMwQIy9gZHf+Rc3OabWnuuzTnPmQvLSD9sjhNffqK/ghMWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkPB4c7V63/XwD5/G/OrJWdPOvBp4/0dqb6v4nfnPCAj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