1 |
- import{d as ae,U as y,S as N,j as a,A as S,B as Se,by as ve,bK as X,T as M,y as P,u as q,i as ye,f as we,P as Ce,Q as Te,an as be,a3 as De,bL as Be,n as b,V as Ee,bi as Ie,bG as Le,C as G,F as k,bj as Q,bI as Ne,aS as Ue,$ as Oe,bE as H,h as Pe,a as ke,X as Ve,g as Me}from"./ResizeObserver.es.39b48a47.js";import{s,c as qe,d as Fe,t as xe,m as K,e as j,f as ze,g as We,i as Ye,h as Re,T as Xe,a as Ge,v as Qe,b as He,j as Ke,L as je,l as Je}from"./loading.0e1e8367.js";import{C as Ze}from"./index.db115763.js";import{L as _e}from"./index.6c529ad4.js";import{S as $e}from"./index.608320e9.js";import{b as ea,N as J}from"./browser.0a508a64.js";import{C as Z}from"./index.b1c0c586.js";import{C as aa}from"./index.970ad07b.js";import{e as _,f as sa,g as ta,h as ia}from"./api.43706268.js";import{C as oa}from"./index.3efa3471.js";import{F as V}from"./index.428ab1a8.js";import{I as na}from"./index.a250ad5f.js";import{O as la}from"./index.e4b33a43.js";/* empty css */import{P as ua}from"./plyr.min.0a479001.js";import"./use-tab-status.bcc0c503.js";import"./index.dc19bc54.js";import"./use-id.b004ff17.js";import"./index.16ffd6ad.js";import"./index.fcbcb027.js";var $="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA7ZJREFUWEftl11ok1cYx39P1qYfRpNeqJVR0dQrtxI6B6Mr1Aq76NVQvFDGeqFQaGI2WFGzXhkcNElLnHSb3c1EtLtQsMwP8EKHF5vS4kBoSwdDJ5XWuoZZaNKm1TTvOHkNXZKmyWKS9mIvhMDLOef5nf/5P+d5XmGdPbLOeHgjIM3r/ZCZmW8Jh22Ulr7EaLzB9u1fiN0+metGcwbS/P56nj4d4tWr0oTg5eW/U1f3nhw5spALVO5ALtcAweABampg3z5YWIBbtyAYhK1bnXLq1HfFBvqLYHAL+/dDdbUee3gY7t8Hk+kn6e4+UFygkye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uh0x1YIpX4W5CuIWuk0oVEWJWrIrYN9E3Uirk8LaSjRgiFgizqgLV40o97hZEG2dbDBERLdDPAv8HTzyJsOUSBS0AAAAASUVORK5CYII=",pa="./assets/wx_bg.5b70cc5a.png";const Aa="_loginModel_1l794_1",ga="_iconClose_1l794_7",fa="_loginSection_1l794_17",ha="_fieldSection_1l794_20",Sa="_icon_1l794_7",va="_codeText_1l794_40",ya="_btnGroup_1l794_44",wa="_btnText_1l794_49";var f={loginModel:Aa,iconClose:ga,loginSection:fa,fieldSection:ha,icon:Sa,codeText:va,btnGroup:ya,btnText:wa},Ca="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAPFBMVEUAAACYucOWusOXusOXucOXusSWusOZusWZub+XusOXucSXucSXucOYusWYucSVuMSTucGbtsiYucKXucMm9nM5AAAAE3RSTlMAqlWi+c1rTA3kwreacmNBIRyPjUAP2gAAAHRJREFUOMvt1LEOgCAMRVErICqKKP//r4JlMIK+RCcT7kTDCRttap2gc9Ny40Z/bS6/57PkWoLC5+kSJL5TLpy15KF9gPYYDIYinvsBQ6+IKDgIuQorfAGloZiCUKdJINinySK4sXSK4afvihcAXil4Sf2rHZjwJGbdGrFMAAAAAElFTkSuQmCC",ee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAYFBMVEUAAACXucSXusOYucObucGXusOXusOYusSXucOXucOZu8SXucOXucSXusSXu8WVvcWYusSXucOXusaYt8eXucOXusOYusOYusSYu8OXu8SZusWYucWcvc6XusOYusSXucOWA1M7AAAAH3RSTlMArVWqIaSKS/beBvzxnzQY4tY7Cup5cmldWUYfD8SUrcUn+wAAALRJREFUOMvt08kOgjAUQNGidABlngW9//+XGgIbWyoJCzfc1Ut60jRtKs7msu4llY5/sVgZAPKL31VP1hovvAJBr9sC8O1Zwm1ejyXknnMmoJazFqC3YQTjMragtqHBrKOGZBveuK/jA+RRWI3hB4ZLPQRh5nKNwS4qLadxVlf2FbrT9uO5u3hgkdx3QTOJYReMhEj/BHMhyl2QYZJeaHUQKtyl1r+vcRUIq0xdg+9kJ8529QbfpzBL1TadYgAAAABJRU5ErkJggg==",Ta=ae({name:"login-model",props:{isRegister:{type:Boolean,default:!1}},emits:["close","confirm"],setup(m,{emit:D}){const h=y(),n=N({loginType:"PWD",imgCodeStatus:!1,username:"",password:"",smsCode:"",countDownStatus:!0,countDownTime:1e3*120}),v=async()=>{try{if(!X(n.username))return M("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801");if(n.loginType==="PWD"){const{data:l}=await P.post("/api-auth/usernameLogin",{requestType:"form",data:{username:n.username,password:n.password,clientId:"student",clientSecret:"student"}});q(l.authentication.token_type+" "+l.authentication.access_token)}else{const{data:l}=await P.post("/api-auth/smsLogin",{requestType:"form",data:{clientId:"student",clientSecret:"student",phone:n.username,smsCode:n.smsCode,isSurportRegister:m.isRegister}});q(l.authentication.token_type+" "+l.authentication.access_token)}const e=await P.get("/api-student/student/queryUserInfo",{initRequest:!0});ye(e.data),D("confirm",!0)}catch(e){console.log(e)}},B=()=>{if(!X(n.username))return M("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801");n.imgCodeStatus=!0},A=()=>{n.countDownStatus=!1,ea.exports.nextTick(()=>{console.log(h.value,"countDownRef.value"),h.value.start()})},w=()=>{n.countDownStatus=!0,h.value.reset()};return()=>a("div",{class:f.loginModel},[a("i",{class:f.iconClose,onClick:()=>D("close")},null),a("div",{class:f.loginSection},[a("div",{class:f.fieldSection},[a(V,{modelValue:n.username,"onUpdate:modelValue":e=>n.username=e,placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",autocomplete:"off",border:!1,type:"tel",maxlength:11},{"left-icon":()=>a("img",{src:Ca,class:f.icon},null)}),n.loginType==="PWD"?a(V,{modelValue:n.password,"onUpdate:modelValue":e=>n.password=e,placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",autocomplete:"off",border:!1,type:"password"},{"left-icon":()=>a("img",{src:ee,class:f.icon},null)}):a(V,{modelValue:n.smsCode,"onUpdate:modelValue":e=>n.smsCode=e,placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",autocomplete:"off",maxlength:6,type:"tel",border:!1},{"left-icon":()=>a("img",{src:ee,class:f.icon},null),button:()=>n.countDownStatus?a("span",{class:f.codeText,onClick:B},[S("\u83B7\u53D6\u9A8C\u8BC1\u7801")]):a(oa,{ref:e=>h.value=e,"auto-start":!1,time:n.countDownTime,onFinish:w,format:"ss\u79D2"},null)})]),a("div",{class:f.btnGroup},[a(Se,{round:!0,block:!0,color:"#2DC7AA",onClick:v},{default:()=>[S("\u767B\u5F55")]}),a("span",{class:f.btnText,onClick:()=>{n.loginType==="PWD"?(n.countDownStatus=!0,n.loginType="SMS"):n.loginType="PWD"}},[n.loginType==="PWD"?"\u9A8C\u8BC1\u7801\u767B\u5F55":"\u5BC6\u7801\u767B\u5F55"])])]),n.imgCodeStatus?a(ve,{to:"body"},{default:()=>[a(na,{value:n.imgCodeStatus,"onUpdate:value":e=>n.imgCodeStatus=e,phone:n.username,onClose:()=>{n.imgCodeStatus=!1},onSendCode:A},null)]}):null])}});function ba(m){return typeof m=="function"||Object.prototype.toString.call(m)==="[object Object]"&&!Oe(m)}var Ga=ae({name:"creation-detail",setup(){const{isApp:m,isTablet:D,weixin:h,isTeacher:n}=we(),v=Ce(),B=Te(),A=y(!1),w=y(0),e=N({id:v.query.id,isEmpty:!1,loginTag:!1,loginStatus:!1,playType:"",musicDetail:{},timer:null,paused:!0,audioWidth:0,currentTime:0,duration:.1,loop:!1,dragStatus:!1,isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{page:1,rows:4},messageStatus:!1,message:"",_plrl:null,heightV:0,heightB:0}),l=N({duration:0,currentTime:0,mediaTimeShow:!1,playIngShow:!0,loaded:!1}),u=N({staffSrc:"",isShow:!1,height:"initial",speedRate:1,musicRenderType:"staff",partIndex:0}),C=y(!1),E=y(!1),T=y(),{playStaff:se,pauseStaff:te,updateProgressStaff:F}=he(),ie=async()=>{if(!H()&&v.query.Authorization&&q(v.query.Authorization),await x(),!e.loginTag){e.loginStatus=!0;return}try{await sa({userMusicId:e.id,star:!e.musicDetail.starFlag}),e.musicDetail.starFlag=!e.musicDetail.starFlag,e.musicDetail.starFlag?e.musicDetail.likeNum+=1:e.musicDetail.likeNum-=1}catch{}},U=async()=>{try{if(e.isClick)return;e.isClick=!0;const i=await ia({type:"FORMAL",exclusionId:e.id,sort:1,...e.params});e.listState.loading=!1;const t=i.data||{};e.list=t.rows||[],e.listState.finished=t.current>=t.pages,e.params.page=t.current+1,e.listState.dataShow=e.list.length>0,e.isClick=!1}catch{e.listState.dataShow=!1,e.listState.finished=!0,e.isClick=!1}};function oe(){e.listState.finished&&(e.listState.finished=!1,e.params.page=1),U()}const ne=i=>{B.push({path:"/shareCreation",query:{id:i.id}})};function le(){const i=e.playType==="Audio"?"#audioMediaSrc":"#videoMediaSrc";e._plrl=new ua(i,{controls:["play","progress","current-time","duration"],fullscreen:{enabled:!1,fallback:!1}});const t=e._plrl;if(e.playType==="Audio"){const o=document.querySelector("#audioMediaSrc"),r=document.querySelector("#audioVisualizer"),{pauseVisualDraw:g,playVisualDraw:L}=Je(o,r);t.on("play",()=>{L()}),t.on("pause",()=>{g()})}t.on("loadedmetadata",()=>{l.loaded=!0}),t.on("timeupdate",()=>{l.currentTime=t.currentTime}),t.on("play",()=>{l.playIngShow=!1,se()}),t.on("pause",()=>{l.playIngShow=!0,te()}),t.on("ended",()=>{t.currentTime=0,t.playing||setTimeout(()=>{F(t.currentTime)},100)});const c=()=>{C.value||(l.duration=t.duration,l.mediaTimeShow=!0)},p=()=>{l.mediaTimeShow=!1,t.playing||F(t.currentTime)},d=document.querySelector("#playMediaSection .plyr__controls .plyr__progress__container");d.addEventListener("mousedown",c),d.addEventListener("touchstart",c),d.addEventListener("mouseup",p),d.addEventListener("touchend",p)}function ue(i){var c;if((c=i==null?void 0:i.target)!=null&&c.matches("button.plyr__control"))return;const t=e._plrl;t.playing?t.pause():t.play()}function re(i){i.stopPropagation(),de()}function ce(){b({api:"setRequestedOrientation",content:{orientation:0}}),C.value=!0}function de(){b({api:"setRequestedOrientation",content:{orientation:1}}),C.value=!1}function me(i){if(i.stopPropagation(),m){ce();return}if(h)E.value=!0;else{const t=Date.now(),c=location.href;pe(c),setTimeout(()=>{Date.now()-t<3500&&(window.location.pathname.includes("teacher")?window.location.href=location.origin+"/student/#/transfer":window.location.href=location.origin+"/student/#/download")},3e3)}}const pe=(i,t)=>{const c={url:i,action:(t==null?void 0:t.action)||"h5",pageTag:(t==null?void 0:t.pageTag)||1},p=encodeURIComponent(JSON.stringify(c)),d=navigator.userAgent||navigator.vendor,o=navigator.platform||"unknown";/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)||o==="MacIntel"?window.location.href=`ColexiuStudent://linkUrl=${p}`:/(Android)/i.test(d)?window.location.href=`colexiustudent://html:8888/SplashActivity?url=${p}`:M("\u8BF7\u7528\u624B\u673A\u6216\u79FB\u52A8\u8BBE\u5907\u6253\u5F00")},x=async()=>{try{const i=H();i&&(await ta({token:i}),e.loginTag=!0)}catch{e.loginTag=!1,Pe(),ke()}},z=async()=>{await x();try{const i=await _(e.id);if(i.code===999){e.isEmpty=!0,u.isShow=!0;return}else{e.musicDetail=i.data;try{const t=JSON.parse(i.data.jsonConfig);t.speedRate&&(u.speedRate=t.speedRate),t.musicRenderType&&(u.musicRenderType=t.musicRenderType),t["part-index"]&&(u.partIndex=t["part-index"])}catch{}fe(),U(),i.data.videoUrl.lastIndexOf("mp4")!==-1?e.playType="Video":e.playType="Audio",Ve(()=>{le()})}}catch(i){e.listState.dataShow=!1,e.message=i,e.messageStatus=!0}},W=()=>{if(e.isEmpty)return;const i=window.scrollY||document.documentElement.scrollTop;i>0&&A.value===!1&&(A.value=!0,m&&I(!1)),i<=0&&(A.value=!1,m&&I(!0))};function Ae(){h?E.value=!0:window.location.pathname.includes("teacher")?window.location.href=location.origin+"/student/#/transfer":B.push({path:"/download"})}const ge=be();De(ge,i=>{var t;i==="hidden"&&((t=e._plrl)==null||t.pause())});function fe(){const i=Me.platformType==="TEACHER"||n?"teacher":"student",t=`/klx-music-score/#/simple-detail?id=${e.musicDetail.musicSheetId}&musicRenderType=${u.musicRenderType}&part-index=${u.partIndex}&userMusicId=${e.id}&systemType=${i}`;u.staffSrc=t,window.addEventListener("message",c=>{const{api:p,height:d}=c.data;p==="api_musicPage"&&(u.isShow=!0,u.height=d+"px")})}function he(){let i=!0;const t=()=>{requestAnimationFrame(()=>{var o,r;(r=(o=T.value)==null?void 0:o.contentWindow)==null||r.postMessage({api:"api_playProgress",content:{currentTime:e._plrl.currentTime*u.speedRate}},"*"),i||t()})};return{playStaff:()=>{var o,r;!u.isShow||(i=!1,(r=(o=T.value)==null?void 0:o.contentWindow)==null||r.postMessage({api:"api_play"},"*"),t())},pauseStaff:()=>{var o,r;!u.isShow||(i=!0,(r=(o=T.value)==null?void 0:o.contentWindow)==null||r.postMessage({api:"api_paused"},"*"))},updateProgressStaff:o=>{var r,g;!u.isShow||(g=(r=T.value)==null?void 0:r.contentWindow)==null||g.postMessage({api:"api_updateProgress",content:{currentTime:o*u.speedRate}},"*")}}}function I(i){b({api:"setStatusBarTextColor",content:{statusBarTextColor:i}})}function O(){w.value=window.innerHeight}return Be(()=>{m&&(b({api:"setRequestedOrientation",content:{orientation:1}}),I(!0))}),Ee(async()=>{window.addEventListener("scroll",W),z(),O(),window.addEventListener("resize",O)}),Ie(()=>{var i;window.removeEventListener("scroll",W),window.removeEventListener("resize",O),(i=e._plrl)==null||i.destroy()}),Le(i=>{e.id=i.query.id,e.playType="",e.params.page=1,e.list=[],e._plrl&&e._plrl.destroy(),l.playIngShow=!0,u.staffSrc="",u.isShow=!1,u.height="initial",z()}),()=>{var t,c,p,d;let i;return a("div",{style:{"--barheight":e.heightV+"px","--creationHeight":w.value?w.value+"px":"100vh"},class:[s.creation,D?s.creationTablet:"",A.value&&s.isShareScreenScroll]},[a("div",{class:s.creationBg},null),a(Z,{position:"top",onGetHeight:o=>{console.log(o,"height",o),e.heightV=o}},{default:()=>[m?a(aa,{leftClickDefault:!1,color:A.value?"#333333":"#ffffff",background:A.value?"rgb(255,255,255":"transparent",border:!1,isBack:v.query.platformType!="ANALYSIS",title:"\u4F5C\u54C1\u8BE6\u60C5",onLeftClick:()=>{I(!1),b({api:"back"})}},null):a("div",{class:s.logoDownload},[a("img",{src:A.value?ca:ra,class:s.logoImg},null),a("div",{class:s.logTit,onClick:Ae},[S("\u4E0B\u8F7DApp")])])]}),e.isEmpty?a("div",{class:s.isEmpty},[a(G,{tips:"\u4F5C\u54C1\u5DF2\u5220\u9664\uFF5E",btnStatus:!1},null)]):a(k,null,[a("div",{class:s.singerBox},[a("div",{class:s.musicSheetName},[a(J,{text:(t=e.musicDetail)==null?void 0:t.musicSheetName,background:"none"},null)]),a("div",{class:s.singerName},[S("\u6F14\u594F\uFF1A"),(c=e.musicDetail)==null?void 0:c.username])]),a($e,{zIndex:1e3,offsetTop:e.heightV-1+"px"},{default:()=>{var o,r,g,L,Y,R;return[a("div",{class:[s.playSection,l.mediaTimeShow&&s.mediaTimeShow,!l.loaded&&s.notLoaded,C.value&&s.isLandscapeScreen,e.playType==="Audio"&&s.isLandscapeScreen2],id:"playMediaSection",onClick:ue},[C.value&&a("div",{class:s.backBox},[a("img",{class:s.backImg,src:e.playType==="Video"?qe:Fe,onClick:re},null),a("div",{class:[s.musicDetail,e.playType==="Audio"&&s.adMusicDetail]},[a("div",{class:s.musicSheetName},[a(J,{text:(o=e.musicDetail)==null?void 0:o.musicSheetName,background:"none"},null)]),a("div",{class:s.username},[S("\u6F14\u594F\uFF1A"),(r=e.musicDetail)==null?void 0:r.username])])]),e.playType&&a(k,null,[e.playType==="Audio"&&a("div",{class:s.audioBox},[a("canvas",{class:s.audioVisualizer,id:"audioVisualizer"},null),a("audio",{crossorigin:"anonymous",id:"audioMediaSrc",src:(g=e.musicDetail)==null?void 0:g.videoUrl,controls:"false",preload:"metadata",playsinline:!0,"webkit-playsinline":!0},null),a("img",{src:xe,class:s.tyBg},null),a("div",{class:s.audioBoxBg},[a("div",{class:[s.audioPan,l.playIngShow&&s.imgRotate]},[a("img",{class:s.audioImg,src:e.musicDetail.img||K},null)]),a("i",{class:s.audioPoint},null),a("i",{class:[s.audioZhen,l.playIngShow&&s.active]},null)])]),e.playType==="Video"&&a("video",{id:"videoMediaSrc",class:s.videoBox,src:(L=e.musicDetail)==null?void 0:L.videoUrl,"data-poster":((Y=e.musicDetail)==null?void 0:Y.videoImg)||j,poster:((R=e.musicDetail)==null?void 0:R.videoImg)||j,preload:"metadata",playsinline:!0,"webkit-playsinline":!0,"x5-playsinline":!0},null),a("div",{class:[s.playLarge,!l.mediaTimeShow&&l.playIngShow&&s.playIngShow]},null),a("div",{class:s.mediaTimeCon},[a("div",{class:s.mediaTime},[a("div",null,[Q(l.currentTime)]),a("div",{class:s.note},[S("/")]),a("div",{class:s.duration},[Q(l.duration)])])]),a("div",{class:s.landscapeScreen,onClick:me},null),u.staffSrc&&a("div",{class:[s.staffBoxCon,u.isShow&&s.staffBoxShow]},[a("div",{class:[s.staffBox,e.playType==="Video"&&s.staffBoxBg],style:{"--staffBoxHeight":u.height}},[a("div",{class:s.mask},null),a("iframe",{ref:T,class:s.staff,frameborder:"0",src:u.staffSrc},null)])])])])]}}),a("div",{class:[s.musicSection,s.musicShareSection]},[a("div",{class:s.avatarInfoBox},[a("div",{class:s.avatar},[a("div",{class:s.avatarImg},[a("img",{class:[s.userLogo,e.musicDetail.vipType==="VIP"?s.vipLogo:e.musicDetail.vipType==="PERMANENT_SVIP"||e.musicDetail.vipType==="SVIP"?s.svipLogo:""],src:e.musicDetail.avatar},null),(e.musicDetail.vipType==="VIP"||e.musicDetail.vipType==="PERMANENT_SVIP"||e.musicDetail.vipType==="SVIP")&&a("img",{class:s.vipIcon,src:e.musicDetail.vipType==="VIP"?ze:We},null)]),a("div",{class:s.infoCon},[a("div",{class:s.info},[a("span",{class:s.userName},[(p=e.musicDetail)==null?void 0:p.username]),e.musicDetail.vipFlag&&a("img",{src:Ye,class:s.iconMember},null)]),a("div",{class:s.sub},[e.musicDetail.subjectName," ",Ne(e.musicDetail.currentGradeNum-1)])])]),a("div",{class:s.linkes,onClick:ie},[a("img",{src:e.musicDetail.starFlag?$:Re,class:s.iconZan},null),a("span",null,[e.musicDetail.likeNum])])]),a(Xe,{class:s.textEllipsis,text:((d=e.musicDetail)==null?void 0:d.desc)||""},null)]),a("div",{class:s.likeSection},[a("div",{class:s.likeTitle},[S("\u63A8\u8350\u4F5C\u54C1")]),e.listState.dataShow?a(k,null,[a(_e,{finished:!0,finishedText:" ",class:[s.container,s.containerInformation],immediateCheck:!1},ba(i=e.list.map((o,r)=>a(Ze,{class:[s.likeShareItem,r===e.list.length-1&&s.likeShareItemLast],border:!1,onClick:()=>ne(o)},{icon:()=>{var g;return a("div",{class:s.audioImgBox},[a("img",{src:Ge,class:s.audioPan,crossorigin:"anonymous"},null),a("img",{src:o.img||K,class:s.muploader,crossorigin:"anonymous"},null),a("img",{class:s.imgLabel,src:((g=o.videoUrl)==null?void 0:g.lastIndexOf("mp4"))!==-1?Qe:He},null)])},title:()=>a("div",{class:s.userInfo},[a("div",{class:[s.musicSheetName,"van-ellipsis"]},[o.musicSheetName]),a("div",{class:s.usernameCon},[a("div",{class:s.likeNum},[a("img",{src:$},null),a("span",null,[o.likeNum])]),a("div",{class:[s.username,"van-ellipsis"]},[o.username])])]),value:()=>a("img",{src:da,class:s.playImg},null)})))?i:{default:()=>[i]}),(!e.listState.finished||e.params.page>2)&&a("div",{class:s.btnImg},[a("img",{onClick:oe,onTouchstart:()=>{},src:ma},null)])]):a(G,{tips:"\u6682\u65E0\u4F5C\u54C1\uFF5E",btnStatus:!1},null)]),!A.value&&a(Z,{position:"bottom",offsetBottom:e.heightB-1+"px"},{default:()=>[a("div",{class:s.upward},[a("img",{src:Ke},null)])]})]),a(Ue,{show:e.loginStatus,"onUpdate:show":o=>e.loginStatus=o,style:{background:"transparent",overflow:"inherit"}},{default:()=>[a(Ta,{onClose:()=>e.loginStatus=!1,onConfirm:async o=>{e.loginTag=o,e.loginStatus=!1;const{data:r}=await _(e.id);e.musicDetail=r}},null)]}),a(la,{show:e.messageStatus,"onUpdate:show":o=>e.messageStatus=o,message:e.message,showButton:!1},null),!u.isShow&&a(je,null,null),E.value&&a("div",{class:s.wxpopup,onClick:()=>{E.value=!1}},[a("img",{src:pa,alt:""},null)])])}}});export{Ga as default};
|