index-legacy.dd91e247.js 14 KB

1
  1. !function(){function e(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 t(t){for(var a=1;a<arguments.length;a++){var r=null!=arguments[a]?arguments[a]:{};a%2?e(Object(r),!0).forEach((function(e){n(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 n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n,a,r,o,i){try{var l=e[o](i),c=l.value}catch(u){return void n(u)}l.done?t(c):Promise.resolve(c).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function l(e){a(i,r,o,l,c,"next",e)}function c(e){a(i,r,o,l,c,"throw",e)}l(void 0)}))}}var o=document.createElement("style");o.innerHTML="._sticky_oh7qm_1 .van-search__content{background:rgba(255,255,255,.5)!important}._sticky_oh7qm_1 .van-search__content input::-moz-placeholder{color:rgba(0,0,0,.4)!important}._sticky_oh7qm_1 .van-search__content input::placeholder{color:rgba(0,0,0,.4)!important}._sticky_oh7qm_1 .van-search__content input,._sticky_oh7qm_1 .van-search__content .van-field__clear{color:rgba(0,0,0,.4)!important}._sticky_oh7qm_1 .van-dropdown-menu__bar{background-color:transparent;box-shadow:none;padding-right:.4rem}._sticky_oh7qm_1 .van-dropdown-menu__title{padding-left:0;color:#131415}._sticky_oh7qm_1 .van-dropdown-menu__title:after{border-color:transparent transparent rgba(0,0,0,.4) rgba(0,0,0,.4)}._sticky_oh7qm_1 .van-dropdown-menu__title.van-dropdown-menu__title--active{color:#fe2451}._sticky_oh7qm_1 .van-dropdown-menu__title.van-dropdown-menu__title--active:after{border-color:transparent transparent #fe2451 #fe2451}._sticky_oh7qm_1 .van-dropdown-item__content{border-radius:0 0 .53333rem .53333rem}._sticky_oh7qm_1 .van-haptics-feedback:active{opacity:1!important}._sticky_oh7qm_1 ._titleActive_oh7qm_37{color:#fe2451}._search_oh7qm_40 .van-search{height:calc(var(--van-dropdown-menu-height) + .53333rem)}._albumSearchSection_oh7qm_43 .van-dropdown-menu__bar{padding-right:0}._albumSearchTitle_oh7qm_46{color:#f41e4b!important;font-size:.37333rem!important;background-color:#fff!important;padding:.05333rem .56rem 0 .21333rem!important;border-radius:.8rem!important}._albumSearchTitle_oh7qm_46>div{max-width:1.86667rem}._albumSearchTitle_oh7qm_46:after{right:.21333rem!important;border-color:transparent transparent #f41e4b #f41e4b!important}._albumSearchResult_oh7qm_60{padding:.37333rem .26667rem}._albumSearchCell_oh7qm_63{padding:.26667rem}._albumSearchCell_oh7qm_63 ._albumLogo_oh7qm_66{width:1.28rem;height:1.28rem;border-radius:.21333rem;margin-right:.26667rem;overflow:hidden}._albumSearchCell_oh7qm_63 ._albumContent_oh7qm_73{text-align:left}._albumSearchCell_oh7qm_63 ._albumContent_oh7qm_73 h2{font-size:.4rem;font-weight:600;color:#131415;line-height:.56rem;padding-bottom:.13333rem}._albumSearchCell_oh7qm_63 ._albumContent_oh7qm_73 p{font-size:.32rem;color:#777;line-height:.45333rem}._albumSearchCell_oh7qm_63._albumSearchCellActive_oh7qm_88{border-radius:.26667rem;background:#ffeaf3}._albumSearchCell_oh7qm_63._albumSearchCellActive_oh7qm_88 ._iconSelect_oh7qm_92{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABR9JREFUWEetmFtsFVUUhr99ihaQAqJ4QWsi5QEVjZfgBRpilCAKwfBQhOCDUaOQtArGqmAwaOBFE4PWeA8abQFtiDxYtQRDU0uNabxAiBAgKhgv4RIEtR6ws5fZc5/pnnPmFNs0p5nO6XxnrX//+19bUe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33Yl3BN76M6D8OInMPkSeHIuFHzYX497IjawJfOQLSOZZV+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_oh7qm_63 ._iconSelect_oh7qm_92{width:.48rem;height:.48rem}._listContainer_oh7qm_100{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_oh7qm_100 ._line_oh7qm_112{margin:0 .4rem;width:.02667rem;height:.26667rem;background:#e8e8e8}._listContainer_oh7qm_100 ._active_oh7qm_118{color:#333}._label_oh7qm_121{margin-right:.21333rem;font-size:.37333rem;color:#131415}._label_oh7qm_121 .van-list__loading,._label_oh7qm_121 .van-list__finished-text,._label_oh7qm_121 .van-list__error-text{width:100%}._label_oh7qm_121 .iconfont-down{margin-left:.10667rem}._alumnList_oh7qm_134{padding:0 .32rem;border-radius:.48rem;background-color:#fff;margin:.16rem;min-height:40vh}._alumnList_oh7qm_134 .van-list__loading{display:none}._bgImg_oh7qm_144{position:fixed;top:0;left:0;width:100%;height:5.70667rem;z-index:-1}._tagTabs_oh7qm_152 .van-tabs__nav{background-color:transparent;padding:0;margin:0 .4rem}._tagTabs_oh7qm_152 .van-tab{font-size:.42667rem;font-weight:700}._tagTabs_oh7qm_152 .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_oh7qm_152 .van-tab--active{background:#ff699e;color:#fff}._tagTabs_oh7qm_152 .van-tab--active .van-tab__text{z-index:1}._tagTabs_oh7qm_152 .van-tabs__line{height:0}._fleg_oh7qm_182{display:flex;align-items:center;font-size:.37333rem;font-weight:600}._fleg_oh7qm_182 ._iconFree_oh7qm_188{width:1.28rem;height:.69333rem}._fleg_oh7qm_182 ._iconFreeDisable_oh7qm_192{opacity:.5}._fleg_oh7qm_182 span{padding-top:.08rem}._searchResult_oh7qm_198{padding:.42667rem .42667rem .32rem;overflow:hidden;margin-bottom:.53333rem;border-bottom:.02667rem solid #f2f2f2}._searchResult_oh7qm_198 ._searchTitle_oh7qm_204{font-size:.42667rem;color:#333;font-weight:600;line-height:.58667rem}._radio-group_oh7qm_210{display:flex;margin-top:.26667rem;margin-bottom:.53333rem;flex-wrap:wrap}._radio-group_oh7qm_210 ._radio_oh7qm_210:first-child .van-radio__label{margin-left:0}._radio_oh7qm_210 .van-radio__icon{display:none}._radio_oh7qm_210 .van-tag--large{width:2.13333rem;height:.85333rem;font-size:.42667rem;text-align:center;display:flex;align-items:center;justify-content:center}._radio_oh7qm_210 .van-tag{box-sizing:border-box;width:31%!important}._radio_oh7qm_210 .van-tag--default{color:#333;background:#f6f6f6}._radio_oh7qm_210 .van-tag--primary{background:#fff3f5}._organ-radio_oh7qm_242 .van-tag--large{width:auto;padding:0 .05333rem;margin-bottom:.21333rem;margin-right:.21333rem;font-size:.37333rem}._resetting_oh7qm_249{border-color:#dbdbdb!important;color:#333!important}._confirm_oh7qm_253 .van-button__text,._resetting_oh7qm_249 .van-button__text{font-size:.42667rem}\n",document.head.appendChild(o),System.register(["./index-legacy.b58da68f.js","./index-legacy.4901eaf9.js","./index-legacy.443f98ca.js","./index-legacy.3ca82642.js","./index-legacy.87415039.js","./index-legacy.60d29974.js","./music-legacy.a9d754dd.js","./index-legacy.ea38f44f.js","./index-legacy.2a1457c7.js","./bg-legacy.dbc143d7.js","./index-legacy.13696119.js","./use-tab-status-legacy.fb3bd545.js","./use-id-legacy.3d74ea60.js","./index-legacy.6a33be75.js","./icon-xin2-legacy.d521c9ab.js","./index-legacy.b25f663a.js","./index-legacy.4e3e2c74.js","./index-legacy.680d6e51.js"],(function(e){"use strict";var n,a,o,i,l,c,u,_,m,s,d,h,g,f,p,b,v,y,q,w,k,x,A,j;return{setters:[function(e){n=e.d,a=e.O,o=e.P,i=e.Q,l=e.S,c=e.g,u=e.V,_=e.U,m=e.j,s=e.F,d=e.z,h=e.B,g=e.C,f=e.w},function(e){p=e.L},function(e){b=e.D,v=e.a},function(){},function(e){y=e.T},function(e){q=e.S},function(e){w=e.g},function(e){k=e.S},function(e){x=e.C},function(e){A=e.b},function(e){j=e.T},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var O="_sticky_oh7qm_1",L="_titleActive_oh7qm_37",S="_search_oh7qm_40",C="_alumnList_oh7qm_134",T="_bgImg_oh7qm_144",I="_searchResult_oh7qm_198",P="_searchTitle_oh7qm_204",z="_radio-group_oh7qm_210",E="_radio_oh7qm_210",F="_organ-radio_oh7qm_242",R="_resetting_oh7qm_249",D="_confirm_oh7qm_253";e("default",n({name:"MusicList",props:{teacherId:{type:String||Number,default:""},myself:{type:Boolean,default:!1}},setup:function(e,n){e.onItemClick,n.expose;localStorage.setItem("behaviorId",w());var B=a(),Q=o(),U=B.query.subjectType||"",K="";"SUBJECT"===U?K="声部练习":"MUSIC"===U?K="独奏曲目":"ENSEMBLE"===U&&(K="合奏练习");var M=i({keyword:B.query.search||"",subjectType:U,page:1,subjectId:null,albumId:B.query.albumId,albumName:"",level:"",type:"",title:K}),N=l(null),Y=l(!1),G=l(!1),V=l(!1),Z=l({}),W=l();l(),l([]);var J=l("STUDENT"===c.platformType?"/api-student":"/api-teacher"),X=function(e){M.page=1,M.keyword=e,N.value=null,H()},H=function(){var e=r(regeneratorRuntime.mark((function e(){var n,a,r,o,i,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Y.value=!0,V.value=!1,n=t({},M),e.prev=3,e.next=6,f.post("".concat(J.value,"/tenantAlbumMusic/page"),{data:n});case 6:if(o=e.sent,!((null===(a=N.value)||void 0===a||null===(r=a.rows)||void 0===r?void 0:r.length)>0&&1===o.data.pageNo)){e.next=9;break}return e.abrupt("return");case 9:N.value&&(l=((null===(i=N.value)||void 0===i?void 0:i.rows)||[]).concat(o.data.rows||[]),N.value.rows=l),N.value=N.value||o.data,M.page=o.data.pageNo+1,G.value=o.data.pageNo>=o.data.totalPage,e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),V.value=!0;case 18:Y.value=!1;case 19:case"end":return e.stop()}}),e,null,[[3,15]])})));return function(){return e.apply(this,arguments)}}(),$=function(){var e=r(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f.post("".concat(J.value,"/tenantAlbumMusic/selectCondition"),{data:{subjectType:M.subjectType,tenantAlbumId:M.albumId}});case 2:t=e.sent,n=t.data,Z.value=n||{};case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ee=u((function(){var e=Z.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 Y.value=!0,e.next=3,$();case 3:if(!M.albumId){e.next=8;break}return e.next=6,H();case 6:e.next=9;break;case 8:Y.value=!1;case 9:case"end":return e.stop()}}),e)})))),function(){return m(s,null,[m("div",{class:O},[m(j,null,{default:function(){return[m(x,{hideHeader:!1,background:"transparent",isFixed:!1,border:!1,title:K,color:"#131415"},null),m(q,{class:S,onSearch:X,type:"tenant",background:"transparent",inputBackground:"transparent"},{left:function(){return ee.value&&m(b,null,{default:function(){return[m(v,{titleClass:M.subjectId||M.type||M.level?L:"",title:"筛选",ref:W},{default:function(){return[m("div",{class:I,style:{maxHeight:"45vh",overflowY:"auto"}},[Z.value.subjects&&Z.value.subjects.length>0&&m(s,null,[m("div",{class:P},[d("声部")]),m("div",{class:[z,E,F]},[Z.value.subjects.map((function(e){var t=e.id===M.subjectId;return m(y,{size:"large",plain:t,type:t?"primary":"default",round:!0,onClick:function(){M.subjectId=e.id}},{default:function(){return[e.name]}})}))])]),Z.value.levelList&&Z.value.levelList.length>0&&m(s,null,[m("div",{class:P},[d("级别")]),m("div",{class:[z,E,F]},[Z.value.levelList.map((function(e){var t=e.id===M.level;return m(y,{size:"large",plain:t,type:t?"primary":"default",round:!0,onClick:function(){M.level=e.id}},{default:function(){return[e.value]}})}))])]),Z.value.typeList&&Z.value.typeList.length>0&&m(s,null,[m("div",{class:P},[d("类型")]),m("div",{class:[z,E,F]},[Z.value.typeList.map((function(e){var t=e.id===M.type;return m(y,{size:"large",plain:t,type:t?"primary":"default",round:!0,onClick:function(){M.type=e.id}},{default:function(){return[e.value]}})}))])])]),m("div",{class:["btnGroup","btnMore"]},[m(h,{class:R,type:"primary",plain:!0,round:!0,onClick:function(){M.subjectId=null,M.level="",M.type=""}},{default:function(){return[d("重 置")]}}),m(h,{class:D,type:"primary",color:"linear-gradient( 270deg, #FF204B 0%, #FE5B71 100%)",round:!0,block:!0,onClick:function(){var e;M.page=1,N.value=null,H(),null===(e=W.value)||void 0===e||e.toggle()}},{default:function(){return[d("确 认")]}})])]}})]}})}})]}}),m("img",{class:T,src:A},null)]),m("div",{class:C},[m(p,{loading:Y.value,finished:G.value,"finished-text":(N.value&&N.value.rows.length,""),onLoad:H,error:V.value,immediateCheck:!1},{default:function(){return[N.value&&N.value.rows.length?m(k,{showTitleImg:!0,list:N.value.rows,onDetail:function(e){Q.push({path:"/music-detail",query:{subjectType:U,id:e.id,tenantAlbumId:e.tenantAlbumId}})}},null):!Y.value&&m(g,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}})])])}}}))}}}))}();