index-legacy.e8b5e71f.js 9.8 KB

1
  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.19a69a6b.js","./index-legacy.c5f84e3d.js","./index-legacy.d6141bb1.js","./index-legacy.b552c918.js","./index-legacy.0d41be4f.js","./index-legacy.4bfa1994.js","./music-legacy.bf3c9075.js","./index-legacy.c4ef1b2b.js","./index-legacy.53bf502e.js","./bg-image-legacy.44e2b3db.js","./index-legacy.64c8ba9e.js","./use-tab-status-legacy.b4d40cc5.js","./use-id-legacy.7b677bab.js","./index-legacy.fb6e7139.js","./icon-xin2-legacy.d521c9ab.js","./index-legacy.433a3fe3.js","./index-legacy.0073fc73.js"],(function(e){"use strict";var t,r,i,o,l,c,u,s,_,d,f,g,p,v,m,b,w,y,h,q,j,k,x,O;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,f=e.B,g=e.C,p=e.Z,v=e.w},function(e){m=e.L},function(e){b=e.D,w=e.a},function(){},function(e){y=e.T},function(e){h=e.S},function(e){q=e.g},function(e){j=e.S},function(e){k=e.C},function(e){x=e.b},function(e){O=e.T},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var T="_sticky_2w2qn_1",z="_titleActive_2w2qn_31",C="_alumnList_2w2qn_68",S="_bgImg_2w2qn_75",I="_searchResult_2w2qn_129",P="_searchTitle_2w2qn_134",E="_radio-group_2w2qn_139",L="_radio_2w2qn_139",R="_organ-radio_2w2qn_170";function D(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!p(e)}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",q());var p=r(),M=i(),F=p.query.subjectType||"",A="";"SUBJECT"===F?A="声部练习":"MUSIC"===F?A="独奏曲目":"ENSEMBLE"===F&&(A="合奏练习");var B=o({keyword:p.query.search||"",subjectType:F,page:1,subjectId:null,level:"",type:"",title:A}),N=l(null),U=l(!1),H=l(!1),G=l(!1),J=l({}),Q=l(),Y=l("STUDENT"===c.platformType?"/api-student":"/api-teacher"),Z=function(e){B.page=1,B.keyword=e,N.value=null,K()},K=function(){var e=a(regeneratorRuntime.mark((function e(){var t,r,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return U.value=!0,G.value=!1,t=n({},B),e.prev=3,e.next=6,v.post("".concat(Y.value,"/tenantAlbumMusic/page"),{data:t});case 6:r=e.sent,N.value&&(i=((null===(a=N.value)||void 0===a?void 0:a.rows)||[]).concat(r.data.rows||[]),N.value.rows=i),N.value=N.value||r.data,B.page=r.data.pageNo+1,H.value=r.data.pageNo>=r.data.totalPage,e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),G.value=!0;case 16:U.value=!1;case 17:case"end":return e.stop()}}),e,null,[[3,13]])})));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,v.post("".concat(Y.value,"/tenantAlbumMusic/selectCondition"),{data:{subjectType:B.subjectType}});case 2:n=e.sent,t=n.data,J.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 U.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(O,null,{default:function(){return[s(k,{background:"transparent",isFixed:!1,border:!1,title:A,color:"#131415"},null),s(h,{onSearch:Z,type:"tenant",background:"transparent",inputBackground:"transparent"},{left:function(){return s(b,null,{default:function(){return[s(w,{titleClass:B.subjectId||B.type||B.level?z:"",title:"筛选",ref:Q},{default:function(){return[s("div",{class:I,style:{maxHeight:"45vh",overflowY:"auto"}},[J.value.subjects&&J.value.subjects.length>0&&s(_,null,[s("div",{class:P},[d("声部")]),s("div",{class:[E,L,R]},[J.value.subjects.map((function(e){var n=e.id===B.subjectId;return s(y,{size:"large",plain:n,type:n?"primary":"default",round:!0,onClick:function(){B.subjectId=e.id}},{default:function(){return[e.name]}})}))])]),J.value.levels&&J.value.levels.length>0&&s(_,null,[s("div",{class:P},[d("级别")]),s("div",{class:[E,L,R]},[J.value.levels.map((function(e){var n=e===B.level;return s(y,{size:"large",plain:n,type:n?"primary":"default",round:!0,onClick:function(){B.level=e}},D(e)?e:{default:function(){return[e]}})}))])]),J.value.types&&J.value.types.length>0&&s(_,null,[s("div",{class:P},[d("类型")]),s("div",{class:[E,L,R]},[J.value.types.map((function(e){var n=e===B.type;return s(y,{size:"large",plain:n,type:n?"primary":"default",round:!0,onClick:function(){B.type=e}},D(e)?e:{default:function(){return[e]}})}))])])]),s("div",{class:["btnGroup","btnMore"]},[s(f,{type:"primary",plain:!0,round:!0,onClick:function(){B.subjectId=null,B.level="",B.type=""}},{default:function(){return[d("重 置")]}}),s(f,{type:"primary",round:!0,block:!0,onClick:function(){var e;Z(""),null===(e=Q.value)||void 0===e||e.toggle()}},{default:function(){return[d("确 认")]}})])]}})]}})}})]}}),s("img",{class:S,src:x},null)]),s("div",{class:C},[s(m,{finished:H.value,"finished-text":(N.value&&N.value.rows.length,""),onLoad:K,error:G.value,immediateCheck:!1},{default:function(){return[N.value&&N.value.rows.length?s(j,{showTitleImg:!0,list:N.value.rows,onDetail:function(e){M.push({path:"/music-detail",query:{id:e.id}})}},null):!U.value&&s(g,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}})])])}}}))}}}))}();