1 |
- !function(){function e(e,n,t,a,r,i,l){try{var o=e[i](l),u=o.value}catch(c){return void t(c)}o.done?n(u):Promise.resolve(u).then(a,r)}function n(n){return function(){var t=this,a=arguments;return new Promise((function(r,i){var l=n.apply(t,a);function o(n){e(l,r,i,o,u,"next",n)}function u(n){e(l,r,i,o,u,"throw",n)}o(void 0)}))}}function t(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function a(e){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?t(Object(a),!0).forEach((function(n){r(e,n,a[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))}))}return e}function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var i=document.createElement("style");i.innerHTML='._sticky_lhjbw_1 .van-sticky{background:url(./assets/bgImg.2964f21d.png) no-repeat top center;background-size:100% 5.70667rem}._listContainer_lhjbw_5{padding-top:.05333rem;height:1.12rem;display:flex;align-items:center;justify-content:center;background:#fff;font-size:.42667rem;font-weight:600;color:#999;line-height:.58667rem}._listContainer_lhjbw_5 ._line_lhjbw_17{margin:0 .4rem;width:.02667rem;height:.26667rem;background:#e8e8e8}._listContainer_lhjbw_5 ._active_lhjbw_23{color:#333}._searchGroup_lhjbw_26{background-color:#f8f9fc}._searchGroup_lhjbw_26 .van-search{padding-top:0;padding-bottom:.32rem}._label_lhjbw_33{margin-right:.21333rem;font-size:.37333rem;color:#fff}._label_lhjbw_33._searchs_lhjbw_38{color:#131415}._label_lhjbw_33 .van-list__loading,._label_lhjbw_33 .van-list__finished-text,._label_lhjbw_33 .van-list__error-text{width:100%}._label_lhjbw_33 .iconfont-down{margin-left:.10667rem}._alumnList_lhjbw_49{padding:0 .32rem;border-radius:.48rem;background-color:#fff;margin:.37333rem}._alumnList_lhjbw_49._alumnListOnly_lhjbw_55{margin-top:0}._bgImg_lhjbw_58{position:fixed;top:0;left:0;width:100%;height:5.70667rem;z-index:-1}._tagTabs_lhjbw_66 .van-tabs__nav{background-color:transparent;padding:0}._tagTabs_lhjbw_66 .van-tab{font-size:.42667rem;font-weight:700;color:#fff}._tagTabs_lhjbw_66 .van-tab--shrink{padding:0;margin:.4rem}._tagTabs_lhjbw_66 .van-tab--active{color:#fff}._tagTabs_lhjbw_66 .van-tab--active:after{content:" ";display:inline-block;width:96%;position:absolute;height:.18667rem;background:#2dc7aa;border-radius:.10667rem;bottom:-.05333rem;left:2%;transition:all ease .3s}._tagTabs_lhjbw_66 .van-tab--active .van-tab__text{z-index:1}._tagTabs_lhjbw_66 .van-tabs__line{height:0}._fleg_lhjbw_100{display:flex;align-items:center;font-size:.37333rem;font-weight:600}._fleg_lhjbw_100 span{padding-top:.08rem}._fleg_lhjbw_100 .van-switch{margin-right:.13333rem;border-color:rgba(255,255,255,.3);background:#9ec6fa}._fleg_lhjbw_100 .van-switch__node{background:rgba(255,255,255,.51)}._fleg_lhjbw_100 .van-switch--on{background:#62c4ab}._fleg_lhjbw_100 .van-switch--on .van-switch__node{background:#ffffff}\n',document.head.appendChild(i),System.register(["./ResizeObserver.es-legacy.8d60aee1.js","./index-legacy.6a5df59c.js","./index-legacy.c07bb851.js","./index-legacy.97f6ac87.js","./index-legacy.7e047c4c.js","./index-legacy.183eabe8.js","./index-legacy.897f3849.js","./select-tag-legacy.60962399.js","./music-legacy.33d8b690.js","./select-subject-legacy.71ec8501.js","./hooks-legacy.f81762aa.js","./index-legacy.c6de691c.js","./index-legacy.87bcd48f.js","./index-legacy.bbc2b10e.js","./index-legacy.4f8bc5f4.js","./use-tab-status-legacy.1f35f332.js","./use-id-legacy.54528695.js","./use-refs-legacy.82f31dee.js","./index-legacy.610f0a70.js","./index-legacy.78ce4f6b.js","./index-legacy.a85d660d.js","./index-legacy.5e551733.js","./index-legacy.4e5c868b.js","./index-legacy.6e10cd37.js","./index-legacy.af745e4d.js","./icon_uploader-legacy.6fd22d7f.js","./icon-xin-legacy.4bf69856.js","./icon_album-legacy.06fe8c1c.js","./icon_album_active-legacy.4391adb4.js","./icon_exquisite-legacy.24bc10bb.js","./icon_music_active-legacy.51780227.js","./index-legacy.4a75d877.js","./icon-play-legacy.50b88257.js"],(function(e){"use strict";var t,r,i,l,o,u,c,s,f,d,g,b,m,p,h,v,_,j,y,w,A,S,I,x,k,C,E,T,R,B,O;return{setters:[function(e){t=e.d,r=e.y,i=e.g,l=e.U,o=e.P,u=e.Q,c=e.S,s=e.V,f=e.f,d=e.j,g=e.F,b=e.A,m=e.N,p=e.be,h=e.C,v=e.aS},function(e){_=e.S},function(e){j=e.L},function(e){y=e.S},function(){},function(e){w=e.T,A=e.a},function(e){S=e.S},function(e){I=e.S},function(e){x=e.g},function(e){k=e.S},function(e){C=e.a,E=e.S},function(e){T=e.S},function(e){R=e.C},function(e){B=e.c},function(e){O=e.T},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var N="_sticky_lhjbw_1",P="_searchGroup_lhjbw_26",U="_label_lhjbw_33",D="_searchs_lhjbw_38",H="_alumnList_lhjbw_49",z="_alumnListOnly_lhjbw_55",L="_bgImg_lhjbw_58",F="_tagTabs_lhjbw_66",J="_fleg_lhjbw_100",M=function(){};e("default",t({name:"MusicList",props:{hideSearch:{type:Boolean,default:!1},onlySearch:{type:Boolean,default:!1},height:{type:Number,default:0},defauleParams:{type:Object,default:function(){return{}}},onItemClick:{type:Function,default:M},teacherId:{type:String||Number,default:""},myself:{type:Boolean,default:!1}},setup:function(e,t){var V=e.hideSearch,X=e.onlySearch,q=e.height,G=e.defauleParams,Q=e.onItemClick,Y=e.teacherId,Z=e.myself,K=t.expose,W=B(r(i.platformApi+"/MusicTag/tree",{params:{type:"MUSIC"}}),null),$=(W.isLoading,W.state),ee=l(q||0),ne=l({id:"",name:""});if("TEACHER"===i.platformType){var te=i.user.data;ne.value={name:te.defaultSubjectName||"全部声部",id:te.defaultSubject||""}}else{if(!C(E.SEARCH).id){var ae=i.user.data,re=ae.subjectId?Number(ae.subjectId.split(",")[0]):"",ie=ae.subjectName?ae.subjectName.split(",")[0]:"",le=ae.instrumentId;localStorage.setItem("userInstrumentId",le),re&&C(E.SEARCH,JSON.stringify({id:re,name:ie}),"set")}}localStorage.setItem("behaviorId",x());var oe=o(),ue=u(),ce={};i.version&&(ce.version=i.version||"",ce.platform="STUDENT"===i.platformType?"ios-student":"ios-teacher");var se=l(!1);if(!V){if("TEACHER"===i.platformType)ce.subjectIds=ne.value.id;else{var fe=C(E.SEARCH);ce.subjectIds=fe.id}var de=C(E.MUSIC_FREE);se.value=de.chargeType}if(X){var ge=C(E.SEARCH);ce.subjectIds=ge.id}var be=c(a(a({search:oe.query.search||"",musicTagIds:oe.query.tagids||"",page:1},G),ce)),me=l(null),pe=l(!1),he=l(!1),ve=l(!1),_e=l(!1),je=l(!0),ye=l("STUDENT"===i.platformType?"/api-student":"/api-teacher"),we=function(e){be.page=1,be.search=e,me.value=null,Ae()},Ae=function(){var e=n(regeneratorRuntime.mark((function e(){var n,t,i,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!pe.value){e.next=2;break}return e.abrupt("return");case 2:return pe.value=!0,ve.value=!1,n=a(a({},be),{},{auditStatus:"PASS",idAndName:be.search,createBy:Y}),se.value&&(n.chargeType="FREE"),n.myself=!!Z,e.prev=7,e.next=10,r.post("".concat(ye.value,"/music/sheet/list"),{data:n});case 10:t=e.sent,me.value&&(l=((null===(i=me.value)||void 0===i?void 0:i.rows)||[]).concat(t.data.rows||[]),me.value.rows=l),me.value=me.value||t.data,be.page=t.data.pageNo+1,he.value=t.data.pageNo>=t.data.totalPage,e.next=20;break;case 17:e.prev=17,e.t0=e.catch(7),ve.value=!0;case 20:pe.value=!1;case 21:case"end":return e.stop()}}),e,null,[[7,17]])})));return function(){return e.apply(this,arguments)}}(),Se=function(){var e=n(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.post("/api-teacher/teacher/defaultSubject",{params:{subjectId:n}});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(n){return e.apply(this,arguments)}}(),Ie=function(e){var n={};for(var t in e)-1===Number(t)?se.value=!!e[t][0]:n[t]=e[t];var a=Object.values(n).flat().filter(Boolean).join(",");be.musicTagIds=a,be.page=1,me.value=null,Ae(),_e.value=!1},xe=function(e){be.page=1,be.subjectIds=e.id,me.value=null,Ee.instrumentId=e.instrumentId,localStorage.setItem("userInstrumentId",e.instrumentId||""),"TEACHER"===i.platformType?(ne.value={name:e.name,id:e.id},Se(e.id)):(Ee.id=e.id,Ee.name=e.name,C(E.SEARCH,JSON.stringify({id:e.id,name:e.name}),"set")),Ae(),Ee.show=!1},ke=C(E.SEARCH),Ce=localStorage.getItem("userInstrumentId")||"";"undefined"===Ce&&(C(E.SEARCH,"","remove"),Ce="");var Ee=c({show:!1,name:ke.id?ke.name:"全部声部",id:ke.id||"",instrumentId:Ce});return s(n(regeneratorRuntime.mark((function e(){var n,t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,f().iPhone){e.next=4;break}return je.value=!1,e.abrupt("return");case 4:return e.next=6,r.get("/api-admin/appVersionInfo/queryByPlatform",{params:{platform:"TEACHER"===i.platformType?"ios-teacher":"ios-student"}});case 6:n=e.sent,t=n.data,i.version>t.version?je.value=!0:je.value=!1,e.next=13;break;case 11:e.prev=11,e.t0=e.catch(0);case 13:case"end":return e.stop()}}),e,null,[[0,11]])})))),K({onSearch:we,onComfirm:Ie,updateStickyHeight:function(e){ee.value=e},onComfirmSubject:xe}),function(){var e=$.value&&$.value.data||[];return d(g,null,[!V&&d(g,null,[d(O,{class:N},{default:function(){return[d(R,{background:"transparent",isFixed:!1,border:!1,backIconColor:"white",color:"#fff"},{right:function(){return!je.value&&d("span",{class:J,onClick:function(){se.value,se.value,C(E.MUSIC_FREE,JSON.stringify({chargeType:se.value}),"set"),me.value=null,be.page=1,Ae()}},[d(y,{modelValue:se.value,"onUpdate:modelValue":function(e){return se.value=e},size:"20px"},null),d("span",null,[b("免费")])])}}),d(S,{onSearch:we,background:"transparent",inputBackground:"transparent",leftIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA6BJREFUWEe9l2molVUUhp+32YKoSBNEKAoriawfShRhpIRNVkg/kiCHhCAzikiEjEQztJnyRzRB9SOwbBCKirLBkgoawYIoUAJDi2ikAXljxf4u62y/e8/xnsNd/87+1l7rOXuvvfa7RQ9mezpwCXA2MAU4FjgE+B3YAXwBbAFelPRzDyGHXDSSs+1LgdXAtB6D/g08BtwpaVcvc1oBbB8PPAOc00uQFp8/gVWS1nebvw+A7VnAs2WZh5tv4N+yDSPleB5YICm2qtU6AGzPBl4BDq68I1kE2wy8D+yS9I/to4ETgTnAVcDUlizvAbPDv41gCMD2qcAHwFGVYyS+VdJ3XerlgAJxDzCx8n1K0jXDAtiOf/wJcFpy2gvcIumBbvuYv9ueBLwAxMnJtljSE3Ws/1fA9jLgwepjJL93f5I3vmVrtgEnp/k/AifU9SDbB5azHOSNbZI0bzTJE0Rs6edVPd0s6f4cNwAuLIXXjEexTJX0bT8AZWUfBq5Pcb6UdHoN8BCwNA2+JOnyfpMXgFOAr6pYkyV934zFCnwIzEhOiyQ9OQiAAvF1VQvzJG3KAHuqpjND0scDBHgOyPUUR/ruDBB7nhtPxxL1C2K73uI1klZmgOjb41KiKZK+6TdxOg2PAtemeHdIWpUBdgKTk8N5kt4ZIEC09jhpjS2VtCEDvAZckBxWSlozCADbBwG7gbgzGpsl6a0McFu585uxzySdOSCA+GPxBxuLejtG0h8ZIDrW9irhZZJe7hfC9tZKU2yWNDfHbe6Ct4GZ6UMU4XRJv4wWwvZCoL58LpYUNTFkDUAkD02X9cHroQMlhRbYL7N9LvAGcGiauE1SaMoOy3rgcWBR9T2W8EpJP/RKYPtq4BHg8DTnL+AsSXE5DQtwGPBmUb7Z6SdgHbBBUvSMVrN9RinmUM/ZQr7NlxQybx+rJdl44F0gLpHaonIDMFRTKN74PaFIsjjnbXIskq+QtM72BElxJNtXoBm1fSTwNNBRrb1uQfILIRoX20bba4El0W8kfZpjDSfLYzzu8egRx40i+atFzm23fR9wU4kRj5Y5kj5qYnZ7mBwB3AAsBk7qAhJNJprOeklRvCH14mFT95NfgYskhbruOHYjxi+quX6a/QbEXRJPs62SInhnBdq3xyOlGo7tmStpy4grMIqlb51iezlwV/WH40RdMSYAZTtuBEKQ5pwbxwygQFwX/QSIR0wopfljClAgFgDnAwsl7f0PfUtCHGOyShkAAAAASUVORK5CYII="},{left:function(){return d("div",{class:U,onClick:function(){return Ee.show=!0}},["TEACHER"===i.platformType?ne.value.name:Ee.name,d(m,{classPrefix:"iconfont",name:"down",size:12,color:"#fff"},null)])}}),d(w,{shrink:!0,class:F,lineHeight:0,"onClick-tab":function(e){be.musicTagIds=e.name,me.value=null,be.page=1,Ae()}},{default:function(){return[d(A,{title:"全部",name:""},null),e.map((function(e){return d(A,{title:e.name,name:e.id},null)}))]}})]}}),d("img",{class:L,src:"./assets/bgImg.2964f21d.png"},null)]),X?d(_,{position:"top",offsetTop:ee.value},{default:function(){return[d(S,{onSearch:we,background:"transparent",inputBackground:"white",class:P},{left:function(){return d("div",{class:[U,D],onClick:function(){return Ee.show=!0}},["TEACHER"===i.platformType?ne.value.name:Ee.name,d(m,{classPrefix:"iconfont",name:"down",size:12,color:"#949597"},null)])}})]}}):"",d("div",{class:[H,X&&z]},[d(j,{loading:pe.value,finished:he.value,"finished-text":(me.value&&me.value.rows.length,""),onLoad:Ae,error:ve.value},{default:function(){return[me.value&&me.value.rows.length?d(T,{list:me.value.rows,onDetail:function(e){if(Q===M){var n=location.origin+location.pathname+"#/music-detail?id="+e.id+"&instrumentId="+Ee.instrumentId;p(n,(function(){ue.push({path:"/music-detail",query:{id:e.id,instrumentId:Ee.instrumentId}})}))}else null==Q||Q(e)}},null):!pe.value&&d(h,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}})]),d(v,{show:_e.value,round:!0,closeable:!0,position:"bottom",style:{height:"60%"},teleport:"body","onUpdate:show":function(e){return _e.value=e}},{default:function(){return[d(I,{exquisiteFlag:!0,onConfirm:Ie,onCancel:function(){},defaultValue:oe.query.tagids},null)]}}),d(v,{show:Ee.show,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:function(){return Ee.show=!1},onClosed:function(){return Ee.show=!1}},{default:function(){return[d(k,{type:"MUSIC",searchParams:"TEACHER"===i.platformType?ne.value:Ee,onComfirm:xe},null)]}})])}}}))}}}))}();
|