1 |
- !function(){function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function n(n){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?e(Object(a),!0).forEach((function(e){t(n,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(a,e))}))}return n}function t(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function r(e,n,t,r,a,i,o){try{var l=e[i](o),c=l.value}catch(u){return void t(u)}l.done?n(c):Promise.resolve(c).then(r,a)}function a(e){return function(){var n=this,t=arguments;return new Promise((function(a,i){var o=e.apply(n,t);function l(e){r(o,a,i,l,c,"next",e)}function c(e){r(o,a,i,l,c,"throw",e)}l(void 0)}))}}var i=document.createElement("style");i.innerHTML="._sticky_2w2qn_1 .van-sticky{background:url(./assets/bg-image.e89554da.png) no-repeat top center;background-size:100% 5.70667rem}._sticky_2w2qn_1 .van-search__content{background:rgba(255,255,255,.5)!important}._sticky_2w2qn_1 .van-search__content input::-moz-placeholder{color:rgba(0,0,0,.4)!important}._sticky_2w2qn_1 .van-search__content input::placeholder{color:rgba(0,0,0,.4)!important}._sticky_2w2qn_1 .van-search__content input,._sticky_2w2qn_1 .van-search__content .van-field__clear{color:rgba(0,0,0,.4)!important}._sticky_2w2qn_1 .van-dropdown-menu__bar{background-color:transparent;box-shadow:none;padding-right:.4rem}._sticky_2w2qn_1 .van-dropdown-menu__title{padding-left:0}._sticky_2w2qn_1 .van-dropdown-menu__title:after{border-color:transparent transparent rgba(0,0,0,.4) rgba(0,0,0,.4)}._sticky_2w2qn_1 .van-dropdown-item__content{border-radius:0 0 .53333rem .53333rem}._sticky_2w2qn_1 ._titleActive_2w2qn_31{color:#fe2451}._listContainer_2w2qn_34{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_2w2qn_34 ._line_2w2qn_46{margin:0 .4rem;width:.02667rem;height:.26667rem;background:#e8e8e8}._listContainer_2w2qn_34 ._active_2w2qn_52{color:#333}._label_2w2qn_55{margin-right:.21333rem;font-size:.37333rem;color:#131415}._label_2w2qn_55 .van-list__loading,._label_2w2qn_55 .van-list__finished-text,._label_2w2qn_55 .van-list__error-text{width:100%}._label_2w2qn_55 .iconfont-down{margin-left:.10667rem}._alumnList_2w2qn_68{padding:0 .32rem;border-radius:.48rem;background-color:#fff;margin:.16rem;min-height:40vh}._bgImg_2w2qn_75{position:fixed;top:0;left:0;width:100%;height:5.70667rem;z-index:-1}._tagTabs_2w2qn_83 .van-tabs__nav{background-color:transparent;padding:0;margin:0 .4rem}._tagTabs_2w2qn_83 .van-tab{font-size:.42667rem;font-weight:700}._tagTabs_2w2qn_83 .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_2w2qn_83 .van-tab--active{background:#FF699E;color:#fff}._tagTabs_2w2qn_83 .van-tab--active .van-tab__text{z-index:1}._tagTabs_2w2qn_83 .van-tabs__line{height:0}._fleg_2w2qn_113{display:flex;align-items:center;font-size:.37333rem;font-weight:600}._fleg_2w2qn_113 ._iconFree_2w2qn_119{width:1.28rem;height:.69333rem}._fleg_2w2qn_113 ._iconFreeDisable_2w2qn_123{opacity:.5}._fleg_2w2qn_113 span{padding-top:.08rem}._searchResult_2w2qn_129{padding:.42667rem .42667rem .32rem;overflow:hidden;margin-bottom:.53333rem}._searchResult_2w2qn_129 ._searchTitle_2w2qn_134{font-size:.42667rem;color:#333;line-height:.58667rem}._radio-group_2w2qn_139{display:flex;margin-top:.26667rem;margin-bottom:.53333rem;flex-wrap:wrap}._radio-group_2w2qn_139 ._radio_2w2qn_139:first-child .van-radio__label{margin-left:0}._radio_2w2qn_139 .van-radio__icon{display:none}._radio_2w2qn_139 .van-tag--large{width:2.13333rem;height:.85333rem;font-size:.42667rem;text-align:center;display:flex;align-items:center;justify-content:center}._radio_2w2qn_139 .van-tag{box-sizing:border-box;width:31%!important}._radio_2w2qn_139 .van-tag--default{color:var(--van-tag-text-default-color)}._radio_2w2qn_139 .van-tag--primary{background-color:#fff}._organ-radio_2w2qn_170 .van-tag--large{width:auto;padding:0 .05333rem;margin-bottom:.21333rem;margin-right:.21333rem;font-size:.37333rem}\n",document.head.appendChild(i),System.register(["./index-legacy.b903c881.js","./index-legacy.f52c26b4.js","./index-legacy.3fd38cb5.js","./index-legacy.b7f666cc.js","./index-legacy.857a8bc7.js","./index-legacy.3e4ae683.js","./music-legacy.7769391f.js","./index-legacy.1c1000df.js","./index-legacy.885c229f.js","./bg-image-legacy.44e2b3db.js","./index-legacy.909b3c1c.js","./use-tab-status-legacy.a19d344b.js","./use-id-legacy.29724920.js","./index-legacy.e9e6da38.js","./icon-xin2-legacy.d521c9ab.js","./index-legacy.5b93d63d.js","./index-legacy.8e85fa65.js","./index-legacy.77670d98.js"],(function(e){"use strict";var t,r,i,o,l,c,u,s,_,d,g,f,p,v,m,b,w,y,h,q,j,k,x;return{setters:[function(e){t=e.d,r=e.O,i=e.P,o=e.Q,l=e.S,c=e.g,u=e.U,s=e.j,_=e.F,d=e.z,g=e.B,f=e.C,p=e.w},function(e){v=e.L},function(e){m=e.D,b=e.a},function(){},function(e){w=e.T},function(e){y=e.S},function(e){h=e.g},function(e){q=e.S},function(e){j=e.C},function(e){k=e.b},function(e){x=e.T},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var T="_sticky_2w2qn_1",O="_titleActive_2w2qn_31",z="_alumnList_2w2qn_68",C="_bgImg_2w2qn_75",S="_searchResult_2w2qn_129",L="_searchTitle_2w2qn_134",I="_radio-group_2w2qn_139",P="_radio_2w2qn_139",E="_organ-radio_2w2qn_170";e("default",t({name:"MusicList",props:{teacherId:{type:String||Number,default:""},myself:{type:Boolean,default:!1}},setup:function(e,t){e.onItemClick,t.expose;localStorage.setItem("behaviorId",h());var R=r(),D=i(),M=R.query.subjectType||"",F="";"SUBJECT"===M?F="声部练习":"MUSIC"===M?F="独奏曲目":"ENSEMBLE"===M&&(F="合奏练习");var N=o({keyword:R.query.search||"",subjectType:M,page:1,subjectId:null,level:"",type:"",title:F}),A=l(null),B=l(!1),U=l(!1),H=l(!1),G=l({}),J=l(),Q=l("STUDENT"===c.platformType?"/api-student":"/api-teacher"),Y=function(e){N.page=1,N.keyword=e,A.value=null,K()},K=function(){var e=a(regeneratorRuntime.mark((function e(){var t,r,a,i,o,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B.value=!0,H.value=!1,t=n({},N),e.prev=3,e.next=6,p.post("".concat(Q.value,"/tenantAlbumMusic/page"),{data:t});case 6:if(i=e.sent,!((null===(r=A.value)||void 0===r||null===(a=r.rows)||void 0===a?void 0:a.length)>0&&1===i.data.pageNo)){e.next=9;break}return e.abrupt("return");case 9:A.value&&(l=((null===(o=A.value)||void 0===o?void 0:o.rows)||[]).concat(i.data.rows||[]),A.value.rows=l),A.value=A.value||i.data,N.page=i.data.pageNo+1,U.value=i.data.pageNo>=i.data.totalPage,e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),H.value=!0;case 18:B.value=!1;case 19:case"end":return e.stop()}}),e,null,[[3,15]])})));return function(){return e.apply(this,arguments)}}(),V=function(){var e=a(regeneratorRuntime.mark((function e(){var n,t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.post("".concat(Q.value,"/tenantAlbumMusic/selectCondition"),{data:{subjectType:N.subjectType}});case 2:n=e.sent,t=n.data,G.value=t||{};case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return u(a(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B.value=!0,e.next=3,V();case 3:return e.next=5,K();case 5:case"end":return e.stop()}}),e)})))),function(){return s(_,null,[s("div",{class:T},[s(x,null,{default:function(){return[s(j,{background:"transparent",isFixed:!1,border:!1,title:F,color:"#131415"},null),s(y,{onSearch:Y,type:"tenant",background:"transparent",inputBackground:"transparent"},{left:function(){return s(m,null,{default:function(){return[s(b,{titleClass:N.subjectId||N.type||N.level?O:"",title:"筛选",ref:J},{default:function(){return[s("div",{class:S,style:{maxHeight:"45vh",overflowY:"auto"}},[G.value.subjects&&G.value.subjects.length>0&&s(_,null,[s("div",{class:L},[d("声部")]),s("div",{class:[I,P,E]},[G.value.subjects.map((function(e){var n=e.id===N.subjectId;return s(w,{size:"large",plain:n,type:n?"primary":"default",round:!0,onClick:function(){N.subjectId=e.id}},{default:function(){return[e.name]}})}))])]),G.value.levelList&&G.value.levelList.length>0&&s(_,null,[s("div",{class:L},[d("级别")]),s("div",{class:[I,P,E]},[G.value.levelList.map((function(e){var n=e.id===N.level;return s(w,{size:"large",plain:n,type:n?"primary":"default",round:!0,onClick:function(){N.level=e.id}},{default:function(){return[e.value]}})}))])]),G.value.typeList&&G.value.typeList.length>0&&s(_,null,[s("div",{class:L},[d("类型")]),s("div",{class:[I,P,E]},[G.value.typeList.map((function(e){var n=e.id===N.type;return s(w,{size:"large",plain:n,type:n?"primary":"default",round:!0,onClick:function(){N.type=e.id}},{default:function(){return[e.value]}})}))])])]),s("div",{class:["btnGroup","btnMore"]},[s(g,{type:"primary",plain:!0,round:!0,onClick:function(){N.subjectId=null,N.level="",N.type=""}},{default:function(){return[d("重 置")]}}),s(g,{type:"primary",round:!0,block:!0,onClick:function(){var e;Y(""),null===(e=J.value)||void 0===e||e.toggle()}},{default:function(){return[d("确 认")]}})])]}})]}})}})]}}),s("img",{class:C,src:k},null)]),s("div",{class:z},[s(v,{finished:U.value,"finished-text":(A.value&&A.value.rows.length,""),onLoad:K,error:H.value,immediateCheck:!1},{default:function(){return[A.value&&A.value.rows.length?s(q,{showTitleImg:!0,list:A.value.rows,onDetail:function(e){D.push({path:"/music-detail",query:{subjectType:M,id:e.id}})}},null):!B.value&&s(f,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}})])])}}}))}}}))}();
|