1 |
- System.register(["./index-legacy-4630884d-1734950731618.js","./sendSms-legacy-34e5e2d7-1734950731618.js","./closeEye-legacy-5726358d-1734950731618.js","./ding-legacy-f3656c17-1734950731618.js","./index-legacy-2e42a385-1734950731618.js","./Scrollbar-legacy-0b9059a1-1734950731618.js"],(function(e,o){"use strict";var l,t,a,n,i,s,r,c,p,u,v,d,w,_,g,m,f,h,A,k,b,y,I,C,x,M,B,R,E,T,U,S,z,F,L,O,P,Z;return{setters:[e=>{l=e.d,t=e.u,a=e.a,n=e.r,i=e.b,s=e.P,r=e.c,c=e.e,p=e.s,u=e.f,v=e.N,d=e.g,w=e.h,_=e.i,g=e.j,m=e.k,f=e.l,h=e.m,A=e.n,k=e.o,b=e.p,y=e.q,I=e.t,C=e.v,x=e.w,M=e.x,B=e.y,R=e.z},e=>{E=e.S,T=e.u,U=e.s,S=e.c,z=e.m},e=>{F=e.o,L=e.c},e=>{O=e.d,P=e.m},e=>{Z=e.T},null],execute:function(){var q=document.createElement("style");q.textContent="._no-pwd_kplv4_1{font-family:dotfont}._no-pwd_kplv4_1 ::v-deep ._n-input__input-el_kplv4_4{-webkit-text-security:disc!important;-moz-text-security:disc!important}._view-account-form_kplv4_8{position:relative}._view-account_kplv4_8{width:100%;height:100vh;display:flex;flex-direction:row;align-items:center;background-color:#ddefff;overflow:auto}._view-account-container_kplv4_20{position:relative;width:61.45833333vw;display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%}._view-account-container_kplv4_20 ._stylesWrap_kplv4_29{margin-top:3.33333333vw;width:49.73958333vw}._view-account-container_kplv4_20 ._stylesWrap_kplv4_29 img{width:49.73958333vw}._view-account-container_kplv4_20 ._loginLeft_kplv4_36{left:0;top:0;width:7.23958333vw;height:7.23958333vw;position:absolute}._view-account-container_kplv4_20 ._loginRight_kplv4_43{right:0;bottom:0;width:10.10416667vw;height:9.6875vw;position:absolute}._view-account-form_kplv4_8{width:38.54166667vw;min-height:100%;background-color:#fff;padding:3.125vw}._view-account-form_kplv4_8 ._colLogo_kplv4_56{width:11.09375vw;height:4.11458333vw}._view-account-form_kplv4_8 ._view-account-form-wrap_kplv4_60{margin-top:3.125vw;position:relative;background:#ffffff;border-radius:.83333333vw;display:flex;flex-direction:column;align-items:center}._view-account-form_kplv4_8 ._view-account-form-wrap_kplv4_60 ._prefixIcon_kplv4_69{width:1.14583333vw;height:1.14583333vw;margin-right:.26041667vw}._view-account-form_kplv4_8 ._view-account-form-wrap_kplv4_60 ._pwdIcon_kplv4_74{width:1.25vw;height:1.25vw;cursor:pointer}._view-account-form_kplv4_8 ._view-account-form-wrap_kplv4_60 ._formTitle_kplv4_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_kplv4_8 ._view-account-form-wrap_kplv4_60 ._formTitle_kplv4_79 ._dot_kplv4_89{width:.3125vw;height:1.09375vw;background:#3594fa;border-radius:.15625vw;margin-right:.41666667vw}._view-account-form_kplv4_8 ._submitBtm_kplv4_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_kplv4_8 ._forgetBtm_kplv4_108{height:1.45833333vw;font-size:1.04166667rem;font-weight:600!important;color:#aaa;line-height:1.45833333vw}._view-account-form_kplv4_8 ._sendInput_kplv4_115 .n-input-wrapper{padding-right:0}._view-account-form_kplv4_8 ._sendInput_kplv4_115 ._sendMsg_kplv4_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_kplv4_129{padding:1.66666667vw 0;text-align:center}._view-account-form-top-desc_kplv4_133{font-size:.72916667rem;color:#808695}._view-account-form-other_kplv4_137{width:100%}._view-account-form_kplv4_8 ._default-color_kplv4_140{color:#131415;font-size:.9375rem}._view-account-form_kplv4_8 ._default-color_kplv4_140 ._ant-checkbox-wrapper_kplv4_144{color:#515a6e}._view-account-form_kplv4_8 ._loginTabs_kplv4_147._loginForgot_kplv4_147{margin-top:2.08333333vw}._view-account-form_kplv4_8 ._loginTabs_kplv4_147{margin-top:4.16666667vw}._view-account-form_kplv4_8 ._loginTabs_kplv4_147 .n-tabs-tab-pad{width:4.16666667vw}._view-account-form_kplv4_8 ._loginTabs_kplv4_147 .n-tabs-tab__label{font-size:1.25rem;position:relative;z-index:100;color:#8b8d98}._view-account-form_kplv4_8 ._loginTabs_kplv4_147 .n-tabs-tab--active .n-tabs-tab__label{color:#131415;font-weight:600}._view-account-form_kplv4_8 ._loginTabs_kplv4_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_kplv4_8 ._loginTabs_kplv4_147 .n-input{border-radius:.41666667vw;width:25vw;font-size:1.04166667rem}._view-account-form_kplv4_8 ._loginTabs_kplv4_147 .n-input__input-el{height:3.33333333vw;line-height:3.33333333vw}._showModalTone_kplv4_182{width:26.04166667vw}._showModalTone_kplv4_182 ._studentRemove_kplv4_185{padding:1.66666667vw 2.08333333vw 2.39583333vw}._showModalTone_kplv4_182 ._studentRemove_kplv4_185 p{font-size:.9375rem;color:#777;line-height:1.5625vw;text-align:center}._showModalTone_kplv4_182 ._studentRemove_kplv4_185 p span{color:#ea4132}._showModalTone_kplv4_182 ._submitAppBtn_kplv4_197{width:7.29166667vw}._downMove_kplv4_200{width:21.51041667vw;background:#FFFFFF;border-radius:.83333333vw;position:relative;padding:0 1.5625vw 1.82291667vw}._downMove_kplv4_200 ._downMoveBg_kplv4_207{position:absolute;top:0;left:0;width:21.51041667vw;height:5.26041667vw}._downMove_kplv4_200 ._dingPng_kplv4_214{width:8.4375vw;height:5.10416667vw;position:absolute;left:50%;margin-left:-4.21875vw;top:-2.55208333vw;z-index:100}._downMove_kplv4_200 ._closeAble_kplv4_223{cursor:pointer;width:1.30208333vw;height:1.30208333vw;position:absolute;top:.9375vw;right:1.04166667vw}._downMove_kplv4_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_kplv4_200 p{font-size:.9375rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#777;line-height:1.5625vw}._downMove_kplv4_200 ._submitAppBtn_kplv4_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_kplv4_200 ._submitAppBtn_kplv4_197 .n-button__border,._downMove_kplv4_200 ._submitAppBtn_kplv4_197 .n-button__state-border{display:none}._alertWrap_kplv4_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_kplv4_263 ._alertInfo_kplv4_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_kplv4_263 ._alertInfo_kplv4_278 ._infoIcon_kplv4_287{width:1.04166667vw;height:1.04166667vw;margin-right:.41666667vw}._alertWrap_kplv4_263 ._down_kplv4_200{font-size:.83333333rem;font-weight:500;color:#1677ff;cursor:pointer}\n",document.head.appendChild(q);const W=""+new URL("login_styles-ceba7cd4.png",o.meta.url).href,J=""+new URL("login-left-588cef70.png",o.meta.url).href,j=""+new URL("loginright-bff46f2c.png",o.meta.url).href,D=""+new URL("colLogo-1855284b.png",o.meta.url).href,N={"no-pwd":"_no-pwd_kplv4_1","n-input__input-el":"_n-input__input-el_kplv4_4","view-account-form":"_view-account-form_kplv4_8","view-account":"_view-account_kplv4_8","view-account-container":"_view-account-container_kplv4_20",stylesWrap:"_stylesWrap_kplv4_29",loginLeft:"_loginLeft_kplv4_36",loginRight:"_loginRight_kplv4_43",colLogo:"_colLogo_kplv4_56","view-account-form-wrap":"_view-account-form-wrap_kplv4_60",prefixIcon:"_prefixIcon_kplv4_69",pwdIcon:"_pwdIcon_kplv4_74",formTitle:"_formTitle_kplv4_79",dot:"_dot_kplv4_89",submitBtm:"_submitBtm_kplv4_96",forgetBtm:"_forgetBtm_kplv4_108",sendInput:"_sendInput_kplv4_115",sendMsg:"_sendMsg_kplv4_118","view-account-form-top":"_view-account-form-top_kplv4_129","view-account-form-top-desc":"_view-account-form-top-desc_kplv4_133","view-account-form-other":"_view-account-form-other_kplv4_137","default-color":"_default-color_kplv4_140","ant-checkbox-wrapper":"_ant-checkbox-wrapper_kplv4_144",loginTabs:"_loginTabs_kplv4_147",loginForgot:"_loginForgot_kplv4_147",showModalTone:"_showModalTone_kplv4_182",studentRemove:"_studentRemove_kplv4_185",submitAppBtn:"_submitAppBtn_kplv4_197",downMove:"_downMove_kplv4_200",downMoveBg:"_downMoveBg_kplv4_207",dingPng:"_dingPng_kplv4_214",closeAble:"_closeAble_kplv4_223",alertWrap:"_alertWrap_kplv4_263",alertInfo:"_alertInfo_kplv4_278",infoIcon:"_infoIcon_kplv4_287",down:"_down_kplv4_200"},V="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAA0pJREFUWEftmVtIFFEYx//fjKaZdoOFeigJwkh6CGdmZV/EICTBfVPEULALRD0EGYRg6BYhRU9C0eWhC90Iix4MjF7aCMOdnX0QIovCp+iykL1Ym7ieL07swjZNuzurq2zsPO75zv/7zf985+w5ZwgF9lCB8aIInO8RKzq8JA43NzeXRaPRASLyM3MtACXfibPRJ6I4gFcAHlRWVp4LBoNxSsC+BFCXjcgyxjzz+/27SdO0UwD6lxHETeqjEvg1gO1uei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vr68QyhwtdttJ4qiLiLuAcCGiNgF0nJDEDECgA8RebZtuz8cDsO8JMwLIKIjEbkGgPW82AWffyLiGTPfZ42TCey67k4cxy8AkPtiC8Im6WJZ1m4QBK9p46WCeJ7XmEwmbyLiLAmm0DCIGDabzW3f96e/JaQCu667H8exbyRNEfHQcZzHwWDwVWj2nKBOp7MWhuGBiDwAQCMJtyzLC4LgqRRwq9U6B4DLJAkR75j5ZBmg82MQ0a2IHBv3L0aj0VUpYCLqiUjXAO4zc++PgAvPlSoJBc74NGWKoxWuonGt8KxqiKgukchHJaGSmLMSlYRKQiUBAGUWQpXfsZlTZi7d/FSptlZYbU1tTW0t2zvUJdQlVsEliMgDgBsR2TR5EHEMAKfMbB4s/kD+Fw0T0fs8rHEuN2bmrbSlp8BFFl3tJFFll7bUc4naHWjXrmVQu6bMTF+1ansZC6I+jcUEepVat988fMRLRmtCKgAAAABJRU5ErkJggg==",K=l({name:"codeLogin",props:{phone:{type:String,default:""}},emits:["update:phone"],setup(e,{emit:o}){const l=t(),A=a(),k=n(),b=i(),y=n(!1),I=n(!0),C=n(!1),x=s.BASE_LOGIN_NAME,M=r(),B=c({username:"",password:"",isCaptcha:!0}),R=n(!1),T=n(60),U=p.get("userInfo-teacher");U&&(B.username=JSON.parse(U).username),B.username?B.username!==e.phone&&e.phone?B.username=e.phone:o("update:phone",B.username):e.phone&&(B.username=e.phone);const S=async()=>{k.value.validate((async e=>{if(!e){const{username:e,password:t}=B;b.loading("登录中..."),y.value=!0,p.set("userInfo-teacher",JSON.stringify({username:e}));const a={username:e,password:t,loginType:"SMS",grant_type:"password",client_id:"cooleshow-teacher",client_secret:"cooleshow-teacher"};try{await M.login(a),b.destroyAll(),I.value?p.set("userInfo",JSON.stringify(B)):p.remove("userInfo");const e=decodeURIComponent("/");b.success("登录成功,即将进入系统"),A.name===x?l.replace("/"):l.replace(e)}catch(o){b.destroyAll(),y.value=!1,b.error(o.msg),console.log(o)}finally{y.value=!1}}}))};return()=>u("div",{class:N["view-account-form-wrap"]},[u(v,{ref:k,"label-placement":"left",size:"large",model:B},{default:()=>[u(d,{path:"username",rule:[{required:!0,message:"请输入手机号",trigger:"blur"}]},{default:()=>[u(w,{maxlength:11,value:B.username,"onUpdate:value":e=>B.username=e,placeholder:"请输入手机号",onInput:e=>{o("update:phone",e)}},{prefix:()=>u("img",{src:G,class:N.prefixIcon,alt:""},null)})]}),u(d,{path:"password",rule:[{required:!0,message:"请输入验证码",trigger:"blur"}]},{default:()=>[u(_,null,{default:()=>[u(w,{value:B.password,"onUpdate:value":e=>B.password=e,type:"text",showPasswordOn:"click",placeholder:"请输入验证码",inputProps:{autocomplete:"off"},class:N.sendInput,maxlength:6,onKeydown:e=>{"Enter"!==e.code&&"NumpadEnter"!==e.code||S()}},{prefix:()=>u("img",{src:V,class:N.prefixIcon,alt:""},null),suffix:()=>u(g,{class:N.sendMsg,disabled:R.value,onClick:()=>(async()=>{C.value=!0})()},{default:()=>[R.value?T.value+"S":"发送短信"]})})]})]}),u(d,{class:N["default-color"]},{default:()=>[u("div",{class:[N.flex,N["justify-between"]]},[u("div",{class:N["flex-initial"]},null)])]}),u(d,null,{default:()=>[u(g,{class:N.submitBtm,type:"primary",onClick:S,size:"large",disabled:y.value,block:!0},{default:()=>[m("立即登录")]})]})]}),u(f,{maskClosable:h,show:C.value,"onUpdate:show":e=>C.value=e},{default:()=>[u(E,{phone:B.username,onClose:()=>C.value=!1,onSendCode:()=>{(()=>{if(R.value)return;R.value=!0;const e=setInterval((()=>{T.value--,T.value<=0&&(R.value=!1,clearInterval(e))}),1e3)})()}},null)]})])}}),Y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAA5RJREFUWEftmV+IG1UUxr8z6UaNPrjSQq1idVHxySLnDkt3XVzBPw8uKIqg9G2RUh+k+KLFpzy2fRCxCtZSn4pPgsJaEZSKLJLdzTlgBUHpKhXaYl1BYbDZxmaOjGyGMSbmJ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DejDZjb7P94e54noFBG9Uq1Wf249mb8AQS0XS+/oFWwAAAAASUVORK5CYII=",X=l({name:"codeLogin",props:{phone:{type:String,default:""}},emits:["changType","update:phone"],setup(e,{emit:o}){const l=t(),a=n(),s=i(),_=n(!1),f=n(!1),h=r();let k=c({username:"",password:"",isCaptcha:!1});const b=p.get("userInfo-teacher");b&&(k=c({...JSON.parse(b)})),k.username?k.username!==e.phone&&e.phone?k.username=e.phone:o("update:phone",k.username):e.phone&&(k.username=e.phone);const y=async()=>{a.value.validate((async e=>{if(!e){const{username:e,password:t}=k;_.value=!0;const a={username:e,password:t,loginType:"PASSWORD",grant_type:"password",client_id:"cooleshow-teacher",client_secret:"cooleshow-teacher"};try{await h.login(a),s.destroyAll(),k.isCaptcha?p.set("userInfo-teacher",JSON.stringify(k)):p.set("userInfo-teacher",JSON.stringify({...k,password:"",isCaptcha:!1}));const e=decodeURIComponent("/");console.log(e,"toPath"),s.success("登录成功,即将进入系统"),l.replace(e)}catch(o){console.log(o,"e")}finally{_.value=!1}}}))};return()=>u("div",{class:N["view-account-form-wrap"]},[u(v,{ref:a,"label-placement":"left",size:"large",model:k},{default:()=>[u(d,{path:"username",rule:[{required:!0,message:"请输入用户名",trigger:"blur"}]},{default:()=>[u(w,{maxlength:11,value:k.username,"onUpdate:value":e=>k.username=e,placeholder:"请输入用户名",onInput:e=>{o("update:phone",e)}},{prefix:()=>u("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABQ1JREFUWEfdmV+I1FUUx8+588scmJESVkFRC0IN6yHu/e2AbjVZCWbQ31UD6ynLsiiDrB566UUryCItqZ5K6H8ZVAv+nWp9mL3nEkSRfx62FANdsHAGtHXmnrjb/Ja74+z+fr91XZvO0zD33O/5zPmde3/n3kFoM8OJ4O3s7Jxvrb0bAG4HgLnMPMvpIuIfAHAUAHYLIXb29fUdvtB4FwRcKBRkrVZ7BQCWJgTZFwTBxn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nehO+McbcGRdoIsellF8DwAovyyc6Ojrm9fT0/O2+G86wlPJhAPDvGv4KgmBhuVwe2lMnywqFwsxareaO/1d4MdcaY9xF4r/ArnaVUr8AwLWe02ZjjHsNT7pJKTe5vdoL/CsRLXK1PATcaM7JcxicOnXq1QcOHHD/UUy6LVmyZNbZs2f7AWBKFDwIAuVuOIeAlVIbmPk1r24+I6LuSSf1AiqlPmXm+z2mZ4hoyxCwlPJLAHD/Ag2ZEGK91vqtSwkchuHj1tptHsNOY8w9EbBrYDo84Ou01q6mL5mFYbjIWvuzBzBgjJkRlcRRZp7TGDxORHOSNjQX6xc1NoJjADDbxUDEY0Q0N8rwCkSMNux1RPTtxQJJo6uUusM1SI05Q1yx/XCaAJPh+w8iEp9LNey2nAAAAABJRU5ErkJggg==",class:N.prefixIcon,alt:""},null)})]}),u(d,{path:"password",rule:[{required:!0,message:"请输入密码",trigger:"blur"}]},{default:()=>[u(w,{value:k.password,"onUpdate:value":e=>k.password=e,type:"text",showPasswordOn:"click",placeholder:"请输入密码",inputProps:{autocomplete:"off"},class:[f.value?"":N["no-pwd"]],onKeydown:e=>{"Enter"!==e.code&&"NumpadEnter"!==e.code||y()}},{prefix:()=>u("img",{src:Y,class:N.prefixIcon,alt:""},null),suffix:()=>u("img",{src:f.value?F:L,class:N.pwdIcon,alt:"",onClick:()=>{f.value=!f.value}},null)})]}),u(d,{class:N["default-color"]},{default:()=>[u("div",{class:[N.flex,N["justify-between"]]},[u("div",{class:N["flex-initial"]},[u(A,{checked:k.isCaptcha,"onUpdate:checked":e=>k.isCaptcha=e},{default:()=>[m("记住密码")]})])])]}),u(d,null,{default:()=>[u(g,{class:N.submitBtm,type:"primary",onClick:y,size:"large",disabled:_.value,loading:_.value,block:!0},{default:()=>[m("立即登录")]})]}),u(d,null,{default:()=>[u(g,{text:!0,class:N.forgetBtm,onClick:()=>{o("changType")},size:"large",block:!0},{default:()=>[m("忘记密码")]})]})]})])}}),Q=l({name:"forgotPassword",props:{phone:{type:String,default:""}},emits:["changType"],setup(e,{emit:o}){t(),a();const l=n(),p=i(),f=n(!1);n(!0),s.BASE_LOGIN_NAME;const h=n(!1),A=n(!1);r();const k=c({mobile:"",password:"",password1:"",code:"",isCaptcha:!0}),b=n(!1),y=n(60),I=(e,o,l)=>{""===o?l(new Error("请再次输入密码")):o!==k.password?l(new Error("两次输入密码不一致!")):o.length<8||o.length>20?l(new Error("8~20位含数字、字母、特殊字符(如:%、&、#等)组合")):l()},C=(e,o,l)=>{""===o?l(new Error("请输入密码")):o.length<8||o.length>20?l(new Error("8~20位包数字、字母、特殊字符(如:%、&、#等)组合")):l()};e.phone&&(k.mobile=e.phone);const x=async()=>(l.value.validate((async e=>{if(!e){p.loading("修改中..."),f.value=!0;try{return await T({...k,clientType:"TEACHER"}),p.success("修改成功"),f.value=!1,o("changType"),!1}catch(l){return f.value=!1,p.error(l.msg),!1}}})),!1),M=()=>{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()=>u("div",{class:N["view-account-form-wrap"]},[u(v,{ref:l,"label-placement":"left",size:"large",model:k},{default:()=>[u(d,{path:"mobile",rule:[{required:!0,message:"请输入手机号",trigger:"blur"}]},{default:()=>[u(w,{maxlength:11,value:k.mobile,"onUpdate:value":e=>k.mobile=e,placeholder:"请输入手机号"},{prefix:()=>u("img",{src:G,class:N.prefixIcon,alt:""},null)})]}),u(d,{path:"password",rule:[{validator:C,trigger:"blur",required:!0}]},{default:()=>[u(w,{value:k.password,"onUpdate:value":e=>k.password=e,type:"text",showPasswordOn:"click",placeholder:"请输入密码",inputProps:{autocomplete:"off"},class:[h.value?"":N["no-pwd"]]},{prefix:()=>u("img",{src:Y,class:N.prefixIcon,alt:""},null),suffix:()=>u("img",{src:h.value?F:L,class:N.pwdIcon,alt:"",onClick:()=>{h.value=!h.value}},null)})]}),u(d,{path:"password1",rule:[{validator:I,trigger:"blur",required:!0}]},{default:()=>[u(w,{value:k.password1,"onUpdate:value":e=>k.password1=e,type:"text",showPasswordOn:"click",placeholder:"请确认密码",inputProps:{autocomplete:"off"},class:[A.value?"":N["no-pwd"]]},{prefix:()=>u("img",{src:Y,class:N.prefixIcon,alt:""},null),suffix:()=>u("img",{src:A.value?F:L,class:N.pwdIcon,alt:"",onClick:()=>{A.value=!A.value}},null)})]}),u(d,{path:"code",rule:[{required:!0,message:"请输入验证码",trigger:"blur"}]},{default:()=>[u(_,null,{default:()=>[u(w,{value:k.code,"onUpdate:value":e=>k.code=e,type:"text",showPasswordOn:"click",placeholder:"请输入验证码",inputProps:{autocomplete:"off"},class:N.sendInput,onKeydown:e=>{"Enter"!==e.code&&"NumpadEnter"!==e.code||x()}},{prefix:()=>u("img",{src:V,class:N.prefixIcon,alt:""},null),suffix:()=>u(g,{class:N.sendMsg,disabled:b.value,onClick:()=>(async()=>{if(k.mobile)try{await U({clientId:"cooleshow-teacher",mobile:k.mobile,type:"PASSWORD"}),M()}catch(e){console.log(e)}else p.error("请输入手机号")})()},{default:()=>[b.value?y.value+"S":"发送短信"]})})]})]}),u(d,null,{default:()=>[u(g,{class:[N.submitBtm,N.submitForgoBtm],type:"primary",onClick:x,size:"large",disabled:f.value,block:!0},{default:()=>[m("确认")]})]}),u(d,null,{default:()=>[u(g,{text:!0,class:N.forgetBtm,onClick:()=>{o("changType")},size:"large",block:!0},{default:()=>[m("返回登录")]})]})]})])}});e("default",l({name:"login-page",setup(){const e=n(!1),o=n("pwdLogin"),l=n(),t=n(),a=n();k();const i=n(),s=n(!1),r=n(!1),c=n(!1),p=async e=>{e.preventDefault(),console.log("checkInstall",e),a.value=e,console.log("beforeoutcome"),window.matchMedia("(display-mode: standalone)").matches?R.application=window.matchMedia("(display-mode: standalone)").matches:(console.log(a.value,"popEvent.value"),a.value&&(s.value=!0,setTimeout((()=>{const e=document.querySelector("#submitBtn");e&&e.addEventListener("click",(()=>{s.value=!1,a.value&&(a.value.prompt(),a.value.userChoice.then((e=>{"accepted"===e.outcome?(console.log("用户已同意添加到桌面"),s.value=!1,v()):(console.log("用户已取消添加到桌面"),s.value=!1,v())})))}))}),500))),await d(),!s.value&&r.value&&(c.value=!0)},v=()=>{r.value&&(c.value=!0)};window.addEventListener("beforeinstallprompt",p,{once:!0}),b((()=>{window.removeEventListener("beforeinstallprompt",p)}));const d=async()=>{try{await z({})}catch(e){e.message.indexOf("511")&&(r.value=!0)}};y((async()=>{(window.matchMedia("(display-mode: standalone)").matches||!0===window.navigator.standalone)&&(await d(),!s.value&&r.value&&(c.value=!0)),sessionStorage.removeItem("task-upload-music")}));const w=()=>{const e=navigator.userAgent.toLowerCase(),o=/macintosh|mac os x/i.test(navigator.userAgent);(e.indexOf("win32")>=0||e.indexOf("wow32")>=0)&&window.open("https://oss.dayaedu.com/appstore/ChromeStandaloneSetup32.exe"),(e.indexOf("win64")>=0||e.indexOf("wow64")>=0)&&window.open("https://oss.dayaedu.com/appstore/ChromeStandaloneSetup64.exe"),o&&window.open("https://oss.dayaedu.com/appstore/googlechrome-mac.dmg")};return()=>u("div",{class:N["view-account"]},[u("div",{class:N["view-account-container"]},[u("img",{src:J,class:N.loginLeft,alt:""},null),u("img",{src:j,class:N.loginRight,alt:""},null),u("div",{class:N.stylesWrap},[u("img",{src:W,alt:""},null)])]),u("div",{class:N["view-account-form"]},[u("img",{class:N.colLogo,src:D},null),e.value?u(I,{key:"forgotPassword","default-value":o.value,class:[N.loginTabs,N.loginForgot],ref:t,"justify-content":"center"},{default:()=>[u(C,{name:"forgotPassword",tab:"重置密码"},{default:()=>[u(Q,{phone:i.value,"onUpdate:phone":e=>i.value=e,onChangType:()=>{e.value=!1,o.value="pwdLogin"}},null)]})]}):u(I,{key:"pwdLogin",ref:l,"default-value":o.value,class:[N.loginTabs],"justify-content":"center"},{default:()=>[u(C,{name:"pwdLogin",tab:"密码登录"},{default:()=>[u(X,{phone:i.value,"onUpdate:phone":e=>i.value=e,onChangType:()=>{e.value=!0,o.value="forgotPassword"}},null)]}),u(C,{name:"codeLogin",tab:"短信验证"},{default:()=>[u(K,{phone:i.value,"onUpdate:phone":e=>i.value=e},null)]})]}),u("div",{class:N.alertWrap},[u("div",{class:N.alertInfo},[u(x,{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:N.infoIcon,previewDisabled:!0},null),m("为了您更好的上课体验,推荐使用Chrome浏览器")]),u("div",{class:N.down,onClick:w},[m("立即下载")])])]),u(f,{maskClosable:h,show:s.value,"onUpdate:show":e=>s.value=e,onMaskClick:()=>{v()},onClose:()=>{v()}},{default:()=>[u("div",{class:N.downMove},[u("img",{src:O,class:N.dingPng,alt:""},null),u("img",{src:P,class:N.downMoveBg,alt:""},null),u("img",{src:S,class:N.closeAble,onClick:()=>{s.value=!1,v()},alt:""},null),u("h2",null,[m("温馨提示")]),u("p",null,[m("检测到您尚未安装“音乐数字课堂”应用程序,为了更好的使用体验,是否立即下载?")]),u(M,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[u(g,B({id:"submitBtn"},{class:N.submitAppBtn,round:!0,type:"primary"}),{default:()=>[m("立即下载")]})]})])]}),u(f,{show:c.value,"onUpdate:show":e=>c.value=e,closeOnEsc:!1,maskClosable:!1},{default:()=>[u(Z,{onClose:()=>c.value=!1},null)]})])}}))}}}));
|