1 |
- System.register(["./index-legacy-ce78c738-1742453567105.js","./index-legacy-3488db51-1742453567105.js","./catchData-legacy-f25603b9-1742453567105.js","./contants-legacy-71300fc2-1742453567105.js","./index-legacy-2cd4976e-1742453567105.js","./index-legacy-ca663cd3-1742453567105.js","./index-legacy-ec2bbd8c-1742453567105.js","./api-legacy-ee106cc3-1742453567105.js","./urlUtils-legacy-935965d2-1742453567105.js","./index-legacy-27bde1f1-1742453567105.js","./Scrollbar-legacy-1dde85ae-1742453567105.js","./deep-clone-legacy-0f45d9f6-1742453567105.js","./index-legacy-4139913c-1742453567105.js","./Slider-legacy-4c0b77ff-1742453567105.js","./index-legacy-f890cc63-1742453567105.js","./index-legacy-ed3340d7-1742453567105.js","./icon_default-legacy-fa9bb009-1742453567105.js","./useSpeak-legacy-ca8796b3-1742453567105.js","./api-legacy-fedbad8e-1742453567105.js","./icon-pan-legacy-9492b61b-1742453567105.js","./utils-legacy-116b088e-1742453567105.js","./index-legacy-74cf5b3f-1742453567105.js","./ding-legacy-f3656c17-1742453567105.js","./searchArray-legacy-c1ca6842-1742453567105.js","./index-legacy-944fd788-1742453567105.js","./index-legacy-a8927998-1742453567105.js","./api-legacy-5caaccee-1742453567105.js","./Cascader-legacy-c9540d54-1742453567105.js","./index-legacy-ac5912a3-1742453567105.js","./api-legacy-b7c3c77b-1742453567105.js","./api-legacy-76b89ffd-1742453567105.js","./teacherIcon-legacy-3eeb62c3-1742453567105.js","./index-legacy-e20eb073-1742453567105.js","./index-legacy-9a132ece-1742453567105.js","./index-legacy-6327fa14-1742453567105.js"],(function(e,t){"use strict";var a,n,i,l,s,o,r,c,_,d,m,u,w,p,q,h,g,v,f,b,y,I,S,x,A,N,j,T,C,k,M,E,O,P,B,G;return{setters:[e=>{a=e.C},e=>{n=e.d,i=e.e,l=e.a5,s=e.J,o=e.q,r=e.f,c=e.N,_=e.g,d=e.x,m=e.aL,u=e.a8,w=e.b4,p=e.r,q=e.ai,h=e.a,g=e.c,v=e.ap,f=e.t,b=e.v,y=e.a9,I=e.k,S=e.ak,x=e.z,A=e.aS,N=e.b9},e=>{j=e.u},e=>{T=e.a},e=>{C=e.a,k=e.f},e=>{M=e.T},e=>{E=e.T},e=>{O=e.c},e=>{P=e.v},e=>{B=e.P},e=>{G=e.N},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){var F=document.createElement("style");F.textContent='._xiaokuDetail_1q6wq_1{min-height:100%;display:flex;flex-direction:column}._xiaokuDetail_1q6wq_1 img{-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none}._detailContainer_1q6wq_20{flex:1 auto;background:#ffffff;border-radius:1.04166667vw}._detailContainer_1q6wq_20 .n-tabs-tab-pad{width:2.08333333vw!important}._detailContainer_1q6wq_20 .n-tabs-nav{padding:1.14583333vw 1.66666667vw .9375vw}._detailContainer_1q6wq_20 .n-tabs-tab{color:#8b8d98;font-size:max(1.04166667rem,15Px);padding-top:.41666667vw;padding-bottom:.41666667vw;line-height:1.45833333vw}._detailContainer_1q6wq_20 .n-tabs-tab.n-tabs-tab--active{font-weight:600!important;color:#131415!important}._detailContainer_1q6wq_20 .n-tabs-tab__label{z-index:10}._detailContainer_1q6wq_20 .n-tabs-bar{height:.52083333vw;background:linear-gradient(90deg,#77bbff 0%,rgba(163,231,255,.22) 100%);z-index:0;bottom:.41666667vw;transition-duration:.03}._detailContainer_1q6wq_20 .n-tabs-bar--disabled{background-color:#fff!important}._detailContainer_1q6wq_20 .n-tab-pane{padding-top:0!important}._detailContainer_1q6wq_20 ._inputSearch_1q6wq_58{width:25vw}._detailContainer_1q6wq_20 ._inputSearch_1q6wq_58 .n-button{padding:0 1.25vw;color:#fff;--n-border: none !important;background:linear-gradient(312deg,#1b7af8 0%,#3cbbff 100%)}._detailContainer_1q6wq_20 ._inputSearch_1q6wq_58 .n-input__input-el{color:#000}._detailContainer_1q6wq_20 ._searchSection_1q6wq_70{position:sticky;top:0;margin:0 1.66666667vw;z-index:10}._detailContainer_1q6wq_20 ._searchSectionHide_1q6wq_76{visibility:hidden;opacity:0;height:0!important;line-height:0!important}._searchGroup_1q6wq_82{background:#fff;border-radius:.625vw;padding:0 0 1.5625vw;position:relative}._searchGroup_1q6wq_82._searchGroupOnly_1q6wq_88{padding-bottom:.3125vw}._searchGroup_1q6wq_82 ._hideItem_1q6wq_91{visibility:hidden;opacity:0;height:0!important;line-height:0!important}._searchGroup_1q6wq_82 ._btnType_1q6wq_97{gap:0px 1.25vw!important}._searchGroup_1q6wq_82 ._btnType_1q6wq_97 .n-button{height:1.92708333vw;padding:0 1.25vw;font-size:.9375rem;color:rgba(0,0,0,.6)}._searchGroup_1q6wq_82 ._btnType_1q6wq_97 .n-button.n-button--primary-type{font-weight:700;color:#fff}._searchGroup_1q6wq_82 .n-form{position:relative}._searchGroup_1q6wq_82 .n-form-item .n-form-item-label,._searchGroup_1q6wq_82 .n-form-item .n-form-item-blank{min-height:auto!important}._searchGroup_1q6wq_82 .n-form-item .n-form-item-label__text{font-size:max(.88541667rem,13Px);display:flex;align-items:center;padding:.20833333vw 0;font-weight:600;color:#131415;line-height:1.25vw}._searchGroup_1q6wq_82 .n-form-item .n-button{height:1.66666667vw;font-size:max(.88541667rem,13Px);border-radius:.41666667vw;color:rgba(0,0,0,.6)}._searchGroup_1q6wq_82 .n-form-item .n-button--primary-type{color:#131415;background-color:#d2ecff!important}._searchGroup_1q6wq_82 .n-form-item-feedback-wrapper{min-height:.72916667vw}._searchGroup_1q6wq_82 ._moreSearch_1q6wq_139{position:absolute;bottom:0;left:50%;transform:translate(-50%);font-size:max(.88541667rem,12Px);color:#198cfe;cursor:pointer;width:11.5625vw;line-height:1.77083333vw;display:flex;align-items:center;justify-content:center}._searchGroup_1q6wq_82 ._moreSearch_1q6wq_139:after{content:"";display:inline-block;width:.625vw;height:.625vw;background:url('+new URL("icon-arrow-up-529efbee.svg",t.meta.url).href+') no-repeat center;background-size:contain;margin-left:.3125vw;margin-top:-1px}._searchGroup_1q6wq_82 ._moreSearch_1q6wq_139._activeSearch_1q6wq_163:after{transform:rotate(180deg)}._teachingModal_1q6wq_166{width:57.29166667vw}._spaceSection_1q6wq_169{width:100%;transition:1s all ease-in}._spaceSection_1q6wq_169>div{height:1.77083333vw!important;display:flex!important;align-items:center;line-height:var(--n-blank-height)}._collapseWrap_1q6wq_179{width:98%;display:flex;flex-direction:row;align-items:flex-end}._collaoseGroup_1q6wq_185{position:absolute;display:flex;align-items:center;padding-left:.41666667vw}._collaoseBtn_1q6wq_191{width:1.66666667vw;height:1.66666667vw;cursor:pointer}._collaoseBtn_1q6wq_191._isStart_1q6wq_196{transform:rotate(-180deg)}._isHidden_1q6wq_199{overflow:hidden;transition:1s all ease-in}._hideButton_1q6wq_203{visibility:hidden;height:0!important;line-height:0!important}._popSelect_1q6wq_208{font-size:.83333333rem;width:10.41666667vw;box-shadow:0 .10416667vw .83333333vw rgba(0,0,0,.08);border-radius:.57291667vw;--n-option-height: 1.77083333vw}._popSelect_1q6wq_208 .n-base-select-option__content{width:80%!important}._spaceSection2_1q6wq_218{width:100%;transition:1s all ease-in;padding-right:2.08333333vw}._textBtn_1q6wq_223{background:transparent;border-radius:.41666667vw;padding:.20833333vw .83333333vw;font-size:max(.88541667rem,13Px);color:rgba(0,0,0,.6);background:#F5F6FA;cursor:pointer;display:flex;align-items:center;font-weight:500;line-height:1.25vw}._textBtn_1q6wq_223 ._iconArrow_1q6wq_236{display:inline-block;margin-left:.41666667vw;width:.41666667vw;height:.26041667vw;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAKCAYAAAC5Sw6hAAAAAXNSR0IArs4c6QAAAQBJREFUKFOVkbFOAkEQhuffCx3l7VwsNCY8wnZUNNjwCMbnMBRWJob3MD4CjTRUdvsIJEYLs7NX0pHbMUdOgnocMN1kvvlmMgM6Esx8UyMi8tqFoquYM99q0ueagcFdKfJyiD8oYuZxlXRORL2meZMZTERk0SZrFeX5hSNUS1Xt7zcBWJNmo7L88n9l/0TMPEhKb6rKrZMBMaChiKx+DdlPiqLgKmktGXQeFlhlBsMQgvxwu42stX1VWiqRO/bJ7fGJPECjGOO6yYmcc733j885qY5PkewYYHF9dTnx3m+2G1lbzJKm+7MkDWxgZjGGaSOy06T0SETZmbJkYB5iDE/f85tbC9QPlh0AAAAASUVORK5CYII=) no-repeat center center / contain;transform:rotate(180deg)}._textBtn_1q6wq_223:hover,._textBtn_1q6wq_223._textBtnActive_1q6wq_245{background:#D2ECFF;font-weight:500;color:#131415}._textBtn_1q6wq_223:hover ._iconArrow_1q6wq_236{transform:rotate(0)}._sectionContainer_1q6wq_253{padding:0 1.66666667vw 1.25vw;gap:1.25vw;flex:1 auto;display:flex;flex-wrap:wrap}._sectionContainer_1q6wq_253._noSearchContainer_1q6wq_260{padding-top:0}._wrapList_1q6wq_263{min-height:100%;height:calc(100vh - 13.75vw)}._wrapList_1q6wq_263._wrapListEmpty_1q6wq_267 .n-scrollbar-content{min-height:100%;display:flex;flex-direction:column}._wrapList_1q6wq_263._wrapListEmpty_1q6wq_267 ._empty_1q6wq_272{height:100%;flex:1 auto}._wrapList_1q6wq_263 ._loadingSection_1q6wq_276{min-height:calc(100vh - 13.75vw)}._wrapList_1q6wq_263 ._loadingSectionEmpty_1q6wq_279{display:flex;flex-direction:column}._empty_1q6wq_272{display:flex;align-items:center;justify-content:center}._loadingWrap_1q6wq_288{display:flex;justify-content:center;min-height:4.16666667vw;position:relative}._loadingWrap_1q6wq_288._showLoading_1q6wq_294{height:0;opacity:0;min-height:0;display:none}._sectionItem_1q6wq_300{display:flex;align-items:center;padding:1.04166667vw;border-radius:.625vw;width:20.9375vw;background:#f5f6f7;cursor:pointer;transition:all .2s ease;border:.10416667vw solid #f7f8f9;box-sizing:border-box}._sectionItem_1q6wq_300:hover{transform:scale(1.01);border:.10416667vw solid #007afe;transition:all .2s ease}._sectionItem_1q6wq_300 ._img_1q6wq_317{width:3.125vw;height:3.125vw;background:#ddf2ff;border-radius:.41666667vw;overflow:hidden;margin-right:.83333333vw}._sectionItem_1q6wq_300 ._img_1q6wq_317 img{width:inherit;height:inherit}._sectionItem_1q6wq_300 ._infos_1q6wq_329{display:flex;flex-direction:column}._sectionItem_1q6wq_300 ._infos_1q6wq_329 ._topName_1q6wq_333{font-weight:600;font-size:max(1.04166667rem,14Px);color:#131415;line-height:1.45833333vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:14.0625vw}._sectionItem_1q6wq_300 ._infos_1q6wq_329 ._topName_1q6wq_333 span{color:#198cfe;font-weight:700}._sectionItem_1q6wq_300 ._infos_1q6wq_329 ._types_1q6wq_347{display:flex;padding-top:.20833333vw}._sectionItem_1q6wq_300 ._infos_1q6wq_329 ._types_1q6wq_347>div{margin-right:.20833333vw}._sectionItem_1q6wq_300 ._infos_1q6wq_329 ._types_1q6wq_347 ._hot_1q6wq_354{background:#fff3f3;border-radius:.15625vw;border:1px solid rgba(254,67,67,.5);font-size:max(.625rem,11Px);color:#fe4343;padding:0 .26041667vw;line-height:14Px;display:flex;align-items:center}._sectionItem_1q6wq_300 ._infos_1q6wq_329 ._types_1q6wq_347 ._hot_1q6wq_354:before{content:"";display:inline-block;width:.52083333vw;height:.625vw;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAMAAADNlS1EAAAA9lBMVEUAAAD/bGb/Ul7/bnr/VF3/Q17/TF//X1//Tl7/P1//b1n/Ol//P1//a1r/alr/OWD/UV3/Z1r/WF7/SWD/OmD/b1v/XVz/UWH/SWb/VF3/Y1v/YFr/alv/QF//ZFr/YVz/WF3/aVr/SF7/XFz/TF7/ZVr/VF3/T1z/aFr/cVn/XVz/P17/UV3/d1j/S13/c1n/V1z/aFz/OGD/XVv/Tl3/WV3/SV3/dVn/cFr/b1n/cV3/OGH/X1r/VFz/T1z/Z1n/Wlv/WFv/XFv/ZFr/V1z/UVz/Ylr/SF3/Ol//RV7/Pl7/Ql7/YVr/bFn/aVn/TF3/Sl3/cFgC4AhdAAAAPHRSTlMACjwF9qFbF/Hq593NsaOaj4BaU1NCLR8R+vr29fLr6ufm49XPx8XBvb23s62tqqaYjo2MhnlwbWBTNDJyAgToAAABBklEQVQY02XR13KDMBAF0AUb3LvjOL333ptAVCPAYPz/P5NVYSaO90lz5nLZkUBO5e5Dg7V5WDY/1/BqmWXd/+FmluW0s2ob3Kg/WMFOnlN/Ntup/bEvbv6ckBcAXTV/71LMzYnnncBjVVrtqDTHfbMUdrkR4jmOG1hhuIk0mFBfGpIV2vYrLkMv8VNhrrBFXYMnWlogrYhGcIYmCOvQiiiKDdhXdcF5H2Pc4jZsl3U69KWle3Cg6m4B4F5Y0oBruV2dbzc9jtM0SVowlL81gY/JjfVAO8ScfaFepYHGfgD0LdzEBDk3jLFnfhhW7YWu0GCsVxGnyWnxrrDdGkM5I0Ne+XQsYr8qIkCzZAWpZAAAAABJRU5ErkJggg==) no-repeat center;background-size:contain;margin-right:.15625vw;vertical-align:middle}._sectionItem_1q6wq_300 ._infos_1q6wq_329 ._types_1q6wq_347 ._hot_1q6wq_354 span{vertical-align:text-top}._sectionItem_1q6wq_300 ._infos_1q6wq_329 ._types_1q6wq_347 ._sing_1q6wq_378,._sectionItem_1q6wq_300 ._infos_1q6wq_329 ._types_1q6wq_347 ._song_1q6wq_379{background:#ffffff;font-size:max(.625rem,11Px);border-radius:.15625vw;line-height:16Px;padding:0 .20833333vw;line-height:1;display:flex;align-items:center}._sectionItem_1q6wq_300 ._infos_1q6wq_329 ._types_1q6wq_347 ._sing_1q6wq_378{border:1px solid rgba(243,130,26,.5);color:#f3821a}._sectionItem_1q6wq_300 ._infos_1q6wq_329 ._types_1q6wq_347 ._song_1q6wq_379{border:1px solid rgba(21,178,253,.5);color:#00adff}._sectionItem_1q6wq_300 ._infos_1q6wq_329 ._types_1q6wq_347 ._author_1q6wq_397{color:#777;font-size:max(.72916667rem,12Px);display:flex;align-items:center;line-height:1}\n',document.head.appendChild(F);const V={xiaokuDetail:"_xiaokuDetail_1q6wq_1",detailContainer:"_detailContainer_1q6wq_20",inputSearch:"_inputSearch_1q6wq_58",searchSection:"_searchSection_1q6wq_70",searchSectionHide:"_searchSectionHide_1q6wq_76",searchGroup:"_searchGroup_1q6wq_82",searchGroupOnly:"_searchGroupOnly_1q6wq_88",hideItem:"_hideItem_1q6wq_91",btnType:"_btnType_1q6wq_97",moreSearch:"_moreSearch_1q6wq_139",activeSearch:"_activeSearch_1q6wq_163",teachingModal:"_teachingModal_1q6wq_166",spaceSection:"_spaceSection_1q6wq_169",collapseWrap:"_collapseWrap_1q6wq_179",collaoseGroup:"_collaoseGroup_1q6wq_185",collaoseBtn:"_collaoseBtn_1q6wq_191",isStart:"_isStart_1q6wq_196",isHidden:"_isHidden_1q6wq_199",hideButton:"_hideButton_1q6wq_203",popSelect:"_popSelect_1q6wq_208",spaceSection2:"_spaceSection2_1q6wq_218",textBtn:"_textBtn_1q6wq_223",iconArrow:"_iconArrow_1q6wq_236",textBtnActive:"_textBtnActive_1q6wq_245",sectionContainer:"_sectionContainer_1q6wq_253",noSearchContainer:"_noSearchContainer_1q6wq_260",wrapList:"_wrapList_1q6wq_263",wrapListEmpty:"_wrapListEmpty_1q6wq_267",empty:"_empty_1q6wq_272",loadingSection:"_loadingSection_1q6wq_276",loadingSectionEmpty:"_loadingSectionEmpty_1q6wq_279",loadingWrap:"_loadingWrap_1q6wq_288",showLoading:"_showLoading_1q6wq_294",sectionItem:"_sectionItem_1q6wq_300",img:"_img_1q6wq_317",infos:"_infos_1q6wq_329",topName:"_topName_1q6wq_333",types:"_types_1q6wq_347",hot:"_hot_1q6wq_354",sing:"_sing_1q6wq_378",song:"_song_1q6wq_379",author:"_author_1q6wq_397"};function W(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!u(e)}const L=n({name:"ChildNodeSearch",props:{activeRow:{type:Object,default:()=>({})},list:{type:Array,default:()=>[]},isHide:{type:Boolean,default:!1}},emits:["selectChildTag"],setup(e,{emit:t}){const{activeRow:a}=w(e),n=p({});return l((()=>e.activeRow),(()=>{a.value=e.activeRow,n.value={}})),()=>r(q,null,[a.value?.id&&r(q,null,[r(_,{label:a.value.columnName+":",class:e.isHide&&V.hideItem},{default:()=>[r(d,{class:V.spaceSection},{default:()=>[a.value?.children.map((e=>r("span",{class:[V.textBtn,(a.value.activeIndex||"")==e.id&&V.textBtnActive],onClick:()=>{let i;a.value.activeIndex=e.id;let l="";e.children?(i=[{columnName:e.children[0].columnName,name:"全部",id:""},...e.children],l=e.children[0].columnName,n.value={...e,columnName:l,activeIndex:"",children:i}):n.value={},t("selectChildTag",a.value.activeIndex)}},[e.name])))]})]}),r(L,{isHide:e.isHide,activeRow:n.value,onSelectChildTag:e=>{t("selectChildTag",e||a.value.activeIndex)}},null)])])}}),z=n({name:"search-group",props:{type:{type:String,default:""},musicalInstrumentId:{type:String,default:""}},emits:["search","add"],expose:["init"],setup(e,{emit:t}){const a=j(),n=i({musicTagIds:"",audioPlayTypes:"",bookVersionId:null,subjectId:null}),u=i({showMore:!1,tempSubjectId:null}),w=i({audioPlayTypeList:[],selectParents:{},newTags:[],tags:[],tagActiveId:"",tagActive:{},childSelectId:null});l((()=>e.musicalInstrumentId),(()=>{e.musicalInstrumentId?f():v()})),l((()=>e.type),(()=>{e.musicalInstrumentId||(v(),q())}));const p=s((()=>!!e.type)),q=()=>{t("search",{...n,subjectId:"SING"!==n.audioPlayTypes?n.subjectId:null,audioPlayTypes:n.audioPlayTypes?"PLAY_SING"===n.audioPlayTypes?["PLAY","SING"]:[n.audioPlayTypes]:[],bookVersionId:w.childSelectId||w.tagActiveId})},h=()=>{u.showMore=!u.showMore},g=e=>{const t={};return e?.forEach((e=>{e.id===n.subjectId&&(t.selected=!0,t.name=e.name)})),t},v=()=>{const e=a.getSubjectInstrumentOnly;if(e.length>0){const t=e[0];t.instruments&&t.instruments.length>1?(u.tempSubjectId=t.instruments[0]?.value,n.subjectId=t.instruments[0]?.value):n.subjectId=t.value}},f=()=>{let t=[];a.getSubjectInstrumentOnly.forEach((a=>{e.musicalInstrumentId===a.value?(t=a.instruments||[],n.subjectId=e.musicalInstrumentId,u.tempSubjectId=e.musicalInstrumentId):Array.isArray(a.instruments)&&a.instruments.forEach((i=>{e.musicalInstrumentId===i.value&&(t=a.instruments||[],n.subjectId=e.musicalInstrumentId,u.tempSubjectId=e.musicalInstrumentId)}))})),t.length>0&&g(t)};return o((async()=>{const t=Object.keys(T).map((e=>({value:e,name:T[e]})));w.audioPlayTypeList=[{name:"全部",value:""},...t],await(async()=>{try{const e=(await C()).data||[];w.newTags=[{name:"全部",id:""},...e.map((e=>({name:e.name,id:e.id})))]}catch{}})(),await a.getMusicTagTreeApi(),(()=>{const e=a.getMusicTagTree;e.forEach((e=>{if(e.children&&e.children.length>0){const t=e.children;t?.forEach((e=>{e.children=null}))}})),w.tags=[{columnName:e[0].columnName,name:"全部",id:""},...e],w.tagActiveId=w.tags[0].id})(),await a.getSubjects(),e.musicalInstrumentId?f():v(),q()})),()=>{let e,t,i,l;return r("div",{class:[V.searchGroup,p.value&&V.searchGroupOnly]},[r(c,{labelAlign:"left",labelPlacement:"left"},{default:()=>[w.newTags.length>1&&r(_,{label:"标签:",class:p.value&&V.hideItem},{default:()=>[r(d,{class:V.spaceSection},W(e=w.newTags.map((e=>r("span",{class:[V.textBtn,n.musicTagIds===e.id&&V.textBtnActive],onClick:()=>{n.musicTagIds=e.id,q()}},[e.name]))))?e:{default:()=>[e]})]}),r("div",{class:!u.showMore&&V.hideItem},[w.tags.length>0&&r(_,{label:w.tags[0]?.columnName+":",class:p.value&&V.hideItem},{default:()=>[r(d,{class:V.spaceSection},W(t=w.tags.map((e=>r("span",{class:[V.textBtn,w.tagActiveId===e.id&&V.textBtnActive],onClick:()=>{(e=>{let t;w.tagActiveId=e.id,w.childSelectId=null;let a="";e.children?(t=[{columnName:e.children[0].columnName,name:"全部",id:""},...e.children],a=e.children[0].columnName,w.selectParents={...e,columnName:a,activeIndex:"",children:t}):w.selectParents={},q()})(e)}},[e.name]))))?t:{default:()=>[t]})]}),r(L,{isHide:p.value,activeRow:w.selectParents,onSelectChildTag:e=>{w.childSelectId=e,q()}},null)]),r(_,{label:"场景:",class:[!u.showMore&&V.hideItem,p.value&&V.hideItem]},{default:()=>[r(d,{class:V.spaceSection},W(i=w.audioPlayTypeList.map((e=>r("span",{class:[V.textBtn,n.audioPlayTypes===e.value&&V.textBtnActive],onClick:()=>{n.audioPlayTypes=e.value,q()}},[e.name]))))?i:{default:()=>[i]})]}),("SING"!==n.audioPlayTypes||p.value)&&r(_,{label:"乐器:",class:!u.showMore&&!p.value&&V.hideItem},{default:()=>[r(d,{class:V.spaceSection},W(l=a.getSubjectInstrumentOnly.map((e=>e.instruments&&e.instruments.length>1?r(m,{options:e.instruments,trigger:"hover",scrollable:!0,value:u.tempSubjectId,"onUpdate:value":[e=>u.tempSubjectId=e,()=>{n.subjectId=u.tempSubjectId,q()}],key:e.value,class:[V.popSelect]},{default:()=>[r("span",{class:[V.textBtn,g(e.instruments).selected&&V.textBtnActive]},[g(e.instruments).name||e.name,r("i",{class:V.iconArrow},null)])]}):r("span",{class:[V.textBtn,n.subjectId===e.value&&V.textBtnActive],onClick:()=>{n.subjectId=e.value,u.tempSubjectId=null,q()}},[e.name]))))?l:{default:()=>[l]})]})]}),!p.value&&r("div",{class:[V.moreSearch,u.showMore?V.activeSearch:""],onClick:h},[u.showMore?"收起":"展开"])])}}});e("default",n({name:"xiaoku-detail",setup(){const e=h(),t=g(),n=p([{name:"AI学练",path:"/xiaoku-list"},{name:"曲目列表",path:""}]),l=i({page:1,rows:32,status:!0,searchType:""}),c=i({countPage:1,loading:!0,finshed:!1,reshing:!1,tabName:"",list:[],allSearch:{name:"",musicTagIds:"",audioPlayTypes:null,bookVersionId:null,musicalInstrumentId:null,subjectId:null},hotSearch:{name:"",musicalInstrumentId:null},newSearch:{name:"",musicalInstrumentId:null},recommendSearch:{name:"",musicalInstrumentId:null},previewModal:!1,previewParams:{type:"",src:""}}),_=s((()=>"RECOMMEND"===c.tabName?c.recommendSearch.name:"HOT"===c.tabName?c.hotSearch.name:"NEW"===c.tabName?c.newSearch.name:c.allSearch.name)),d=s((()=>{let e=c.allSearch.musicalInstrumentId;return"RECOMMEND"===c.tabName?e=c.recommendSearch.musicalInstrumentId:"HOT"===c.tabName?e=c.hotSearch.musicalInstrumentId:"NEW"===c.tabName&&(e=c.newSearch.musicalInstrumentId),e}));p();const m=async()=>{1==l.page&&(c.loading=!0);let e={};const{...t}=l;let a={...t,searchType:c.tabName};if("RECOMMEND"===c.tabName)a=Object.assign(a,c.recommendSearch),a.rows=60,a.page=1;else if("HOT"===c.tabName)a=Object.assign(a,c.hotSearch),a.rows=60,a.page=1;else if("NEW"===c.tabName)a=Object.assign(a,c.newSearch),a.rows=60,a.page=1;else{a.name=c.allSearch.name;const{...e}=c.allSearch;a=Object.assign(a,{...e})}try{e=await O(a)}catch(n){console.log(n)}c.reshing&&(c.list=[],c.reshing=!1),200===e?.code&&Array.isArray(e?.data?.rows)?((e?.data?.rows||[]).forEach((e=>{if(e.audioPlayTypeArray=e.audioPlayTypes?e.audioPlayTypes.split(","):[],e.musicSheetName){const t=new RegExp(a.name,"gi"),n=e.musicSheetName.replace(t,"<span>$&</span>");e.musicNameReg=n}})),c.list=[...c.list,...e.data.rows],c.finshed=l.page>=e.data.pages,c.countPage=e.data.pages):c.finshed=!0,c.loading=!1},u=e=>{"back"===e.data?.api&&(N(),c.previewModal=!c.previewModal)};return o((async()=>{e.query.type&&(c.tabName=e.query.type),window.addEventListener("message",u)})),v((()=>{window.removeEventListener("message",u)})),()=>r("div",{class:V.xiaokuDetail},[r(a,{list:n.value},null),r("div",{class:V.detailContainer},[r(f,{paneClass:V.paneTitle,justifyContent:"start",paneWrapperClass:V.paneWrapperContainer,value:c.tabName,"onUpdate:value":[e=>c.tabName=e,e=>{l.page=1,c.finshed=!1,c.reshing=!0,c.list=[],d.value&&m()}]},{default:()=>[r(b,{name:"",tab:"全部曲目"},null),r(b,{name:"RECOMMEND",tab:"推荐曲目"},null),r(b,{name:"HOT",tab:"热门曲目"},null),r(b,{name:"NEW",tab:"最新曲目"},null)],suffix:()=>r(M,{placeholder:"请输入曲目名称",round:!0,value:_.value,"onUpdate:value":e=>{"RECOMMEND"===c.tabName?c.recommendSearch.name=e:"HOT"===c.tabName?c.hotSearch.name=e:"NEW"===c.tabName?c.newSearch.name=e:c.allSearch.name=e},class:V.inputSearch,onSearch:e=>{"RECOMMEND"===c.tabName?c.recommendSearch.name=e:"HOT"===c.tabName?c.hotSearch.name=e:"NEW"===c.tabName?c.newSearch.name=e:c.allSearch.name=e,l.page=1,c.finshed=!1,c.list=[],m()}},null)}),r(G,{class:[[V.wrapList,!c.loading&&0===c.list.length&&V.wrapListEmpty]],onScroll:async e=>{if(c.tabName)return;const t=e.target?.clientHeight,a=e.target?.scrollTop,n=e.target?.scrollHeight;if(t+a+20>=n&&!c.finshed&&!c.loading){if(l.page>=c.countPage)return;l.page=l.page+1,await m()}}},{default:()=>[r(y,{show:c.loading},{default:()=>[r("div",{class:[V.loadingSection,!c.loading&&0===c.list.length&&V.loadingSectionEmpty]},[r("div",{class:[V.searchSection]},[r(z,{type:c.tabName,musicalInstrumentId:d.value,onSearch:e=>{(async e=>{l.page=1,c.reshing=!0,c.finshed=!1;const{subjectId:t,...a}=e;"HOT"===c.tabName?c.hotSearch=Object.assign(c.hotSearch,{musicalInstrumentId:t}):"NEW"==c.tabName?c.newSearch=Object.assign(c.newSearch,{musicalInstrumentId:t}):"RECOMMEND"===c.tabName?c.recommendSearch=Object.assign(c.recommendSearch,{musicalInstrumentId:t}):c.allSearch=Object.assign(c.allSearch,{...a,musicalInstrumentId:t,subjectId:null}),m(),S((()=>{}))})(e)}},null)]),c.list.length>0&&r("div",{class:[V.sectionContainer]},[c.list.map((e=>r("div",{class:V.sectionItem,onClick:()=>(e=>{const a="FIRST"===e.scoreType?"firstTone":"JIAN"===e.scoreType?"fixedTone":"STAVE"===e.scoreType?"staff":"firstTone";let n=`${P()}/instrument?v=${+new Date}&platform=pc&id=${e.id}&Authorization=${t.getToken}&musicRenderType=${a}&showGuide=true&part-index=0`,i="";i="RECOMMEND"===c.tabName?c.recommendSearch.musicalInstrumentId:"HOT"===c.tabName?c.hotSearch.musicalInstrumentId:"NEW"===c.tabName?c.newSearch.musicalInstrumentId:c.allSearch.musicalInstrumentId,i&&(n+="&instrumentId="+i),window.matchMedia("(display-mode: standalone)").matches?(x.application=window.matchMedia("(display-mode: standalone)").matches,c.previewModal=!0,A(),c.previewParams={type:"music",src:n}):window.open(n,+new Date+"")})(e)},[r("div",{class:V.img},[r("img",{referrerpolicy:"no-referrer",src:e.titleImg},null)]),r("div",{class:V.infos},[r("div",{class:V.topName,innerHTML:e.musicNameReg},null),r("div",{class:V.types},[r("div",{class:V.hot},[r("span",null,[k(e.usedNum)])]),e.audioPlayTypes?.includes("SING")&&r("div",{class:V.sing},[I("演唱")]),e.audioPlayTypes?.includes("PLAY")&&r("div",{class:V.song},[I("演奏")]),r("div",{class:V.author},[e.composer])])])])))]),!c.loading&&0===c.list.length&&r("div",{class:V.empty},[r(E,null,null)])])]})]})]),r(B,{show:c.previewModal,"onUpdate:show":e=>c.previewModal=e,type:"music",params:c.previewParams},null)])}}))}}}));
|