1 |
- !function(){function e(e,a,n,t,r,i,o){try{var c=e[i](o),u=c.value}catch(l){return void n(l)}c.done?a(u):Promise.resolve(u).then(t,r)}function a(a){return function(){var n=this,t=arguments;return new Promise((function(r,i){var o=a.apply(n,t);function c(a){e(o,r,i,c,u,"next",a)}function u(a){e(o,r,i,c,u,"throw",a)}c(void 0)}))}}function n(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);a&&(t=t.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),n.push.apply(n,t)}return n}function t(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?n(Object(t),!0).forEach((function(a){r(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):n(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}function r(e,a,n){return a in e?Object.defineProperty(e,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[a]=n,e}var i=document.createElement("style");i.innerHTML="._memberHeader_8rwah_1{position:relative;z-index:1;background:url(./assets/bg-image.e89554da.png) no-repeat top center;background-size:100% 7.06667rem}._headerImg_8rwah_7{position:fixed!important;left:0;top:0;width:100%;height:7.06667rem;-o-object-fit:cover;object-fit:cover;filter:blur(.26667rem)}._headerContent_8rwah_16 .van-search__content{background:rgba(255,255,255,.5)!important}._headerContent_8rwah_16 .van-search__content input::-moz-placeholder{color:rgba(0,0,0,.4)!important}._headerContent_8rwah_16 .van-search__content input::placeholder{color:rgba(0,0,0,.4)!important}._headerContent_8rwah_16 .van-search__content input,._headerContent_8rwah_16 .van-search__content .van-field__clear{color:rgba(0,0,0,.4)!important}._sticky_8rwah_28 .van-sticky--fixed{box-shadow:.26667rem .26667rem .26667rem var(--box-shadow-color)}._label_8rwah_31{margin-right:.21333rem;font-size:.37333rem}._label_8rwah_31 .van-list__loading,._label_8rwah_31 .van-list__finished-text,._label_8rwah_31 .van-list__error-text{width:100%}._label_8rwah_31 .iconfont-down{margin-left:.10667rem}._musicGrid_8rwah_43{margin:.42667rem .32rem}._tagTabs_8rwah_46 .van-tabs__nav{background-color:transparent;padding:0;margin:0 .4rem}._tagTabs_8rwah_46 .van-tab{font-size:.42667rem;font-weight:700}._tagTabs_8rwah_46 .van-tab--shrink{padding:0;margin:.26667rem 0;display:inline-block;font-size:.37333rem;background:transparent;border-radius:.37333rem;line-height:.69333rem;padding:0 .32rem;color:rgba(0,0,0,.4)}._tagTabs_8rwah_46 .van-tab--active{background:#FF699E;color:#fff}._tagTabs_8rwah_46 .van-tab--active .van-tab__text{z-index:1}._tagTabs_8rwah_46 .van-tabs__line{height:0}\n",document.head.appendChild(i),System.register(["./index-legacy.fba2875c.js","./index-legacy.a7012d0a.js","./index-legacy.edb65d0c.js","./index-legacy.af00a324.js","./index-legacy.5aeab789.js","./index-legacy.d92f7da7.js","./index-legacy.fc679d65.js","./select-subject-legacy.91071995.js","./hooks-legacy.148eb332.js","./index-legacy.2374f896.js","./index-legacy.33680739.js","./index-legacy.e7460ea1.js","./index-legacy.0e744c22.js","./bg-image-legacy.44e2b3db.js","./use-tab-status-legacy.8752ccde.js","./use-id-legacy.db87b112.js","./use-refs-legacy.2affcb61.js","./index-legacy.7dcec7b3.js","./index-legacy.8921f068.js","./index-legacy.78361179.js","./index-legacy.1c1cdc6c.js","./icon-xin-legacy.98015baf.js","./index-legacy.40eca993.js","./use-height-legacy.233a2ec8.js"],(function(e){"use strict";var n,r,i,o,c,u,l,s,d,f,m,p,b,h,g,_,v,y,w,j,x,T,C,S,O;return{setters:[function(e){n=e.d,r=e.w,i=e.g,o=e.S,c=e.P,u=e.O,l=e.Q,s=e.j,d=e.F,f=e.M,m=e.C,p=e.aR},function(e){b=e.L},function(){},function(){},function(e){h=e.T,g=e.a},function(e){_=e.I},function(e){v=e.S},function(e){y=e.S},function(e){w=e.a,j=e.S},function(e){x=e.M},function(e){T=e.b},function(e){C=e.C},function(e){S=e.T},function(e){O=e.b},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var k="_memberHeader_8rwah_1",E="_headerImg_8rwah_7",A="_headerContent_8rwah_16",P="_label_8rwah_31",R="_musicGrid_8rwah_43",H="_tagTabs_8rwah_46";e("default",n({name:"Album",props:{hideSearch:{type:Boolean,default:!1},defauleParams:{type:Object,default:function(){return{}}}},setup:function(e,n){var I=e.hideSearch,N=e.defauleParams,z=n.expose,L=T(r(i.platformApi+"/MusicTag/tree",{params:{type:"ALBUM"}}),null),M=(L.isLoading,L.state),D=o({id:"",name:""});if("TEACHER"===i.platformType){var B=i.user.data;D.value={name:B.defaultSubjectName||"全部声部",id:B.defaultSubject||""}}else{if(!w(j.SEARCH).id){var F=i.user.data,G=F.subjectId?Number(F.subjectId.split(",")[0]):"",U=F.subjectName?F.subjectName.split(",")[0]:"";G&&w(j.SEARCH,JSON.stringify({id:G,name:U}),"set")}}var q=c(),J=u(),Q={};if(i.version&&(Q.version=i.version||"",Q.platform="STUDENT"===i.platformType?"ios-student":"ios-teacher"),Q.myself=!1,!I)if("TEACHER"===i.platformType)Q.subjectIds=D.value.id;else{var V=w(j.SEARCH);Q.subjectIds=V.id}var K=l(t(t({search:J.query.search||"",albumTagIds:J.query.tagids||"",page:1},N),Q)),W=o(null),X=o(!1),Y=o(!1),Z=o(!1),$=o(!1),ee=function(e){K.page=1,K.search=e,W.value=null,ae()},ae=function(){var e=a(regeneratorRuntime.mark((function e(){var a,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!X.value){e.next=2;break}return e.abrupt("return");case 2:return X.value=!0,Z.value=!1,e.prev=4,e.next=7,r.post("/music/album/list",{prefix:"TEACHER"===i.platformType?"/api-teacher":"/api-student",data:t(t({},K),{},{idAndName:K.search})});case 7:a=e.sent,W.value&&(o=((null===(n=W.value)||void 0===n?void 0:n.rows)||[]).concat(a.data.rows||[]),W.value.rows=o),W.value=W.value||a.data,K.page=a.data.pageNo+1,Y.value=a.data.pageNo>=a.data.totalPage,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),Z.value=!0;case 17:X.value=!1;case 18:case"end":return e.stop()}}),e,null,[[4,14]])})));return function(){return e.apply(this,arguments)}}(),ne=function(){var e=a(regeneratorRuntime.mark((function e(a){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:a}});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(a){return e.apply(this,arguments)}}(),te=function(e){K.page=1,K.subjectIds=e.id,W.value=null,"TEACHER"===i.platformType?(D.value={name:e.name,id:e.id},ne(e.id)):(ie.id=e.id,ie.name=e.name,w(j.SEARCH,JSON.stringify({id:e.id,name:e.name}),"set")),ae(),ie.show=!1};z({onSearch:ee,onComfirm:function(e){var a=Object.values(e).flat().filter(Boolean).join(",");K.albumTagIds=a,K.page=1,W.value=null,ae(),$.value=!1},onComfirmSubject:te});var re=w(j.SEARCH),ie=l({show:!1,name:re.name||"全部声部",id:re.id||""});return function(){var e=M.value&&M.value.data||[];return s("div",null,[s(b,{loading:X.value,finished:Y.value,"finished-text":W.value&&W.value.rows.length?"没有更多了":"",onLoad:ae,error:Z.value},{default:function(){return[!I&&s(d,null,[s(S,{position:"top"},{default:function(){return[s(C,{class:k,background:"transparent",border:!1,isFixed:!1,color:"#131415"},{default:function(){return s("div",{class:A},[s(v,{type:"tenant",modelValue:K.search,onSearch:ee,placeholder:"请输入专辑名称 ",background:"transparent"},{left:function(){return s("div",{class:P,onClick:function(){return ie.show=!0}},["TEACHER"===i.platformType?D.value.name:ie.name,s(f,{classPrefix:"iconfont",name:"down",size:12,color:"#333"},null)])}}),s(h,{shrink:!0,class:H,lineHeight:0,"onClick-tab":function(e){K.albumTagIds=e.name,W.value=null,K.page=1,ae()}},{default:function(){return[s(g,{title:"全部",name:""},null),e.map((function(e){return s(g,{title:e.name,name:e.id},null)}))]}})])}})]}}),s(_,{class:E,src:O},null)]),W.value&&W.value.rows.length?s("div",{class:R},[s(x,{list:W.value.rows,onGoto:function(e){q.push({name:"music-album-detail",params:{id:e.id}})}},null)]):!X.value&&s(m,{tips:"暂无专辑",classImgSize:"SMALL",btnStatus:!1},null)]}}),s(p,{show:ie.show,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:function(){return ie.show=!1},onClosed:function(){return ie.show=!1}},{default:function(){return[s(y,{type:"ALBUM",searchParams:"TEACHER"===i.platformType?D.value:ie,onComfirm:te},null)]}})])}}}))}}}))}();
|