1 |
- !function(){function e(e,n,t,a,r,l,i){try{var o=e[l](i),c=o.value}catch(u){return void t(u)}o.done?n(c):Promise.resolve(c).then(a,r)}function n(n){return function(){var t=this,a=arguments;return new Promise((function(r,l){var i=n.apply(t,a);function o(n){e(i,r,l,o,c,"next",n)}function c(n){e(i,r,l,o,c,"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 l=document.createElement("style");l.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(l),System.register(["./ResizeObserver.es-legacy.44b91b4c.js","./index-legacy.3ccba950.js","./index-legacy.43e69380.js","./index-legacy.404bfef6.js","./index-legacy.9d5cae73.js","./index-legacy.cf09c997.js","./index-legacy.bdbc14c4.js","./select-tag-legacy.b87b4746.js","./music-legacy.67d06212.js","./hooks-legacy.5cc9e329.js","./index-legacy.ecec5f0d.js","./index-legacy.6ac2a941.js","./index-legacy.4bad5b90.js","./index-legacy.9696a579.js","./use-tab-status-legacy.d7434e0b.js","./use-id-legacy.ef8b5e97.js","./use-refs-legacy.d925b49f.js","./index-legacy.c8c5bc4e.js","./index-legacy.cae55a25.js","./index-legacy.9d25098b.js","./index-legacy.39123961.js","./index-legacy.23131301.js","./index-legacy.6e10cd37.js","./index-legacy.b257cee5.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.4be048cf.js","./icon-play-legacy.50b88257.js"],(function(e){"use strict";var t,r,l,i,o,c,u,s,f,d,b,g,p,h,_,v,m,j,y,w,A,S,x,k,I,B,T,C,O;return{setters:[function(e){t=e.d,r=e.y,l=e.g,i=e.U,o=e.P,c=e.Q,u=e.S,s=e.V,f=e.f,d=e.j,b=e.F,g=e.A,p=e.bd,h=e.C,_=e.aS},function(e){v=e.S},function(e){m=e.L},function(e){j=e.S},function(){},function(e){y=e.T,w=e.a},function(e){A=e.S},function(e){S=e.S},function(e){x=e.g},function(e){k=e.a,I=e.S},function(e){B=e.S},function(e){T=e.C},function(e){C=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 E="_sticky_lhjbw_1",R="_searchGroup_lhjbw_26",P="_alumnList_lhjbw_49",D="_alumnListOnly_lhjbw_55",N="_bgImg_lhjbw_58",U="_tagTabs_lhjbw_66",z="_fleg_lhjbw_100",L=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:L},teacherId:{type:String||Number,default:""},myself:{type:Boolean,default:!1}},setup:function(e,t){var F=e.hideSearch,H=e.onlySearch,V=e.height,X=e.defauleParams,J=e.onItemClick,M=e.teacherId,q=e.myself,G=t.expose,Q=C(r(l.platformApi+"/MusicTag/tree",{params:{type:"MUSIC"}}),null),Y=(Q.isLoading,Q.state),Z=i(V||0),K=i({id:"",name:""});if("TEACHER"===l.platformType){var W=l.user.data;K.value={name:W.defaultSubjectName||"全部声部",id:W.defaultSubject||""}}else{var $=l.user.data.instrumentId;localStorage.setItem("userInstrumentId",$)}localStorage.setItem("behaviorId",x());var ee=o(),ne=c(),te={};l.version&&(te.version=l.version||"",te.platform="STUDENT"===l.platformType?"ios-student":"ios-teacher");var ae=i(!1);if(!F){if("TEACHER"===l.platformType)te.subjectIds=K.value.id;else{var re=l.user.data,le=re.subjectId?Number(re.subjectId.split(",")[0]):"";te.subjectIds=le}var ie=k(I.MUSIC_FREE);ae.value=ie.chargeType}var oe=u(a(a({search:ee.query.search||"",musicTagIds:ee.query.tagids||"",page:1},X),te)),ce=i(null),ue=i(!1),se=i(!1),fe=i(!1),de=i(!1),be=i(!0),ge=i("STUDENT"===l.platformType?"/api-student":"/api-teacher"),pe=function(e){oe.page=1,oe.search=e,ce.value=null,he()},he=function(){var e=n(regeneratorRuntime.mark((function e(){var n,t,l,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ue.value){e.next=2;break}return e.abrupt("return");case 2:return ue.value=!0,fe.value=!1,n=a(a({},oe),{},{auditStatus:"PASS",idAndName:oe.search,createBy:M}),ae.value&&(n.chargeType="FREE"),n.myself=!!q,e.prev=7,e.next=10,r.post("".concat(ge.value,"/music/sheet/list"),{data:n});case 10:t=e.sent,ce.value&&(i=((null===(l=ce.value)||void 0===l?void 0:l.rows)||[]).concat(t.data.rows||[]),ce.value.rows=i),ce.value=ce.value||t.data,oe.page=t.data.pageNo+1,se.value=t.data.pageNo>=t.data.totalPage,e.next=20;break;case 17:e.prev=17,e.t0=e.catch(7),fe.value=!0;case 20:ue.value=!1;case 21:case"end":return e.stop()}}),e,null,[[7,17]])})));return function(){return e.apply(this,arguments)}}(),_e=function(e){var n={};for(var t in e)-1===Number(t)?ae.value=!!e[t][0]:n[t]=e[t];var a=Object.values(n).flat().filter(Boolean).join(",");oe.musicTagIds=a,oe.page=1,ce.value=null,he(),de.value=!1};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 be.value=!1,e.abrupt("return");case 4:return e.next=6,r.get("/api-admin/appVersionInfo/queryByPlatform",{params:{platform:"TEACHER"===l.platformType?"ios-teacher":"ios-student"}});case 6:n=e.sent,t=n.data,l.version>t.version?be.value=!0:be.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]])})))),G({onSearch:pe,onComfirm:_e,updateStickyHeight:function(e){Z.value=e},onComfirmSubject:function(e){}}),function(){var e=Y.value&&Y.value.data||[];return d(b,null,[!F&&d(b,null,[d(O,{class:E},{default:function(){return[d(T,{background:"transparent",isFixed:!1,border:!1,backIconColor:"white",color:"#fff"},{right:function(){return!be.value&&d("span",{class:z,onClick:function(){ae.value,ae.value,k(I.MUSIC_FREE,JSON.stringify({chargeType:ae.value}),"set"),ce.value=null,oe.page=1,he()}},[d(j,{modelValue:ae.value,"onUpdate:modelValue":function(e){return ae.value=e},size:"20px"},null),d("span",null,[g("免费")])])}}),d(A,{onSearch:pe,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="},null),d(y,{shrink:!0,class:U,lineHeight:0,"onClick-tab":function(e){oe.musicTagIds=e.name,ce.value=null,oe.page=1,he()}},{default:function(){return[d(w,{title:"全部",name:""},null),e.map((function(e){return d(w,{title:e.name,name:e.id},null)}))]}})]}}),d("img",{class:N,src:"./assets/bgImg.2964f21d.png"},null)]),H?d(v,{position:"top",offsetTop:Z.value},{default:function(){return[d(A,{onSearch:pe,background:"transparent",inputBackground:"white",class:R},null)]}}):"",d("div",{class:[P,H&&D]},[d(m,{loading:ue.value,finished:se.value,"finished-text":(ce.value&&ce.value.rows.length,""),onLoad:he,error:fe.value},{default:function(){return[ce.value&&ce.value.rows.length?d(B,{list:ce.value.rows,onDetail:function(e){if(J===L){var n=location.origin+location.pathname+"#/music-detail?id="+e.id;p(n,(function(){ne.push({path:"/music-detail",query:{id:e.id}})}))}else null==J||J(e)}},null):!ue.value&&d(h,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}})]),d(_,{show:de.value,round:!0,closeable:!0,position:"bottom",style:{height:"60%"},teleport:"body","onUpdate:show":function(e){return de.value=e}},{default:function(){return[d(S,{exquisiteFlag:!0,onConfirm:_e,onCancel:function(){},defaultValue:ee.query.tagids},null)]}})])}}}))}}}))}();
|