1 line
6.2 KiB
JavaScript
1 line
6.2 KiB
JavaScript
|
"use strict";(self["webpackChunkX_PHP_Admin"]=self["webpackChunkX_PHP_Admin"]||[]).push([[964],{2964:function(t,e,o){o.r(e),o.d(e,{default:function(){return x}});var i=o(6808),a=o(9511);const n=t=>((0,i.dD)("data-v-81b2d668"),t=t(),(0,i.Cn)(),t),l={class:"login_bg"},s={class:"login_adv",style:{"background-image":"url(https://x-mo.cn:8888/background)"}},c=n((()=>(0,i._)("div",{class:"login_adv__title"},[(0,i._)("h2",null,"X-PHP"),(0,i._)("p",null,"以优雅的代码,打造精致的应用。高性能 / 精致 / 优雅")],-1))),d=n((()=>(0,i._)("div",{class:"login_adv__mask"},null,-1))),g={class:"login_adv__bottom"},r={class:"login_main"},h={class:"login_config"},u=n((()=>(0,i._)("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 512 512"},[(0,i._)("path",{d:"M478.33 433.6l-90-218a22 22 0 0 0-40.67 0l-90 218a22 22 0 1 0 40.67 16.79L316.66 406h102.67l18.33 44.39A22 22 0 0 0 458 464a22 22 0 0 0 20.32-30.4zM334.83 362L368 281.65L401.17 362z",fill:"currentColor"}),(0,i._)("path",{d:"M267.84 342.92a22 22 0 0 0-4.89-30.7c-.2-.15-15-11.13-36.49-34.73c39.65-53.68 62.11-114.75 71.27-143.49H330a22 22 0 0 0 0-44H214V70a22 22 0 0 0-44 0v20H54a22 22 0 0 0 0 44h197.25c-9.52 26.95-27.05 69.5-53.79 108.36c-31.41-41.68-43.08-68.65-43.17-68.87a22 22 0 0 0-40.58 17c.58 1.38 14.55 34.23 52.86 83.93c.92 1.19 1.83 2.35 2.74 3.51c-39.24 44.35-77.74 71.86-93.85 80.74a22 22 0 1 0 21.07 38.63c2.16-1.18 48.6-26.89 101.63-85.59c22.52 24.08 38 35.44 38.93 36.1a22 22 0 0 0 30.75-4.9z",fill:"currentColor"})],-1))),m={class:"login-form"},_={class:"login-header"},w={class:"logo"},p=["alt","src"],f={class:"login-oauth"},v={class:"qrCodeLogin"},L={class:"msg"},$={key:0,class:"qrCodeLogin-result"};function k(t,e,o,n,k,W){const A=(0,i.up)("el-button"),P=(0,i.up)("el-dropdown-item"),b=(0,i.up)("el-dropdown-menu"),C=(0,i.up)("el-dropdown"),q=(0,i.up)("password-form"),x=(0,i.up)("el-tab-pane"),y=(0,i.up)("el-tabs"),z=(0,i.up)("el-divider"),M=(0,i.up)("x-qr-code"),E=(0,i.up)("el-result"),H=(0,i.up)("el-dialog");return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i._)("div",l,[(0,i._)("div",s,[c,d,(0,i._)("div",g," © "+(0,a.zw)(t.$config.APP_NAME)+" "+(0,a.zw)(t.$config.APP_VER),1)]),(0,i._)("div",r,[(0,i._)("div",h,[(0,i.Wm)(A,{icon:k.config.dark?"el-icon-sunny":"el-icon-moon",circle:"",type:"info",onClick:W.configDark},null,8,["icon","onClick"]),(0,i.Wm)(C,{trigger:"click",placement:"bottom-end",onCommand:W.configLang},{dropdown:(0,i.w5)((()=>[(0,i.Wm)(b,null,{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(k.lang,(t=>((0,i.wg)(),(0,i.j4)(P,{key:t.value,command:t,class:(0,a.C_)({selected:k.config.lang==t.value})},{default:(0,i.w5)((()=>[(0,i.Uk)((0,a.zw)(t.name),1)])),_:2},1032,["command","class"])))),128))])),_:1})])),default:(0,i.w5)((()=>[(0,i.Wm)(A,{circle:""},{default:(0,i.w5)((()=>[u])),_:1})])),_:1},8,["onCommand"])]),(0,i._)("div",m,[(0,i._)("div",_,[(0,i._)("div",w,[(0,i._)("img",{alt:t.$config.APP_NAME,src:k.appLogo},null,8,p),(0,i._)("label",null,(0,a.zw)(t.$config.APP_NAME),1)])]),(0,i.Wm)(y,null,{default:(0,i.w5)((()=>[(0,i.Wm)(x,{label:t.$t("login.accountLogin"),lazy:""},{default:(0,i.w5)((()=>[(0,i.Wm)(q)])),_:1},8,["label"])])),_:1}),t.$config.MY_SHOW_LOGIN_OAUTH?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i.Wm)(z,null,{default:(0,i.w5)((()=>[(0,i.Uk)((0,a.zw)(t.$t("login.signInOther")),1)])),_:1}),(0,i._)("div",f,[(0,i.Wm)(A,{type:"success",icon:"x-icon-wechat",circle:"",onClick:W.wechatLogin},null,8,["onClick"])])],64)):(0,i.kq)("",!0)])])]),(0,i.Wm)(H,{modelValue:k.showWechatLogin,"onUpdate:modelValue":e[0]||(e[0]=t=>k.showWechatLogin=t),title:t.$t("login.wechatLoginTitle"),width:400,"destroy-on-close":""},{default:(0,i.w5)((()=>[(0,i._)("div",v,[(0,i.Wm)(M,{class:"qrCode",text:k.WechatLoginCode,size:200},null,8,["text"]),(0,i._)("p",L,(0,a.zw)(t.$tc("login.wechatLoginMsg",1)),1),k.isWechatLoginResult?((0,i.wg)(),(0,i.iD)("div",$,[(0,i.Wm)(E,{icon:"success",title:t.$tc("login.wechatLoginResult",1),"sub
|