1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3058"],{"/PZr":function(n,t,e){"use strict";var o=e("X3sy");e.n(o).a},"092T":function(n,t,e){(n.exports=e("I1BE")(!1)).push([n.i,'@charset "UTF-8";\n/* 修复input 背景不协调 和光标变色 */\n/* Detail see https://github.com/PanJiaChen/vue-element-admin/pull/927 */\n@supports (-webkit-mask: none) and (not (cater-color: #000)) {\n.login-container .el-input input {\n color: #000;\n}\n.login-container .el-input input::first-line {\n color: #5e5e5e;\n}\n}\n.login-container .el-input {\n display: inline-block;\n width: 350px;\n border: none;\n}\n.login-container .el-input .el-input__inner {\n padding: 0 7px;\n}\n.login-container .el-input input {\n background-color: #fff;\n border: 0px;\n margin: 0;\n border-radius: 0px;\n color: #5e5e5e;\n caret-color: #000;\n -webkit-appearance: none;\n letter-spacing: 1px;\n}\n.login-container .el-input input:-webkit-autofill {\n -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;\n -webkit-text-fill-color: #000 !important;\n}\n.login-container .el-form-item {\n /*border: 1px solid rgba(255, 255, 255, 0.1);*/\n /*background: rgba(0, 0, 0, 0.1);*/\n border: 1px solid #999999;\n background-color: #FFFFFF;\n color: #454545;\n border: 1px solid #DDDDDD;\n}\n',""])},"1QAu":function(n,t,e){"use strict";e.d(t,"b",function(){return i}),e.d(t,"a",function(){return a});var o=e("clrU");function i(n){return Object(o.a)({url:"user/login-by-xtoken",method:"post",data:n})}function a(n){return Object(o.a)({url:"app/alarm-type",method:"post",data:n})}},"7GqK":function(n,t,e){(n.exports=e("I1BE")(!1)).push([n.i,'.login-container[data-v-5c216a18] {\n min-height: 100%;\n width: 100%;\n background-color: #2d3a4b;\n background-image: url("http://qiniu.blueseawlh.cn/bg.png");\n background-repeat: no-repeat;\n background-position: center;\n background-size: cover;\n overflow: hidden;\n}\n.login-container .header[data-v-5c216a18] {\n position: relative;\n z-index: 99;\n height: 60px;\n padding: 13px 67px;\n background-color: rgba(255, 255, 255, 0.3);\n font-weight: 400;\n color: #FFFFFF;\n font-size: 22px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.login-container .header img[data-v-5c216a18] {\n position: absolute;\n top: 13px;\n left: 23px;\n width: 34px;\n height: 34px;\n border-radius: 50%;\n}\n.login-container .logo-text[data-v-5c216a18] {\n position: absolute;\n top: 13%;\n left: 227px;\n}\n.login-container .logo-text > div[data-v-5c216a18]:nth-of-type(1) {\n font-size: 50px;\n font-weight: 500;\n color: #1B3956;\n}\n.login-container .logo-text > div[data-v-5c216a18]:nth-of-type(2) {\n font-size: 30px;\n font-weight: 400;\n color: #1B3956;\n}\n.login-container .logo-text img[data-v-5c216a18] {\n height: 106px;\n}\n.login-container .login-form[data-v-5c216a18] {\n position: relative;\n width: 450px;\n max-width: 100%;\n float: right;\n margin: 0 5%;\n margin-top: 100px;\n overflow: hidden;\n background-color: rgba(70, 44, 6, 0.6);\n border: 0;\n -webkit-box-shadow: 0 1px 4px #545c64;\n box-shadow: 0 1px 4px #545c64;\n}\n.login-container .login-form .title[data-v-5c216a18] {\n font-size: 26px;\n color: #eee;\n text-align: center;\n font-weight: bold;\n}\n.login-container .tips[data-v-5c216a18] {\n font-size: 14px;\n color: #fff;\n margin-bottom: 10px;\n}\n.login-container .tips span[data-v-5c216a18]:first-of-type {\n margin-right: 16px;\n}\n.login-container .svg-container[data-v-5c216a18] {\n padding: 6px 5px 6px 15px;\n color: #889aa4;\n vertical-align: middle;\n width: 30px;\n display: inline-block;\n}\n.login-container .title-container[data-v-5c216a18] {\n position: relative;\n}\n.login-container .title-container .set-language[data-v-5c216a18] {\n color: #fff;\n position: absolute;\n top: 5px;\n right: 0px;\n}\n.login-container .show-pwd[data-v-5c216a18] {\n position: absolute;\n right: 10px;\n top: 7px;\n font-size: 16px;\n color: #889aa4;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.login-container .verify_code_click[data-v-5c216a18] {\n margin-right: 10px;\n cursor: pointer;\n}\n.login-container .thirdparty-button[data-v-5c216a18] {\n float: right;\n}\n.login-container #login-btn[data-v-5c216a18],\n .login-container #login-btn[data-v-5c216a18]:hover {\n background-color: #409EFF;\n color: white;\n}\n.login-container .qr-code-container[data-v-5c216a18] {\n margin: 50px 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-pack: distribute;\n justify-content: space-around;\n color: white;\n}\n.login-container .qr-item[data-v-5c216a18] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.login-container .verify_code[data-v-5c216a18] {\n width: 15px;\n height: 15px;\n margin-top: 11px;\n}\n.login-container .qr-code-img[data-v-5c216a18] {\n width: 120px;\n height: 120px;\n margin-bottom: 15px;\n -webkit-box-shadow: 2px 5px 8px rgba(157, 149, 149, 0.8);\n box-shadow: 2px 5px 8px rgba(157, 149, 149, 0.8);\n border-radius: 40px;\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n}\n.login-container .qr-desc[data-v-5c216a18] {\n font-weight: bold;\n font-size: 14px;\n}\n.login-container .login-form-second[data-v-5c216a18] {\n position: absolute;\n top: 18%;\n right: 5%;\n width: 450px;\n overflow: hidden;\n background-color: #FFFFFF;\n -webkit-box-shadow: 0 1px 4px #545c64;\n box-shadow: 0 1px 4px #545c64;\n padding: 66px 20px 0;\n border-radius: 3px;\n}\n.login-container .login-form-second .title-second[data-v-5c216a18] {\n font-size: 28px;\n color: #333333;\n text-align: center;\n font-weight: 500;\n margin-bottom: 45px;\n}\n.login-container .login-form-second .title-second .title-img-second[data-v-5c216a18] {\n font-weight: 600;\n}\n.login-container .login-form-second .title-second .title-img-second img[data-v-5c216a18] {\n height: 77px;\n width: 77px;\n}\n.login-container .svg-container-second[data-v-5c216a18] {\n padding: 3px 0 3px 15px;\n color: #889aa4;\n vertical-align: middle;\n width: 30px;\n display: inline-block;\n}\n.login-container .show-pwd-second[data-v-5c216a18] {\n position: absolute;\n right: 10px;\n top: 7px;\n font-size: 16px;\n color: #889aa4;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.login-container .verify_code_click-second[data-v-5c216a18] {\n cursor: pointer;\n height: 35px;\n}\n.login-container #login-btn-second[data-v-5c216a18],\n .login-container #login-btn-second[data-v-5c216a18]:hover {\n background-color: #44C258;\n color: white;\n height: 50px;\n margin-top: 10px;\n}\n.login-container .verify_code-second[data-v-5c216a18] {\n width: 15px;\n height: 15px;\n margin-top: 11px;\n}\n',""])},DGHX:function(n,t,e){var o=e("092T");"string"==typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);(0,e("SZ7m").default)("7953b456",o,!0,{})},JTK5:function(n,t,e){"use strict";var o=e("TqlY");e.n(o).a},NlmW:function(n,t,e){(n.exports=e("I1BE")(!1)).push([n.i,".social-signup-container[data-v-1267af6f] {\n margin: 20px 0;\n}\n.social-signup-container .sign-btn[data-v-1267af6f] {\n display: inline-block;\n cursor: pointer;\n}\n.social-signup-container .icon[data-v-1267af6f] {\n color: #fff;\n font-size: 24px;\n margin-top: 8px;\n}\n.social-signup-container .wx-svg-container[data-v-1267af6f],\n .social-signup-container .qq-svg-container[data-v-1267af6f] {\n display: inline-block;\n width: 40px;\n height: 40px;\n line-height: 40px;\n text-align: center;\n padding-top: 1px;\n border-radius: 4px;\n margin-bottom: 20px;\n margin-right: 5px;\n}\n.social-signup-container .wx-svg-container[data-v-1267af6f] {\n background-color: #24da70;\n}\n.social-signup-container .qq-svg-container[data-v-1267af6f] {\n background-color: #6BA2D6;\n margin-left: 50px;\n}\n",""])},S9Ty:function(n,t,e){n.exports=e.p+"static/img/yd.acdac7a.png"},TqlY:function(n,t,e){var o=e("NlmW");"string"==typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);(0,e("SZ7m").default)("4f6e0492",o,!0,{})},X3sy:function(n,t,e){var o=e("7GqK");"string"==typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);(0,e("SZ7m").default)("aeaa23b6",o,!0,{})},Xzr9:function(n,t){n.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAB9xJREFUeF7tWn1s3PQZfl7fXT9EBZ00IaQNxMTGhNYyKjaEkGDttE1MUNRSxFDOviZpz+4HFNIm9qX7YxmNlPi6fhDoruejO5rzEVZU6AS0FRIqAoY0MbgiGCqIdQghEIOJZhAxmpzfySkJSc6O7TvfLWHxv37f93mfx+/vw7/fS/gfPD254tUC42eA1USgYQAHowIf27peervR6VAjAdP78hdxLNoN0DpHXKYdi/HZDkVRbFEa8jRMAD378CoQdwP8Aw9mL5LAO9T10vFGKFB3AbLZbGyQzutmQA1EiLFr4Xm4d4so/juQX0Djugpw7qtbWwFcHzCvMfOTRJRRk3GjSn9Pt9AFsL/4GWFRAsxrayA+KXECXgaRUQ8hQhPAnuCsaCxBRAkf49zzyzgZ1EOImgToyeQvjURiKy1gBQErACyuillwpw9AVAK4RCyUylEudbbGTwcPAwQSoCufXzB/OLZUYL6RiVYS8ONqQOviw3gTxCVmKhFzKUKRUrvS9LEXlqsAoyUdi95AJCyBZS0F0RIA3/UKOIPe23uJEgElCHzEbVmtEGDXHwYuHhmx+gBeNYPI1J4KU54Ra0sptw9ODFYhgJ4rPg3mn9eOOAMjMI5rivhLVwF6jP5mAUJ+BqYeWkrMfHNKkZ4aCzipAvSseRiEW0NDm4GBCHhWlUV7xRp9JgmQNswTDCyfgXmHltKcAHMVMDcE5uaAuUlwbhX4WiyD/BFAj1plflSI0s3MvJJAl3utl1+LZZCAlwQWEu1K06kxwmnDbGX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czMzHvBK3Nf7KXvvqT66UdwFsN1JVseHj2qydJMTgGMFdGcOfisWiZ4CeFEYWRGhV02KnRXks4UciMZ/TcPAcophwWrplBMP+RbANtRz5h4w7gkrKYv5t7EYHWpvFd8Y7RW2uAOE8ZOZsHAc4rwjDFpLOjoSQ4EE2JPPLz47HLM3RVeFmxz9rV5tdI55ukx+Y7bTdonp2cIqED0ergANjXaGQCtUOX7SDdWzTS7sodBQ+ow2TRH3TofpKUD9hkK9paAjmhxf7YXiKcDohDj7hoJn6fuaAyaqlzYKdzNo2nLyUrth732UfmABbIe0UdzJ4PaGEakCiECHVTl+m19XX0NgYjA9az7SoPXbL4dxO/vWmBZYKzoSzmt+oH3AdOh6tnAMRDcGzrCuDvThPLaWtSnSB0FgAlfAWHDdMP8I4PYgYPW0jbBwxcR+Ab9YVQtgA/Qa5l0E9PkFq5ddma1rtyuJqn7haxLAJrTTMFdbgONZfr0IT4wbRfT72+Q7HI/l/eDXLMC51aH/J4zIAYAv8wMaho3d68ORL27R1q37tJZ4oQgwWgkP9i+xLMG+GPW9BFWbOBH2qUnRz4WLJ0RoAoxPjrniOjDbt7bf8UQPbvCJxdzXqUhdwV2dPUIXwIbRc+a3CbSdmT2Pw/wSYeYMlXGftkl606+PH7u6CDAG3Guf74OkWjZODDoskHWfmpSe90MoqE1dBRgfFvsHfgQq220pthjelx2E02A6wkyPp5SmF4KSCmLfEAHGEtq1b+DikZi1nGBdCdCVDPwQwDwCTvMoaT5tlXG8c6P0bBAStdj+F0bSB24frKj2AAAAAElFTkSuQmCC"},Yfch:function(n,t,e){"use strict";function o(n){return!!/^[1][3,4,5,7,8][0-9]{9}$/.test(n)}e.d(t,"a",function(){return o})},c11S:function(n,t,e){"use strict";var o=e("DGHX");e.n(o).a},clrU:function(n,t,e){"use strict";var o=e("4d7F"),i=e.n(o),a=e("vDqi"),r=e.n(a),c=e("XJYT"),s=e("Q2AE"),l=e("X4fA"),d=r.a.create({baseURL:"https://bmsapi.bms16.com/",timeout:15e3});d.interceptors.request.use(function(n){return s.a.getters.token&&(n.headers["X-Token"]=Object(l.b)(),n.params={token:Object(l.a)()}),n},function(n){i.a.reject(n)}),d.interceptors.response.use(function(n){return n},function(n){return Object(c.Message)({message:n.message,type:"error",duration:5e3}),i.a.reject(n)}),t.a=d},jSrf:function(n,t){n.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAA1CAMAAABRCbpEAAAAllBMVEVMX3BXaXpZbH1RY3RVaHk0Q1JWaXlQYnNabH5WaXlWaXlTZXZabH5SZHVVZ3hQY3NYa3xPYXJTZnZZbH1Za31XaXpNX3BZbH1UZ3dVaHhWaHldbn5NYHFZanxZbH1PYXJUZndVaHhOYXJYantYa3xUZ3hYan1UZ3dOYXJPYXJTZXZUZndVaHhSZHVQYnNNYHJNYHFRY3QAecPIAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFw2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25z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AuaWlkOjRkMjM0MDdjLTU2ZGQtNzg0MS1iZGU0LTQzZjhmMTc4MGMyYiIgc3RFdnQ6d2hlbj0iMjAyMC0wMy0xM1QxNjozNjoyNCswODowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDwvcmRmOlNlcT4gPC94bXBNTTpIaXN0b3J5PiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PhxoARAAAACPSURBVBjTTci/LkNxHAfQ8/mVezXRlCAdCIO/pbfa938Mj2CwNJFYJMJl+Q6WM5wcmkr0xcKHXNpJ57s40cmpmax8FXc6OXIg936KGxO59i4TC9l6kT2DrLxKr5e1T7k1LY7NZanJk7FYanJlJ4/G4kErZs5k0OTZWAxaceFNNiJbv8VG/l9vLqyLc0328Qcwnx3kKY5sbgAAAABJRU5ErkJggg=="},ntYl:function(n,t,e){"use strict";e.r(t);var o=e("Yfch"),i=e("ETGp"),a={name:"SocialSignin",methods:{wechatHandleClick:function(n){alert("ok")},tencentHandleClick:function(n){alert("ok")}}},r=(e("JTK5"),e("KHd+")),c=Object(r.a)(a,function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"social-signup-container"},[e("div",{staticClass:"sign-btn",on:{click:function(t){n.wechatHandleClick("wechat")}}},[e("span",{staticClass:"wx-svg-container"},[e("svg-icon",{staticClass:"icon",attrs:{"icon-class":"wechat"}})],1),n._v(" 微信\n ")]),n._v(" "),e("div",{staticClass:"sign-btn",on:{click:function(t){n.tencentHandleClick("tencent")}}},[e("span",{staticClass:"qq-svg-container"},[e("svg-icon",{staticClass:"icon",attrs:{"icon-class":"qq"}})],1),n._v(" QQ\n ")])])},[],!1,null,"1267af6f",null);c.options.__file="socialsignin.vue";var s=c.exports,l=e("X4fA"),d=e("1QAu"),p=e("p46w"),g=e.n(p),u=e("W2mo"),m={name:"Login",components:{LangSelect:i.a,SocialSign:s},data:function(){return{version:"4.1.241205.01",loginForm:{username:"",password:"",device:""},loginRules:{username:[{required:!0,trigger:"blur",validator:function(n,t,e){Object(o.a)(t)?e():e(new Error("请输入正确的手机号"))}}],password:[{required:!0,trigger:"blur",validator:function(n,t,e){t.length<6?e(new Error("请输入至少6位密码")):e()}}]},passwordType:"password",loading:!1,showDialog:!1,redirect:void 0,codeImg:"",yd:"admin.zxbms16.com"===window.location.host,cj:"admin.changjiangevcloud.com"===window.location.host,noticTitle:"",noticContent:"",centerDialogVisible:!1,isRefresh:!1}},watch:{$route:{handler:function(n){this.redirect=n.query&&n.query.redirect,this.isRefresh=n.query&&n.query.isRefresh},immediate:!0}},created:function(){this.loadNoticeList(),this.getVerifyCodeRequet()},methods:{showPwd:function(){"password"===this.passwordType?this.passwordType="":this.passwordType="password"},handleLogin:function(){var n=this,t="";if(void 0===Object(l.c)()){for(var e="",o=0;o<6;o++)e+=Math.floor(10*Math.random());t=(new Date).getTime()+e,Object(l.g)(t)}else t=Object(l.c)();this.loginForm.device=navigator.userAgent,this.loginForm.xCookie=t,this.$refs.loginForm.validate(function(t){if(!t)return n.getVerifyCodeRequet(),!1;n.loading=!0,n.$store.dispatch("LoginByUsername",n.loginForm).then(function(){n.loadTokenReponse(),setTimeout(function(){n.loading=!1,n.$router.push({path:"/"})},500)}).catch(function(t){n.getVerifyCodeRequet(),n.$set(n.loginForm,"verify_code",""),n.$refs.verifyCode&&n.$refs.verifyCode.focus(),n.$message.error(t),n.loading=!1})})},loadTokenReponse:function(){var n=this;Object(d.b)({xtoken:g.a.get("Admin-Token")}).then(function(t){200===t.data.code&&(Object(l.e)(t.data.data.token),1===n.isRefresh&&n.$store.dispatch("GetUserInfo"))})},toRegister:function(){this.$router.push({path:"/register"})},getVerifyCodeRequet:function(){var n="";if(void 0===Object(l.c)()){for(var t="",e=0;e<6;e++)t+=Math.floor(10*Math.random());n=(new Date).getTime()+t,Object(l.g)(n)}else n=Object(l.c)();this.codeImg="https://api.admin.bms16.com/?r=user/captcha&refresh=1&v="+(new Date).getTime()+"&xCookie="+n},loadNoticeList:function(){var n=this;Object(u.a)({app_type:"bms"}).then(function(t){var e=t.data.data.list.length;if(e>=1){var o=t.data.data.list[e-1],i=Date.parse(new Date)/1e3;i>=o.begin_time&&i<=o.end_time&&o.title&&o.content&&(n.centerDialogVisible=!0,n.noticTitle=o.title,n.noticContent=o.content)}})}}},f=(e("c11S"),e("/PZr"),Object(r.a)(m,function(){var n=this,t=n.$createElement,o=n._self._c||t;return o("div",{staticClass:"login-container",style:{backgroundImage:n.yd?"url(https://qiniu.bms16.com/FpJAbhETZUuwysh7TUWY_RMHaQoo)":n.cj?"url(https://zxappfile.bms16.com/zx_admin/wlwlbg2.jpg)":"url(https://qiniu.bms16.com/FgsxwO4_vwRd6_4daKBDmiBZvvNt)"}},[n.cj?o("div",{staticClass:"header"},[n._v("\n "+n._s(n.cj?"新能源运营中心":"")+"\n ")]):n._e(),n._v(" "),n.yd?o("div",{staticClass:"header",style:{backgroundImage:"url("+e("jSrf")+")"}},[n._v("\n "+n._s(n.yd?"新能源运营中心(国际版)":"")+"\n ")]):n._e(),n._v(" "),n.yd?n._e():o("div",{staticClass:"login-form-second"},[o("div",{staticClass:"title-second"},[n.yd?o("span",[o("el-image",{attrs:{src:e("S9Ty"),fit:n.contain}})],1):o("span",{staticClass:"title-img-second"},[n._v("\n 充 电 站 运 营 中 心\n ")]),n._v(" "),o("span",{staticStyle:{"font-size":"8px"}},[n._v(n._s(n.version))])]),n._v(" "),o("el-form",{ref:"loginForm",attrs:{model:n.loginForm,rules:n.loginRules,"auto-complete":"on","label-position":"left"}},[o("el-form-item",{attrs:{prop:"login_phone"}},[o("span",{staticClass:"svg-container-second"},[o("img",{staticClass:"verify_code-second",attrs:{src:"https://qiniu.bms16.com/FjQMHbfI1kZAinGwu0lOaA4JkFEd"}})]),n._v(" "),o("el-input",{staticClass:"el_input-second",staticStyle:{"background-color":"transparent"},attrs:{size:"mini",placeholder:"登录账号",name:"username",type:"text","auto-complete":"on"},model:{value:n.loginForm.username,callback:function(t){n.$set(n.loginForm,"username",t)},expression:"loginForm.username"}})],1),n._v(" "),o("el-form-item",{attrs:{prop:"password"}},[o("span",{staticClass:"svg-container-second"},[o("img",{staticClass:"verify_code-second",attrs:{src:"https://qiniu.bms16.com/FiUivOEc1jAFBnyIrcRAwwHZgdta"}})]),n._v(" "),o("el-input",{staticStyle:{"background-color":"transparent"},attrs:{type:n.passwordType,size:"mini",placeholder:"密码",name:"password","auto-complete":"on"},nativeOn:{keyup:function(t){return"button"in t||!n._k(t.keyCode,"enter",13,t.key,"Enter")?n.handleLogin(t):null}},model:{value:n.loginForm.password,callback:function(t){n.$set(n.loginForm,"password",t)},expression:"loginForm.password"}}),n._v(" "),o("span",{staticClass:"show-pwd-second",on:{click:n.showPwd}},[o("svg-icon",{attrs:{"icon-class":"eye"}})],1)],1),n._v(" "),o("el-form-item",{attrs:{prop:"verify_code"}},[o("el-row",{staticClass:"flex-row flex-between"},[o("span",{staticClass:"svg-container-second"},[o("img",{staticClass:"verify_code-second",attrs:{src:"https://qiniu.bms16.com/FpNkX0hLKNiDKrHVzCBnu8OJCMgE"}})]),n._v(" "),o("el-input",{ref:"verifyCode",staticStyle:{"margin-left":"3px"},attrs:{size:"mini",placeholder:"验证码",name:"verify_code"},nativeOn:{keyup:function(t){return"button"in t||!n._k(t.keyCode,"enter",13,t.key,"Enter")?n.handleLogin(t):null}},model:{value:n.loginForm.verify_code,callback:function(t){n.$set(n.loginForm,"verify_code",t)},expression:"loginForm.verify_code"}}),n._v(" "),o("img",{staticClass:"verify_code_click-second",attrs:{src:n.codeImg},on:{click:n.getVerifyCodeRequet}})],1)],1),n._v(" "),o("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{id:"login-btn-second",loading:n.loading},nativeOn:{click:function(t){return t.preventDefault(),n.handleLogin(t)}}},[n._v(n._s(n.$t("login.logIn")))])],1)],1),n._v(" "),n.yd?o("el-card",{staticClass:"login-form"},[o("div",{staticClass:"title",attrs:{slot:"header"},slot:"header"},[n.yd?o("span",[o("el-image",{attrs:{src:e("S9Ty"),fit:n.contain}})],1):o("span",[n._v("登 录")]),n._v(" "),o("span",{staticStyle:{"font-size":"8px"}},[n._v(n._s(n.version))])]),n._v(" "),o("el-form",{ref:"loginForm",attrs:{model:n.loginForm,rules:n.loginRules,"auto-complete":"on","label-position":"left"}},[o("el-form-item",{attrs:{prop:"login_phone"}},[o("span",{staticClass:"svg-container"},[o("svg-icon",{attrs:{"icon-class":"user"}})],1),n._v(" "),o("el-input",{attrs:{placeholder:"登录账号",name:"username",type:"text","auto-complete":"on"},model:{value:n.loginForm.username,callback:function(t){n.$set(n.loginForm,"username",t)},expression:"loginForm.username"}})],1),n._v(" "),o("el-form-item",{attrs:{prop:"password"}},[o("span",{staticClass:"svg-container"},[o("svg-icon",{attrs:{"icon-class":"password"}})],1),n._v(" "),o("el-input",{attrs:{type:n.passwordType,placeholder:"密码",name:"password","auto-complete":"on"},nativeOn:{keyup:function(t){return"button"in t||!n._k(t.keyCode,"enter",13,t.key,"Enter")?n.handleLogin(t):null}},model:{value:n.loginForm.password,callback:function(t){n.$set(n.loginForm,"password",t)},expression:"loginForm.password"}}),n._v(" "),o("span",{staticClass:"show-pwd",on:{click:n.showPwd}},[o("svg-icon",{attrs:{"icon-class":"eye"}})],1)],1),n._v(" "),o("el-form-item",{attrs:{prop:"verify_code"}},[o("el-row",{staticClass:"flex-row flex-between"},[o("span",{staticClass:"svg-container"},[o("img",{staticClass:"verify_code",attrs:{src:e("Xzr9")}})]),n._v(" "),o("el-input",{attrs:{placeholder:"验证码",name:"verify_code"},nativeOn:{keyup:function(t){return"button"in t||!n._k(t.keyCode,"enter",13,t.key,"Enter")?n.handleLogin(t):null}},model:{value:n.loginForm.verify_code,callback:function(t){n.$set(n.loginForm,"verify_code",t)},expression:"loginForm.verify_code"}}),n._v(" "),o("img",{staticClass:"verify_code_click",attrs:{src:n.codeImg},on:{click:n.getVerifyCodeRequet}})],1)],1),n._v(" "),o("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{id:"login-btn",loading:n.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),n.handleLogin(t)}}},[n._v(n._s(n.$t("login.logIn")))]),n._v(" "),o("div",{staticStyle:{position:"relative"}})],1)],1):n._e(),n._v(" "),o("el-dialog",{attrs:{visible:n.centerDialogVisible,"close-on-click-modal":!1,title:n.noticTitle,width:"30%",center:""},on:{"update:visible":function(t){n.centerDialogVisible=t}}},[o("span",[n._v(n._s(n.noticContent))]),n._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){n.centerDialogVisible=!1}}},[n._v("取 消")])],1)])],1)},[],!1,null,"5c216a18",null));f.options.__file="index.vue";t.default=f.exports}}]);
|