1 |
- !function(){function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function n(n){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?e(Object(a),!0).forEach((function(e){r(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,a,r,o,i){try{var l=e[o](i),c=l.value}catch(u){return void t(u)}l.done?n(c):Promise.resolve(c).then(a,r)}function a(e){return function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function l(e){t(i,r,o,l,c,"next",e)}function c(e){t(i,r,o,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 o(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 a,r,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);i=!0);}catch(c){l=!0,r=c}finally{try{i||null==t.return||t.return()}finally{if(l)throw r}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return i(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 i(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 i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}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_1albq_1 .van-sticky{background:url(./assets/bg-image.e89554da.png) no-repeat top center;background-size:100% 5.70667rem}._sticky_1albq_1 .van-search__content{background:rgba(255,255,255,.5)!important}._sticky_1albq_1 .van-search__content input::-moz-placeholder{color:rgba(0,0,0,.4)!important}._sticky_1albq_1 .van-search__content input::placeholder{color:rgba(0,0,0,.4)!important}._sticky_1albq_1 .van-search__content input,._sticky_1albq_1 .van-search__content .van-field__clear{color:rgba(0,0,0,.4)!important}._sticky_1albq_1 .van-dropdown-menu__bar{background-color:transparent;box-shadow:none;padding-right:.4rem}._sticky_1albq_1 .van-dropdown-menu__title{padding-left:0}._sticky_1albq_1 .van-dropdown-menu__title:after{border-color:transparent transparent rgba(0,0,0,.4) rgba(0,0,0,.4)}._sticky_1albq_1 .van-dropdown-item__content{border-radius:0 0 .53333rem .53333rem}._sticky_1albq_1 ._titleActive_1albq_31{color:#fe2451}._listContainer_1albq_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_1albq_34 ._line_1albq_46{margin:0 .4rem;width:.02667rem;height:.26667rem;background:#e8e8e8}._listContainer_1albq_34 ._active_1albq_52{color:#333}._label_1albq_55{margin-right:.21333rem;font-size:.37333rem;color:#131415}._label_1albq_55 .van-list__loading,._label_1albq_55 .van-list__finished-text,._label_1albq_55 .van-list__error-text{width:100%}._label_1albq_55 .iconfont-down{margin-left:.10667rem}._alumnList_1albq_68{padding:0 .32rem;border-radius:.48rem;background-color:#fff;margin:.16rem;min-height:40vh}._bgImg_1albq_75{position:fixed;top:0;left:0;width:100%;height:5.70667rem;z-index:-1}._tagTabs_1albq_83 .van-tabs__nav{background-color:transparent;padding:0;margin:0 .4rem}._tagTabs_1albq_83 .van-tab{font-size:.42667rem;font-weight:700}._tagTabs_1albq_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_1albq_83 .van-tab--active{background:#FF699E;color:#fff}._tagTabs_1albq_83 .van-tab--active .van-tab__text{z-index:1}._tagTabs_1albq_83 .van-tabs__line{height:0}._fleg_1albq_113{display:flex;align-items:center;font-size:.37333rem;font-weight:600}._fleg_1albq_113 ._iconFree_1albq_119{width:1.28rem;height:.69333rem}._fleg_1albq_113 ._iconFreeDisable_1albq_123{opacity:.5}._fleg_1albq_113 span{padding-top:.08rem}._searchResult_1albq_129{padding:.42667rem .42667rem .32rem;overflow:hidden;margin-bottom:.53333rem}._searchResult_1albq_129 ._searchTitle_1albq_134{font-size:.42667rem;color:#333;line-height:.58667rem}._radio-group_1albq_139{display:flex;margin-top:.26667rem;margin-bottom:.53333rem;flex-wrap:wrap}._radio-group_1albq_139 ._radio_1albq_139:first-child .van-radio__label{margin-left:0}._radio_1albq_139 .van-radio__icon{display:none}._radio_1albq_139 .van-tag--large{width:2.13333rem;height:.85333rem;font-size:.42667rem;text-align:center;display:flex;align-items:center;justify-content:center}._radio_1albq_139 .van-tag{box-sizing:border-box;width:31%!important}._radio_1albq_139 .van-tag--default{color:var(--van-tag-text-default-color)}._radio_1albq_139 .van-tag--primary{background-color:#fff}._organ-radio_1albq_170 .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.e29ebc18.js","./index-legacy.0389f2f7.js","./index-legacy.06d9aa13.js","./index-legacy.9a585ba5.js","./index-legacy.94b6d64c.js","./music-legacy.32ebe5b6.js","./index-legacy.45174ce6.js","./index-legacy.328e8c31.js","./bg-image-legacy.44e2b3db.js","./index-legacy.2cebfa6d.js","./use-id-legacy.6fce8b0d.js","./use-tab-status-legacy.4656d4d6.js","./index-legacy.1e1ec9e6.js","./icon-xin2-legacy.d521c9ab.js","./index-legacy.bd25e127.js","./index-legacy.ec3a5bfc.js","./use-height-legacy.ea04c122.js","./index-legacy.8ab2848d.js"],(function(e){"use strict";var t,i,l,c,u,d,s,p,v,f,_,m,b,g,h,y,w,x,k,q,j,C,z,O,S,I,P,T,E,R,A,M,L,D,V,B,F,N,U,W,H,G,X,$,J,Q,Y,Z,K;return{setters:[function(e){t=e.A,i=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,_=e.L,m=e.bs,b=e.ae,g=e.j,h=e.aX,y=e.X,w=e.al,x=e.aV,k=e.H,q=e.Q,j=e.as,C=e.aj,z=e.bu,O=e.ad,S=e.a5,I=e.aE,P=e.aR,T=e.M,E=e.N,R=e.O,A=e.P,M=e.g,L=e.U,D=e.F,V=e.z,B=e.B,F=e.C,N=e.Z,U=e.w},function(e){W=e.L},function(e){H=e.C},function(e){G=e.T},function(e){X=e.S},function(e){$=e.g},function(e){J=e.S},function(e){Q=e.C},function(e){Y=e.b},function(e){Z=e.T},function(e){K=e.u},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var ee=o(t("dropdown-menu"),2),ne=ee[0],te=ee[1],ae={overlay:i,zIndex:l,duration:c(.2),direction:u("down"),activeColor:String,closeOnClickOutside:i,closeOnClickOverlay:i},re=Symbol(ne),oe=d({name:ne,props:ae,setup:function(e,n){var t=n.slots,a=K(),o=s(),i=s(),l=s(0),c=p(re),u=c.children,d=c.linkChildren,x=v(o),k=f((function(){return u.some((function(e){return e.state.showWrapper}))})),q=f((function(){if(k.value&&_(e.zIndex))return{zIndex:+e.zIndex+1}})),j=function(){if(i.value){var n=y(i);"down"===e.direction?l.value=n.bottom:l.value=w.value-n.top}},C=function(n,t){var o=n.state.showPopup,i=n.disabled,l=n.titleClass;return g("div",{id:"".concat(a,"-").concat(t),role:"button",tabindex:i?void 0:0,class:[te("item",{disabled:i}),r({},h,!i)],onClick:function(){i||function(e){u.forEach((function(n,t){t===e?(j(),n.toggle()):n.state.showPopup&&n.toggle(!1,{immediate:!0})}))}(t)}},[g("span",{class:[te("title",{down:o===("down"===e.direction),active:o}),l],style:{color:o?e.activeColor:""}},[g("div",{class:"van-ellipsis"},[n.renderTitle()])])])};return d({id:a,props:e,offset:l}),m(o,(function(){e.closeOnClickOutside&&u.forEach((function(e){e.toggle(!1)}))})),b("scroll",(function(){k.value&&j()}),{target:x}),function(){var e;return g("div",{ref:o,class:te()},[g("div",{ref:i,style:q.value,class:te("bar",{opened:k.value})},[u.map(C)]),null==(e=t.default)?void 0:e.call(t)])}}}),ie=o(t("dropdown-item"),2),le=ie[0],ce=ie[1],ue={title:String,options:x(),disabled:Boolean,teleport:[String,Object],lazyRender:i,modelValue:k,titleClass:k},de=d({name:le,props:ue,emits:["open","opened","close","closed","change","update:modelValue"],setup:function(e,n){var t=n.emit,a=n.slots,r=q({showPopup:!1,transition:!0,showWrapper:!1}),o=j(re),i=o.parent,l=o.index;if(i){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 a=i.props.activeColor,o=n.value===e.modelValue;return g(H,{role:"menuitem",key:n.value,icon:n.icon,title:n.text,class:ce("option",{active:o}),style:{color:o?a:""},tabindex:o?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(o)return g(T,{class:ce("icon"),color:a,name:"success"},null)}})},_=function(){var n=i.offset,t=i.props,o=t.zIndex,c=t.overlay,_=t.duration,m=t.direction,b=t.closeOnClickOverlay,h=O(o);return"down"===m?h.top="".concat(n.value,"px"):h.bottom="".concat(n.value,"px"),S(g("div",{style:h,class:ce([m]),onClick:v},[g(P,{show:r.showPopup,"onUpdate:show":function(e){return r.showPopup=e},role:"menu",class:ce("content"),overlay:c,position:"down"===m?"top":"bottom",duration:r.transition?_:0,lazyRender:e.lazyRender,overlayStyle:{position:"absolute"},"aria-labelledby":"".concat(i.id,"-").concat(l.value),closeOnClickOverlay:b,onOpen:u,onClose:d,onOpened:s,onClosed:p},{default:function(){var n;return[e.options.map(f),null==(n=a.default)?void 0:n.call(a)]}})]),[[I,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(a.title)return a.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?g(z,{to:e.teleport},{default:function(){return[_()]}}):_()}}console.error("[Vant] <DropdownItem> must be a child component of <DropdownMenu>.")}}),se=E(de),pe=E(oe),ve="_sticky_1albq_1",fe="_titleActive_1albq_31",_e="_alumnList_1albq_68",me="_bgImg_1albq_75",be="_searchResult_1albq_129",ge="_searchTitle_1albq_134",he="_radio-group_1albq_139",ye="_radio_1albq_139",we="_organ-radio_1albq_170";function xe(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!N(e)}e("default",d({name:"MusicList",props:{teacherId:{type:String||Number,default:""},myself:{type:Boolean,default:!1}},setup:function(e,t){e.onItemClick,t.expose;localStorage.setItem("behaviorId",$());var r=R(),o=A(),i=r.query.subjectType||"",l="";"SUBJECT"===i?l="声部练习":"MUSIC"===i?l="独奏曲目":"ENSEMBLE"===i&&(l="合奏练习");var c=q({keyword:r.query.search||"",subjectType:i,page:1,subjectId:null,level:"",type:"",title:l}),u=s(null),d=s(!1),p=s(!1),v=s(!1),f=s({}),_=s(),m=s("STUDENT"===M.platformType?"/api-student":"/api-teacher"),b=function(e){c.page=1,c.keyword=e,u.value=null,h()},h=function(){var e=a(regeneratorRuntime.mark((function e(){var t,a,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d.value=!0,v.value=!1,t=n({},c),e.prev=3,e.next=6,U.post("".concat(m.value,"/tenantAlbumMusic/page"),{data:t});case 6:a=e.sent,u.value&&(o=((null===(r=u.value)||void 0===r?void 0:r.rows)||[]).concat(a.data.rows||[]),u.value.rows=o),u.value=u.value||a.data,c.page=a.data.pageNo+1,p.value=a.data.pageNo>=a.data.totalPage,e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),v.value=!0;case 16:d.value=!1;case 17:case"end":return e.stop()}}),e,null,[[3,13]])})));return function(){return e.apply(this,arguments)}}(),y=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,U.post("".concat(m.value,"/tenantAlbumMusic/selectCondition"),{data:{subjectType:c.subjectType}});case 2:n=e.sent,t=n.data,f.value=t||{};case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return L(a(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d.value=!0,e.next=3,y();case 3:return e.next=5,h();case 5:case"end":return e.stop()}}),e)})))),function(){return g(D,null,[g("div",{class:ve},[g(Z,null,{default:function(){return[g(Q,{background:"transparent",isFixed:!1,border:!1,title:l,color:"#131415"},null),g(X,{onSearch:b,type:"tenant",background:"transparent",inputBackground:"transparent"},{left:function(){return g(pe,null,{default:function(){return[g(se,{titleClass:c.subjectId||c.type||c.level?fe:"",title:"筛选",ref:_},{default:function(){return[g("div",{class:be,style:{maxHeight:"45vh",overflowY:"auto"}},[f.value.subjects&&f.value.subjects.length>0&&g(D,null,[g("div",{class:ge},[V("声部")]),g("div",{class:[he,ye,we]},[f.value.subjects.map((function(e){var n=e.id===c.subjectId;return g(G,{size:"large",plain:n,type:n?"primary":"default",round:!0,onClick:function(){c.subjectId=e.id}},{default:function(){return[e.name]}})}))])]),f.value.levels&&f.value.levels.length>0&&g(D,null,[g("div",{class:ge},[V("级别")]),g("div",{class:[he,ye,we]},[f.value.levels.map((function(e){var n=e===c.level;return g(G,{size:"large",plain:n,type:n?"primary":"default",round:!0,onClick:function(){c.level=e}},xe(e)?e:{default:function(){return[e]}})}))])]),f.value.types&&f.value.types.length>0&&g(D,null,[g("div",{class:ge},[V("类型")]),g("div",{class:[he,ye,we]},[f.value.types.map((function(e){var n=e===c.type;return g(G,{size:"large",plain:n,type:n?"primary":"default",round:!0,onClick:function(){c.type=e}},xe(e)?e:{default:function(){return[e]}})}))])])]),g("div",{class:["btnGroup","btnMore"]},[g(B,{type:"primary",plain:!0,round:!0,onClick:function(){c.subjectId=null,c.level="",c.type=""}},{default:function(){return[V("重 置")]}}),g(B,{type:"primary",round:!0,block:!0,onClick:function(){var e;b(""),null===(e=_.value)||void 0===e||e.toggle()}},{default:function(){return[V("确 认")]}})])]}})]}})}})]}}),g("img",{class:me,src:Y},null)]),g("div",{class:_e},[g(W,{finished:p.value,"finished-text":(u.value&&u.value.rows.length,""),onLoad:h,error:v.value,immediateCheck:!1},{default:function(){return[u.value&&u.value.rows.length?g(J,{showTitleImg:!0,list:u.value.rows,onDetail:function(e){o.push({path:"/music-detail",query:{id:e.id}})}},null):!d.value&&g(F,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}})])])}}}))}}}))}();
|