index-legacy-5dbc4e4e-1694078809672.js 26 KB

1
  1. System.register(["./index-legacy-da1c415f-1694078809672.js","./api-legacy-ffc15462-1694078809672.js","./closeEye-legacy-5726358d-1694078809672.js","./ding-legacy-f3656c17-1694078809672.js","./state-legacy-8c544d22-1694078809672.js"],(function(e,t){"use strict";var o,a,i,n,l,s,r,c,u,d,g,w,_,p,v,f,m,A,h,z,b,y,I,C,x,M,B,E,R,F,U,T,L,S=document.createElement("style");return S.textContent="._no-pwd_550iz_1{font-family:dotfont}._no-pwd_550iz_1 ::v-deep ._n-input__input-el_550iz_4{-webkit-text-security:disc!important;-moz-text-security:disc!important}._view-account-form_550iz_8{position:relative}._view-account_550iz_8{width:100%;height:100vh;display:flex;flex-direction:row;align-items:center;background-color:#ddefff;overflow:auto}._view-account-container_550iz_20{position:relative;width:61.45833333vw;display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%}._view-account-container_550iz_20 ._stylesWrap_550iz_29{margin-top:3.33333333vw;width:49.73958333vw}._view-account-container_550iz_20 ._stylesWrap_550iz_29 img{width:49.73958333vw}._view-account-container_550iz_20 ._loginLeft_550iz_36{left:0;top:0;width:7.23958333vw;height:7.23958333vw;position:absolute}._view-account-container_550iz_20 ._loginRight_550iz_43{right:0;bottom:0;width:10.10416667vw;height:9.6875vw;position:absolute}._view-account-form_550iz_8{width:38.54166667vw;min-height:100%;background-color:#fff;padding:3.125vw}._view-account-form_550iz_8 ._colLogo_550iz_56{width:12.08333333vw;height:4.11458333vw}._view-account-form_550iz_8 ._view-account-form-wrap_550iz_60{margin-top:3.125vw;position:relative;background:#ffffff;border-radius:.83333333vw;display:flex;flex-direction:column;align-items:center}._view-account-form_550iz_8 ._view-account-form-wrap_550iz_60 ._prefixIcon_550iz_69{width:1.14583333vw;height:1.14583333vw;margin-right:.26041667vw}._view-account-form_550iz_8 ._view-account-form-wrap_550iz_60 ._pwdIcon_550iz_74{width:1.25vw;height:1.25vw;cursor:pointer}._view-account-form_550iz_8 ._view-account-form-wrap_550iz_60 ._formTitle_550iz_79{display:flex;flex-direction:row;align-items:center;font-size:1.66666667rem;font-weight:600;color:#333;line-height:2.34375vw;margin-bottom:2.60416667vw}._view-account-form_550iz_8 ._view-account-form-wrap_550iz_60 ._formTitle_550iz_79 ._dot_550iz_89{width:.3125vw;height:1.09375vw;background:#3594fa;border-radius:.15625vw;margin-right:.41666667vw}._view-account-form_550iz_8 ._submitBtm_550iz_96{width:25vw;margin-top:1.04166667vw;background:#198cfe;border-radius:.625vw;font-size:1.14583333rem;font-weight:600!important;color:#fff;height:3.22916667vw;line-height:3.22916667vw;text-align:center}._view-account-form_550iz_8 ._forgetBtm_550iz_108{height:1.45833333vw;font-size:1.04166667rem;font-weight:600!important;color:#aaa;line-height:1.45833333vw}._view-account-form_550iz_8 ._sendInput_550iz_115 .n-input-wrapper{padding-right:0}._view-account-form_550iz_8 ._sendInput_550iz_115 ._sendMsg_550iz_118{width:6.66666667vw;height:3.33333333vw;background:#198cfe;border-radius:0px .41666667vw .41666667vw 0px;font-size:1.04166667rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#fff;line-height:3.22916667vw}._view-account-form-top_550iz_129{padding:1.66666667vw 0;text-align:center}._view-account-form-top-desc_550iz_133{font-size:.72916667rem;color:#808695}._view-account-form-other_550iz_137{width:100%}._view-account-form_550iz_8 ._default-color_550iz_140{color:#131415;font-size:.9375rem}._view-account-form_550iz_8 ._default-color_550iz_140 ._ant-checkbox-wrapper_550iz_144{color:#515a6e}._view-account-form_550iz_8 ._loginTabs_550iz_147._loginForgot_550iz_147{margin-top:2.08333333vw}._view-account-form_550iz_8 ._loginTabs_550iz_147{margin-top:4.16666667vw}._view-account-form_550iz_8 ._loginTabs_550iz_147 .n-tabs-tab-pad{width:4.16666667vw}._view-account-form_550iz_8 ._loginTabs_550iz_147 .n-tabs-tab__label{font-size:1.25rem;position:relative;z-index:100;color:#8b8d98}._view-account-form_550iz_8 ._loginTabs_550iz_147 .n-tabs-tab--active .n-tabs-tab__label{color:#131415;font-weight:600}._view-account-form_550iz_8 ._loginTabs_550iz_147 .n-tabs-bar{width:5vw;height:.52083333vw;bottom:.41666667vw;z-index:0;background:linear-gradient(90deg,#77bbff 0%,rgba(163,231,255,.22) 100%)}._view-account-form_550iz_8 ._loginTabs_550iz_147 .n-input{border-radius:.41666667vw;width:25vw;font-size:1.04166667rem}._view-account-form_550iz_8 ._loginTabs_550iz_147 .n-input__input-el{height:3.33333333vw;line-height:3.33333333vw}._showModalTone_550iz_182{width:26.04166667vw}._showModalTone_550iz_182 ._studentRemove_550iz_185{padding:1.66666667vw 2.08333333vw 2.39583333vw}._showModalTone_550iz_182 ._studentRemove_550iz_185 p{font-size:.9375rem;color:#777;line-height:1.5625vw;text-align:center}._showModalTone_550iz_182 ._studentRemove_550iz_185 p span{color:#ea4132}._showModalTone_550iz_182 ._submitAppBtn_550iz_197{width:7.29166667vw}._downMove_550iz_200{width:21.51041667vw;background:#FFFFFF;border-radius:.83333333vw;position:relative;padding:0 1.5625vw 1.82291667vw}._downMove_550iz_200 ._downMoveBg_550iz_207{position:absolute;top:0;left:0;width:21.51041667vw;height:5.26041667vw}._downMove_550iz_200 ._dingPng_550iz_214{width:8.4375vw;height:5.10416667vw;position:absolute;left:50%;margin-left:-4.21875vw;top:-2.55208333vw;z-index:100}._downMove_550iz_200 ._closeAble_550iz_223{cursor:pointer;width:1.30208333vw;height:1.30208333vw;position:absolute;top:.9375vw;right:1.04166667vw}._downMove_550iz_200 h2{margin-top:3.33333333vw;height:1.71875vw;font-size:1.25rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#131415;line-height:1.71875vw;text-align:center;margin-bottom:.78125vw}._downMove_550iz_200 p{font-size:.9375rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#777;line-height:1.5625vw}._downMove_550iz_200 ._submitAppBtn_550iz_197{width:13.38541667vw;height:2.34375vw;line-height:2.34375vw;background:linear-gradient(305deg,#40C8FF 0%,#3192FF 100%);border-radius:1.25vw;border:none}._downMove_550iz_200 ._submitAppBtn_550iz_197 .n-button__border,._downMove_550iz_200 ._submitAppBtn_550iz_197 .n-button__state-border{display:none}._alertWrap_550iz_263{position:absolute;left:50%;margin-left:-16.14583333vw;padding:.72916667vw .88541667vw;width:32.29166667vw;height:2.39583333vw;background:#E6F4FF;border-radius:.46875vw;display:flex;flex-direction:row;align-items:center;justify-content:space-between;bottom:3.125vw}._alertWrap_550iz_263 ._alertInfo_550iz_278{display:flex;flex-direction:row;align-items:center;font-size:.83333333rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:rgba(0,0,0,.88)}._alertWrap_550iz_263 ._alertInfo_550iz_278 ._infoIcon_550iz_287{width:1.04166667vw;height:1.04166667vw;margin-right:.41666667vw}._alertWrap_550iz_263 ._down_550iz_200{font-size:.83333333rem;font-weight:500;color:#1677ff;cursor:pointer}\n",document.head.appendChild(S),{setters:[e=>{o=e.d,a=e.u,i=e.a,n=e.r,l=e.b,s=e.P,r=e.c,c=e.e,u=e.s,d=e.f,g=e.N,w=e.g,_=e.h,p=e.i,v=e.j,f=e.k,m=e.l,A=e.m,h=e.o,z=e.n,b=e.p,y=e.q,I=e.t,C=e.v,x=e.w,M=e.x},e=>{B=e.s,E=e.u},e=>{R=e.o,F=e.c},e=>{U=e.d,T=e.m},e=>{L=e.s}],execute:function(){const S=""+new URL("login_styles-ceba7cd4.png",t.meta.url).href,k=""+new URL("login-left-588cef70.png",t.meta.url).href,O=""+new URL("loginright-bff46f2c.png",t.meta.url).href,P=""+new URL("colLogo-1855284b.png",t.meta.url).href,Z={"no-pwd":"_no-pwd_550iz_1","n-input__input-el":"_n-input__input-el_550iz_4","view-account-form":"_view-account-form_550iz_8","view-account":"_view-account_550iz_8","view-account-container":"_view-account-container_550iz_20",stylesWrap:"_stylesWrap_550iz_29",loginLeft:"_loginLeft_550iz_36",loginRight:"_loginRight_550iz_43",colLogo:"_colLogo_550iz_56","view-account-form-wrap":"_view-account-form-wrap_550iz_60",prefixIcon:"_prefixIcon_550iz_69",pwdIcon:"_pwdIcon_550iz_74",formTitle:"_formTitle_550iz_79",dot:"_dot_550iz_89",submitBtm:"_submitBtm_550iz_96",forgetBtm:"_forgetBtm_550iz_108",sendInput:"_sendInput_550iz_115",sendMsg:"_sendMsg_550iz_118","view-account-form-top":"_view-account-form-top_550iz_129","view-account-form-top-desc":"_view-account-form-top-desc_550iz_133","view-account-form-other":"_view-account-form-other_550iz_137","default-color":"_default-color_550iz_140","ant-checkbox-wrapper":"_ant-checkbox-wrapper_550iz_144",loginTabs:"_loginTabs_550iz_147",loginForgot:"_loginForgot_550iz_147",showModalTone:"_showModalTone_550iz_182",studentRemove:"_studentRemove_550iz_185",submitAppBtn:"_submitAppBtn_550iz_197",downMove:"_downMove_550iz_200",downMoveBg:"_downMoveBg_550iz_207",dingPng:"_dingPng_550iz_214",closeAble:"_closeAble_550iz_223",alertWrap:"_alertWrap_550iz_263",alertInfo:"_alertInfo_550iz_278",infoIcon:"_infoIcon_550iz_287",down:"_down_550iz_200"},j="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAA0pJREFUWEftmVtIFFEYx//fjKaZdoOFeigJwkh6CGdmZV/EICTBfVPEULALRD0EGYRg6BYhRU9C0eWhC90Iix4MjF7aCMOdnX0QIovCp+iykL1Ym7ieL07swjZNuzurq2zsPO75zv/7zf985+w5ZwgF9lCB8aIInO8RKzq8JA43NzeXRaPRASLyM3MtACXfibPRJ6I4gFcAHlRWVp4LBoNxSsC+BFCXjcgyxjzz+/27SdO0UwD6lxHETeqjEvg1gO1uei1j7AsJPO9Us4n6GWhpaTkbCATEUkHqur4DwC1m3umQ85sE5nQwRBRUVbUrFAp9yCc0M5Ou68cADAIoc8pFRLE/gKWrzFxiDyaiaUVRDpqm+Sgf0JqmbQZwA8CuDOb9BRxj5jYA1wF4HMCvMHNPJBL5sVjghmF0CiEuAFhj12Tm+0TUnvzdyeGYZ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MWhuGBiDwAQCMJtyzLC4LgqRRwq9U6B4DLJAkR75j5ZBmg82MQ0a2IHBv3L0aj0VUpYCLqiUjXAO4zc++PgAvPlSoJBc74NGWKoxWuonGt8KxqiKgukchHJaGSmLMSlYRKQiUBAGUWQpXfsZlTZi7d/FSptlZYbU1tTW0t2zvUJdQlVsEliMgDgBsR2TR5EHEMAKfMbB4s/kD+Fw0T0fs8rHEuN2bmrbSlp8BFFl3tJFFll7bUc4naHWjXrmVQu6bMTF+1ansZC6I+jcUEepVat988fMRLRmtCKgAAAABJRU5ErkJggg==",q=o({name:"codeLogin",setup(e,{emit:t}){const o=a(),m=i(),A=n(),h=l(),z=n(!1),b=n(!0),y=s.BASE_LOGIN_NAME,I=r(),C=c({username:"",password:"",isCaptcha:!0}),x=n(!1),M=n(60),E=u.get("userInfo-teacher");E&&(C.username=JSON.parse(E).username);const R=async()=>{A.value.validate((async e=>{if(!e){const{username:e,password:a}=C;h.loading("登录中..."),z.value=!0,u.set("userInfo-teacher",JSON.stringify({username:e}));const i={username:e,password:a,loginType:"SMS",grant_type:"password",client_id:"cooleshow-teacher",client_secret:"cooleshow-teacher"};try{await I.login(i),h.destroyAll(),b.value?u.set("userInfo",JSON.stringify(C)):u.remove("userInfo");const e=decodeURIComponent("/");h.success("登录成功,即将进入系统"),m.name===y?o.replace("/"):o.replace(e)}catch(t){h.destroyAll(),z.value=!1,h.error(t.msg),console.log(t)}finally{z.value=!1}}}))},F=()=>{if(x.value)return;x.value=!0;const e=setInterval((()=>{M.value--,console.log(M.value),M.value<=0&&(x.value=!1,clearInterval(e))}),1e3)};return()=>d("div",{class:Z["view-account-form-wrap"]},[d(g,{ref:A,"label-placement":"left",size:"large",model:C},{default:()=>[d(w,{path:"username",rule:[{required:!0,message:"请输入手机号",trigger:"blur"}]},{default:()=>[d(_,{maxlength:11,value:C.username,"onUpdate:value":e=>C.username=e,placeholder:"请输入手机号"},{prefix:()=>d("img",{src:W,class:Z.prefixIcon,alt:""},null)})]}),d(w,{path:"password",rule:[{required:!0,message:"请输入验证码",trigger:"blur"}]},{default:()=>[d(p,null,{default:()=>[d(_,{value:C.password,"onUpdate:value":e=>C.password=e,type:"text",showPasswordOn:"click",placeholder:"请输入验证码",inputProps:{autocomplete:"off"},class:Z.sendInput,maxlength:6,onKeydown:e=>{"Enter"!==e.code&&"NumpadEnter"!==e.code||R()}},{prefix:()=>d("img",{src:j,class:Z.prefixIcon,alt:""},null),suffix:()=>d(v,{class:Z.sendMsg,disabled:x.value,onClick:()=>(async()=>{if(C.username)try{await B({clientId:"cooleshow-teacher",mobile:C.username,type:"LOGIN"}),F()}catch(e){console.log(e)}else h.error("请输入手机号")})()},{default:()=>[x.value?M.value+"S":"发送短信"]})})]})]}),d(w,{class:Z["default-color"]},{default:()=>[d("div",{class:[Z.flex,Z["justify-between"]]},[d("div",{class:Z["flex-initial"]},null)])]}),d(w,null,{default:()=>[d(v,{class:Z.submitBtm,type:"primary",onClick:R,size:"large",disabled:z.value,block:!0},{default:()=>[f("立即登录")]})]})]})])}}),D="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAA5RJREFUWEftmV+IG1UUxr8z6UaNPrjSQq1idVHxySLnDkt3XVzBPw8uKIqg9G2RUh+k+KLFpzy2fRCxCtZSn4pPgsJaEZSKLJLdzTlgBUHpKhXaYl1BYbDZxmaOjGyGMSbmJpPGLeQ+Ts75vt98M3Pn3gkh52DmrUEQ7DGzGQAPANhqZgER/Q7gGzOrjI2NnVhaWjqb0+rvdupXZGZmZlutVjtkZnsAFLvoGICTxWLx5UqlstqvZ9/AYRg+bWbHzOyWHs0vE9EBEXmjx760vOeEmXkfgLcBBP2aAnhTVff3098TsHPuSTP7qI3Rd0T0LhF9MT4+fiaKorher+8E8CARzZvZ7tYeInpVRA73Cu0NzMx3ADgN4OasCRG9bmYHVPXPTubM/CyA9wDc1KwhogaAh0Tkq16gvYGdc8fNbD4jXi8UCs+trKx86GPIzA8T0Sdmdn0GuiIiUz79aY9P8dTU1M56vb5qZlsyZi+JyFs+/c0aZn4CwMctV+hREfncV8cr4TAM98dxnD7ZRPTt3Nzc/eVyOfY1atY55z4ws2cyJ/6OiLzoq+MFzMyfAng8T7oZ4EfM7LMM4FlVvWugwM65H80sFSWi+0Tke1+TbB0zjwE4D2DbxvEzqnqvr5ZXws65S2Z2Q1O0WCyWKpVKzdektY6ZnyKiI2Z2hYj2ikg28f+U7QpcLpeDhYWFZApqjlhVC/3C5u0bAedNsFv/KOFuCeX9/dpOOAzD7XEcH0wWJQB2ZNLILtCTxXjHhU7uBInOmdmpUqn02uLi4lqrXprw9PT0jvX19a8zE3pe77z9FwDsUtVfs0IpMDOfAJBsdzbTOKaqezsBJ6/L7G2wGcD/9drOJpzcm+mYmJi4btjEa2trpSiKfsv4XlLVGzsl/A9gVe06gwz6hJi5BOCPpi4R1UQkOZaOjgmPgD0ux9ATTr5XxHF8FECyE5lX1ZMenGnJ0IGZ+ZfMPP6Tqt65aYFnZ2e3RFGUvgGJ6IqIJLsL7zHUhEfAyZfKqzmtjRIeJdzm2WfmcwBu2/hpVVXv8Z4iAAx1lkjAmPkxAMn3tkYQBPuq1eqXmxq4F7h2tUNPeAR8NefhvOluPAM9rYeTTd+tgzAeoMYPqnp32wW8c+59M3t+gGa5pYjouIi80BZ4cnLy9kajcbqP/95yg7UTIKKLhUJh1/Ly8sW2wMnBDejDZjb7P94e54noFBG9Uq1Wf249mb8AQS0XS+/oFWwAAAAASUVORK5CYII=",J=o({name:"codeLogin",emits:["changType"],setup(e,{emit:t}){const o=a();i();const p=n(),A=l(),h=n(!1),z=n(!0);s.BASE_LOGIN_NAME;const b=n(!1),y=r();let I=c({username:"",password:"",isCaptcha:!0});const C=u.get("userInfo-teacher");C&&(I=c({...JSON.parse(C)}));const x=async()=>{p.value.validate((async e=>{if(!e){const{username:e,password:a}=I;h.value=!0;const i={username:e,password:a,loginType:"PASSWORD",grant_type:"password",client_id:"cooleshow-teacher",client_secret:"cooleshow-teacher"};try{await y.login(i),A.destroyAll(),z.value?u.set("userInfo-teacher",JSON.stringify(I)):u.remove("userInfo-teacher");const e=decodeURIComponent("/");console.log(e,"toPath"),A.success("登录成功,即将进入系统"),o.replace(e)}catch(t){console.log(t,"e")}finally{h.value=!1}}}))};return()=>d("div",{class:Z["view-account-form-wrap"]},[d(g,{ref:p,"label-placement":"left",size:"large",model:I},{default:()=>[d(w,{path:"username",rule:[{required:!0,message:"请输入用户名",trigger:"blur"}]},{default:()=>[d(_,{maxlength:11,value:I.username,"onUpdate:value":e=>I.username=e,placeholder:"请输入用户名"},{prefix:()=>d("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABQ1JREFUWEfdmV+I1FUUx8+588scmJESVkFRC0IN6yHu/e2AbjVZCWbQ31UD6ynLsiiDrB566UUryCItqZ5K6H8ZVAv+nWp9mL3nEkSRfx62FANdsHAGtHXmnrjb/Ja74+z+fr91XZvO0zD33O/5zPmde3/n3kFoM8OJ4O3s7Jxvrb0bAG4HgLnMPMvpIuIfAHAUAHYLIXb29fUdvtB4FwRcKBRkrVZ7BQCWJgTZFwTBxnK5bBL6n+c2LuBisRhUq9UtzLzeJTJlcEbEbblcbkOpVKqlnJs6GHR1dV155syZzwHglrTBmvz3Z7PZ+3p7e/9Mo5MqOy6zlUplVytYRNyLiB8z8/e5XO64g6hWq7MR8SZmXsXMt7YA25/P55elyXQqYKXU1kYZ+LGPCCHWaq2/GytTYRjebK19DwCu8f0QcSsRPZk0y4mBGwtMN9XsD9ls9q6kj7VRTl8BwI0eIAdBECZdiImBpZR7m3aDI9lstpAUNgJsQPc1ZXqfMaZVyYxvl3D7bL1eP+TPFkIU48pgtMfcKI+SP57JZBYk2acTZVgptZGZX44CuAVGRLclrbtWfkqpPf5CRMTniMjt6WNaUuDdzDwMKIR4RGv9bpx4zCJca619x0vCHiJyb8oJAT7EzPM98Y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2nAAAAABJRU5ErkJggg==",class:Z.prefixIcon,alt:""},null)})]}),d(w,{path:"password",rule:[{required:!0,message:"请输入密码",trigger:"blur"}]},{default:()=>[d(_,{value:I.password,"onUpdate:value":e=>I.password=e,type:"text",showPasswordOn:"click",placeholder:"请输入密码",inputProps:{autocomplete:"off"},class:[b.value?"":Z["no-pwd"]],onKeydown:e=>{console.log(e.code),"Enter"!==e.code&&"NumpadEnter"!==e.code||x()}},{prefix:()=>d("img",{src:D,class:Z.prefixIcon,alt:""},null),suffix:()=>d("img",{src:b.value?R:F,class:Z.pwdIcon,alt:"",onClick:()=>{b.value=!b.value}},null)})]}),d(w,{class:Z["default-color"]},{default:()=>[d("div",{class:[Z.flex,Z["justify-between"]]},[d("div",{class:Z["flex-initial"]},[d(m,{checked:z.value,"onUpdate:checked":e=>z.value=e},{default:()=>[f("记住密码")]})])])]}),d(w,null,{default:()=>[d(v,{class:Z.submitBtm,type:"primary",onClick:x,size:"large",disabled:h.value,loading:h.value,block:!0},{default:()=>[f("立即登录")]})]}),d(w,null,{default:()=>[d(v,{text:!0,class:Z.forgetBtm,onClick:()=>{t("changType")},size:"large",block:!0},{default:()=>[f("忘记密码")]})]})]})])}}),N=o({name:"forgotPassword",emits:["changType"],setup(e,{emit:t}){a(),i();const o=n(),u=l(),m=n(!1);n(!0),s.BASE_LOGIN_NAME;const A=n(!1),h=n(!1);r();const z=c({mobile:"",password:"",password1:"",code:"",isCaptcha:!0}),b=n(!1),y=n(60),I=(e,t,o)=>{""===t?o(new Error("请再次输入密码")):t!==z.password?o(new Error("两次输入密码不一致!")):/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/.test(t)?o():o(new Error("密码为6-20位数字和字母组合"))},C=async()=>(o.value.validate((async e=>{if(!e){u.loading("修改中..."),m.value=!0;try{return await E({...z,clientType:"TEACHER"}),u.success("修改成功"),m.value=!1,t("changType"),!1}catch(o){return m.value=!1,u.error(o.msg),!1}}})),!1),x=()=>{if(b.value)return;b.value=!0;const e=setInterval((()=>{y.value--,console.log(y.value),y.value<=0&&(b.value=!1,clearInterval(e))}),1e3)};return()=>d("div",{class:Z["view-account-form-wrap"]},[d(g,{ref:o,"label-placement":"left",size:"large",model:z},{default:()=>[d(w,{path:"mobile",rule:[{required:!0,message:"请输入手机号",trigger:"blur"}]},{default:()=>[d(_,{maxlength:11,value:z.mobile,"onUpdate:value":e=>z.mobile=e,placeholder:"请输入手机号"},{prefix:()=>d("img",{src:W,class:Z.prefixIcon,alt:""},null)})]}),d(w,{path:"password",rule:[{required:!0,pattern:/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/,message:"密码为6-20位数字和字母组合",trigger:"blur"}]},{default:()=>[d(_,{value:z.password,"onUpdate:value":e=>z.password=e,type:"text",showPasswordOn:"click",placeholder:"请输入密码",inputProps:{autocomplete:"off"},class:[A.value?"":Z["no-pwd"]]},{prefix:()=>d("img",{src:D,class:Z.prefixIcon,alt:""},null),suffix:()=>d("img",{src:A.value?R:F,class:Z.pwdIcon,alt:"",onClick:()=>{A.value=!A.value}},null)})]}),d(w,{path:"password1",rule:[{validator:I,trigger:"blur",required:!0}]},{default:()=>[d(_,{value:z.password1,"onUpdate:value":e=>z.password1=e,type:"text",showPasswordOn:"click",placeholder:"请确认密码",inputProps:{autocomplete:"off"},class:[h.value?"":Z["no-pwd"]]},{prefix:()=>d("img",{src:D,class:Z.prefixIcon,alt:""},null),suffix:()=>d("img",{src:h.value?R:F,class:Z.pwdIcon,alt:"",onClick:()=>{h.value=!h.value}},null)})]}),d(w,{path:"code",rule:[{required:!0,message:"请输入验证码",trigger:"blur"}]},{default:()=>[d(p,null,{default:()=>[d(_,{value:z.code,"onUpdate:value":e=>z.code=e,type:"text",showPasswordOn:"click",placeholder:"请输入验证码",inputProps:{autocomplete:"off"},class:Z.sendInput,onKeydown:e=>{"Enter"!==e.code&&"NumpadEnter"!==e.code||C()}},{prefix:()=>d("img",{src:j,class:Z.prefixIcon,alt:""},null),suffix:()=>d(v,{class:Z.sendMsg,disabled:b.value,onClick:()=>(async()=>{if(z.mobile)try{await B({clientId:"cooleshow-teacher",mobile:z.mobile,type:"PASSWORD"}),x()}catch(e){console.log(e)}else u.error("请输入手机号")})()},{default:()=>[b.value?y.value+"S":"发送短信"]})})]})]}),d(w,null,{default:()=>[d(v,{class:[Z.submitBtm,Z.submitForgoBtm],type:"primary",onClick:C,size:"large",disabled:m.value,block:!0},{default:()=>[f("确认")]})]}),d(w,null,{default:()=>[d(v,{text:!0,class:Z.forgetBtm,onClick:()=>{t("changType")},size:"large",block:!0},{default:()=>[f("返回登录")]})]})]})])}});e("default",o({name:"login-page",setup(){const e=n(!1),t=n("pwdLogin"),o=n(),a=n(),i=n();A();const l=n(!1),s=async e=>{e.preventDefault(),console.log("checkInstall",e),i.value=e,console.log("beforeoutcome"),window.matchMedia("(display-mode: standalone)").matches?L.application=window.matchMedia("(display-mode: standalone)").matches:(console.log(i.value,"popEvent.value"),i.value&&(l.value=!0,setTimeout((()=>{const e=document.querySelector("#submitBtn");console.log(e),e&&e.addEventListener("click",(()=>{l.value=!1,i.value&&(i.value.prompt(),i.value.userChoice.then((e=>{"accepted"===e.outcome?(console.log("用户已同意添加到桌面"),l.value=!1):(console.log("用户已取消添加到桌面"),l.value=!1)})))}))}),500)))};window.addEventListener("beforeinstallprompt",s,{once:!0}),h((()=>{window.removeEventListener("beforeinstallprompt",s)})),z((async()=>{}));const r=()=>{const e=navigator.userAgent.toLowerCase(),t=/macintosh|mac os x/i.test(navigator.userAgent);(e.indexOf("win32")>=0||e.indexOf("wow32")>=0)&&window.open("https://appstore.ks3-cn-beijing.ksyuncs.com/ChromeStandaloneSetup32.exe"),(e.indexOf("win64")>=0||e.indexOf("wow64")>=0)&&window.open("https://appstore.ks3-cn-beijing.ksyuncs.com/ChromeStandaloneSetup64.exe"),t&&window.open("https://appstore.ks3-cn-beijing.ksyuncs.com/googlechrome-mac.dmg")};return()=>d("div",{class:Z["view-account"]},[d("div",{class:Z["view-account-container"]},[d("img",{src:k,class:Z.loginLeft,alt:""},null),d("img",{src:O,class:Z.loginRight,alt:""},null),d("div",{class:Z.stylesWrap},[d("img",{src:S,alt:""},null)])]),d("div",{class:Z["view-account-form"]},[d("img",{class:Z.colLogo,src:P},null),f("14:31"),e.value?d(b,{key:"forgotPassword","default-value":t.value,class:[Z.loginTabs,Z.loginForgot],ref:a,"justify-content":"center"},{default:()=>[d(y,{name:"forgotPassword",tab:"重置密码"},{default:()=>[d(N,{onChangType:()=>{e.value=!1,t.value="pwdLogin"}},null)]})]}):d(b,{key:"pwdLogin",ref:o,"default-value":t.value,class:[Z.loginTabs],"justify-content":"center"},{default:()=>[d(y,{name:"pwdLogin",tab:"密码登录"},{default:()=>[d(J,{onChangType:()=>{e.value=!0,t.value="forgotPassword"}},null)]}),d(y,{name:"codeLogin",tab:"短信验证"},{default:()=>[d(q,null,null)]})]}),d("div",{class:Z.alertWrap},[d("div",{class:Z.alertInfo},[d(I,{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAo1JREFUWEfNmL9v01AQx79f26DCghATaQpFCAF/AA1bywgSQp34sbCwgDqUGgEDIwOgJs1QwcLCgmCqEBKMpBuFPwBQhSi0hAkhFqgg9hc9Nw5JSRrHccXzZCt39z65u3d37xEpn32z2vv7F4bDEDk6yBkzClF1HFS3bMXShwl+TGOavSjlyyqEAcYBnJJ0aCNdkm8BPHFczK1MciHpOomA8iWNBMIdSKNJDbfIkfMucXVliq+66W8ItOeudtZ+4p6k090MJfmd5GNvGy5+usRvneQ7AuXKOogango6kGSxpDIEF+HhZHWS79rptAUaLOqYhDlBO5Iu1Iscwe8kxj/7fLFe7x+gumcWNgsmBjBQ8FBY76kWoChnfsDAZBqmzvnCRW87Cs051QKUK+pRVgmcNIQm0as+z/z1XP0t2tqhEteLJte/d1xcMN9hgPuC9ieFieVch4W4JDQ8tLuoSqo6Q85/8TlmjGdhIwIyFTio6WWv/yySzwIIgOvxqKnoEVCuqFuSrv1PIJK3qz6vx0BvuvWmjrAZecj0vqrPwzRde3VVS6m8k2HIjKmBAQ4zX9JoEKpiA5DrcIy5aZ0V9NAGIILnOFiSH4aatgHIcXiFg0VNhVLRCiDSty9k/SY1wa8gZiMPCxOCdqX1dpTUfW/7tKu30Yu2fb1Spy+MGQE1CmPfrQOs0MP5KGI1PAAUNdpen5bW0U9z9TyOLE/ytQEYKutIraauJ4t2sC3NtZ/RwXV5YuUyn0dTw4yOB4Ge9eqd5omhMQ+lHtDIZQI31jYZbkoa6hWo7YBWzyV7RlgDZN2QH3lp7YBoxzEojr1VB8UYyqqjdAxl1WVD89a15jpmfT2x5sKqXaHbrCu9P01pn9rR5pptAAAAAElFTkSuQmCC",class:Z.infoIcon,previewDisabled:!0},null),f("为了您更好的上课体验,推荐使用Chrome浏览器")]),d("div",{class:Z.down,onClick:r},[f("立即下载")])])]),d(C,{show:l.value,"onUpdate:show":e=>l.value=e},{default:()=>[d("div",{class:Z.downMove},[d("img",{src:U,class:Z.dingPng,alt:""},null),d("img",{src:T,class:Z.downMoveBg,alt:""},null),d("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAi9JREFUaEPt2a9LBEEUwPHvBUFEg0EQ0SD+BTaLSbCYTAo2k0WDlvMHCCJisWgwWRVMJoNgMtj8CwSDv8BgUhEElYFdWZe7nbcz78Fx7Na7ebOfeTtvZnZrtMlVaxMHFaTVMlllpMqI0QhIHq0hYBx4Ay6AT6N7ScN2ApNAN3AF3Ev680GGgT2gIwn2AKwDr5LgAf/pBXaAwaTtF7AC3Pli+SALwFQuyCOwZoDJI9Juz4HDWMg8MN0giDamGcJ1fQYcxUL6gP3kec3H0sIUId6BJeAlFuLajwDbRhgfYgO49SHc7745ksawwKghykC0M6OKKAvRwqgjQiCxGBNEKCQUY4aIgfgwT8BqZtE0RcRCpJif3LYjW03dOiEusUVlWFp+i2IUlWaXme/M3skEoZERyTrTaBDUMpEG18hIWYw6QjMjUowJwgLiqtMuMNBkUj0DdYMjgHivJdm3FZXYbHutXfO/e9KaI1JE2rk6RgPiW+zcOuLO3/lLFRML8SHcYucgVueZv8GJgUgQ6aHI4jyjMkfKICSlOfoxC8lICMIcUxYSgzDFlIFoIMwwUogmwgQjgVgg1DE+SFfy7jd9F2txnvCV5mXgw7dH8kFmgbkGQbR3sUWYE+A4FrKYvOK3yET+3pph3KeMg1jIKLCVCaKdCQlmE7iJhbj2Y8BE8qHnFHBnCsurH5gBeoBL4FrSmW+OSGK0xH8qSEukIXMTVUaqjBiNQPVoGQ1scNi2ycgvTfaxM/Rb2jIAAAAASUVORK5CYII=",class:Z.closeAble,onClick:()=>{l.value=!1},alt:""},null),d("h2",null,[f("温馨提示")]),d("p",null,[f("检测到您尚未安装“音乐数字课堂”应用程序,为了更好的使用体验,是否立即下载?")]),d(x,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[d(v,M({id:"submitBtn"},{class:Z.submitAppBtn,round:!0,type:"primary"}),{default:()=>[f("立即下载")]})]})])]})])}}))}}}));