1 |
- import{T as x}from"./index-80ba3b64-1734950731618.js";import{T as S}from"./index-b40f8126-1734950731618.js";import{H as Z,d as A,u as R,c as b,e as W,r as k,q as E,T as C,f as e,k as r,g as V,x as D,ay as M,j as U,E as j,D as K,z as P,aE as X,aW as H,S as O}from"./index-efb66432-1734950731618.js";import{c as q}from"./api-44f1c902-1734950731618.js";import{T as h}from"./index-043f1db0-1734950731618.js";import{v as z}from"./urlUtils-7f82c85e-1734950731618.js";import{P as J}from"./index-82b7102d-1734950731618.js";import{u as G}from"./catchData-e017bf09-1734950731618.js";import{N as v}from"./Scrollbar-10f58cff-1734950731618.js";const Y="_list_8hvpj_1",Q="_topTitle_8hvpj_23",$="_moreMusic_8hvpj_33",ee="_searchSection_8hvpj_56",se="_searchInput_8hvpj_63",te="_textBtn_8hvpj_76",ne="_iconArrow_8hvpj_81",ae="_textBtnActive_8hvpj_98",oe="_tags_8hvpj_115",ie="_container_8hvpj_128",le="_section_8hvpj_143",ce="_sectionTitle_8hvpj_150",re="_imgTitle_8hvpj_156",ue="_moreBtn_8hvpj_159",de="_recommendSection_8hvpj_180",pe="_hotSection_8hvpj_187",me="_newSection_8hvpj_194",ge="_empty_8hvpj_205",he="_item_8hvpj_208",ve="_num_8hvpj_219",ye="_num1_8hvpj_227",fe="_num2_8hvpj_230",Se="_num3_8hvpj_233",we="_img_8hvpj_156",Fe="_infos_8hvpj_248",Te="_topName_8hvpj_252",Ne="_types_8hvpj_262",_e="_hot_8hvpj_187",Be="_sing_8hvpj_289",We="_song_8hvpj_290",Ue="_author_8hvpj_307",je="_searchContainer_8hvpj_314",Ze="_loadingWrap_8hvpj_324",Ie="_showLoading_8hvpj_329",Le="_emptyScrollBar_8hvpj_338",xe="_sectionContainer_8hvpj_341",Ae="_sectionItem_8hvpj_350",Re="_popSelect1_8hvpj_453",s={list:Y,topTitle:Q,moreMusic:$,searchSection:ee,searchInput:se,textBtn:te,iconArrow:ne,textBtnActive:ae,tags:oe,container:ie,section:le,sectionTitle:ce,imgTitle:re,moreBtn:ue,recommendSection:de,hotSection:pe,newSection:me,empty:ge,item:he,num:ve,num1:ye,num2:fe,num3:Se,img:we,infos:Fe,topName:Te,types:Ne,hot:_e,sing:Be,song:We,author:Ue,searchContainer:je,loadingWrap:Ze,showLoading:Ie,emptyScrollBar:Le,sectionContainer:xe,sectionItem:Ae,popSelect1:Re},be=""+new URL("reommon_title-ec5251b9.png",import.meta.url).href,ke=""+new URL("new_title-a8d05805.png",import.meta.url).href,Ee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVYAAABaCAMAAADUxI5+AAAC7lBMVEUAAAD13e0UFhb33u/03ewVFRUVFRVtZGsUFRb+3vT03Oz13+/03+0TFRYUFBUUFBYUFBYUFBYUFBUTFBUTFRb03e313e0fHx8UFhZIQkcUFRUgICD03e0cHB723e0TFBUUFBb03e7///8UFRX13e0UFBn33u7/6P//4v/13ez13e0TFRb43vL13e313ez13ewXFxcVGRr/6fcUFRb13e313e313uz23e0VFhb43vD13e323+753u/13O303e0UFRf13e303Oz03e313e4TFRX23u723u323e354O4XFxf/4vH13e0TFBUTFBb13e313e313e0TFRYXGBj03e323e303e723u713e713u323u/25e324/L03e313e303Oz13ez13O313u713e0UFRUUFBYTFhYUFBUUFRb/5vMXFxesnKcaGxwyMDITFRb13e303u323e313fAbGxsdJCQTFBX13O0UFRYTFRUUFBUTFRX33e713u/13e703+0WFhYWFhb44fD13Ozs1eXNucYTFBYsKiw6Nzv13O22prHSvswUFhpxbHF7cHlLRUpDPUIoJynBsLydj5llXWQTFBUYGRqQg4w7NzxPSU7eyNZjXGPdx9ZJQ0gVFRegkZvn0N+ShI5wZ25nXmVvZmx2bXOYiZKDeICwn6pRS1EkIyXp0uDXwtEjIiPEsb2Cdn+vnapuZW20o69uZ2zjzdqPhI/Pu8nhy9utoa3HssBnXme8qLX03OwTFBXm0N+0o6+OgYpJREg1MjUuLS/HtMHu1uWej5qRhI5nX2bs1eRAPEAkIyUVFhetnah2bHNCPUJ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LP6UziOV/FiHHdPKCTMDDTS5xmzcAHK6ONwjtLhiQrnlnE/6hzzeYsrzg0Z3Ry+ughqb2TVpE/oGXmsMZDxnRPTuzWv/bs9r0qEJfL5XK5XC6Xy+VyuVwul8vlcrlcLtf/4BcGitS0QRgdvwAAAABJRU5ErkJggg==",Ce=c=>Z.post("/edu-app/musicSheet/queryByTag",{data:c}),Ye=()=>Z.get("/edu-app/musicSheetTag/queryList"),Ve=""+new URL("title-bg-aaf8257e.png",import.meta.url).href;function De(c){return typeof c=="function"||Object.prototype.toString.call(c)==="[object Object]"&&!K(c)}const d=c=>{if(c<1e4)return c;{const y=c/1e4;return Number(y.toFixed(1))+"万"}},Me=A({name:"xiaoku-list",setup(){const c=G(),y=R(),I=b(),n=W({HOT:[],NEW:[],RECOMMEND:[],isSearch:!1,keyword:null,detailLoading:!1,list:[],loading:!1,finshed:!1,instrumentId:null,page:1,rows:36,previewModal:!1,previewParams:{type:"",src:""}}),u=W({tags:[],tagIndex:0,list:[],loading:!1}),p=async()=>{n.detailLoading=!0;try{const{data:o}=await Ce({rows:20,musicalInstrumentId:n.instrumentId});n.RECOMMEND=o.RECOMMEND||[],n.HOT=o.HOT||[],n.NEW=o.NEW||[]}catch(o){}n.detailLoading=!1},w=o=>{const t={};return o==null||o.forEach(a=>{a.id===u.tagIndex&&(t.selected=!0,t.name=a.name)}),t},F=async()=>{n.page===1&&(n.loading=!0);try{const{data:o}=await q({name:n.keyword,musicalInstrumentId:n.instrumentId,page:n.page,rows:n.rows});(o.rows||[]).forEach(a=>{if(a.musicSheetName){const l=new RegExp(n.keyword,"gi"),i=a.musicSheetName.replace(l,"<span>$&</span>");a.musicNameReg=i}}),n.list=[...n.list,...o.rows],n.finshed=n.page>=o.pages}catch(o){console.log(o,"e")}n.loading=!1};k();const m=o=>{y.push({path:"/xiaoku-detail",query:{type:o}})},g=o=>{const t=o.scoreType==="FIRST"?"firstTone":o.scoreType==="JIAN"?"fixedTone":o.scoreType==="STAVE"?"staff":"firstTone";let a="".concat(z(),"/instrument?v=").concat(+new Date,"&platform=pc&id=").concat(o.id,"&Authorization=").concat(I.getToken,"&musicRenderType=").concat(t,"&showGuide=true&part-index=0");n.instrumentId&&(a+="&instrumentId="+n.instrumentId),window.matchMedia("(display-mode: standalone)").matches?(P.application=window.matchMedia("(display-mode: standalone)").matches,n.previewModal=!0,X(),n.previewParams={type:"music",src:a}):window.open(a,+new Date+"")},T=o=>{var t;console.log(o.data),((t=o.data)==null?void 0:t.api)==="back"&&(H(),n.previewModal=!n.previewModal)},f=()=>{n.isSearch=!0,n.loading=!0,n.finshed=!1,n.list=[],F(),O(()=>{})},L=()=>{var t,a,l;const o=c.getSubjectInstrumentOnly;if(o.length>0){const i=o[0];i.instruments&&i.instruments.length>1?(u.tagIndex=(t=i.instruments[0])==null?void 0:t.value,n.instrumentId=(a=i.instruments[0])==null?void 0:a.value):(u.tagIndex=(l=i.instruments[0])==null?void 0:l.value,n.instrumentId=i.value)}};return E(async()=>{await c.getSubjects(),L(),p(),window.addEventListener("message",T)}),C(()=>{window.removeEventListener("message",T)}),()=>{let o;return e("div",{class:s.list},[e("h2",{class:s.topTitle},[e("img",{src:Ve},null),e("div",{class:s.moreMusic,onClick:()=>m()},[r("全部曲目")])]),e("div",{class:s.searchSection},[e(V,{class:s.tags,showLabel:!1},{default:()=>[e(D,{size:[12,20]},De(o=c.getSubjectInstrumentOnly.map(t=>t.instruments&&t.instruments.length>1?e(M,{options:t.instruments,trigger:"hover",value:u.tagIndex,"onUpdate:value":[a=>u.tagIndex=a,()=>{n.instrumentId=u.tagIndex,n.isSearch?f():p()}],scrollable:!0,key:t.value,class:[s.popSelect1]},{default:()=>[e(U,{round:!0,class:[s.textBtn,w(t.instruments).selected&&s.textBtnActive]},{default:()=>[w(t.instruments).name||t.name,e("i",{class:s.iconArrow},null)]})]}):e(U,{round:!0,class:[s.textBtn,n.instrumentId===(t.value||0)&&s.textBtnActive],onClick:()=>{u.tagIndex=t.value||0,n.instrumentId=t.value,n.isSearch?f():p()}},{default:()=>[t.name]})))?o:{default:()=>[o]})]}),e(x,{round:!0,class:s.searchInput,placeholder:"请输入曲目名称",onSearch:t=>{t&&t.trim()?(n.keyword=t.trim(),f()):(n.isSearch=!1,p())}},null)]),n.isSearch?e("div",{class:s.searchContainer},[e(v,{class:!n.loading&&n.list.length===0?s.emptyScrollBar:"",onScroll:async t=>{var N,_,B;const a=(N=t.target)==null?void 0:N.clientHeight,l=(_=t.target)==null?void 0:_.scrollTop,i=(B=t.target)==null?void 0:B.scrollHeight;a+l+20>=i&&!n.finshed&&!n.loading&&(n.page=n.page+1,await F())}},{default:()=>[e(j,{show:n.loading},{default:()=>[e("div",{class:s.sectionContainer},[e("div",null,[n.list.map(t=>{var a,l;return e("div",{class:s.sectionItem,onClick:()=>g(t)},[e("div",{class:s.img,style:{marginLeft:0}},[e("img",{referrerpolicy:"no-referrer",src:t.titleImg},null)]),e("div",{class:s.infos},[e("div",{class:s.topName,innerHTML:t.musicNameReg},null),e("div",{class:s.types},[e("div",{class:s.hot},[e("span",null,[d(t.usedNum)])]),((a=t.audioPlayTypes)==null?void 0:a.includes("SING"))&&e("div",{class:s.sing},[r("演唱")]),((l=t.audioPlayTypes)==null?void 0:l.includes("PLAY"))&&e("div",{class:s.song},[r("演奏")]),e("div",{class:s.author},[t.composer])])])])})])])]})]}),!n.loading&&n.list.length===0&&e("div",{class:s.empty},[e(h,{description:"暂无曲目"},null)])]):e("div",{class:s.container},[e(j,{show:n.detailLoading},{default:()=>[e("div",{class:[s.section,s.recommendSection]},[e("div",{class:s.sectionTitle},[e("img",{src:be,class:s.imgTitle},null),e("div",{class:s.moreBtn,onClick:()=>m("RECOMMEND")},[r("更多")])]),e(v,null,{default:()=>[n.RECOMMEND.map((t,a)=>{var l,i;return e("div",{class:s.item,onClick:()=>{g(t)}},[e("div",{class:[s.num,a===0?s.num1:"",a===1?s.num2:"",a===2?s.num3:""]},[(a+1).toString().padStart(2,"0")]),e("div",{class:s.img},[e("img",{referrerpolicy:"no-referrer",src:t.titleImg},null)]),e("div",{class:s.infos},[e("div",{class:s.topName},[e(S,{text:t.musicSheetName},null)]),e("div",{class:s.types},[e("div",{class:s.hot},[e("span",null,[d(t.usedNum)])]),((l=t.audioPlayTypes)==null?void 0:l.includes("SING"))&&e("div",{class:s.sing},[r("演唱")]),((i=t.audioPlayTypes)==null?void 0:i.includes("PLAY"))&&e("div",{class:s.song},[r("演奏")]),e("div",{class:s.author},[t.composer])])])])}),!n.detailLoading&&n.RECOMMEND.length===0&&e("div",{class:s.empty},[e(h,{description:"暂无曲目"},null)])]})]),e("div",{class:[s.section,s.hotSection]},[e("div",{class:s.sectionTitle},[e("img",{src:Ee,class:s.imgTitle},null),e("div",{class:s.moreBtn,onClick:()=>m("HOT")},[r("更多")])]),e(v,null,{default:()=>[n.HOT.map((t,a)=>{var l,i;return e("div",{class:s.item,onClick:()=>{g(t)}},[e("div",{class:[s.num,a===0?s.num1:"",a===1?s.num2:"",a===2?s.num3:""]},[(a+1).toString().padStart(2,"0")]),e("div",{class:s.img},[e("img",{referrerpolicy:"no-referrer",src:t.titleImg},null)]),e("div",{class:s.infos},[e("div",{class:s.topName},[e(S,{text:t.musicSheetName},null)]),e("div",{class:s.types},[e("div",{class:s.hot},[e("span",null,[d(t.usedNum)])]),((l=t.audioPlayTypes)==null?void 0:l.includes("SING"))&&e("div",{class:s.sing},[r("演唱")]),((i=t.audioPlayTypes)==null?void 0:i.includes("PLAY"))&&e("div",{class:s.song},[r("演奏")]),e("div",{class:s.author},[t.composer])])])])}),!n.detailLoading&&n.HOT.length===0&&e("div",{class:s.empty},[e(h,{description:"暂无曲目"},null)])]})]),e("div",{class:[s.section,s.newSection]},[e("div",{class:s.sectionTitle},[e("img",{src:ke,class:s.imgTitle},null),e("div",{class:s.moreBtn,onClick:()=>m("NEW")},[r("更多")])]),e(v,null,{default:()=>[n.NEW.map((t,a)=>{var l,i;return e("div",{class:s.item,onClick:()=>{g(t)}},[e("div",{class:[s.num,a===0?s.num1:"",a===1?s.num2:"",a===2?s.num3:""]},[(a+1).toString().padStart(2,"0")]),e("div",{class:s.img},[e("img",{referrerpolicy:"no-referrer",src:t.titleImg},null)]),e("div",{class:s.infos},[e("div",{class:s.topName},[e(S,{text:t.musicSheetName},null)]),e("div",{class:s.types},[e("div",{class:s.hot},[e("span",null,[d(t.usedNum)])]),((l=t.audioPlayTypes)==null?void 0:l.includes("SING"))&&e("div",{class:s.sing},[r("演唱")]),((i=t.audioPlayTypes)==null?void 0:i.includes("PLAY"))&&e("div",{class:s.song},[r("演奏")]),e("div",{class:s.author},[t.composer])])])])}),!n.detailLoading&&n.NEW.length===0&&e("div",{class:s.empty},[e(h,{description:"暂无曲目"},null)])]})])]})]),e(J,{show:n.previewModal,"onUpdate:show":t=>n.previewModal=t,type:"music",params:n.previewParams},null)])}}}),Qe=Object.freeze(Object.defineProperty({__proto__:null,default:Me,formatUsedNum:d},Symbol.toStringTag,{value:"Module"}));export{Ye as a,d as f,Qe as i};
|