| 1 |
- !function(){function e(e,t,n,a,r,i,o){try{var c=e[i](o),l=c.value}catch(u){return void n(u)}c.done?t(l):Promise.resolve(l).then(a,r)}function t(t){return function(){var n=this,a=arguments;return new Promise((function(r,i){var o=t.apply(n,a);function c(t){e(o,r,i,c,l,"next",t)}function l(t){e(o,r,i,c,l,"throw",t)}c(void 0)}))}}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function a(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach((function(t){r(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=document.createElement("style");i.innerHTML='._sticky_17ytw_1 .van-sticky{background:url(./assets/bgImg.2964f21d.png) no-repeat top center;background-size:100% 5.70667rem}._listContainer_17ytw_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_17ytw_5 ._line_17ytw_17{margin:0 .4rem;width:.02667rem;height:.26667rem;background:#e8e8e8}._listContainer_17ytw_5 ._active_17ytw_23{color:#333}._searchGroup_17ytw_26{background-color:#f8f9fc}._searchGroup_17ytw_26 .van-search{padding-top:0;padding-bottom:.32rem}._label_17ytw_33{margin-right:.21333rem;font-size:.37333rem;color:#fff}._label_17ytw_33._searchs_17ytw_38{color:#131415}._label_17ytw_33._labelActive_17ytw_41 .iconfont-down{transform:rotate(180deg) translateY(.02667rem)}._label_17ytw_33 .van-list__loading,._label_17ytw_33 .van-list__finished-text,._label_17ytw_33 .van-list__error-text{width:100%}._label_17ytw_33 .iconfont-down{margin-left:.10667rem}._woringHeader_17ytw_52{display:flex;align-items:center;height:var(--van-nav-bar-height)}._woringHeader_17ytw_52 ._leftArrow_17ytw_57{padding:0 var(--k-padding-md);margin-right:0;color:#fff}._woringHeader_17ytw_52 ._tabSection_17ytw_62{flex:1;display:flex;align-items:center;justify-content:space-between;--van-tab-font-size: .42667rem;--van-tabs-line-height: .74667rem;--van-tab-text-color: rgba(51, 51, 51, .5);--van-tab-active-text-color: #333333;--van-tabs-nav-background: transparent;--van-padding-xs: 0}._woringHeader_17ytw_52 ._tabSection_17ytw_62 ._moreIcon_17ytw_74{display:flex;align-items:center;position:relative}._woringHeader_17ytw_52 ._tabSection_17ytw_62 .van-tabs__nav{background-color:transparent}._woringHeader_17ytw_52 ._tabSection_17ytw_62 .van-tabs__line{display:inline-block;width:.8rem;height:.18667rem;background:#2dc7aa;border-radius:.10667rem;bottom:.48rem}._woringHeader_17ytw_52 ._tabSection_17ytw_62 .van-tab{font-size:.42667rem;color:#fff}._woringHeader_17ytw_52 ._tabSection_17ytw_62 .van-tab--active{font-weight:700}._woringHeader_17ytw_52 ._tabSection_17ytw_62 .van-tab__text{line-height:normal}._woringHeader_17ytw_52 ._tabSection_17ytw_62 .van-tab--shrink{padding:0 .58667rem;z-index:9}._alumnList_17ytw_104{padding:0 .32rem;border-radius:.26667rem .26667rem .21333rem .21333rem;background-color:#fff;margin:0 0 .37333rem;min-height:5.33333rem}._alumnList_17ytw_104._alumnListOnly_17ytw_111{margin-top:0}._bgImg_17ytw_114{position:fixed;top:0;left:0;width:100%;height:5.70667rem;z-index:-1}._tagTabs_17ytw_122 .van-tabs__nav{background-color:transparent;padding:0}._tagTabs_17ytw_122 .van-tab{font-size:.42667rem;font-weight:700;color:#fff}._tagTabs_17ytw_122 .van-tab--shrink{padding:0;margin:.4rem}._tagTabs_17ytw_122 .van-tab--active{color:#fff}._tagTabs_17ytw_122 .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_17ytw_122 .van-tab--active .van-tab__text{z-index:1}._tagTabs_17ytw_122 .van-tabs__line{height:0}._fleg_17ytw_156{display:flex;align-items:center;font-size:.37333rem;font-weight:600}._fleg_17ytw_156 span{padding-top:.08rem}._fleg_17ytw_156 .van-switch{margin-right:.13333rem;border-color:rgba(255,255,255,.3);background:#9ec6fa}._fleg_17ytw_156 .van-switch__node{background:rgba(255,255,255,.51)}._fleg_17ytw_156 .van-switch--on{background:#62c4ab}._fleg_17ytw_156 .van-switch--on .van-switch__node{background:#ffffff}._popupContainer_17ytw_179 ._popupTitle_17ytw_179{position:sticky;z-index:1;top:0;text-align:center;font-weight:600;font-size:.48rem;color:#333;line-height:.64rem;padding:.48rem 0 .32rem}._popupContainer_17ytw_179 ._popupSearchList_17ytw_190{min-height:30vh;max-height:50vh;overflow:hidden auto}._popupContainer_17ytw_179 ._popupSection_17ytw_195{padding:0 .42667rem .48rem}._popupContainer_17ytw_179 ._popupSection_17ytw_195 ._title_17ytw_198{display:flex;justify-content:space-between;padding-bottom:.26667rem}._popupContainer_17ytw_179 ._popupSection_17ytw_195 ._title_17ytw_198 span{display:flex;align-items:center;font-weight:600;font-size:.4rem;color:#333;line-height:.48rem}._popupContainer_17ytw_179 ._popupSection_17ytw_195 ._title_17ytw_198 span:before{content:"";display:inline-block;width:.08rem;height:.32rem;background:linear-gradient(180deg,#59e5d4 0%,#2dc7aa 100%);border-radius:.05333rem;margin-right:.10667rem}._popupContainer_17ytw_179 ._popupSection_17ytw_195 ._timeCount_17ytw_220{display:flex;align-items:center}._popupContainer_17ytw_179 ._popupSection_17ytw_195 ._timeCount_17ytw_220 p{margin-left:.26667rem;flex:1;background:#f8f8f8;border:.02667rem solid #f8f8f8;border-radius:.10667rem;font-size:.34667rem;color:#999;line-height:.48rem;text-align:center;padding:.16rem 0}._popupContainer_17ytw_179 ._popupSection_17ytw_195 ._timeCount_17ytw_220 p:first-child{margin-left:0}._popupContainer_17ytw_179 ._popupSection_17ytw_195 ._timeCount_17ytw_220 p._active_17ytw_23{background:#e9fff8;border-radius:.10667rem;border:.02667rem solid #2dc7aa;color:#2dc7aa}._popupContainer_17ytw_179 ._popupSection_17ytw_195 ._timeSubject_17ytw_245{flex-wrap:wrap;margin-left:-.13333rem;margin-right:-.13333rem}._popupContainer_17ytw_179 ._popupSection_17ytw_195 ._timeSubject_17ytw_245 p{width:calc(25% - .26667rem);padding:.16rem .08rem;margin:0 .13333rem .24rem;flex:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box}._popupContainer_17ytw_179 ._popupSection_17ytw_195 ._timeSubject_17ytw_245 p:first-child{margin-left:.13333rem}._popupContainer_17ytw_179 ._popupBottom_17ytw_264{position:sticky;z-index:1;bottom:0;border-top:.02667rem solid #f2f2f2;padding:.53333rem .34667rem .8rem;display:flex;align-items:center}._popupContainer_17ytw_179 ._popupBottom_17ytw_264 .van-button{font-size:.42667rem}._popupContainer_17ytw_179 ._popupBottom_17ytw_264 .van-button+.van-button{margin-left:.4rem}\n',document.head.appendChild(i),System.register(["./ResizeObserver.es-legacy.26eb1cf8.js","./index-legacy.2dd07630.js","./index-legacy.152e9b86.js","./index-legacy.bc57a550.js","./index-legacy.8f2400a4.js","./index-legacy.ff2f71f0.js","./select-tag-legacy.cefb5e6e.js","./music-legacy.9253d058.js","./hooks-legacy.36497d7b.js","./index-legacy.bef9996e.js","./index-legacy.3e126537.js","./index-legacy.0df036fa.js","./index-legacy.a0dc622a.js","./use-tab-status-legacy.2e7d0aaa.js","./use-id-legacy.8c265e97.js","./use-refs-legacy.17b286cd.js","./index-legacy.aa58f7fa.js","./index-legacy.df4f1e2f.js","./index-legacy.60604421.js","./index-legacy.088735eb.js","./index-legacy.0c774398.js","./index-legacy.6e10cd37.js","./index-legacy.74928a74.js","./icon_uploader-legacy.db3a8c90.js","./icon-xin-legacy.18ed4a9d.js","./icon_album-legacy.d489a774.js","./icon_album_active-legacy.d2829e23.js","./icon_exquisite-legacy.178b582f.js","./icon_music_active-legacy.cc68af68.js","./index-legacy.5c4870ce.js","./icon-play-legacy.50b88257.js"],(function(e){"use strict";var n,r,i,o,c,l,u,s,_,p,f,d,g,y,m,w,b,v,h,S,x,A,k,j,C,T,I,B,O,E,N;return{setters:[function(e){n=e.d,r=e.y,i=e.g,o=e.U,c=e.S,l=e.P,u=e.Q,s=e.V,_=e.f,p=e.j,f=e.F,d=e.n,g=e.A,y=e.N,m=e.be,w=e.C,b=e.aS,v=e.B},function(e){h=e.S},function(e){S=e.L},function(){},function(e){x=e.T,A=e.a},function(e){k=e.S},function(e){j=e.S},function(e){C=e.g},function(e){T=e.b,I=e.S},function(e){B=e.S},function(e){O=e.C},function(e){E=e.c},function(e){N=e.T},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var z="_sticky_17ytw_1",P="_active_17ytw_23",R="_searchGroup_17ytw_26",H="_label_17ytw_33",D="_searchs_17ytw_38",U="_labelActive_17ytw_41",L="_woringHeader_17ytw_52",J="_leftArrow_17ytw_57",F="_tabSection_17ytw_62",V="_alumnList_17ytw_104",X="_alumnListOnly_17ytw_111",q="_bgImg_17ytw_114",G="_popupContainer_17ytw_179",M="_popupTitle_17ytw_179",Y="_popupSearchList_17ytw_190",Q="_popupSection_17ytw_195",Z="_title_17ytw_198",K="_timeCount_17ytw_220",W="_timeSubject_17ytw_245",$="_popupBottom_17ytw_264",ee=function(){};e("default",n({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:ee},teacherId:{type:String||Number,default:""},myself:{type:Boolean,default:!1}},setup:function(e,n){var te=e.hideSearch,ne=e.onlySearch,ae=e.height,re=e.defauleParams,ie=e.onItemClick,oe=e.teacherId,ce=e.myself,le=n.expose,ue=E(r(i.platformApi+"/MusicTag/tree",{params:{type:"MUSIC"}}),null),se=(ue.isLoading,ue.state),_e=o(ae||0),pe=c({searchStatus:!1,tagId:"",chargeType:""}),fe=o({id:"",name:""});if("TEACHER"===i.platformType){var de=i.user.data;fe.value={name:de.defaultSubjectName||"全部声部",id:de.defaultSubject||""}}else{var ge=i.user.data.instrumentId;localStorage.setItem("userInstrumentId",ge)}localStorage.setItem("behaviorId",C());var ye=l(),me=u(),we={};i.version&&(we.version=i.version||"",we.platform="STUDENT"===i.platformType?"ios-student":"ios-teacher");var be=o(!1);if(!te){if("TEACHER"===i.platformType)we.subjectIds=fe.value.id;else{var ve=i.user.data,he=ve.subjectId?Number(ve.subjectId.split(",")[0]):"";we.subjectIds=he}var Se=T(I.MUSIC_FREE);be.value=Se.chargeType}var xe=c(a(a({search:ye.query.search||"",musicSortType:ye.query.type||"",musicTagIds:ye.query.tagids||"",chargeType:"",page:1},re),we)),Ae=o(null),ke=o(!1),je=o(!1),Ce=o(!1),Te=o(!1),Ie=o(!0),Be=o("STUDENT"===i.platformType?"/api-student":"/api-teacher"),Oe=function(e){xe.page=1,xe.search=e,Ae.value=null,Ee()},Ee=function(){var e=t(regeneratorRuntime.mark((function e(){var t,n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ke.value){e.next=2;break}return e.abrupt("return");case 2:return ke.value=!0,Ce.value=!1,t=a(a({},xe),{},{auditStatus:"PASS",idAndName:xe.search,createBy:oe}),be.value&&(t.chargeType="FREE"),t.myself=!!ce,e.prev=7,e.next=10,r.post("".concat(Be.value,"/music/sheet/list"),{data:t});case 10:n=e.sent,Ae.value&&(o=((null===(i=Ae.value)||void 0===i?void 0:i.rows)||[]).concat(n.data.rows||[]),Ae.value.rows=o),Ae.value=Ae.value||n.data,xe.page=n.data.pageNo+1,je.value=n.data.pageNo>=n.data.totalPage,e.next=20;break;case 17:e.prev=17,e.t0=e.catch(7),Ce.value=!0;case 20:ke.value=!1;case 21:case"end":return e.stop()}}),e,null,[[7,17]])})));return function(){return e.apply(this,arguments)}}(),Ne=function(e){var t={};for(var n in e)-1===Number(n)?be.value=!!e[n][0]:t[n]=e[n];var a=Object.values(t).flat().filter(Boolean).join(",");xe.musicTagIds=a,xe.page=1,Ae.value=null,Ee(),Te.value=!1};return s(t(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,_().iPhone){e.next=4;break}return Ie.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:t=e.sent,n=t.data,i.version>n.version?Ie.value=!0:Ie.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]])})))),le({onSearch:Oe,onComfirm:Ne,updateStickyHeight:function(e){_e.value=e},onComfirmSubject:function(e){}}),function(){var e=se.value&&se.value.data||[];return p(f,null,[!te&&p(f,null,[p(N,{class:z},{default:function(){return[p(O,{background:"transparent",isFixed:!1},{content:function(){return p("div",{class:L},[p("i",{onClick:function(){_().isApp?d({api:"back"}):me.back()},class:["van-badge__wrapper van-icon van-icon-arrow-left van-nav-bar__arrow",J]},null),p(x,{class:F,active:xe.musicSortType,"onUpdate:active":function(e){return xe.musicSortType=e},shrink:!0,"onClick-tab":function(e){xe.musicSortType=e.name,Oe(xe.search)}},{default:function(){return[p(A,{name:"",title:"全部"},null),p(A,{name:"TOP",title:"推荐"},null),p(A,{name:"HOT",title:"热门"},null),p(A,{name:"NEW",title:"最新"},null)]}})])}}),p(k,{onSearch:Oe,background:"transparent",inputBackground:"transparent",leftIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA6BJREFUWEe9l2molVUUh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H14mFT95NfgYskhbruOHYjxi+quX6a/QbEXRJPs62SInhnBdq3xyOlGo7tmStpy4grMIqlb51iezlwV/WH40RdMSYAZTtuBEKQ5pwbxwygQFwX/QSIR0wopfljClAgFgDnAwsl7f0PfUtCHGOyShkAAAAASUVORK5CYII="},{left:function(){return p("div",{class:[H,pe.searchStatus?U:""],onClick:function(){return pe.searchStatus=!0}},[g("筛选"),p(y,{classPrefix:"iconfont",name:"down",size:12,color:"#fff"},null)])}})]}}),p("img",{class:q,src:"./assets/bgImg.2964f21d.png"},null)]),ne?p(h,{position:"top",offsetTop:_e.value},{default:function(){return[p(k,{onSearch:Oe,background:"transparent",inputBackground:"white",class:R},{left:function(){return p("div",{class:[H,D,pe.searchStatus?U:""],onClick:function(){return pe.searchStatus=!0}},[g("筛选"),p(y,{classPrefix:"iconfont",name:"down",size:12,color:"#333"},null)])}})]}}):"",p("div",{class:[V,ne&&X]},[p(S,{loading:ke.value,finished:je.value,"finished-text":(Ae.value&&Ae.value.rows.length,""),onLoad:Ee,error:Ce.value},{default:function(){return[Ae.value&&Ae.value.rows.length?p(B,{list:Ae.value.rows,onDetail:function(e){if(ie===ee){var t=location.origin+location.pathname+"#/music-detail?id="+e.id;m(t,(function(){me.push({path:"/music-detail",query:{id:e.id}})}))}else null==ie||ie(e)}},null):!ke.value&&p(w,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}})]),p(b,{show:Te.value,round:!0,closeable:!0,position:"bottom",style:{height:"60%"},teleport:"body","onUpdate:show":function(e){return Te.value=e}},{default:function(){return[p(j,{exquisiteFlag:!0,onConfirm:Ne,onCancel:function(){},defaultValue:ye.query.tagids},null)]}}),p(b,{round:!0,closeable:!0,"safe-area-inset-bottom":!0,position:"bottom",show:pe.searchStatus,"onUpdate:show":function(e){return pe.searchStatus=e}},{default:function(){return[p("div",{class:G},[p("div",{class:M},[g("筛选")]),p("div",{class:Y},[p("div",{class:Q},[p("div",{class:Z},[p("span",null,[g("标签")])]),p("div",{class:[K,W]},[p("p",{class:""===pe.tagId?P:"",onClick:function(){return pe.tagId=""}},[g("全部")]),e.map((function(e){return p("p",{class:pe.tagId===e.id?P:"",onClick:function(){pe.tagId=e.id}},[e.name])}))])]),p("div",{class:Q},[p("div",{class:Z},[p("span",null,[g("类型")])]),p("div",{class:[K,W]},[p("p",{class:""===pe.chargeType?P:"",onClick:function(){return pe.chargeType=""}},[g("全部曲目")]),p("p",{class:"VIP"===pe.chargeType?P:"",onClick:function(){pe.chargeType="VIP"}},[g("会员曲目")]),p("p",{class:"CHARGE"===pe.chargeType?P:"",onClick:function(){pe.chargeType="CHARGE"}},[g("点播曲目")]),p("p",{class:"FREE"===pe.chargeType?P:"",onClick:function(){pe.chargeType="FREE"}},[g("免费曲目")])])])]),p("div",{class:$},[p(v,{round:!0,block:!0,type:"default",onClick:function(){pe.tagId=JSON.parse(JSON.stringify(xe.musicTagIds)),pe.chargeType=JSON.parse(JSON.stringify(xe.chargeType))}},{default:function(){return[g("重置")]}}),p(v,{round:!0,block:!0,type:"primary",onClick:function(){xe.musicTagIds=JSON.parse(JSON.stringify(pe.tagId)),xe.chargeType=JSON.parse(JSON.stringify(pe.chargeType)),Ae.value=null,xe.page=1,Ee(),pe.searchStatus=!1}},{default:function(){return[g("确定")]}})])])]}})])}}}))}}}))}();
|