mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-09 19:30:55 +00:00
2 lines
20 KiB
JavaScript
2 lines
20 KiB
JavaScript
import{g as oe,f as se,a as le,n as re,u as te,y as I,z as E,a1 as j,A as g,s as X,ab as ue,j as q,C as F,a0 as Y,$ as U,H as K,at as be,l as a,p as fe,F as pe,D as ge,_ as ie,B as Z,W as D,a9 as we,b as xe,a2 as ce,k as Q,aj as Se,ao as ae}from"./element-plus-D1Ezoxxm.js";import{bN as G,bO as he,bP as me,_ as ke,b as ze,h as _e,aM as Ie,u as Te,aI as Ce,aJ as Ne,bQ as $e,bR as We,J as ne,bG as Oe,aK as de,bS as Ae,bC as Ee,S as Be,bH as Le}from"./index-BzWqH73M.js";import{a as Me,S as Re}from"./swiper-QuncIc7Q.js";import{A as He,P as je}from"./pagination-DAXYYfG0.js";import{u as Pe}from"./keepAliveNames-B0AR-w-c.js";import"./monaco-editor-uXAv8CL-.js";import"./form-create-C-8Ibman.js";import"./vxe-ot-ELJR6.js";const Ve="/admin/system_static/sw-C4ENxkzg.png",ve="/admin/system_static/logo-C1iOi4JI.png";(function(){function e(f,p,z){return f.getAttribute(p)||z}function $(f){return document.getElementsByTagName(f)}function r(){var f=$("script"),p=f.length,z=f[p-1];return{l:p,z:e(z,"zIndex",-2),o:e(z,"opacity",.8),c:e(z,"color","255,255,255"),n:e(z,"count",240)}}function v(){N=y.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,w=y.height=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function l(){if(C=C+1,C<5)_(l);else{C=0,d.clearRect(0,0,N,w);var f=[i].concat(h),p,z,R,L,M,P;h.forEach(function(o){for(o.x+=o.xa,o.y+=o.ya,o.xa*=o.x>N||o.x<0?-1:1,o.ya*=o.y>w||o.y<0?-1:1,d.fillRect(o.x-.5,o.y-.5,2,2),d.fillStyle="#FFFFFF",z=0;z<f.length;z++)p=f[z],o!==p&&p.x!==null&&p.y!==null&&(L=o.x-p.x,M=o.y-p.y,P=L*L+M*M,P<p.max&&(p===i&&P>=p.max/2&&(o.x-=.03*L,o.y-=.03*M),R=(p.max-P)/p.max,d.beginPath(),d.lineWidth=R/2,d.strokeStyle="rgba("+b.c+","+(R+.2)+")",d.moveTo(o.x,o.y),d.lineTo(p.x,p.y),d.stroke()));f.splice(f.indexOf(o),1)}),_(l)}}var y=document.createElement("canvas"),b=r(),k="c_n"+b.l,d=y.getContext("2d"),C=0,N,w,_=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(f){window.setTimeout(f,1e3/45)},x=Math.random,i={x:null,y:null,max:2e4};y.id=k,y.style.cssText="position:fixed;top:0;left:0;z-index:"+b.z+";opacity:"+b.o,$("body")[0].appendChild(y),v(),window.onresize=v,window.onmousemove=function(f){f=f||window.event,i.x=f.clientX,i.y=f.clientY},window.onmouseout=function(){i.x=null,i.y=null};for(var h=[],S=0;b.n>S;S++){var W=x()*N,O=x()*w,B=2*x()-1,H=2*x()-1;h.push({x:W,y:O,xa:B,ya:H,max:6e3})}setTimeout(function(){l()},100)})();const Fe="/admin/system_static/default-BAFRzqAa.jpg";function ee(e,$="XwKsGlMcdPMEhR1B"){var r=G.enc.Utf8.parse($),v=G.enc.Utf8.parse(e),l=G.AES.encrypt(v,r,{mode:G.mode.ECB,padding:G.pad.Pkcs7});return l.toString()}function ye(e){var $,r,v,l,y=e.$el.parentNode.offsetWidth||window.offsetWidth,b=e.$el.parentNode.offsetHeight||window.offsetHeight;return e.imgSize.width.indexOf("%")!=-1?$=parseInt(e.imgSize.width)/100*y+"px":$=e.imgSize.width,e.imgSize.height.indexOf("%")!=-1?r=parseInt(e.imgSize.height)/100*b+"px":r=e.imgSize.height,e.barSize.width.indexOf("%")!=-1?v=parseInt(e.barSize.width)/100*y+"px":v=e.barSize.width,e.barSize.height.indexOf("%")!=-1?l=parseInt(e.barSize.height)/100*b+"px":l=e.barSize.height,{imgWidth:$,imgHeight:r,barWidth:v,barHeight:l}}const qe={style:{position:"relative"}},Je=["src"],Ue=["textContent"],De=["textContent"],Ke=["src"],Xe=Object.assign({name:"VerifySlide"},{__name:"VerifySlide",props:{captchaType:{type:String},type:{type:String,default:"1"},mode:{type:String,default:"fixed"},vSpace:{type:Number,default:5},explain:{type:String,default:"向右滑动完成验证"},imgSize:{type:Object,default(){return{width:"310px",height:"155px"}}},blockSize:{type:Object,default(){return{width:"50px",height:"50px"}}},barSize:{type:Object,default(){return{width:"310px",height:"40px"}}},defaultImg:{type:String,default:""}},setup(e,{expose:$}){const{proxy:r}=oe(),v=e,l=a(""),y=a(""),b=a(""),k=a(""),d=a(""),C=a(""),N=a(""),w=a(""),_=a(""),x=a(""),i=a({imgHeight:0,imgWidth:0,barHeight:0,barWidth:0}),h=a(void 0),S=a(void 0),W=a(void 0),O=a("#ddd"),B=a(void 0),H=a("icon-right"),f=a(!1),p=a(!1),z=a(!0),R=a(""),L=a(""),M=fe(()=>r.$el.querySelector(".verify-bar-area")),P=ye;let o=0;se(()=>v.type,()=>{m()},{immediate:!0}),le(()=>{r.$el.onselectstart=function(){return!1}});function m(){_.value=v.explain,J(),re(()=>{const c=P(r);for(const A in c)i.value[A]=c[A];r.$parent.$emit("ready",r)});var u=r;window.removeEventListener("touchmove",function(c){u.move(c)}),window.removeEventListener("mousemove",function(c){u.move(c)}),window.removeEventListener("touchend",function(){u.end()}),window.removeEventListener("mouseup",function(){u.end()}),window.addEventListener("touchmove",function(c){t(c)}),window.addEventListener("mousemove",function(c){t(c)}),window.addEventListener("touchend",function(){n()}),window.addEventListener("mouseup",function(){n()})}function s(u){if(u=u||window.event,u.touches)var c=u.touches[0].pageX;else var c=u.clientX;o=Math.floor(c-M.value.getBoundingClientRect().left),C.value=+new Date,p.value==!1&&(_.value="",W.value="#337ab7",O.value="#337AB7",B.value="#fff",u.stopPropagation(),f.value=!0)}function t(u){if(u=u||window.event,f.value&&p.value==!1){if(u.touches)var c=u.touches[0].pageX;else var c=u.clientX;var A=M.value.getBoundingClientRect().left,V=c-A;V>=M.value.offsetWidth-parseInt(parseInt(v.blockSize.width)/2)-2&&(V=M.value.offsetWidth-parseInt(parseInt(v.blockSize.width)/2)-2),V<=0&&(V=parseInt(parseInt(v.blockSize.width)/2)),h.value=V-o+"px",S.value=V-o+"px"}}function n(){if(N.value=+new Date,f.value&&p.value==!1){var u=parseInt((h.value||"").replace("px",""));u=u*310/parseInt(i.value.imgWidth);const c={captchaType:v.captchaType,pointJson:l.value?ee(JSON.stringify({x:u,y:5}),l.value):JSON.stringify({x:u,y:5}),token:d.value};he(c).then(A=>{W.value="#5cb85c",O.value="#5cb85c",B.value="#fff",H.value="icon-check",z.value=!1,p.value=!0,v.mode=="pop"&&setTimeout(()=>{r.$parent.clickShow=!1,T()},1500),y.value=!0,w.value=`${((N.value-C.value)/1e3).toFixed(2)}s验证成功`;var V=l.value?ee(d.value+"---"+JSON.stringify({x:u,y:5}),l.value):d.value+"---"+JSON.stringify({x:u,y:5});setTimeout(()=>{w.value="",r.$parent.closeBox(),r.$parent.$emit("success",{captchaVerification:V})},1e3)}).catch(A=>{W.value="#d9534f",O.value="#d9534f",B.value="#fff",H.value="icon-close",y.value=!1,setTimeout(function(){T()},1e3),r.$parent.$emit("error",r),w.value="验证失败",setTimeout(()=>{w.value=""},1e3)}),f.value=!1}}function T(){z.value=!0,x.value="",R.value="left .3s",h.value=0,S.value=void 0,L.value="width .3s",O.value="#ddd",W.value="#fff",B.value="#000",H.value="icon-right",p.value=!1,J(),setTimeout(()=>{L.value="",R.value="",_.value=v.explain},300)}function J(){const u={captchaType:v.captchaType,clientUid:localStorage.getItem("slider"),ts:Date.now()};me(u).then(c=>{b.value=c.data.originalImageBase64,k.value=c.data.jigsawImageBase64,d.value=c.data.token,l.value=c.data.secretKey}).catch(c=>{w.value=c.msg,b.value=null,k.value=null})}return $({refresh:T}),(u,c)=>{const A=te("db-click");return I(),E("div",qe,[e.type==="2"?(I(),E("div",{key:0,class:"verify-img-out",style:j({height:parseInt(i.value.imgHeight)+e.vSpace+"px"})},[g("div",{class:"verify-img-panel",style:j({width:i.value.imgWidth,height:i.value.imgHeight})},[g("img",{src:b.value?"data:image/png;base64,"+b.value:e.defaultImg,alt:"",style:{width:"100%",height:"100%",display:"block"}},null,8,Je),X((I(),E("div",{class:"verify-refresh",onClick:T},[...c[0]||(c[0]=[g("i",{class:"iconfont icon-refresh"},null,-1)])])),[[ue,z.value],[A]]),q(be,{name:"tips"},{default:F(()=>[w.value?(I(),E("span",{key:0,class:Y(["verify-tips",y.value?"suc-bg":"err-bg"])},U(w.value),3)):K("",!0)]),_:1})],4)],4)):K("",!0),g("div",{class:"verify-bar-area",style:j({width:i.value.imgWidth,height:e.barSize.height,"line-height":e.barSize.height})},[g("span",{class:"verify-msg",textContent:U(_.value)},null,8,Ue),g("div",{class:"verify-left-bar",style:j({width:S.value!==void 0?S.value:e.barSize.height,height:e.barSize.height,"border-color":O.value,transaction:L.value})},[g("span",{class:"verify-msg",textContent:U(x.value)},null,8,De),g("div",{class:"verify-move-block",style:j({width:e.barSize.height,height:e.barSize.height,"background-color":W.value,left:h.value,transition:R.value}),onTouchstart:s,onMousedown:s},[g("i",{class:Y(["verify-icon iconfont",H.value]),style:j({color:B.value})},null,6),e.type==="2"?(I(),E("div",{key:0,class:"verify-sub-block",style:j({width:Math.floor(parseInt(i.value.imgWidth)*47/310)+"px",height:i.value.imgHeight,top:"-"+(parseInt(i.value.imgHeight)+e.vSpace)+"px","background-size":i.value.imgWidth+" "+i.value.imgHeight})},[g("img",{src:"data:image/png;base64,"+k.value,alt:"",style:{width:"100%",height:"100%",display:"block"}},null,8,Ke)],4)):K("",!0)],36)],4)],4)])}}}),Ge={style:{position:"relative"}},Ye={class:"verify-img-out"},Qe=["src"],Ze={class:"verify-msg"},et=Object.assign({name:"VerifyPoints"},{__name:"VerifyPoints",props:{mode:{type:String,default:"fixed"},captchaType:{type:String},vSpace:{type:Number,default:5},imgSize:{type:Object,default(){return{width:"310px",height:"155px"}}},barSize:{type:Object,default(){return{width:"310px",height:"40px"}}},defaultImg:{type:String,default:""}},setup(e,{expose:$}){const{proxy:r}=oe(),v=e,l=a(""),y=a(3),b=a([]),k=a([]),d=a(1),C=a(""),N=a([]),w=a(""),_=a({imgHeight:0,imgWidth:0,barHeight:0,barWidth:0}),x=a([]),i=a(""),h=a(void 0),S=a(void 0),W=a(!0),O=a(!0),B=a(null),H=ye;se(()=>v.type,()=>{f()},{immediate:!0});function f(){b.value.splice(0,b.value.length),k.value.splice(0,k.value.length),d.value=1,M(),re(()=>{_.value=H(r),r.$parent.$emit("ready",r)})}function p(o){k.value.push(z(B.value,o)),d.value==y.value&&(d.value=R(z(B.value,o)),k.value=P(k.value,_.value),setTimeout(()=>{var m=l.value?ee(w.value+"---"+JSON.stringify(k.value),l.value):w.value+"---"+JSON.stringify(k.value);const s={captchaType:v.captchaType,pointJson:l.value?ee(JSON.stringify(k.value),l.value):JSON.stringify(k.value),token:w.value};he(s).then(t=>{t.repCode=="0000"?(h.value="#4cae4c",S.value="#5cb85c",i.value="验证成功",O.value=!1,v.mode=="pop"&&setTimeout(()=>{r.$parent.clickShow=!1,L()},1500),r.$parent.$emit("success",{captchaVerification:m})):(r.$parent.$emit("error",r),h.value="#d9534f",S.value="#d9534f",i.value="验证失败",setTimeout(()=>{L()},700))})},400)),d.value<y.value&&(d.value=R(z(B.value,o)))}function z(o,m){var s=m.offsetX,t=m.offsetY;return{x:s,y:t}}function R(o){return x.value.push(Object.assign({},o)),++d.value}function L(){x.value.splice(0,x.value.length),h.value="#000",S.value="#ddd",O.value=!0,b.value.splice(0,b.value.length),k.value.splice(0,k.value.length),d.value=1,M(),i.value="验证失败",W.value=!0}function M(){const o={captchaType:v.captchaType,clientUid:localStorage.getItem("point"),ts:Date.now()};me(o).then(m=>{m.repCode=="0000"?(C.value=m.repData.originalImageBase64,w.value=m.repData.token,l.value=m.repData.secretKey,N.value=m.repData.wordList,i.value="请依次点击【"+N.value.join(",")+"】"):i.value=m.repMsg,m.repCode=="6201"&&(C.value=null)})}function P(o,m){var s=o.map(t=>{const n=Math.round(310*t.x/parseInt(m.imgWidth)),T=Math.round(155*t.y/parseInt(m.imgHeight));return{x:n,y:T}});return s}return $({refresh:L}),(o,m)=>{const s=te("db-click");return I(),E("div",Ge,[g("div",Ye,[g("div",{class:"verify-img-panel",style:j({width:_.value.imgWidth,height:_.value.imgHeight,"background-size":_.value.imgWidth+" "+_.value.imgHeight,"margin-bottom":e.vSpace+"px"})},[X((I(),E("div",{class:"verify-refresh",style:{"z-index":"3"},onClick:L},[...m[1]||(m[1]=[g("i",{class:"iconfont icon-refresh"},null,-1)])])),[[ue,W.value],[s]]),X(g("img",{ref_key:"canvas",ref:B,src:C.value?"data:image/png;base64,"+C.value:e.defaultImg,alt:"",style:{width:"100%",height:"100%",display:"block"},onClick:m[0]||(m[0]=t=>O.value?p(t):void 0)},null,8,Qe),[[s]]),(I(!0),E(pe,null,ge(x.value,(t,n)=>(I(),E("div",{key:n,class:"point-area",style:j({"background-color":"#1abd6c",color:"#fff","z-index":9999,width:"20px",height:"20px","text-align":"center","line-height":"20px","border-radius":"50%",position:"absolute",top:parseInt(t.y-10)+"px",left:parseInt(t.x-10)+"px"})},U(n+1),5))),128))],4)]),g("div",{class:"verify-bar-area",style:j({width:_.value.imgWidth,color:h.value,"border-color":S.value,"line-height":e.barSize.height})},[g("span",Ze,U(i.value),1)],4)])}}}),tt={key:0,class:"verifybox-top"},at=Object.assign({name:"Vue2Verify"},{__name:"Verify",props:{locale:{require:!1,type:String,default(){if(navigator.language)var e=navigator.language;else var e=navigator.browserLanguage;return e}},captchaType:{type:String,required:!0},figure:{type:Number},arith:{type:Number},mode:{type:String,default:"pop"},vSpace:{type:Number},explain:{type:String},imgSize:{type:Object,default(){return{width:"310px",height:"155px"}}},blockSize:{type:Object},barSize:{type:Object}},setup(e,{expose:$}){const{proxy:r}=oe(),v=e,l=a(!1),y=a(void 0),b=a(void 0),k=Fe,d=a(null),C=fe(()=>v.mode=="pop"?l.value:!0);se(()=>v.captchaType,i=>{switch(i.toString()){case"blockPuzzle":y.value="2",b.value=Xe;break;case"clickWord":y.value="",b.value=et;break}},{immediate:!0}),le(()=>{N()});function N(){for(var i=[],h="0123456789abcdef",S=0;S<36;S++)i[S]=h.substr(Math.floor(Math.random()*16),1);i[14]="4",i[19]=h.substr(i[19]&3|8,1),i[8]=i[13]=i[18]=i[23]="-";var W="slider-"+i.join(""),O="point-"+i.join("");localStorage.getItem("slider")||localStorage.setItem("slider",W),localStorage.getItem("point")||localStorage.setItem("point",O)}function w(){d.value&&d.value.refresh&&d.value.refresh()}function _(){l.value=!1,w()}function x(){v.mode=="pop"&&(l.value=!0)}return $({clickShow:l,closeBox:_,show:x,refresh:w}),(i,h)=>{const S=te("db-click");return X((I(),E("div",{class:Y(e.mode=="pop"?"mask":"")},[g("div",{class:Y(e.mode=="pop"?"verifybox":""),style:j({"max-width":parseInt(e.imgSize.width)+30+"px"})},[e.mode=="pop"?(I(),E("div",tt,[h[1]||(h[1]=ie(" 请完成安全验证 ",-1)),X((I(),E("span",{class:"verifybox-close",onClick:_},[...h[0]||(h[0]=[g("i",{class:"iconfont icon-close"},null,-1)])])),[[S]])])):K("",!0),g("div",{class:"verifybox-bottom",style:j({padding:e.mode=="pop"?"15px":"0"})},[b.value?(I(),Z(we(b.value),{key:0,ref_key:"instance",ref:d,"captcha-type":e.captchaType,type:y.value,figure:e.figure,arith:e.arith,mode:e.mode,"v-space":e.vSpace,explain:e.explain,"img-size":e.imgSize,"block-size":e.blockSize,"bar-size":e.barSize,"default-img":D(k)},null,8,["captcha-type","type","figure","arith","mode","v-space","explain","img-size","block-size","bar-size","default-img"])):K("",!0)],4)],6)],2)),[[ue,C.value]])}}}),nt={class:"page-account"},it=["src"],ot={class:"index_from page-account-container from-wh"},st={class:"page-account-top"},lt={class:"page-account-top-logo"},rt=["src"],ut={class:"footer"},ct={key:0,class:"pull-right"},dt={key:1,class:"pull-right"},vt={href:"https://www.crmeb.com",target:"_blank"},ft=Object.assign({name:"login"},{__name:"index",setup(e){const $=ze(),r=_e(),v=Ie(),l=Te(),y=Ce(),b=Ne(),k=Pe(),d=a(null),C=a(null),N=a(document.documentElement.clientWidth),w=a(!1),_=a(!1),x=a({username:"",password:""}),i={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},h=a(0),S=a(""),W=a([]),O=Ve,B=a(""),H=a(""),f=a("");document.onkeydown=s=>{$.name==="login"&&(s.keyCode===13||s.which===13)&&m()},window.addEventListener("resize",o),le(()=>{re(()=>{o(),p()})}),xe(()=>{window.removeEventListener("resize",o),document.onkeydown=null;const s=document.getElementsByTagName("canvas")[0];s&&s.removeAttribute("class","index_bg")});function p(){$e().then(s=>{const t=s.data||{};document.title=`${t.site_name} - 登录`,localStorage.setItem("ADMIN_TITLE",t.site_name||""),v.setAdminTitle(t.site_name),S.value=t.login_logo||ve,W.value=t.slide&&t.slide.length?t.slide:[{slide:O}],B.value=t.key,H.value=t.copyright,f.value=t.version,h.value=t.login_captcha}).catch(s=>{ce.error(s),S.value=ve,W.value=[{slide:O}]})}function z(s){R(s)}function R(s){w.value||(_.value=!1,w.value=!0,We({account:x.value.username,pwd:x.value.password,key:B.value,captchaType:"blockPuzzle",captchaVerification:s?s.captchaVerification:""}).then(async t=>{const n=t.data,T=P(n.expires_time);ne("uuid",n.user_info.id,T),ne("token",n.token,T),ne("expires_time",n.expires_time,T),Oe.set("PERMISSIONS",n.site_func),l.setUniqueAuth(n.unique_auth),l.setUserInfo(n.user_info),y.setopenMenus([]),y.getmenusNav(n.menus),b.setRoutesList(n.menus);const J=de(r.options.routes);L(J),y.setOneLvMenus(J);const u=de(n.menus);y.setOneLvRoute(u),l.setName(n.user_info.account),l.setAvatar(n.user_info.head_pic),l.setAccess(n.unique_auth),l.setLogo(n.logo),l.setLogoSmall(n.logo_square),l.setVersion(n.version),l.setNewOrderAudioLink(n.newOrderAudioLink),h.value=0;try{n.queue===!1&&ae.warning({title:"温馨提示",dangerouslyUseHTMLString:!0,message:'您的【消息队列】未开启,没有开启会导致异步任务无法执行。请尽快执行命令开启!!<a href="https://doc.crmeb.com/single/v54/13667" target="_blank">点击查看开启方法</a>',duration:3e4}),n.timer===!1&&setTimeout(()=>{ae.warning({title:"温馨提示",dangerouslyUseHTMLString:!0,message:'您的【定时任务】未开启,没有开启会导致自动收货、未支付自动取消订单、订单自动好评、拼团到期退款等任务无法正常执行。请尽快执行命令开启!!<a href="https://doc.crmeb.com/single/v54/13667" target="_blank">点击查看开启方法</a>',duration:3e4})},0),M()}catch{}Ae.start(),r.push({path:n.menus.length?Ee(n.menus).path:Be.routePre+"/"})}).catch(t=>{const n=t||{};ce.error(n.msg||"登录失败"),t&&t.data&&(h.value=t.data.login_captcha)}).finally(()=>{setTimeout(()=>{w.value=!1},1e3)}))}function L(s){if(!s.length)return!1;const t=[];s.forEach(n=>{n&&n.meta&&n.meta.keepAlive&&t.push(n.name)}),t.length&&k.setCacheKeepAlive(t)}function M(){Le().then(s=>{const t=s.data.admin;let n=!1;const T=new window.WebSocket(t);T.onopen=()=>{n=!0,T.close()},T.onerror=T.onclose=()=>{n||(n=!0,ae.warning({title:"温馨提示",message:'您的【长连接】未开启,没有开启会导致系统默认客服无法使用,后台订单通知无法收到。请尽快执行命令开启!!<a href="https://doc.crmeb.com/single/v54/13667" target="_blank">点击查看开启方法</a>',dangerouslyUseHTMLString:!0,duration:3e4}))}}).catch(()=>{})}function P(s){const t=Math.round(Date.now()/1e3),n=s-t;return parseFloat(n/60/60/24)}function o(){N.value=document.documentElement.clientWidth;const s=document.getElementsByTagName("canvas")[0];s&&(N.value<768?s.removeAttribute("class","index_bg"):s.className="index_bg")}function m(){d.value.validate(s=>{s&&(h.value===1?C.value.show():R())})}return(s,t)=>{const n=Q("el-input"),T=Q("el-form-item"),J=Q("el-button"),u=Q("el-form"),c=te("db-click");return I(),E("div",nt,[g("div",{class:Y(["container",[N.value>768?"containerSamll":"containerBig"]])},[N.value>768?(I(),Z(D(Re),{key:0,modules:[D(He),D(je)],pagination:{clickable:!0},autoplay:!0,class:"swiperPross"},{pagination:F(()=>[...t[4]||(t[4]=[g("div",{class:"swiper-pagination"},null,-1)])]),default:F(()=>[(I(!0),E(pe,null,ge(W.value,(A,V)=>(I(),Z(D(Me),{class:"swiperPic",key:V},{default:F(()=>[g("img",{src:A.slide,alt:""},null,8,it)]),_:2},1024))),128))]),_:1},8,["modules"])):K("",!0),g("div",ot,[g("div",st,[g("div",lt,[g("img",{src:S.value,alt:"logo",style:{width:"100%",height:"74px"}},null,8,rt)])]),q(u,{ref_key:"formInlineRef",ref:d,model:x.value,rules:i,onKeyup:t[3]||(t[3]=Se(A=>m(),["enter"]))},{default:F(()=>[q(T,{prop:"username"},{default:F(()=>[q(n,{type:"text",modelValue:x.value.username,"onUpdate:modelValue":t[0]||(t[0]=A=>x.value.username=A),prefix:"ios-contact-outline",placeholder:"请输入用户名",size:"large"},null,8,["modelValue"])]),_:1}),q(T,{prop:"password"},{default:F(()=>[q(n,{type:"password",modelValue:x.value.password,"onUpdate:modelValue":t[1]||(t[1]=A=>x.value.password=A),prefix:"ios-lock-outline",placeholder:"请输入密码",size:"large","show-password":""},null,8,["modelValue"])]),_:1}),q(T,{class:"pt10"},{default:F(()=>[X((I(),Z(J,{type:"primary",loading:w.value,size:"large",onClick:t[2]||(t[2]=A=>m()),class:"btn"},{default:F(()=>[...t[5]||(t[5]=[ie("登录",-1)])]),_:1},8,["loading"])),[[c]])]),_:1})]),_:1},8,["model"])])],2),q(D(at),{onSuccess:z,captchaType:"blockPuzzle",imgSize:{width:"330px",height:"155px"},ref_key:"verifyRef",ref:C},null,512),g("div",ut,[H.value?(I(),E("div",ct,U(H.value),1)):(I(),E("div",dt,[t[6]||(t[6]=ie(" Copyright © 2016~2026 ",-1)),g("a",vt,U(f.value),1)]))])])}}}),St=ke(ft,[["__scopeId","data-v-642fd65b"]]);export{St as default};
|