no message
This commit is contained in:
parent
337785366c
commit
6d8842d924
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -1,4 +1,4 @@
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0" name="viewport"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/favicon.ico"><title>X-PHP</title><script>document.write("<script src='config.js'><\/script>");</script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/echarts.49558cc4.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/elicons.4bccae06.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/modules.af2834df.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/app.9200c70f.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/modules.34563575.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/app.f6c11b91.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but X-PHP doesn't work properly without JavaScript enabled.</strong></noscript><div id="app" class="aminui"><div class="app-loading"><div class="app-loading__logo"><img src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/logo.png"/></div><div class="app-loading-text"><span class="app-loading-preloader">X</span> <span class="app-loading-preloader">-</span> <span class="app-loading-preloader">A</span> <span class="app-loading-preloader">d</span> <span class="app-loading-preloader">m</span> <span class="app-loading-preloader">i</span> <span class="app-loading-preloader">n</span><div class="app-loading-viewtext-container"><span class="app-loading-viewtext">X</span> <span class="app-loading-viewtext">-</span> <span class="app-loading-viewtext">A</span> <span class="app-loading-viewtext">d</span> <span class="app-loading-viewtext">m</span> <span class="app-loading-viewtext">i</span> <span class="app-loading-viewtext">n</span></div></div></div></div></body><div id="versionCheck" class="versionCheck"><h2>当前浏览器内核版本过低</h2><p>当前版本:<span id="versionCheck-type">--</span> <span id="versionCheck-version">--</span></p><p>最低版本要求:Chrome 71+、Firefox 65+、Safari 12+、Edge 97+。</p><p>请升级浏览器版本,或更换现代浏览器,如果你使用的是双核浏览器,请切换到极速/高速模式。</p></div><style>html,
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0" name="viewport"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/favicon.ico"><title>X-PHP</title><script>document.write("<script src='config.js'><\/script>");</script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/echarts.49558cc4.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/elicons.4bccae06.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/modules.af2834df.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/app.89a9c597.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/modules.34563575.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/app.f6c11b91.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but X-PHP doesn't work properly without JavaScript enabled.</strong></noscript><div id="app" class="aminui"><div class="app-loading"><div class="app-loading__logo"><img src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/logo.png"/></div><div class="app-loading-text"><span class="app-loading-preloader">X</span> <span class="app-loading-preloader">-</span> <span class="app-loading-preloader">A</span> <span class="app-loading-preloader">d</span> <span class="app-loading-preloader">m</span> <span class="app-loading-preloader">i</span> <span class="app-loading-preloader">n</span><div class="app-loading-viewtext-container"><span class="app-loading-viewtext">X</span> <span class="app-loading-viewtext">-</span> <span class="app-loading-viewtext">A</span> <span class="app-loading-viewtext">d</span> <span class="app-loading-viewtext">m</span> <span class="app-loading-viewtext">i</span> <span class="app-loading-viewtext">n</span></div></div></div></div></body><div id="versionCheck" class="versionCheck"><h2>当前浏览器内核版本过低</h2><p>当前版本:<span id="versionCheck-type">--</span> <span id="versionCheck-version">--</span></p><p>最低版本要求:Chrome 71+、Firefox 65+、Safari 12+、Edge 97+。</p><p>请升级浏览器版本,或更换现代浏览器,如果你使用的是双核浏览器,请切换到极速/高速模式。</p></div><style>html,
|
||||
body,
|
||||
#app {
|
||||
transition-property: filter;
|
||||
|
4
dist/report.html
vendored
4
dist/report.html
vendored
File diff suppressed because one or more lines are too long
1
dist/static/css/397.c1d0ae85.css
vendored
Normal file
1
dist/static/css/397.c1d0ae85.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.login_main[data-v-dbdef6dc] .el-dialog__header{display:none}.login_main[data-v-dbdef6dc] .el-dialog{opacity:.9;border-radius:12px}.login_main[data-v-dbdef6dc] .el-divider__text{background:none}.login_main[data-v-dbdef6dc] input:-webkit-autofill,.login_main[data-v-dbdef6dc] input:-webkit-autofill:active,.login_main[data-v-dbdef6dc] input:-webkit-autofill:focus,.login_main[data-v-dbdef6dc] input:-webkit-autofill:hover{-webkit-box-shadow:0 0 0 30px var(--el-bg-color) inset!important}.login_main[data-v-dbdef6dc] input:-moz-autofill,.login_main[data-v-dbdef6dc] input:-moz-autofill:active,.login_main[data-v-dbdef6dc] input:-moz-autofill:focus,.login_main[data-v-dbdef6dc] input:-moz-autofill:hover{background:var(--el-bg-color)!important}.login_main[data-v-dbdef6dc] input:-ms-autofill{background:var(--el-bg-color)!important}.login_bg[data-v-dbdef6dc]{width:100%;height:100%;background:#fff;display:flex}.login_adv[data-v-dbdef6dc]{width:100%;position:relative;background:url(https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/img/background.95e41dd2.svg) no-repeat 0 0/cover,url(https://x-mo.cn:8888/background) no-repeat 50%/cover #9e9e9e73}.login_adv__title[data-v-dbdef6dc]{color:#fff;padding:40px;position:absolute;top:0;left:0;right:0;z-index:2}.login_adv__title h2[data-v-dbdef6dc]{font-size:40px}.login_adv__title h4[data-v-dbdef6dc]{font-size:18px;margin-top:10px;font-weight:400}.login_adv__title p[data-v-dbdef6dc]{font-size:14px;margin-top:10px;line-height:1.8;color:hsla(0,0%,100%,.6)}.login_adv__title div[data-v-dbdef6dc]{margin-top:10px;display:flex;align-items:center}.login_adv__title div span[data-v-dbdef6dc]{margin-right:15px}.login_adv__title div i[data-v-dbdef6dc]{font-size:40px}.login_adv__title div i.add[data-v-dbdef6dc]{font-size:20px;color:hsla(0,0%,100%,.6)}.login_adv__bottom a[data-v-dbdef6dc]{position:absolute;left:0;right:0;bottom:0;color:#fff;padding:40px;background-image:linear-gradient(transparent,#000);z-index:3}.login_adv__mask[data-v-dbdef6dc]{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);z-index:1}.login_main[data-v-dbdef6dc]{flex:1;overflow:auto;display:flex}.login-form[data-v-dbdef6dc]{margin:auto}.login-header[data-v-dbdef6dc]{margin-bottom:20px}.login-header .logo[data-v-dbdef6dc]{display:flex;align-items:center}.login-header .logo img[data-v-dbdef6dc]{width:40px;height:40px;vertical-align:bottom;margin-right:10px}.login-header .logo label[data-v-dbdef6dc]{font-size:26px;font-weight:700}.login-oauth[data-v-dbdef6dc]{display:flex;justify-content:space-around}.login-form .el-divider[data-v-dbdef6dc]{margin-top:40px}.login-form[data-v-dbdef6dc] .el-tabs .el-tabs__header{margin-bottom:25px}.login-form[data-v-dbdef6dc] .el-tabs .el-tabs__header .el-tabs__item{font-size:14px}.login-form[data-v-dbdef6dc] .login-forgot{text-align:right}.login-form[data-v-dbdef6dc] .login-forgot a{color:var(--el-color-primary)}.login-form[data-v-dbdef6dc] .login-forgot a:hover{color:var(--el-color-primary-light-3)}.login-form[data-v-dbdef6dc] .login-reg{font-size:14px;color:var(--el-text-color-primary)}.login-form[data-v-dbdef6dc] .login-reg a{color:var(--el-color-primary)}.login-form[data-v-dbdef6dc] .login-reg a:hover{color:var(--el-color-primary-light-3)}.login_config[data-v-dbdef6dc]{position:absolute;top:20px;right:20px}.login-form[data-v-dbdef6dc] .login-msg-yzm{display:flex;width:100%}.login-form[data-v-dbdef6dc] .login-msg-yzm .el-button{margin-left:10px;--el-button-size:42px}.qrCodeLogin[data-v-dbdef6dc]{text-align:center;position:relative;padding:20px 0}.qrCodeLogin img.qrCode[data-v-dbdef6dc]{background:#fff;padding:20px;border-radius:10px}.qrCodeLogin p.msg[data-v-dbdef6dc]{margin-top:15px}.qrCodeLogin .qrCodeLogin-result[data-v-dbdef6dc]{position:absolute;top:0;left:0;right:0;bottom:0;text-align:center;background:var(--el-mask-color)}@media (max-width:680px){.login_main[data-v-dbdef6dc] .el-dialog{width:100%!important;box-shadow:none;height:100%;padding-top:10vh;opacity:.88;border-radius:0;margin:0}.login-form[data-v-dbdef6dc]{width:100%}}
|
1
dist/static/css/45.946d5b94.css
vendored
1
dist/static/css/45.946d5b94.css
vendored
@ -1 +0,0 @@
|
||||
.login_main[data-v-2da8c2d3] .el-dialog__header{display:none}.login_main[data-v-2da8c2d3] .el-dialog{opacity:.9;border-radius:12px}.login_main[data-v-2da8c2d3] .el-divider__text{background:none}.login_main[data-v-2da8c2d3] input:-webkit-autofill,.login_main[data-v-2da8c2d3] input:-webkit-autofill:active,.login_main[data-v-2da8c2d3] input:-webkit-autofill:focus,.login_main[data-v-2da8c2d3] input:-webkit-autofill:hover{-webkit-box-shadow:0 0 0 30px var(--el-bg-color) inset!important}.login_main[data-v-2da8c2d3] input:-moz-autofill,.login_main[data-v-2da8c2d3] input:-moz-autofill:active,.login_main[data-v-2da8c2d3] input:-moz-autofill:focus,.login_main[data-v-2da8c2d3] input:-moz-autofill:hover{background:var(--el-bg-color)!important}.login_main[data-v-2da8c2d3] input:-ms-autofill{background:var(--el-bg-color)!important}.login_bg[data-v-2da8c2d3]{width:100%;height:100%;background:#fff;display:flex}.login_adv[data-v-2da8c2d3]{width:100%;background-color:#555;background-size:cover;background-position:50%;background-repeat:no-repeat;position:relative;background:url(https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/img/background.95e41dd2.svg) no-repeat 0 0,url(https://x-mo.cn:8888/background) no-repeat 50% #9e9e9e73}.login_adv__title[data-v-2da8c2d3]{color:#fff;padding:40px;position:absolute;top:0;left:0;right:0;z-index:2}.login_adv__title h2[data-v-2da8c2d3]{font-size:40px}.login_adv__title h4[data-v-2da8c2d3]{font-size:18px;margin-top:10px;font-weight:400}.login_adv__title p[data-v-2da8c2d3]{font-size:14px;margin-top:10px;line-height:1.8;color:hsla(0,0%,100%,.6)}.login_adv__title div[data-v-2da8c2d3]{margin-top:10px;display:flex;align-items:center}.login_adv__title div span[data-v-2da8c2d3]{margin-right:15px}.login_adv__title div i[data-v-2da8c2d3]{font-size:40px}.login_adv__title div i.add[data-v-2da8c2d3]{font-size:20px;color:hsla(0,0%,100%,.6)}.login_adv__bottom a[data-v-2da8c2d3]{position:absolute;left:0;right:0;bottom:0;color:#fff;padding:40px;background-image:linear-gradient(transparent,#000);z-index:3}.login_adv__mask[data-v-2da8c2d3]{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);z-index:1}.login_main[data-v-2da8c2d3]{flex:1;overflow:auto;display:flex}.login-form[data-v-2da8c2d3]{margin:auto}.login-header[data-v-2da8c2d3]{margin-bottom:20px}.login-header .logo[data-v-2da8c2d3]{display:flex;align-items:center}.login-header .logo img[data-v-2da8c2d3]{width:40px;height:40px;vertical-align:bottom;margin-right:10px}.login-header .logo label[data-v-2da8c2d3]{font-size:26px;font-weight:700}.login-oauth[data-v-2da8c2d3]{display:flex;justify-content:space-around}.login-form .el-divider[data-v-2da8c2d3]{margin-top:40px}.login-form[data-v-2da8c2d3] .el-tabs .el-tabs__header{margin-bottom:25px}.login-form[data-v-2da8c2d3] .el-tabs .el-tabs__header .el-tabs__item{font-size:14px}.login-form[data-v-2da8c2d3] .login-forgot{text-align:right}.login-form[data-v-2da8c2d3] .login-forgot a{color:var(--el-color-primary)}.login-form[data-v-2da8c2d3] .login-forgot a:hover{color:var(--el-color-primary-light-3)}.login-form[data-v-2da8c2d3] .login-reg{font-size:14px;color:var(--el-text-color-primary)}.login-form[data-v-2da8c2d3] .login-reg a{color:var(--el-color-primary)}.login-form[data-v-2da8c2d3] .login-reg a:hover{color:var(--el-color-primary-light-3)}.login_config[data-v-2da8c2d3]{position:absolute;top:20px;right:20px}.login-form[data-v-2da8c2d3] .login-msg-yzm{display:flex;width:100%}.login-form[data-v-2da8c2d3] .login-msg-yzm .el-button{margin-left:10px;--el-button-size:42px}.qrCodeLogin[data-v-2da8c2d3]{text-align:center;position:relative;padding:20px 0}.qrCodeLogin img.qrCode[data-v-2da8c2d3]{background:#fff;padding:20px;border-radius:10px}.qrCodeLogin p.msg[data-v-2da8c2d3]{margin-top:15px}.qrCodeLogin .qrCodeLogin-result[data-v-2da8c2d3]{position:absolute;top:0;left:0;right:0;bottom:0;text-align:center;background:var(--el-mask-color)}@media (max-width:680px){.login_main[data-v-2da8c2d3] .el-dialog{width:100%!important;box-shadow:none;height:100%;padding-top:10vh;opacity:.88;border-radius:0;margin:0}.login-form[data-v-2da8c2d3]{width:100%}}
|
1
dist/static/js/397.09a2a61a.js
vendored
Normal file
1
dist/static/js/397.09a2a61a.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[397],{9397:function(o,e,t){t.r(e),t.d(e,{default:function(){return N}});var i=t(6808),a=t(9511);const s=o=>((0,i.dD)("data-v-dbdef6dc"),o=o(),(0,i.Cn)(),o),n={class:"login_bg"},l={class:"login_adv"},c=s((()=>(0,i._)("div",{class:"login_adv__title"},null,-1))),d=s((()=>(0,i._)("div",{class:"login_adv__mask"},null,-1))),r={class:"login_adv__bottom"},h={href:"https://x-php.com",target:"_blank"},g={class:"login_main"},u={class:"login_config"},m={class:"login-form"},_={class:"login-header"},p={class:"logo"},f=["alt","src"],v=s((()=>(0,i._)("span",{class:"login-right-warp-one"},null,-1))),w=s((()=>(0,i._)("span",{class:"login-right-warp-two"},null,-1))),L={class:"login-oauth"},$={class:"qrCodeLogin"},k=s((()=>(0,i._)("p",{class:"msg"},"请使用微信扫一扫登录",-1))),W={key:0,class:"qrCodeLogin-result"};function A(o,e,t,s,A,P){const b=(0,i.up)("el-button"),q=(0,i.up)("password-form"),C=(0,i.up)("el-tab-pane"),E=(0,i.up)("el-tabs"),y=(0,i.up)("el-divider"),N=(0,i.up)("el-dialog"),D=(0,i.up)("x-qr-code"),S=(0,i.up)("el-result");return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i._)("div",n,[(0,i._)("div",l,[c,d,(0,i._)("div",r,[(0,i._)("a",h,"© "+(0,a.zw)(o.$config.APP_NAME)+" "+(0,a.zw)(o.$config.APP_VER),1)])]),(0,i._)("div",g,[(0,i.Wm)(N,{modelValue:A.open,"onUpdate:modelValue":e[0]||(e[0]=o=>A.open=o),modal:!1,"show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1},{default:(0,i.w5)((()=>[(0,i._)("div",u,[(0,i.Wm)(b,{icon:A.config.dark?"el-icon-sunny":"el-icon-moon",circle:"",type:"info",onClick:P.configDark},null,8,["icon","onClick"])]),(0,i._)("div",m,[(0,i._)("div",_,[(0,i._)("div",p,[(0,i._)("img",{alt:o.$config.APP_NAME,src:A.appLogo},null,8,f),(0,i._)("label",null,(0,a.zw)(o.$config.APP_NAME),1)])]),(0,i.Wm)(E,null,{default:(0,i.w5)((()=>[(0,i.Wm)(C,{label:"登录",lazy:""},{default:(0,i.w5)((()=>[v,w,(0,i.Wm)(q)])),_:1})])),_:1}),o.$config.MY_SHOW_LOGIN_OAUTH?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i.Wm)(y,null,{default:(0,i.w5)((()=>[(0,i.Uk)("其它登录")])),_:1}),(0,i._)("div",L,[(0,i.Wm)(b,{type:"success",icon:"x-icon-wechat",circle:"",onClick:P.wechatLogin},null,8,["onClick"])])],64)):(0,i.kq)("",!0)])])),_:1},8,["modelValue"])])]),(0,i.Wm)(N,{modelValue:A.showWechatLogin,"onUpdate:modelValue":e[1]||(e[1]=o=>A.showWechatLogin=o),title:"微信登录",width:400,"destroy-on-close":""},{default:(0,i.w5)((()=>[(0,i._)("div",$,[(0,i.Wm)(D,{class:"qrCode",text:A.WechatLoginCode,size:200},null,8,["text"]),k,A.isWechatLoginResult?((0,i.wg)(),(0,i.iD)("div",W,[(0,i.Wm)(S,{icon:"success",title:"已扫描","sub-title":"请在设备中点击授权登录"})])):(0,i.kq)("",!0)])])),_:1},8,["modelValue"])],64)}var P=t(7126),b=t(8428),q=t(5080),C={components:{passwordForm:P["default"],phoneForm:b["default"]},data(){return{config:{lang:this.$tool.data.get("APP_LANG")||this.$config.LANG,dark:this.$tool.data.get("APP_DARK")||!1},lang:[{name:"简体中文",value:"zh-cn"},{name:"English",value:"en"}],WechatLoginCode:"",WechatLoginuniqid:"",appLogo:"",showWechatLogin:!1,isWechatLoginResult:!1,open:!0}},watch:{"config.dark"(o){o?(document.documentElement.classList.add("dark"),this.$tool.data.set("APP_DARK",o)):(document.documentElement.classList.remove("dark"),this.$tool.data.remove("APP_DARK"))}},created:function(){this.appLogo=this.$tool.data.get("appLogo")||this.$config.APP_LOGO||q,this.$tool.cookie.remove(this.$config.SESSIONNAME),this.$tool.data.remove("user"),this.$tool.data.remove("menu"),this.$tool.data.remove("permissions"),this.$tool.data.remove("dashboardgrid"),this.$tool.data.remove("grid"),this.$tool.store.remove("token"),this.$store.commit("clearViewTags"),this.$store.commit("clearKeepLive"),this.$store.commit("clearIframeList")},methods:{configDark(){this.config.dark=!this.config.dark},long_contact:function(){if(!this.WechatLoginuniqid)return!1;setTimeout((async()=>{var o=await this.$http.post("login/wechatSubmit",{uniqid:this.WechatLoginuniqid});if(201==o.code)this.showWechatLogin=!1,this.$message.warning(o.message);else if(202==o.code)this.long_contact();else if(200==o.code){this.showWechatLogin=!1,this.$tool.cookie.set(this.$config.SESSIONNAME,o.data.token,{expires:31104e3});const e=this.$route.query.redirect||"/";return this.$router.replace({path:e}),this.$message.success("Login Success 登录成功"),this.islogin=!1,!1}}),1e3)},async wechatLogin(){var o=await this.$http.get("login/wechatQrcode");if(200!=o.code)return this.$message.warning(o.message),!1;this.showWechatLogin=!0,this.WechatLoginCode=o.data.qrcodeurl,this.WechatLoginuniqid=o.data.uniqid,this.long_contact()}}},E=t(8700);const y=(0,E.Z)(C,[["render",A],["__scopeId","data-v-dbdef6dc"]]);var N=y}}]);
|
1
dist/static/js/45.d28568ff.js
vendored
1
dist/static/js/45.d28568ff.js
vendored
@ -1 +0,0 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[45],{8045:function(o,e,t){t.r(e),t.d(e,{default:function(){return N}});var i=t(6808),a=t(9511);const s=o=>((0,i.dD)("data-v-2da8c2d3"),o=o(),(0,i.Cn)(),o),n={class:"login_bg"},l={class:"login_adv"},c=s((()=>(0,i._)("div",{class:"login_adv__title"},null,-1))),d=s((()=>(0,i._)("div",{class:"login_adv__mask"},null,-1))),r={class:"login_adv__bottom"},h={href:"https://x-php.com",target:"_blank"},g={class:"login_main"},u={class:"login_config"},m={class:"login-form"},_={class:"login-header"},p={class:"logo"},f=["alt","src"],v=s((()=>(0,i._)("span",{class:"login-right-warp-one"},null,-1))),w=s((()=>(0,i._)("span",{class:"login-right-warp-two"},null,-1))),L={class:"login-oauth"},$={class:"qrCodeLogin"},k=s((()=>(0,i._)("p",{class:"msg"},"请使用微信扫一扫登录",-1))),W={key:0,class:"qrCodeLogin-result"};function A(o,e,t,s,A,P){const q=(0,i.up)("el-button"),b=(0,i.up)("password-form"),C=(0,i.up)("el-tab-pane"),E=(0,i.up)("el-tabs"),y=(0,i.up)("el-divider"),N=(0,i.up)("el-dialog"),D=(0,i.up)("x-qr-code"),S=(0,i.up)("el-result");return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i._)("div",n,[(0,i._)("div",l,[c,d,(0,i._)("div",r,[(0,i._)("a",h,"© "+(0,a.zw)(o.$config.APP_NAME)+" "+(0,a.zw)(o.$config.APP_VER),1)])]),(0,i._)("div",g,[(0,i.Wm)(N,{modelValue:A.open,"onUpdate:modelValue":e[0]||(e[0]=o=>A.open=o),modal:!1,"show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1},{default:(0,i.w5)((()=>[(0,i._)("div",u,[(0,i.Wm)(q,{icon:A.config.dark?"el-icon-sunny":"el-icon-moon",circle:"",type:"info",onClick:P.configDark},null,8,["icon","onClick"])]),(0,i._)("div",m,[(0,i._)("div",_,[(0,i._)("div",p,[(0,i._)("img",{alt:o.$config.APP_NAME,src:A.appLogo},null,8,f),(0,i._)("label",null,(0,a.zw)(o.$config.APP_NAME),1)])]),(0,i.Wm)(E,null,{default:(0,i.w5)((()=>[(0,i.Wm)(C,{label:"登录",lazy:""},{default:(0,i.w5)((()=>[v,w,(0,i.Wm)(b)])),_:1})])),_:1}),o.$config.MY_SHOW_LOGIN_OAUTH?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i.Wm)(y,null,{default:(0,i.w5)((()=>[(0,i.Uk)("其它登录")])),_:1}),(0,i._)("div",L,[(0,i.Wm)(q,{type:"success",icon:"x-icon-wechat",circle:"",onClick:P.wechatLogin},null,8,["onClick"])])],64)):(0,i.kq)("",!0)])])),_:1},8,["modelValue"])])]),(0,i.Wm)(N,{modelValue:A.showWechatLogin,"onUpdate:modelValue":e[1]||(e[1]=o=>A.showWechatLogin=o),title:"微信登录",width:400,"destroy-on-close":""},{default:(0,i.w5)((()=>[(0,i._)("div",$,[(0,i.Wm)(D,{class:"qrCode",text:A.WechatLoginCode,size:200},null,8,["text"]),k,A.isWechatLoginResult?((0,i.wg)(),(0,i.iD)("div",W,[(0,i.Wm)(S,{icon:"success",title:"已扫描","sub-title":"请在设备中点击授权登录"})])):(0,i.kq)("",!0)])])),_:1},8,["modelValue"])],64)}var P=t(7126),q=t(8428),b=t(5080),C={components:{passwordForm:P["default"],phoneForm:q["default"]},data(){return{config:{lang:this.$tool.data.get("APP_LANG")||this.$config.LANG,dark:this.$tool.data.get("APP_DARK")||!1},lang:[{name:"简体中文",value:"zh-cn"},{name:"English",value:"en"}],WechatLoginCode:"",WechatLoginuniqid:"",appLogo:"",showWechatLogin:!1,isWechatLoginResult:!1,open:!0}},watch:{"config.dark"(o){o?(document.documentElement.classList.add("dark"),this.$tool.data.set("APP_DARK",o)):(document.documentElement.classList.remove("dark"),this.$tool.data.remove("APP_DARK"))}},created:function(){this.appLogo=this.$tool.data.get("appLogo")||this.$config.APP_LOGO||b,this.$tool.cookie.remove(this.$config.SESSIONNAME),this.$tool.data.remove("user"),this.$tool.data.remove("menu"),this.$tool.data.remove("permissions"),this.$tool.data.remove("dashboardgrid"),this.$tool.data.remove("grid"),this.$tool.store.remove("token"),this.$store.commit("clearViewTags"),this.$store.commit("clearKeepLive"),this.$store.commit("clearIframeList")},methods:{configDark(){this.config.dark=!this.config.dark},long_contact:function(){if(!this.WechatLoginuniqid)return!1;setTimeout((async()=>{var o=await this.$http.post("login/wechatSubmit",{uniqid:this.WechatLoginuniqid});if(201==o.code)this.showWechatLogin=!1,this.$message.warning(o.message);else if(202==o.code)this.long_contact();else if(200==o.code){this.showWechatLogin=!1,this.$tool.cookie.set(this.$config.SESSIONNAME,o.data.token,{expires:31104e3});const e=this.$route.query.redirect||"/";return this.$router.replace({path:e}),this.$message.success("Login Success 登录成功"),this.islogin=!1,!1}}),1e3)},async wechatLogin(){var o=await this.$http.get("login/wechatQrcode");if(200!=o.code)return this.$message.warning(o.message),!1;this.showWechatLogin=!0,this.WechatLoginCode=o.data.qrcodeurl,this.WechatLoginuniqid=o.data.uniqid,this.long_contact()}}},E=t(8700);const y=(0,E.Z)(C,[["render",A],["__scopeId","data-v-2da8c2d3"]]);var N=y}}]);
|
File diff suppressed because one or more lines are too long
@ -235,12 +235,8 @@ export default {
|
||||
|
||||
.login_adv {
|
||||
width: 100%;
|
||||
background-color: #555;
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
position: relative;
|
||||
background: url(@/assets/img/background.svg) no-repeat left top, url('https://x-mo.cn:8888/background') no-repeat center center #9e9e9e73
|
||||
background: url(@/assets/img/background.svg) no-repeat 0 0 / cover, url(https://x-mo.cn:8888/background) no-repeat 50% / cover #9e9e9e73;
|
||||
}
|
||||
|
||||
.login_adv__title {
|
||||
|
Loading…
Reference in New Issue
Block a user