1 |
- !function(){function e(e,n,t,a,r,i,o){try{var c=e[i](o),u=c.value}catch(l){return void t(l)}c.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 o=n.apply(t,a);function c(n){e(o,r,i,c,u,"next",n)}function u(n){e(o,r,i,c,u,"throw",n)}c(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_wg0y2_1 .van-sticky{background:url(./assets/bgImg.2964f21d.png) no-repeat top center;background-size:100% 5.70667rem}._listContainer_wg0y2_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_wg0y2_5 ._line_wg0y2_17{margin:0 .4rem;width:.02667rem;height:.26667rem;background:#e8e8e8}._listContainer_wg0y2_5 ._active_wg0y2_23{color:#333}._label_wg0y2_26{margin-right:.21333rem;font-size:.37333rem;color:#fff}._label_wg0y2_26 .van-list__loading,._label_wg0y2_26 .van-list__finished-text,._label_wg0y2_26 .van-list__error-text{width:100%}._label_wg0y2_26 .iconfont-down{margin-left:.10667rem}._alumnList_wg0y2_39{padding:0 .32rem;border-radius:.48rem;background-color:#fff;margin:.37333rem}._bgImg_wg0y2_45{position:fixed;top:0;left:0;width:100%;height:5.70667rem;z-index:-1}._tagTabs_wg0y2_53 .van-tabs__nav{background-color:transparent;padding:0}._tagTabs_wg0y2_53 .van-tab{font-size:.42667rem;font-weight:700;color:#fff}._tagTabs_wg0y2_53 .van-tab--shrink{padding:0;margin:.4rem}._tagTabs_wg0y2_53 .van-tab--active{color:#fff}._tagTabs_wg0y2_53 .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_wg0y2_53 .van-tab--active .van-tab__text{z-index:1}._tagTabs_wg0y2_53 .van-tabs__line{height:0}._fleg_wg0y2_87{display:flex;align-items:center;font-size:.37333rem;font-weight:600}._fleg_wg0y2_87 span{padding-top:.08rem}._fleg_wg0y2_87 .van-switch{margin-right:.13333rem;border-color:rgba(255,255,255,.3);background:#9ec6fa}._fleg_wg0y2_87 .van-switch__node{background:rgba(255,255,255,.51)}._fleg_wg0y2_87 .van-switch--on{background:#62c4ab}._fleg_wg0y2_87 .van-switch--on .van-switch__node{background:#ffffff}\n',document.head.appendChild(i),System.register(["./index-legacy.396370dc.js","./index-legacy.131fc015.js","./index-legacy.364d3043.js","./index-legacy.f72d11a4.js","./index-legacy.3b03d5e2.js","./index-legacy.9dc8887a.js","./index-legacy.551b68d8.js","./select-tag-legacy.95664cc8.js","./music-legacy.476aa529.js","./select-subject-legacy.aa24837d.js","./hooks-legacy.fc1d8d94.js","./index-legacy.5473412f.js","./index-legacy.67ecd3de.js","./index-legacy.f26c6944.js","./index-legacy.2efc356e.js","./use-tab-status-legacy.8178268d.js","./use-id-legacy.ef6ad63d.js","./use-refs-legacy.0835e65c.js","./index-legacy.64d896a6.js","./index-legacy.97f306d3.js","./index-legacy.04c2af98.js","./index-legacy.00784d74.js","./index-legacy.55b17da0.js","./index-legacy.6e10cd37.js","./index-legacy.9a3146b4.js","./icon_uploader-legacy.b178a553.js","./icon-xin-legacy.34fb9986.js","./icon_album-legacy.27017c0f.js","./icon_album_active-legacy.fcd6f4c0.js","./icon_exquisite-legacy.80eb242a.js","./icon_music_active-legacy.77693573.js","./index-legacy.88ccb3b2.js","./icon-play-legacy.50b88257.js"],(function(e){"use strict";var t,r,i,o,c,u,l,s,f,g,d,p,m,b,y,v,_,h,w,A,j,S,x,k,C,I,E,T,R,B;return{setters:[function(e){t=e.d,r=e.x,i=e.g,o=e.S,c=e.O,u=e.P,l=e.Q,s=e.U,f=e.f,g=e.j,d=e.F,p=e.z,m=e.M,b=e.bf,y=e.C,v=e.aR},function(e){_=e.L},function(e){h=e.S},function(){},function(){},function(e){w=e.T,A=e.a},function(e){j=e.S},function(e){S=e.S},function(e){x=e.g},function(e){k=e.S},function(e){C=e.a,I=e.S},function(e){E=e.S},function(e){T=e.C},function(e){R=e.c},function(e){B=e.T},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var O="_sticky_wg0y2_1",P="_label_wg0y2_26",N="_alumnList_wg0y2_39",U="_bgImg_wg0y2_45",D="_tagTabs_wg0y2_53",z="_fleg_wg0y2_87",H=function(){};e("default",t({name:"MusicList",props:{hideSearch:{type:Boolean,default:!1},defauleParams:{type:Object,default:function(){return{}}},onItemClick:{type:Function,default:H},teacherId:{type:String||Number,default:""},myself:{type:Boolean,default:!1}},setup:function(e,t){var F=e.hideSearch,L=e.defauleParams,J=e.onItemClick,M=e.teacherId,X=e.myself,V=t.expose,q=R(r(i.platformApi+"/MusicTag/tree",{params:{type:"MUSIC"}}),null),Q=(q.isLoading,q.state),Y=o({id:"",name:""});if("TEACHER"===i.platformType){var Z=i.user.data;Y.value={name:Z.defaultSubjectName||"全部声部",id:Z.defaultSubject||""}}else{if(!C(I.SEARCH).id){var K=i.user.data,G=K.subjectId?Number(K.subjectId.split(",")[0]):"",W=K.subjectName?K.subjectName.split(",")[0]:"";G&&C(I.SEARCH,JSON.stringify({id:G,name:W}),"set")}}localStorage.setItem("behaviorId",x());var $=c(),ee=u(),ne={};i.version&&(ne.version=i.version||"",ne.platform="STUDENT"===i.platformType?"ios-student":"ios-teacher");var te=o(!1);if(!F){if("TEACHER"===i.platformType)ne.subjectIds=Y.value.id;else{var ae=C(I.SEARCH);ne.subjectIds=ae.id}var re=C(I.MUSIC_FREE);te.value=re.chargeType}var ie=l(a(a({search:$.query.search||"",musicTagIds:$.query.tagids||"",page:1},L),ne)),oe=o(null),ce=o(!1),ue=o(!1),le=o(!1),se=o(!1),fe=o(!0),ge=o("STUDENT"===i.platformType?"/api-student":"/api-teacher"),de=function(e){ie.page=1,ie.search=e,oe.value=null,pe()},pe=function(){var e=n(regeneratorRuntime.mark((function e(){var n,t,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ce.value){e.next=2;break}return e.abrupt("return");case 2:return ce.value=!0,le.value=!1,n=a(a({},ie),{},{auditStatus:"PASS",idAndName:ie.search,createBy:M}),te.value&&(n.chargeType="FREE"),n.myself=!!X,e.prev=7,e.next=10,r.post("".concat(ge.value,"/music/sheet/list"),{data:n});case 10:t=e.sent,oe.value&&(o=((null===(i=oe.value)||void 0===i?void 0:i.rows)||[]).concat(t.data.rows||[]),oe.value.rows=o),oe.value=oe.value||t.data,ie.page=t.data.pageNo+1,ue.value=t.data.pageNo>=t.data.totalPage,e.next=20;break;case 17:e.prev=17,e.t0=e.catch(7),le.value=!0;case 20:ce.value=!1;case 21:case"end":return e.stop()}}),e,null,[[7,17]])})));return function(){return e.apply(this,arguments)}}(),me=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)}}(),be=function(e){var n={};for(var t in e)-1===Number(t)?te.value=!!e[t][0]:n[t]=e[t];var a=Object.values(n).flat().filter(Boolean).join(",");ie.musicTagIds=a,ie.page=1,oe.value=null,pe(),se.value=!1},ye=function(e){ie.page=1,ie.subjectIds=e.id,oe.value=null,"TEACHER"===i.platformType?(Y.value={name:e.name,id:e.id},me(e.id)):(_e.id=e.id,_e.name=e.name,C(I.SEARCH,JSON.stringify({id:e.id,name:e.name}),"set")),pe(),_e.show=!1},ve=C(I.SEARCH),_e=l({show:!1,name:ve.id?ve.name:"全部声部",id:ve.id||""});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 fe.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?fe.value=!0:fe.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]])})))),V({onSearch:de,onComfirm:be,onComfirmSubject:ye}),function(){var e=Q.value&&Q.value.data||[];return g(d,null,[!F&&g(d,null,[g(B,{class:O},{default:function(){return[g(T,{background:"transparent",isFixed:!1,border:!1,backIconColor:"white",color:"#fff"},{right:function(){return!fe.value&&g("span",{class:z,onClick:function(){te.value,te.value,C(I.MUSIC_FREE,JSON.stringify({chargeType:te.value}),"set"),oe.value=null,ie.page=1,pe()}},[g(h,{modelValue:te.value,"onUpdate:modelValue":function(e){return te.value=e},size:"20px"},null),g("span",null,[p("免费")])])}}),g(j,{onSearch:de,background:"transparent",inputBackground:"transparent",leftIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA6BJREFUWEe9l2molVUUhp+32YKoSBNEKAoriawfShRhpIRNVkg/kiCHhCAzikiEjEQztJnyRzRB9SOwb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y4grMIqlb51iezlwV/WH40RdMSYAZTtuBEKQ5pwbxwygQFwX/QSIR0wopfljClAgFgDnAwsl7f0PfUtCHGOyShkAAAAASUVORK5CYII="},{left:function(){return g("div",{class:P,onClick:function(){return _e.show=!0}},["TEACHER"===i.platformType?Y.value.name:_e.name,g(m,{classPrefix:"iconfont",name:"down",size:12,color:"#fff"},null)])}}),g(w,{shrink:!0,class:D,lineHeight:0,"onClick-tab":function(e){ie.musicTagIds=e.name,oe.value=null,ie.page=1,pe()}},{default:function(){return[g(A,{title:"全部",name:""},null),e.map((function(e){return g(A,{title:e.name,name:e.id},null)}))]}})]}}),g("img",{class:U,src:"./assets/bgImg.2964f21d.png"},null)]),g("div",{class:N},[g(_,{loading:ce.value,finished:ue.value,"finished-text":(oe.value&&oe.value.rows.length,""),onLoad:pe,error:le.value},{default:function(){return[oe.value&&oe.value.rows.length?g(E,{list:oe.value.rows,onDetail:function(e){if(J===H){var n=location.origin+location.pathname+"#/music-detail?id="+e.id;b(n,(function(){ee.push({path:"/music-detail",query:{id:e.id}})}))}else null==J||J(e)}},null):!ce.value&&g(y,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}})]),g(v,{show:se.value,round:!0,closeable:!0,position:"bottom",style:{height:"60%"},teleport:"body","onUpdate:show":function(e){return se.value=e}},{default:function(){return[g(S,{exquisiteFlag:!0,onConfirm:be,onCancel:function(){},defaultValue:$.query.tagids},null)]}}),g(v,{show:_e.show,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:function(){return _e.show=!1},onClosed:function(){return _e.show=!1}},{default:function(){return[g(k,{type:"MUSIC",searchParams:"TEACHER"===i.platformType?Y.value:_e,onComfirm:ye},null)]}})])}}}))}}}))}();
|