1 |
- !function(){function e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e,t,a,n,r,i,o){try{var l=e[i](o),c=l.value}catch(u){return void a(u)}l.done?t(c):Promise.resolve(c).then(n,r)}function r(e){return function(){var t=this,a=arguments;return new Promise((function(r,i){var o=e.apply(t,a);function l(e){n(o,r,i,l,c,"next",e)}function c(e){n(o,r,i,l,c,"throw",e)}l(void 0)}))}}var i=document.createElement("style");i.innerHTML="._sticky_4pmkt_1 .van-sticky{background:url(./assets/bg.d0676112.png) no-repeat top center;background-size:100% 9.22667rem}._sticky_4pmkt_1 .van-search__content{background:rgba(255,255,255,.5)!important}._sticky_4pmkt_1 .van-search__content input::-moz-placeholder{color:rgba(0,0,0,.4)!important}._sticky_4pmkt_1 .van-search__content input::placeholder{color:rgba(0,0,0,.4)!important}._sticky_4pmkt_1 .van-search__content input,._sticky_4pmkt_1 .van-search__content .van-field__clear{color:rgba(0,0,0,.4)!important}._sticky_4pmkt_1 .van-search{padding-bottom:0;align-items:flex-start}._sticky_4pmkt_1 .van-dropdown-menu__bar{background-color:transparent;box-shadow:none;padding-right:.4rem;padding-bottom:.26667rem;height:.96rem}._sticky_4pmkt_1 .van-dropdown-menu__title{padding-left:0;color:#131415}._sticky_4pmkt_1 .van-dropdown-menu__title:after{border-color:transparent transparent rgba(0,0,0,.4) rgba(0,0,0,.4)}._sticky_4pmkt_1 .van-dropdown-menu__title.van-dropdown-menu__title--active{color:#fe2451}._sticky_4pmkt_1 .van-dropdown-menu__title.van-dropdown-menu__title--active:after{border-color:transparent transparent #fe2451 #fe2451}._sticky_4pmkt_1 .van-dropdown-item__content{border-radius:0 0 .53333rem .53333rem}._sticky_4pmkt_1 .van-haptics-feedback:active{opacity:1!important}._search_4pmkt_47 .van-search{padding-top:.10667rem}._albumSearchSection_4pmkt_50 .van-dropdown-menu__bar{padding-right:0}._albumSearchTitle_4pmkt_53{color:#f41e4b!important;font-size:.37333rem!important;background-color:#fff!important;padding:.05333rem .56rem 0 .21333rem!important;border-radius:.8rem!important}._albumSearchTitle_4pmkt_53>div{max-width:1.86667rem}._albumSearchTitle_4pmkt_53:after{right:.21333rem!important;border-color:transparent transparent #f41e4b #f41e4b!important}._albumSearchResult_4pmkt_67{padding:.37333rem .26667rem}._albumSearchCell_4pmkt_70{padding:.26667rem}._albumSearchCell_4pmkt_70 ._albumLogo_4pmkt_73{width:1.28rem;height:1.28rem;border-radius:.21333rem;margin-right:.26667rem;overflow:hidden}._albumSearchCell_4pmkt_70 ._albumContent_4pmkt_80{text-align:left}._albumSearchCell_4pmkt_70 ._albumContent_4pmkt_80 h2{font-size:.4rem;font-weight:600;color:#131415;line-height:.56rem;padding-bottom:.13333rem}._albumSearchCell_4pmkt_70 ._albumContent_4pmkt_80 p{font-size:.32rem;color:#777;line-height:.45333rem}._albumSearchCell_4pmkt_70._albumSearchCellActive_4pmkt_95{border-radius:.26667rem;background:#ffeaf3}._albumSearchCell_4pmkt_70._albumSearchCellActive_4pmkt_95 ._iconSelect_4pmkt_99{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABR9JREFUWEetmFtsFVUUhr99ihaQAqJ4QWsi5QEVjZfgBRpilCAKwfBQhOCDUaOQtArGqmAwaOBFE4PWeA8abQFtiDxYtQRDU0uNabxAiBAg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Hyk9Wb4a+i95C518HCWyKYrw7A8x+nIodtL0vFE/FEnW/Z33Yl3BN76M6D8OInMPkSeHIuFHzYX497IjawJfOQLSOZZV+JMT5wK9w0KarEtt1em0aP8K4VT8PKD+DQsVh7SuSh9CoVlubbOoJ+n1UFK+6GS8elk6enp5c+g979Ka0EbUm3J10hf+vwdvuMzdXmQ+NrPBceWZ2E6vgW3uuJCT1Ih+XyUADmb65Dih/X1MIjsyPz+/4XWLsFBoL8HDc/P9iHk0faGP3KIYtU1zN+/Kg4oAncfhXMnwo/H/Na9Ud/xqYZy0uZPkQyoLlVskXY3MG+VJyNp8XgvkQFBSnMUl0roggbiEGyQv5Q81DWXBZq0x0e7SHfrVKeMSh31crNZe40W3oMcqHMoEihGy32QbFcAogPhi58hg9JjkExbF16lLYdMuRqY8ZcZipT0PlG6RDKtG8k69Cpw4aKZvv0XKaGdtgQdzz3OMaRFkTHjmOCjbLc+VB8LuPMjmMSUOGBlTQiMs2dbgef/9hGG0F0L6L+vwOr9KYl9786EYbNwtH1aPGO9LSucfcykehIT+ihUPmR3n/lfaA68xuMWAAAAABJRU5ErkJggg==) no-repeat center;background-size:contain}._albumSearchCell_4pmkt_70 ._iconSelect_4pmkt_99{width:.48rem;height:.48rem}._listContainer_4pmkt_107{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_4pmkt_107 ._line_4pmkt_119{margin:0 .4rem;width:.02667rem;height:.26667rem;background:#e8e8e8}._listContainer_4pmkt_107 ._active_4pmkt_125{color:#333}._label_4pmkt_128{margin-right:.21333rem;font-size:.37333rem;color:#131415}._label_4pmkt_128 .van-list__loading,._label_4pmkt_128 .van-list__finished-text,._label_4pmkt_128 .van-list__error-text{width:100%}._label_4pmkt_128 .iconfont-down{margin-left:.10667rem}._alumnList_4pmkt_141{padding:0 .32rem;border-radius:.48rem;background-color:#fff;margin:.16rem .32rem 0;min-height:90vh}._alumnList_4pmkt_141 .van-list__loading{display:none}._bgImg_4pmkt_151{position:fixed;top:0;left:0;width:100%;height:9.22667rem;z-index:-1}._tagTabs_4pmkt_159 .van-tabs__nav{background-color:transparent;padding:0;margin:0 .4rem}._tagTabs_4pmkt_159 .van-tab{font-size:.42667rem;font-weight:700}._tagTabs_4pmkt_159 .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_4pmkt_159 .van-tab--active{background:#ff699e;color:#fff}._tagTabs_4pmkt_159 .van-tab--active .van-tab__text{z-index:1}._tagTabs_4pmkt_159 .van-tabs__line{height:0}._fleg_4pmkt_189{display:flex;align-items:center;font-size:.37333rem;font-weight:600}._fleg_4pmkt_189 ._iconFree_4pmkt_195{width:1.28rem;height:.69333rem}._fleg_4pmkt_189 ._iconFreeDisable_4pmkt_199{opacity:.5}._fleg_4pmkt_189 span{padding-top:.08rem}._searchResult_4pmkt_205{padding:.42667rem .34667rem .32rem;overflow:hidden;margin-bottom:.53333rem;border-bottom:.02667rem solid #f2f2f2}._searchResult_4pmkt_205 ._searchTitle_4pmkt_211{font-size:.42667rem;color:#333;font-weight:600;line-height:.58667rem}._radio-group_4pmkt_217{display:flex;margin-top:.32rem;margin-bottom:.18667rem;flex-wrap:wrap}._radio-group_4pmkt_217 ._radio_4pmkt_217:first-child .van-radio__label{margin-left:0}._radio_4pmkt_217 .van-radio__icon{display:none}._radio_4pmkt_217 .van-tag--large{width:2.13333rem;height:.85333rem;font-size:.42667rem;text-align:center;display:flex;align-items:center;justify-content:center}._radio_4pmkt_217 .van-tag{box-sizing:border-box;width:31%!important}._radio_4pmkt_217 .van-tag--default{color:#333;background:#f6f6f6}._radio_4pmkt_217 .van-tag--primary{background:#fff3f5}._organ-radio_4pmkt_249 .van-tag--large{width:auto;padding:0 .05333rem;margin-bottom:.21333rem;margin-right:.21333rem;font-size:.37333rem}._resetting_4pmkt_256{border-color:#dbdbdb!important;color:#333!important}._confirm_4pmkt_260 .van-button__text,._resetting_4pmkt_256 .van-button__text{font-size:.42667rem}\n",document.head.appendChild(i),System.register(["./ResizeObserver.es-legacy.8d60aee1.js","./index-legacy.c07bb851.js","./index-legacy.c1f587d0.js","./index-legacy.610f0a70.js","./index-legacy.a85d660d.js","./index-legacy.897f3849.js","./music-legacy.f8020082.js","./index-legacy.34b0986d.js","./index-legacy.87bcd48f.js","./bg-legacy.85bef73b.js","./index-legacy.4f8bc5f4.js","./use-tab-status-legacy.1f35f332.js","./use-id-legacy.54528695.js","./index-legacy.78ce4f6b.js","./icon-xin2-legacy.d521c9ab.js","./index-legacy.4a75d877.js","./index-legacy.bbc2b10e.js"],(function(e){"use strict";var a,n,i,o,l,c,u,_,m,s,p,d,g,b,f,k,h,v,y,w,A,S,x,j,C,L;return{setters:[function(e){a=e.d,n=e.P,i=e.Q,o=e.S,l=e.U,c=e.g,u=e.W,_=e.V,m=e.j,s=e.F,p=e.A,d=e.B,g=e.f,b=e.n,f=e.C,k=e.y},function(e){h=e.L},function(e){v=e.D,y=e.a},function(){},function(e){w=e.T},function(e){A=e.S},function(e){S=e.g},function(e){x=e.S},function(e){j=e.C},function(e){C=e.b},function(e){L=e.T},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var O={sticky:"_sticky_4pmkt_1",search:"_search_4pmkt_47",albumSearchSection:"_albumSearchSection_4pmkt_50",albumSearchTitle:"_albumSearchTitle_4pmkt_53",albumSearchResult:"_albumSearchResult_4pmkt_67",albumSearchCell:"_albumSearchCell_4pmkt_70",albumLogo:"_albumLogo_4pmkt_73",albumContent:"_albumContent_4pmkt_80",albumSearchCellActive:"_albumSearchCellActive_4pmkt_95",iconSelect:"_iconSelect_4pmkt_99",listContainer:"_listContainer_4pmkt_107",line:"_line_4pmkt_119",active:"_active_4pmkt_125",label:"_label_4pmkt_128",alumnList:"_alumnList_4pmkt_141",bgImg:"_bgImg_4pmkt_151",tagTabs:"_tagTabs_4pmkt_159",fleg:"_fleg_4pmkt_189",iconFree:"_iconFree_4pmkt_195",iconFreeDisable:"_iconFreeDisable_4pmkt_199",searchResult:"_searchResult_4pmkt_205",searchTitle:"_searchTitle_4pmkt_211","radio-group":"_radio-group_4pmkt_217",radio:"_radio_4pmkt_217","organ-radio":"_organ-radio_4pmkt_249",resetting:"_resetting_4pmkt_256",confirm:"_confirm_4pmkt_260"};e("default",a({name:"MusicList",props:{teacherId:{type:String||Number,default:""},myself:{type:Boolean,default:!1}},setup:function(e,a){e.onItemClick,a.expose;localStorage.setItem("behaviorId",S());var T=n(),I=i(),R=T.query.subjectType||"",F="";"SUBJECT"===R?F="基础云练":"MUSIC"===R?F="独奏云练":"ENSEMBLE"===R&&(F="合奏云练");var P=o({keyword:T.query.search||"",subjectType:R,page:1,subjectId:null,albumId:T.query.albumId,albumName:"",level:"",type:"",title:F}),z=l(null),E=l(!1),D=l(!1),B=l(!1),Q=l({}),U=l();l(),l([]);var K=l("STUDENT"===c.platformType?"/api-student":"/api-teacher"),M=function(e){P.page=1,P.keyword=e,z.value=null,N()},N=function(){var e=r(regeneratorRuntime.mark((function e(){var a,n,r,i,o,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return E.value=!0,B.value=!1,a=t({},P),e.prev=3,e.next=6,k.post("".concat(K.value,"/tenantAlbumMusic/page"),{data:a});case 6:if(i=e.sent,!((null===(n=z.value)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)>0&&1===i.data.pageNo)){e.next=9;break}return e.abrupt("return");case 9:z.value&&(l=((null===(o=z.value)||void 0===o?void 0:o.rows)||[]).concat(i.data.rows||[]),z.value.rows=l),z.value=z.value||i.data,P.page=i.data.pageNo+1,D.value=i.data.pageNo>=i.data.totalPage,e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),B.value=!0;case 18:E.value=!1;case 19:case"end":return e.stop()}}),e,null,[[3,15]])})));return function(){return e.apply(this,arguments)}}(),V=function(){var e=r(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k.post("".concat(K.value,"/tenantAlbumMusic/selectCondition"),{data:{subjectType:P.subjectType,tenantAlbumId:P.albumId}});case 2:t=e.sent,a=t.data,Q.value=a||{};case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Y=u((function(){var e=Q.value,t=!1;return e.subjects&&e.subjects.length>0&&(t=!0),e.levelList&&e.levelList.length>0&&(t=!0),e.typeList&&e.typeList.length>0&&(t=!0),t}));return _(r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return E.value=!0,e.next=3,V();case 3:if(!P.albumId){e.next=8;break}return e.next=6,N();case 6:e.next=9;break;case 8:E.value=!1;case 9:case"end":return e.stop()}}),e)})))),function(){return m(s,null,[m("div",{class:O.sticky},[m(L,null,{default:function(){return[m(j,{hideHeader:!1,background:"transparent",isFixed:!1,border:!1,title:F,color:"#131415"},null),m(A,{placeholder:"请输入曲谱关键词",class:O.search,modelValue:P.keyword,onInput:function(e){P.keyword=e},onSearch:M,type:"tenant",background:"transparent",inputBackground:"transparent"},{left:function(){return Y.value&&m(v,null,{default:function(){return[m(y,{class:"searchOther",titleClass:P.subjectId||P.type||P.level?O.titleActive:"",title:"筛选",ref:U},{default:function(){return[m("div",{class:O.searchResult,style:{maxHeight:"45vh",overflowY:"auto"}},[Q.value.subjects&&Q.value.subjects.length>0&&m(s,null,[m("div",{class:O.searchTitle},[p("声部")]),m("div",{class:[O["radio-group"],O.radio,O["organ-radio"]]},[Q.value.subjects.map((function(e){var t=e.id===P.subjectId;return m(w,{size:"large",plain:t,type:t?"primary":"default",round:!0,onClick:function(){P.subjectId=e.id}},{default:function(){return[e.name]}})}))])]),Q.value.levelList&&Q.value.levelList.length>0&&m(s,null,[m("div",{class:O.searchTitle},[p("级别")]),m("div",{class:[O["radio-group"],O.radio,O["organ-radio"]]},[Q.value.levelList.map((function(e){var t=e.id===P.level;return m(w,{size:"large",plain:t,type:t?"primary":"default",round:!0,onClick:function(){P.level=e.id}},{default:function(){return[e.value]}})}))])]),Q.value.typeList&&Q.value.typeList.length>0&&m(s,null,[m("div",{class:O.searchTitle},[p("类型")]),m("div",{class:[O["radio-group"],O.radio,O["organ-radio"]]},[Q.value.typeList.map((function(e){var t=e.id===P.type;return m(w,{size:"large",plain:t,type:t?"primary":"default",round:!0,onClick:function(){P.type=e.id}},{default:function(){return[e.value]}})}))])])]),m("div",{class:["btnGroup","btnMore"]},[m(d,{class:O.resetting,type:"primary",plain:!0,round:!0,onClick:function(){P.subjectId=null,P.level="",P.type=""}},{default:function(){return[p("重 置")]}}),m(d,{class:O.confirm,type:"primary",color:"linear-gradient( 270deg, #FF204B 0%, #FE5B71 100%)",round:!0,block:!0,onClick:function(){var e;P.page=1,z.value=null,N(),null===(e=U.value)||void 0===e||e.toggle()}},{default:function(){return[p("确 认")]}})])]}})]}})}})]}}),m("img",{class:O.bgImg,src:C},null)]),m("div",{class:O.alumnList},[m(h,{loading:E.value,finished:D.value,"finished-text":(z.value&&z.value.rows.length,""),onLoad:N,error:B.value,immediateCheck:!1},{default:function(){return[z.value&&z.value.rows.length?m(x,{showTitleImg:!0,list:z.value.rows,onDetail:function(e){if(g().isApp){var t="".concat(location.origin,"/tenant/#/music-detail?id=").concat(e.id,"&subjectType=").concat(R,"&tenantAlbumId=").concat(e.tenantAlbumId);b({api:"openWebView",content:{url:t,orientation:1,isHideTitle:!1}})}else I.push({path:"/music-detail",query:{subjectType:R,id:e.id,tenantAlbumId:e.tenantAlbumId}})}},null):!E.value&&m(f,{tips:"暂无曲目",classImgSize:"CERT",btnStatus:!1},null)]}})])])}}}))}}}))}();
|