new-index.86a12b64.js 37 KB

1
  1. import{d as Pe,U as g,a3 as Ge,j as a,A as m,B as z,T as Z,p as Ue,Q as Qe,P as qe,S as Ee,g as H,V as Ve,n as Te,Y as he,bi as We,W as ae,f as V,F as M,bC as Be,aS as se,N as ne,X as j,y as F,D as W,bH as Xe}from"./ResizeObserver.es.39b48a47.js";import{T as Re}from"./index.e90d2179.js";import{i as ze,o as Ke}from"./icon-hart-active.d0e8bbef.js";import{C as _e}from"./index.970ad07b.js";import{C as oe}from"./index.db115763.js";import{C as Je}from"./index.9f5e14d1.js";import{I as K}from"./index.fcbcb027.js";import{R as je,a as ie}from"./index.bb84a3aa.js";import"./index.3c44a6d7.js";import"./index.b8eefd8d.js";import{g as Ze,m as $e}from"./music.0a307f27.js";import{o as p}from"./orderStatus.fbc0ddaf.js";import{P as et}from"./plyr.min.0a479001.js";/* empty css */import{S as tt,a as at}from"./index.0e35d2fb.js";import{s as st,g as nt}from"./formatSvgToImg.a06e86c5.js";import{P as ot}from"./index.6617ac99.js";import{e as it}from"./index.dc19bc54.js";const rt="_detail_14ff2_1",lt="_base_14ff2_29",ut="_img_14ff2_32",ct="_albumType_14ff2_44",dt="_shareBtn_14ff2_57",mt="_detailContent_14ff2_69",ft="_main_14ff2_74",At="_favorite_14ff2_79",pt="_bgImg_14ff2_83",gt="_musicContentBg_14ff2_93",vt="_bg_14ff2_83",Ct="_alumWrap_14ff2_109",It="_alumTitle_14ff2_120",St="_alumDes_14ff2_126",yt="_des_14ff2_129",bt="_tags_14ff2_133",Et="_tag_14ff2_133",Tt="_alumCollect_14ff2_145",ht="_alumCollectCencert_14ff2_153",Bt="_alumCollectItem_14ff2_153",Rt="_alumCollectItemActive_14ff2_176",Pt="_albumTips_14ff2_179",Ut="_albumPrice_14ff2_194",Ft="_iconMemberSmall_14ff2_201",wt="_alumnContainer_14ff2_212",Ot="_alumnList_14ff2_217",Dt="_alumnTitle_14ff2_223",kt="_iconMenu_14ff2_231",Nt="_musicContent_14ff2_93",Ht="_iconTransfer_14ff2_254",Mt="_musicTitle_14ff2_278",Lt="_musicImg_14ff2_286",xt="_imgSection_14ff2_296",Yt="_finch_14ff2_303",Gt="_finchLoad_14ff2_307",Qt="_videoOperation_14ff2_325",qt="_audition_14ff2_328",Vt="_footers_14ff2_346",Wt="_colSticky_14ff2_359",Xt="_priceSection_14ff2_364",zt="_price_14ff2_364",Kt="_buyBtn_14ff2_378",_t="_primry_14ff2_393",Jt="_member_14ff2_396",jt="_functionSection_14ff2_399",Zt="_empty_14ff2_402",$t="_emptyImg_14ff2_410",ea="_staffChange_14ff2_413",ta="_staffContainer_14ff2_420",aa="_staffTitle_14ff2_425",sa="_staffImg_14ff2_433",na="_name_14ff2_437",oa="_boxStyle_14ff2_442",ia="_active_14ff2_449",ra="_shareMate_14ff2_494",la="_icon_14ff2_26",ua="_info_14ff2_509",ca="_tagDiscount_14ff2_526";var o={detail:rt,base:lt,img:ut,albumType:ct,shareBtn:dt,detailContent:mt,main:ft,favorite:At,bgImg:pt,musicContentBg:gt,bg:vt,alumWrap:Ct,alumTitle:It,alumDes:St,des:yt,tags:bt,tag:Et,alumCollect:Tt,alumCollectCencert:ht,alumCollectItem:Bt,alumCollectItemActive:Rt,albumTips:Pt,albumPrice:Ut,iconMemberSmall:Ft,alumnContainer:wt,alumnList:Ot,alumnTitle:Dt,iconMenu:kt,musicContent:Nt,iconTransfer:Ht,musicTitle:Mt,musicImg:Lt,imgSection:xt,finch:Yt,finchLoad:Gt,videoOperation:Qt,audition:qt,footers:Vt,colSticky:Wt,priceSection:Xt,price:zt,buyBtn:Kt,primry:_t,member:Jt,functionSection:jt,empty:Zt,emptyImg:$t,staffChange:ea,staffContainer:ta,staffTitle:aa,staffImg:sa,name:na,boxStyle:oa,active:ia,shareMate:ra,icon:la,info:ua,tagDiscount:ca},da="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABG1JREFUWEflmFmsXlMUx3//q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Ihtd111RDPu4AKVGVim1pEjlL/X7qLaLyG7XdbeckQNGlUEZkpecAmXAMKopxgUYVfkrIPm4AypgEEYVwph3wN+UApNHk0JIEwAAAABJRU5ErkJggg==";const va="_downloadContainer_hbonu_1",Ca="_musicContainer_hbonu_4",Ia="_musicImg_hbonu_15",Sa="_num_hbonu_18",ya="_page_hbonu_26",ba="_downloadBtn_hbonu_32";var w={downloadContainer:va,musicContainer:Ca,musicImg:Ia,num:Sa,page:ya,downloadBtn:ba},X="./assets/logoWatermark.223403de.png";const Ea=async c=>{console.log("imgToCanvas",c);const i=document.createElement("img");i.setAttribute("crossOrigin","anonymous"),c&&typeof c=="string"&&c.includes("data:image")?i.src=c:i.src=c+`?t=${+new Date}`,await new Promise(I=>i.onload=I);const r=document.createElement("canvas");r.width=i.width,r.height=i.height;const d=r.getContext("2d");return d.fillStyle="rgb(255, 255, 255)",d.fillStyle="#fff",d.fillRect(0,0,i.width,i.height),d.drawImage(i,0,0),r},Ta=async(c,i)=>{console.log("addWatermark");try{const r=c.getContext("2d"),d=document.createElement("img");d.setAttribute("crossOrigin","anonymous"),X&&typeof X=="string"&&X.includes("data:image")?d.src=X:d.src=X+`?${new Date().getTime()}`,await new Promise(O=>d.onload=O);const I=document.createElement("canvas");I.width=600,I.height=500;const R=I.getContext("2d");R.clearRect(0,0,I.width,I.height),R.rotate(-30*Math.PI/180),R.drawImage(d,0,300);const x=r.createPattern(I,"repeat");return r.fillStyle=x,r.fillRect(0,0,c.width,c.height),c}catch(r){console.log(r)}},ha=(c,i)=>{c.getContext("2d");const r=document.createElement("canvas");r.width=c.width,r.height=c.height+80;const d=r.getContext("2d");return d.fillStyle="#fff",d.fillRect(0,0,r.width,r.height),d.font="26pt Calibri",d.fillStyle="#000",d.textAlign="center",d.drawImage(c,0,40),d.fillText(i.title,c.width/2,40),r},Ba=c=>c.toDataURL("image/png");var Ra=Pe({name:"download",props:{imgList:{type:Array,default:()=>[]},musicSheetName:{type:String,default:""}},setup(c){const i=g(c.imgList),r=g();Ge(()=>c.imgList,y=>{i.value=y,d.value=0,r.value&&r.value.swipeTo(0)});const d=g(0),I=g(!1),R=g(""),x=async()=>{if(!I.value)if(I.value=!0,R.value)O();else{const y=await Ea(i.value[d.value]),D=ha(y,{title:c.musicSheetName,size:18}),$=await Ta(D);R.value=Ba($),await O()}},O=async()=>{var D;Z.loading({message:"\u56FE\u7247\u751F\u6210\u4E2D...",forbidClick:!0}),setTimeout(()=>{I.value=!1},100);const y=await Ue({api:"savePicture",content:{base64:R.value}});((D=y==null?void 0:y.content)==null?void 0:D.status)==="success"?Z.success("\u5DF2\u4FDD\u5B58\u5230\u76F8\u518C"):Z.fail("\u4FDD\u5B58\u5931\u8D25")};return()=>a("div",{class:w.downloadContainer},[a("div",{class:w.musicContainer},[a("h2",null,[c.musicSheetName]),a("div",{class:w.musicImg},[a(tt,{ref:r,showIndicators:!1,loop:!1,onChange:y=>{d.value=y,R.value=""}},{default:()=>[i.value.length>0&&i.value.map(y=>a(at,null,{default:()=>[a(K,{src:y},null)]}))]})])]),a("div",{class:w.buttonGroup},[a("div",{class:w.num},[a("span",{class:w.page},[d.value+1,m("/"),i.value.length]),a("span",{class:w.countPage},[m("\uFF08\u5171"),i.value.length,m("\u9875\uFF09")])]),a(z,{type:"primary",color:"linear-gradient(270deg, #FF204B 0%, #FE5B71 100%)",class:w.downloadBtn,block:!0,round:!0,onClick:()=>x(),loading:I.value,loadingText:"\u52A0\u8F7D\u4E2D..."},{default:()=>[m("\u4E0B\u8F7D\u5F53\u524D\u9875\u9762")]})])])}}),Xa=Pe({name:"new-index",setup(){localStorage.setItem("behaviorId",Ze());const c=Qe(),i=qe(),r=g(!1),d=g("rgba(55, 205, 177, 0)"),I=g("#fff"),R=Number(i.query.activityId)||0,x=g(R),O=g(!1),y=g(null),D=g(null),$=g("0"),_=g(""),P=g([]),J=g(!1),v=Ee({status:!1,radio:"staff"}),Fe=g(H.platformType==="STUDENT"?"/api-student":"/api-teacher"),ee=e=>{var n,s,u;if(v.radio=e,v.status=!1,t.imgs=[],e=="FIRST"){r.value=!1;const l=(n=t.details)==null?void 0:n.firstPdfUrl;te(l)}else if(e=="JIAN"){r.value=!1;const l=(s=t.details)==null?void 0:s.jianPdfUrl;te(l)}else{r.value=!1;const l=(u=t.details)==null?void 0:u.musicPdfUrl;te(l)}},we=async e=>{var n;if(!r.value){r.value=!0,O.value=!1;try{const{data:s}=await F.post("/musicSheet/detailSmall",{prefix:H.platformType==="TEACHER"?"/api-teacher":"/api-student",data:{musicSheetId:i.query.id,tenantAlbumId:i.query.tenantAlbumId,providerType:i.query.providerType,instrumentId:t.instrumentId,subjectId:t.subjectId}});t.details=s,await Me(s)}catch{O.value=!0}((n=t.details)==null?void 0:n.musicSheetType)!=="CONCERT"&&(r.value=!1)}},k=g(null),ue=g(null),Y=g(0),Oe=async()=>{var s;const e=["play-large","play","progress","captions","duration"];k.value=new et(ue.value,{controls:e});const n=await F.get("/sysConfig/queryByParamNameList",{prefix:H.platformType==="TEACHER"?"/api-teacher":"/api-student",params:{paramNames:"music_sheet_free_rate"}});Y.value=((s=n.data[0])==null?void 0:s.paramValue)||0,j(async()=>{Q()}),k.value.on("timeupdate",()=>{const u=k.value,l=u.duration*Y.value/100||0;u.currentTime>=l&&!S.value.play&&u.stop()})},ce=async e=>{var n;if(((n=e.data)==null?void 0:n.api)==="musicStaffRender"){const s=e.data.osmdImg,u=[];for(let l=0;l<s.length;l++){const B=await st(s[l].img,s[l].width,s[l].height);u.push(B)}t.imgs=u,r.value=e.data.loading}};Ve(async()=>{var l,B;const e=(l=H.user.data)==null?void 0:l.instrumentId;if(e){const C=e.split(",")[0];t.instrumentId=C}const n=(B=H.user.data)==null?void 0:B.subjectId;if(n){const C=n.split(",")[0];t.subjectId=C}Te({api:"setStatusBarTextColor",content:{statusBarTextColor:!0}}),await we();const{height:s}=he(y),u=he(D);$.value=s+u.height,window.addEventListener("message",ce)}),We(()=>{Te({api:"setStatusBarTextColor",content:{statusBarTextColor:!1}}),window.removeEventListener("message",ce)});const De=async()=>{var e,n,s;try{await F.post("/music/sheet/favorite/"+((e=t.details)==null?void 0:e.id),{prefix:H.platformType==="TEACHER"?"/api-teacher":"/api-student"}),t.details.favorite=(n=t.details)!=null&&n.favorite?0:1,t.details.favoriteCount=(s=t.details)!=null&&s.favorite?t.details.favoriteCount+1:t.details.favoriteCount-1<0?0:t.details.favoriteCount-1,setTimeout(()=>{var u;Z((u=t.details)!=null&&u.favorite?"\u6536\u85CF\u6210\u529F":"\u53D6\u6D88\u6536\u85CF\u6210\u529F")},100)}catch{}},ke=async()=>{const e=t.details;p.orderObject.orderType="MUSIC",p.orderObject.orderName=e.name,p.orderObject.orderDesc=e.name,p.orderObject.actualPrice=e.musicPrice,p.orderObject.recomUserId=i.query.recomUserId||0,p.orderObject.activityId=i.query.activityId||0,p.orderObject.orderNo="",p.orderObject.orderList=[{orderType:"MUSIC",goodsName:e.name,actualPrice:e.musicPrice,price:e.musicPrice,...e}];const s=(await F.post("/api-student/userOrder/getPendingOrder",{data:{goodType:"MUSIC",bizId:e.id}})).data;s?W.confirm({title:"\u63D0\u793A",message:"\u60A8\u6709\u4E00\u4E2A\u672A\u652F\u4ED8\u7684\u8BA2\u5355\uFF0C\u662F\u5426\u7EE7\u7EED\u652F\u4ED8\uFF1F",theme:"round-button",className:"confirm-button-group",cancelButtonText:"\u53D6\u6D88\u8BA2\u5355",confirmButtonText:"\u7EE7\u7EED\u652F\u4ED8"}).then(async()=>{p.orderObject.orderNo=s.orderNo,p.orderObject.actualPrice=s.actualPrice,p.orderObject.discountPrice=s.discountPrice,p.orderObject.paymentConfig={...s.paymentConfig,paymentVendor:s.paymentVendor,paymentVersion:s.paymentVersion},de()}).catch(()=>{W.close(),Ne(s.orderNo)}):de()},de=()=>{const e=t.details;c.push({path:"/orderDetail",query:{orderType:"MUSIC",musicId:e.id}})},Ne=async e=>{try{await F.post("/api-student/userOrder/orderCancel",{data:{orderNo:e}})}catch{}},S=ae(()=>{var n;const e=t.details;return{hasTenantAlbum:!!((n=i.query)!=null&&n.tenantAlbumId),play:!!e.play,free:e==null?void 0:e.paymentType.includes("FREE"),charge:e==null?void 0:e.paymentType.includes("CHARGE"),vip:e==null?void 0:e.paymentType.includes("VIP"),buy:(e==null?void 0:e.orderStatus)==="PAID"}}),t=Ee({musicId:i.query.id,instrumentId:"",subjectId:"",isConcert:!1,details:{},list:[],open:!1,closed:!0,audioReady:!1,iframeSrc:"",instrumentName:"",iframeRef:null,imgs:[],musicPdfUrl:"",partList:[],partNames:[],selectedPartName:"",selectedPartIndex:0,isComberRender:!1,metronomeUrl:"",metronomeMp3Url:""}),h=ae(()=>(console.log(1,P.value,t.selectedPartIndex),P.value.find(e=>e.value===t.selectedPartIndex))),me=ae(()=>{const e=t.details;let n=e.isConvertibleScore,s=!1;return!n&&["FIRST","JIAN"].includes(e.scoreType)&&(n=!0,s=!0),{isConvertibleScore:n,isHiddenStaff:s}});function He(e){const n=t.instrumentId;if(n){const{track:s}=e.find(u=>n==u.musicalInstrumentId)||{};return s}return null}const G=(e,n)=>{let s="";return n==="FIRST"?s=e.firstPdfUrl:n==="JIAN"?s=e.jianPdfUrl:n==="STAVE"&&(s=e.musicPdfUrl),s||""},Me=async e=>{var l,B,C;v.radio=e.scoreType;const n=e.musicSheetSoundList||[];let s=n;t.list=n,s=s.filter(A=>{var b,E;return!((E=(b=A.track)==null?void 0:b.toLocaleUpperCase())!=null&&E.includes("COMMON"))}),P.value=s.map((A,b)=>{const E=e.musicSheetType!=="SINGLE"&&e.isScoreRender?b+1:b,N=nt(A.track);return{text:A.track+(N?`(${N})`:""),name:A.track+(N?`(${N})`:""),track:A.track,musicPdfUrl:A.musicPdfUrl,firstPdfUrl:A.firstPdfUrl,jianPdfUrl:A.jianPdfUrl,value:E}}),t.details=e||{},t.isComberRender=(l=t.details)==null?void 0:l.isScoreRender;let u;if((B=t.details)!=null&&B.musicSheetSoundList){const A=He((C=t.details)==null?void 0:C.musicSheetSoundList);if(A){const b=A.split(",").map(E=>E.toLowerCase().replace(/^\d+|\d+$/g,"").trim());u=P.value.find(E=>b.includes(E.track&&E.track.toLowerCase().replace(/^\d+|\d+$/g,"").trim())),u&&(t.selectedPartIndex=u.value)}}if(e.musicSheetType==="SINGLE")t.musicPdfUrl=G(e,e.scoreType);else if(t.isComberRender){P.value.unshift({text:"\u603B\u8C31",value:0,xmlIndex:999,musicPdfUrl:e.musicPdfUrl,firstPdfUrl:e.firstPdfUrl,jianPdfUrl:e.jianPdfUrl,track:"",name:"\u603B\u8C31"}),t.selectedPartIndex=e.defaultScoreRender?0:u?u.value:1;let A="";e.defaultScoreRender?A=G(e,e.scoreType):A=G(u,e.scoreType),t.musicPdfUrl=A}else{const A=P.value.find(b=>b.value===t.selectedPartIndex);A?t.musicPdfUrl=G(A,e.scoreType):t.musicPdfUrl=""}_.value=e.mp3Url,_.value?j(async()=>{Oe()}):Q()},fe=(e,n,s)=>{const u=sessionStorage.getItem("Authorization")||"",l="/klx-music-score/";let C=`${Xe()+l}?t=${Date.now()}#/?id=${e}&Authorization=${u}&isPreView=true&zoom=0.5&downPng=A4`;return C+="&systemType="+(H.platformType==="STUDENT"?"student":"teacher"),n===999?C+=`&part-index=${n}`:C+=`&part-name=${encodeURIComponent(s||"")}`,v.radio==="STAVE"?C+="&musicRenderType=staff":v.radio==="JIAN"?C+="&musicRenderType=fixedTone":v.radio==="FIRST"&&(C+="&musicRenderType=firstTone"),C},Q=async()=>{try{j(()=>{var e,n;if(t.musicPdfUrl){const s=`${location.origin}${location.pathname}pdf/web/viewer-pdf.html?file=${encodeURIComponent(t.musicPdfUrl)}&t=${Date.now()}`;document.querySelector("#staffIframeRef").contentWindow.location.replace(s)}else{const s=fe(t.musicId,((e=h.value)==null?void 0:e.xmlIndex)||0,((n=h.value)==null?void 0:n.track)||"");console.log(s,"staffIframeRef"),document.querySelector("#staffIframeRef").contentWindow.location.replace(s)}})}catch{}},Le=()=>{var n;document.getElementById("staffIframeRef").contentWindow.location.replace(fe(t.musicId,((n=h.value)==null?void 0:n.xmlIndex)||0,h.value.track))},q=()=>{W.alert({title:"\u63D0\u793A",message:"\u8BF7\u5728\u9177\u4E50\u79C0APP\u4E2D\u4F7F\u7528",confirmButtonColor:"#2dc7aa"}).then(()=>{window.location.href=location.origin+"/student/#/download"})},xe=async()=>{const e=Fe.value+"/tenantGroupAlbum/buyAlbumInfo?tenantGroupAlbumId="+(i.query.taId||""),{data:n}=await F.get(e),s=n[0];p.orderObject.orderType="TENANT_ALBUM",p.orderObject.orderName=s.name,p.orderObject.orderDesc=s.name,p.orderObject.actualPrice=s.actualPrice,p.orderObject.orderNo="",p.orderObject.orderList=[{orderType:"TENANT_ALBUM",goodsName:s.name,actualPrice:s.actualPrice,price:s.actualPrice,...s}];const l=(await F.post("/api-student/userOrder/getPendingOrder",{data:{goodType:"TENANT_ALBUM",bizId:s.id}})).data;l?W.confirm({title:"\u63D0\u793A",message:"\u60A8\u6709\u4E00\u4E2A\u672A\u652F\u4ED8\u7684\u8BA2\u5355\uFF0C\u662F\u5426\u7EE7\u7EED\u652F\u4ED8\uFF1F",theme:"round-button",className:"confirm-button-group",cancelButtonText:"\u53D6\u6D88\u8BA2\u5355",confirmButtonText:"\u7EE7\u7EED\u652F\u4ED8"}).then(async()=>{p.orderObject.orderNo=l.orderNo,p.orderObject.actualPrice=l.actualPrice,p.orderObject.discountPrice=l.discountPrice,p.orderObject.paymentConfig={...l.paymentConfig,paymentVendor:l.paymentVendor,paymentVersion:l.paymentVersion},Ae(s.id)}).catch(()=>{W.close(),Ye(l.orderNo)}):Ae(s.id)},Ye=async e=>{try{await F.post("/api-student/userOrder/orderCancel/v2",{data:{orderNo:e}})}catch{}},Ae=e=>{c.push({path:"/orderDetail",query:{orderType:"ALBUM",album:e}})},te=(e,n)=>{e?t.musicPdfUrl=e:t.musicPdfUrl="",Q()};return()=>{var e,n,s,u,l,B,C,A,b,E,N,pe,ge,ve,Ce,Ie,Se,ye,be;return a("div",{class:o.detail},[a(Re,{position:"top"},{default:()=>[a(_e,{background:d.value,hideHeader:!1,border:!1,isFixed:!1,color:I.value,backIconColor:"white"},null)]}),a("img",{class:o.bgImg,src:(e=t.details)==null?void 0:e.musicCover},null),a("div",{class:o.musicContentBg},null),a("div",{class:o.bg},[a("div",{class:o.alumWrap},[a("div",{class:o.img},[a(K,{class:o.image,width:"100%",height:"100%",fit:"cover",src:(n=t.details)==null?void 0:n.musicCover},null)]),a("div",{class:o.alumDes},[a("div",{class:[o.alumTitle,"van-ellipsis"]},[(s=t.details)==null?void 0:s.name]),a("div",{class:[o.des,"van-multi-ellipsis--l2"]},[(u=t.details)!=null&&u.composer?`\u4F5C\u66F2\uFF1A${((B=t.details)==null?void 0:B.composer)||""}`:`\u4E0A\u4F20\u8005\uFF1A${((l=t.details)==null?void 0:l.addName)||""}`])])]),a("div",{class:[o.alumCollect]},[a("div",{class:[o.alumCollectItem,t.imgs.length<=0&&!t.musicPdfUrl?o.alumCollectItemActive:""],onClick:()=>{var f,T,U;if(V().isApp){if(t.imgs.length<=0&&!t.musicPdfUrl)return;if(t.musicPdfUrl){const L=((f=t.details)==null?void 0:f.name)+(t.isConcert&&((T=h.value)==null?void 0:T.name)?`(${((U=h.value)==null?void 0:U.name)||""})`:"");Ue({api:"downloadFile",content:{downloadUrl:t.musicPdfUrl,fileName:L}})}else J.value=!0}else q()}},[a("img",{src:da},null),a("span",null,[m("\u4E0B\u8F7D\u66F2\u8C31")])]),a("div",{class:o.alumCollectItem,onClick:()=>De()},[a("img",{src:(C=t.details)!=null&&C.favorite?ze:Ke},null),a("span",null,[(A=t.details)==null?void 0:A.favoriteCount,m("\u4EBA\u6536\u85CF")])])]),((b=t.details)==null?void 0:b.id)&&!S.value.play&&!S.value.hasTenantAlbum&&a("div",{class:o.albumTips},[S.value.charge&&S.value.vip?a(M,null,[a("span",null,[m("\u5F00\u901A\u4F1A\u5458\u6216\u70B9\u64AD\u5355\u66F2\uFF0C\u5373\u53EF\u81EA\u7531\u7EC3\u4E60\u8BE5\u66F2\u8C31")]),a("span",{class:o.albumPrice},[m("\xA5"),Be((E=t.details)==null?void 0:E.musicPrice)])]):S.value.vip?a("span",null,[a("img",{src:ma,class:o.iconMemberSmall},null),m("\u6B64\u66F2\u8C31\u4E3A\u4F1A\u5458\u4E13\u4EAB\uFF0C\u5F00\u901A\u4F1A\u5458\u5373\u53EF\u81EA\u7531\u7EC3\u4E60\u8BE5\u66F2\u8C31")]):S.value.charge?a(M,null,[a("span",null,[m("\u6B64\u66F2\u8C31\u4E3A\u70B9\u64AD\u66F2\u8C31\uFF0C\u70B9\u64AD\u5373\u53EF\u81EA\u7531\u7EC3\u4E60\u8BE5\u66F2\u8C31")]),a("span",{class:o.albumPrice},[m("\xA5"),Be((N=t.details)==null?void 0:N.musicPrice)])]):""])]),a("div",{class:o.musicContent},[me.value.isConvertibleScore&&((pe=t.details)==null?void 0:pe.musicSheetType)==="SINGLE"?a("span",{class:o.iconTransfer,style:{display:((ge=t.details)==null?void 0:ge.musicSheetType)==="SINGLE"?"":"none"},onClick:()=>{v.status=!0}},[m("\u8F6C\u8C31")]):null,a("span",{class:o.iconTransfer,style:{display:((ve=t.details)==null?void 0:ve.musicSheetType)==="CONCERT"?"":"none"},onClick:()=>{t.open=!0}},[m("\u5207\u6362\u58F0\u8F68")]),t.details.id?a(M,null,[t.musicPdfUrl?a(M,null,[a("iframe",{style:{opacity:r.value?0:1},id:"staffIframeRef",src:t.iframeSrc,onLoad:()=>{r.value=!1}},null)]):a(M,null,[a("p",{class:o.musicTitle},[((Ce=t.details)==null?void 0:Ce.name)&&a(M,null,[(Ie=t.details)==null?void 0:Ie.name,t.isConcert&&((Se=h.value)==null?void 0:Se.name)?`(${((ye=h.value)==null?void 0:ye.name)||""})`:""])]),a("iframe",{id:"staffIframeRef",style:{opacity:r.value?0:1},src:t.iframeSrc,onLoad:()=>{r.value=!1}},null)])]):null]),((be=t.details)==null?void 0:be.id)&&a(Re,{position:"bottom",varName:"--bottom-height"},{default:()=>[a("div",{style:{backgroundColor:"#fff"}},[a("div",{class:o.videoOperation},[_.value&&a(M,null,[!S.value.play&&Y.value!=100&&Y.value!=0&&a("div",{class:[o.audition]},[a("img",{src:fa},null),a("span",null,[m("\u6BCF\u9996\u66F2\u76EE\u53EF\u8BD5\u542C"),Y.value,m("%")])]),a("div",{class:[o.audio,o.collectCell]},[a("audio",{id:"player",controls:!0,ref:ue},[a("source",{src:_.value,type:"audio/mp3"},null)])])])]),a("div",{ref:D,class:o.footers},[S.value.play?a(z,{round:!0,block:!0,type:"primary",color:"linear-gradient( 270deg, #FF204B 0%, #FE5B71 100%)",onClick:()=>{if(!V().isApp){q();return}it(()=>{var L;k.value&&k.value.stop(),k.value&&k.value.stop();let T="";v.radio==="STAVE"?T="staff":v.radio==="JIAN"?T="fixedTone":v.radio==="FIRST"&&(T="firstTone");let U={"part-name":encodeURIComponent(((L=h.value.track)==null?void 0:L.trim())||""),musicRenderType:T,albumId:i.query.tenantAlbumId||"",ignoreSysMetronome:i.query.subjectType==="MUSIC"?1:0};i.query.tenantAlbumId&&(U.albumId=i.query.tenantAlbumId),$e({id:t.details.id},()=>{},U)},300)()}},{default:()=>[m("\u7ACB\u5373\u7EC3\u4E60")]}):S.value.hasTenantAlbum&&!S.value.play?a(z,{disabled:i.query.buyStatus==="1",round:!0,block:!0,type:"primary",color:"linear-gradient( 270deg, #FF204B 0%, #FE5B71 100%)",onClick:()=>{if(!V().isApp){q();return}i.query.type==="search"?c.push("train-tool"):xe()}},{default:()=>[m("\u5F00\u901A\u8BAD\u7EC3\u6559\u7A0B")]}):a("div",{class:[o.buyBtn]},[S.value.charge&&a(z,{round:!0,type:"primary",color:"linear-gradient(270deg, #FF204B 0%, #FE5B71 100%)",class:o.primary,onClick:()=>{if(!V().isApp){q();return}ke()}},{default:()=>[m("\u7ACB\u5373\u70B9\u64AD")]}),S.value.vip&&a(z,{round:!0,block:!S.value.charge,type:"primary",color:"linear-gradient(270deg, #FF204B 0%, #FE5B71 100%)",class:o.memeber,onClick:()=>{if(!V().isApp){q();return}c.push({path:"/memberCenter",query:{...i.query}})}},{default:()=>[x.value>0&&a("div",{class:[o.buttonDiscount]},[m("\u4E13\u5C5E\u4F18\u60E0")]),m("\u5F00\u901A\u4F1A\u5458")]})])])])]}),a(se,{show:J.value,"onUpdate:show":f=>J.value=f,position:"bottom",round:!0},{default:()=>{var f,T;return[J.value&&a(Ra,{imgList:JSON.parse(JSON.stringify(t.imgs)),musicSheetName:t.details.name+(t.isConcert&&((f=h.value)==null?void 0:f.name)?`(${((T=h.value)==null?void 0:T.name)||""})`:"")},null)]}}),a(se,{show:v.status,"onUpdate:show":f=>v.status=f,teleport:"body",closeable:!0,style:{width:"80%"},class:o.staffChange,round:!0},{default:()=>[a("div",{class:o.staffContainer},[a("div",{class:o.staffTitle},[m("\u8F6C\u6362\u66F2\u8C31")]),a(je,{modelValue:v.radio,"onUpdate:modelValue":f=>v.radio=f},{default:()=>[a(Je,{border:!1},{default:()=>[me.value.isHiddenStaff?"":a(oe,{center:!0,border:!1,class:v.radio==="STAVE"?o.active:"",onClick:()=>ee("STAVE")},{icon:()=>a(K,{src:Aa,class:o.staffImg},null),title:()=>a("span",{class:o.name},[m("\u4E94\u7EBF\u8C31")]),value:()=>a(ie,{name:"STAVE"},{icon:f=>a(ne,{class:o.boxStyle,size:16,name:f.checked?re:le},null)})}),a(oe,{center:!0,border:!1,class:v.radio==="FIRST"?o.active:"",onClick:()=>ee("FIRST")},{icon:()=>a(K,{src:pa,class:o.staffImg},null),title:()=>a("span",{class:o.name},[m("\u7B80\u8C31-\u9996\u8C03")]),value:()=>a(ie,{name:"FIRST"},{icon:f=>a(ne,{class:o.boxStyle,size:16,name:f.checked?re:le},null)})}),a(oe,{center:!0,border:!1,class:v.radio==="JIAN"?o.active:"",onClick:()=>ee("JIAN")},{icon:()=>a(K,{src:ga,class:o.staffImg},null),title:()=>a("span",{class:o.name},[m("\u7B80\u8C31-\u56FA\u5B9A\u8C03")]),value:()=>a(ie,{name:"JIAN"},{icon:f=>a(ne,{class:o.boxStyle,size:16,name:f.checked?re:le},null)})})]})]})])]}),a(se,{teleport:"body",position:"bottom",round:!0,show:t.open,"onUpdate:show":f=>t.open=f},{default:()=>[a(ot,{columns:P.value,defaultIndex:t.selectedPartIndex,onConfirm:f=>{t.open=!1,t.selectedPartIndex=f.value,t.imgs=[],j(()=>{const T=P.value.find(L=>L.value===f.value),U=G(T,v.radio);t.musicPdfUrl=U,U?Q():(r.value=!0,t.musicPdfUrl?Le():Q())})},onCancel:()=>t.open=!1},null)]})])}}});export{Xa as default};