1 |
- !function(){function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function n(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?e(Object(o),!0).forEach((function(e){r(n,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}function t(e,n,t,o,r,i,a){try{var l=e[i](a),c=l.value}catch(u){return void t(u)}l.done?n(c):Promise.resolve(c).then(o,r)}function o(e){return function(){var n=this,o=arguments;return new Promise((function(r,i){var a=e.apply(n,o);function l(e){t(a,r,i,l,c,"next",e)}function c(e){t(a,r,i,l,c,"throw",e)}l(void 0)}))}}function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var o,r,i=[],a=!0,l=!1;try{for(t=t.call(e);!(a=(o=t.next()).done)&&(i.push(o.value),!n||i.length!==n);a=!0);}catch(c){l=!0,r=c}finally{try{a||null==t.return||t.return()}finally{if(l)throw r}}return i}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}var l=document.createElement("style");l.innerHTML=':root{--van-dropdown-menu-height: 1.28rem;--van-dropdown-menu-background-color: var(--van-background-color-light);--van-dropdown-menu-box-shadow: 0 .05333rem .32rem rgba(100, 101, 102, .12);--van-dropdown-menu-title-font-size: .4rem;--van-dropdown-menu-title-text-color: var(--van-text-color);--van-dropdown-menu-title-active-text-color: var(--van-danger-color);--van-dropdown-menu-title-disabled-text-color: var(--van-text-color-2);--van-dropdown-menu-title-padding: 0 var(--van-padding-xs);--van-dropdown-menu-title-line-height: var(--van-line-height-lg);--van-dropdown-menu-option-active-color: var(--van-danger-color);--van-dropdown-menu-content-max-height: 80%}.van-dropdown-menu{-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-dropdown-menu__bar{position:relative;display:flex;height:var(--van-dropdown-menu-height);background:var(--van-dropdown-menu-background-color);box-shadow:var(--van-dropdown-menu-box-shadow)}.van-dropdown-menu__bar--opened{z-index:calc(var(--van-dropdown-item-z-index) + 1)}.van-dropdown-menu__item{display:flex;flex:1;align-items:center;justify-content:center;min-width:0}.van-dropdown-menu__item--disabled .van-dropdown-menu__title{color:var(--van-dropdown-menu-title-disabled-text-color)}.van-dropdown-menu__title{position:relative;box-sizing:border-box;max-width:100%;padding:var(--van-dropdown-menu-title-padding);color:var(--van-dropdown-menu-title-text-color);font-size:var(--van-dropdown-menu-title-font-size);line-height:var(--van-dropdown-menu-title-line-height)}.van-dropdown-menu__title:after{position:absolute;top:50%;right:-.10667rem;margin-top:-.13333rem;border:.08rem solid;border-color:transparent transparent var(--van-gray-4) var(--van-gray-4);transform:rotate(-45deg);opacity:.8;content:""}.van-dropdown-menu__title--active{color:var(--van-dropdown-menu-title-active-text-color)}.van-dropdown-menu__title--active:after{border-color:transparent transparent currentColor currentColor}.van-dropdown-menu__title--down:after{margin-top:-.02667rem;transform:rotate(135deg)}:root{--van-dropdown-item-z-index: 10}.van-dropdown-item{position:fixed;right:0;left:0;z-index:var(--van-dropdown-item-z-index);overflow:hidden}.van-dropdown-item__icon{display:block;line-height:inherit}.van-dropdown-item__option{text-align:left}.van-dropdown-item__option--active,.van-dropdown-item__option--active .van-dropdown-item__icon{color:var(--van-dropdown-menu-option-active-color)}.van-dropdown-item--up{top:0}.van-dropdown-item--down{bottom:0}.van-dropdown-item__content{position:absolute;max-height:var(--van-dropdown-menu-content-max-height)}._sticky_icnit_1 .van-sticky{background:url(./assets/bg-image.e89554da.png) no-repeat top center;background-size:100% 5.70667rem}._sticky_icnit_1 .van-search__content{background:rgba(255,255,255,.5)!important}._sticky_icnit_1 .van-search__content input::-moz-placeholder{color:rgba(0,0,0,.4)!important}._sticky_icnit_1 .van-search__content input::placeholder{color:rgba(0,0,0,.4)!important}._sticky_icnit_1 .van-search__content input,._sticky_icnit_1 .van-search__content .van-field__clear{color:rgba(0,0,0,.4)!important}._sticky_icnit_1 .van-dropdown-menu__bar{background-color:transparent;box-shadow:none;padding-right:.4rem}._sticky_icnit_1 .van-dropdown-menu__title{padding-left:0}._sticky_icnit_1 .van-dropdown-menu__title:after{border-color:transparent transparent rgba(0,0,0,.4) rgba(0,0,0,.4)}._listContainer_icnit_28{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_icnit_28 ._line_icnit_40{margin:0 .4rem;width:.02667rem;height:.26667rem;background:#e8e8e8}._listContainer_icnit_28 ._active_icnit_46{color:#333}._label_icnit_49{margin-right:.21333rem;font-size:.37333rem;color:#131415}._label_icnit_49 .van-list__loading,._label_icnit_49 .van-list__finished-text,._label_icnit_49 .van-list__error-text{width:100%}._label_icnit_49 .iconfont-down{margin-left:.10667rem}._alumnList_icnit_62{padding:0 .32rem;border-radius:.48rem;background-color:#fff;margin:.16rem;min-height:40vh}._bgImg_icnit_69{position:fixed;top:0;left:0;width:100%;height:5.70667rem;z-index:-1}._tagTabs_icnit_77 .van-tabs__nav{background-color:transparent;padding:0;margin:0 .4rem}._tagTabs_icnit_77 .van-tab{font-size:.42667rem;font-weight:700}._tagTabs_icnit_77 .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_icnit_77 .van-tab--active{background:#FF699E;color:#fff}._tagTabs_icnit_77 .van-tab--active .van-tab__text{z-index:1}._tagTabs_icnit_77 .van-tabs__line{height:0}._fleg_icnit_107{display:flex;align-items:center;font-size:.37333rem;font-weight:600}._fleg_icnit_107 ._iconFree_icnit_113{width:1.28rem;height:.69333rem}._fleg_icnit_107 ._iconFreeDisable_icnit_117{opacity:.5}._fleg_icnit_107 span{padding-top:.08rem}._searchResult_icnit_123{padding:.42667rem .42667rem 0;overflow:hidden;margin-bottom:.53333rem}._searchResult_icnit_123 ._searchTitle_icnit_128{font-size:.42667rem;color:#333;line-height:.58667rem}._radio-group_icnit_133{display:flex;margin-top:.26667rem;margin-bottom:.53333rem;flex-wrap:wrap}._radio-group_icnit_133 ._radio_icnit_133:first-child .van-radio__label{margin-left:0}._radio_icnit_133 .van-radio__icon{display:none}._radio_icnit_133 .van-tag--large{width:2.13333rem;height:.85333rem;font-size:.42667rem;text-align:center;display:flex;align-items:center;justify-content:center}._radio_icnit_133 .van-tag{box-sizing:border-box;width:31%!important}._radio_icnit_133 .van-tag--default{color:var(--van-tag-text-default-color)}._radio_icnit_133 .van-tag--primary{background-color:#fff}._organ-radio_icnit_164 .van-tag--large{width:auto;padding:0 .32rem;margin-bottom:.21333rem;margin-right:.21333rem;font-size:.37333rem}\n',document.head.appendChild(l),System.register(["./index-legacy.fba2875c.js","./index-legacy.a7012d0a.js","./index-legacy.7dcec7b3.js","./index-legacy.78361179.js","./index-legacy.edb65d0c.js","./index-legacy.fc679d65.js","./music-legacy.bbe2d538.js","./index-legacy.85fd8338.js","./index-legacy.e7460ea1.js","./bg-image-legacy.44e2b3db.js","./index-legacy.0e744c22.js","./use-id-legacy.db87b112.js","./use-tab-status-legacy.8752ccde.js","./index-legacy.8921f068.js","./icon-xin-legacy.98015baf.js","./index-legacy.d92f7da7.js","./index-legacy.40eca993.js","./use-height-legacy.233a2ec8.js","./index-legacy.33680739.js"],(function(e){"use strict";var t,a,l,c,u,d,s,p,v,f,m,_,g,b,h,y,w,x,k,j,z,C,O,S,T,P,I,E,R,M,A,L,D,V,B,N,F,U,W,q,H,G,X,$,J,Q,Y,Z,K,ee,ne;return{setters:[function(e){t=e.A,a=e.G,l=e.E,c=e.aa,u=e.$,d=e.d,s=e.S,p=e.ai,v=e.ab,f=e.V,m=e.L,_=e.bs,g=e.ae,b=e.j,h=e.aX,y=e.X,w=e.al,x=e.aV,k=e.H,j=e.Q,z=e.as,C=e.aj,O=e.bu,S=e.ad,T=e.a5,P=e.aE,I=e.aR,E=e.M,R=e.N,M=e.O,A=e.P,L=e.g,D=e.U,V=e.F,B=e.z,N=e.B,F=e.be,U=e.C,W=e.Z,q=e.w},function(e){H=e.L},function(e){G=e.C},function(e){X=e.T},function(e){$=e.S},function(e){J=e.S},function(e){Q=e.g},function(e){Y=e.S},function(e){Z=e.C},function(e){K=e.b},function(e){ee=e.T},function(e){ne=e.u},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var te=i(t("dropdown-menu"),2),oe=te[0],re=te[1],ie={overlay:a,zIndex:l,duration:c(.2),direction:u("down"),activeColor:String,closeOnClickOutside:a,closeOnClickOverlay:a},ae=Symbol(oe),le=d({name:oe,props:ie,setup:function(e,n){var t=n.slots,o=ne(),i=s(),a=s(),l=s(0),c=p(ae),u=c.children,d=c.linkChildren,x=v(i),k=f((function(){return u.some((function(e){return e.state.showWrapper}))})),j=f((function(){if(k.value&&m(e.zIndex))return{zIndex:+e.zIndex+1}})),z=function(){if(a.value){var n=y(a);"down"===e.direction?l.value=n.bottom:l.value=w.value-n.top}},C=function(n,t){var i=n.state.showPopup,a=n.disabled,l=n.titleClass;return b("div",{id:"".concat(o,"-").concat(t),role:"button",tabindex:a?void 0:0,class:[re("item",{disabled:a}),r({},h,!a)],onClick:function(){a||function(e){u.forEach((function(n,t){t===e?(z(),n.toggle()):n.state.showPopup&&n.toggle(!1,{immediate:!0})}))}(t)}},[b("span",{class:[re("title",{down:i===("down"===e.direction),active:i}),l],style:{color:i?e.activeColor:""}},[b("div",{class:"van-ellipsis"},[n.renderTitle()])])])};return d({id:o,props:e,offset:l}),_(i,(function(){e.closeOnClickOutside&&u.forEach((function(e){e.toggle(!1)}))})),g("scroll",(function(){k.value&&z()}),{target:x}),function(){var e;return b("div",{ref:i,class:re()},[b("div",{ref:a,style:j.value,class:re("bar",{opened:k.value})},[u.map(C)]),null==(e=t.default)?void 0:e.call(t)])}}}),ce=i(t("dropdown-item"),2),ue=ce[0],de=ce[1],se={title:String,options:x(),disabled:Boolean,teleport:[String,Object],lazyRender:a,modelValue:k,titleClass:k},pe=d({name:ue,props:se,emits:["open","opened","close","closed","change","update:modelValue"],setup:function(e,n){var t=n.emit,o=n.slots,r=j({showPopup:!1,transition:!0,showWrapper:!1}),i=z(ae),a=i.parent,l=i.index;if(a){var c=function(e){return function(){return t(e)}},u=c("open"),d=c("close"),s=c("opened"),p=function(){r.showWrapper=!1,t("closed")},v=function(n){e.teleport&&n.stopPropagation()},f=function(n){var o=a.props.activeColor,i=n.value===e.modelValue;return b(G,{role:"menuitem",key:n.value,icon:n.icon,title:n.text,class:de("option",{active:i}),style:{color:i?o:""},tabindex:i?0:-1,clickable:!0,onClick:function(){r.showPopup=!1,n.value!==e.modelValue&&(t("update:modelValue",n.value),t("change",n.value))}},{value:function(){if(i)return b(E,{class:de("icon"),color:o,name:"success"},null)}})},m=function(){var n=a.offset,t=a.props,i=t.zIndex,c=t.overlay,m=t.duration,_=t.direction,g=t.closeOnClickOverlay,h=S(i);return"down"===_?h.top="".concat(n.value,"px"):h.bottom="".concat(n.value,"px"),T(b("div",{style:h,class:de([_]),onClick:v},[b(I,{show:r.showPopup,"onUpdate:show":function(e){return r.showPopup=e},role:"menu",class:de("content"),overlay:c,position:"down"===_?"top":"bottom",duration:r.transition?m:0,lazyRender:e.lazyRender,overlayStyle:{position:"absolute"},"aria-labelledby":"".concat(a.id,"-").concat(l.value),closeOnClickOverlay:g,onOpen:u,onClose:d,onOpened:s,onClosed:p},{default:function(){var n;return[e.options.map(f),null==(n=o.default)?void 0:n.call(o)]}})]),[[P,r.showWrapper]])};return C({state:r,toggle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!r.showPopup,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e!==r.showPopup&&(r.showPopup=e,r.transition=!n.immediate,e&&(r.showWrapper=!0))},renderTitle:function(){if(o.title)return o.title();if(e.title)return e.title;var n=e.options.find((function(n){return n.value===e.modelValue}));return n?n.text:""}}),function(){return e.teleport?b(O,{to:e.teleport},{default:function(){return[m()]}}):m()}}console.error("[Vant] <DropdownItem> must be a child component of <DropdownMenu>.")}}),ve=R(pe),fe=R(le),me="_sticky_icnit_1",_e="_alumnList_icnit_62",ge="_bgImg_icnit_69",be="_searchResult_icnit_123",he="_searchTitle_icnit_128",ye="_radio-group_icnit_133",we="_radio_icnit_133",xe="_organ-radio_icnit_164";function ke(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!W(e)}var je=function(){};e("default",d({name:"MusicList",props:{teacherId:{type:String||Number,default:""},myself:{type:Boolean,default:!1}},setup:function(e,t){var r=e.onItemClick;t.expose;localStorage.setItem("behaviorId",Q());var i=M(),a=A(),l=j({search:i.query.search||"",subjectType:i.query.subjectType||"",page:1,subjectId:null,level:"",type:""}),c=s(null),u=s(!1),d=s(!1),p=s(!1),v=s({}),f=s("STUDENT"===L.platformType?"/api-student":"/api-teacher"),m=function(e){l.page=1,l.search=e,c.value=null,_()},_=function(){var e=o(regeneratorRuntime.mark((function e(){var t,o,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u.value=!0,p.value=!1,t=n({},l),e.prev=3,e.next=6,q.post("".concat(f.value,"/tenantAlbumMusic/page"),{data:t});case 6:o=e.sent,c.value&&(i=((null===(r=c.value)||void 0===r?void 0:r.rows)||[]).concat(o.data.rows||[]),c.value.rows=i),c.value=c.value||o.data,l.page=o.data.pageNo+1,d.value=o.data.pageNo>=o.data.totalPage,e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),p.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)}}(),g=function(){var e=o(regeneratorRuntime.mark((function e(){var n,t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,q.post("".concat(f.value,"/tenantAlbumMusic/selectCondition"),{data:{subjectType:l.subjectType}});case 2:n=e.sent,t=n.data,v.value=t||{};case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return D(o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"SUBJECT"===l.subjectType?document.title="声部练习":"MUSIC"===l.subjectType?document.title="独奏曲目":"ENSEMBLE"===l.subjectType&&(document.title="合奏练习"),u.value=!0,e.next=4,g();case 4:return e.next=6,_();case 6:case"end":return e.stop()}}),e)})))),function(){return b(V,null,[b("div",{class:me},[b(ee,null,{default:function(){return[b(Z,{background:"transparent",isFixed:!1,border:!1,color:"#131415"},null),b(J,{onSearch:m,type:"tenant",background:"transparent",inputBackground:"transparent"},{left:function(){return b(fe,null,{default:function(){return[b(ve,{title:"筛选"},{default:function(){return[b("div",{class:be,style:{maxHeight:"45vh",overflowY:"auto"}},[v.value.subjects&&v.value.subjects.length>0&&b(V,null,[b("div",{class:he},[B("声部")]),b("div",{class:[ye,we,xe]},[v.value.subjects.map((function(e){var n=e.id===Number(l.subjectId||null);return b(X,{size:"large",plain:n,type:n?"primary":"default",round:!0,onClick:function(){console.log(e,"1212")}},{default:function(){return[e.name]}})}))])]),v.value.levels&&v.value.levels.length>0&&b(V,null,[b("div",{class:he},[B("级别")]),b("div",{class:[ye,we,xe]},[v.value.levels.map((function(e){var n=e===l.level;return b(X,{size:"large",plain:n,type:n?"primary":"default",round:!0,onClick:function(){console.log(e,"1212")}},ke(e)?e:{default:function(){return[e]}})}))])]),v.value.types&&v.value.types.length>0&&b(V,null,[b("div",{class:he},[B("类型")]),b("div",{class:[ye,we,xe]},[v.value.types.map((function(e){var n=e===l.type;return b(X,{size:"large",plain:n,type:n?"primary":"default",round:!0,onClick:function(){console.log(e,"1212")}},ke(e)?e:{default:function(){return[e]}})}))])]),b($,{position:"bottom",offsetBottom:0},{default:function(){return[b("div",{class:["btnGroup","btnMore"]},[b(N,{type:"primary",plain:!0,round:!0,onClick:function(){l.subjectId=null,l.level="",l.type=""}},{default:function(){return[B("重 置")]}}),b(N,{type:"primary",round:!0,block:!0,onClick:function(){}},{default:function(){return[B("确 认")]}})])]}})])]}})]}})}})]}}),b("img",{class:ge,src:K},null)]),b("div",{class:_e},[b(H,{finished:d.value,"finished-text":(c.value&&c.value.rows.length,""),onLoad:_,error:p.value,immediateCheck:!1},{default:function(){return[c.value&&c.value.rows.length?b(Y,{showTitleImg:!0,list:c.value.rows,onDetail:function(e){if(r===je){var n=location.origin+location.pathname+"#/music-detail?id="+e.id;F(n,(function(){a.push({path:"/music-detail",query:{id:e.id}})}))}else null==r||r(e)}},null):!u.value&&b(U,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}})])])}}}))}}}))}();
|