1 |
- !function(){function e(e,n,a,t,r,i,o){try{var c=e[i](o),l=c.value}catch(u){return void a(u)}c.done?n(l):Promise.resolve(l).then(t,r)}function n(n){return function(){var a=this,t=arguments;return new Promise((function(r,i){var o=n.apply(a,t);function c(n){e(o,r,i,c,l,"next",n)}function l(n){e(o,r,i,c,l,"throw",n)}c(void 0)}))}}function a(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,t)}return a}function t(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){r(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function r(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function i(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==a)return;var t,r,i=[],o=!0,c=!1;try{for(a=a.call(e);!(o=(t=a.next()).done)&&(i.push(t.value),!n||i.length!==n);o=!0);}catch(l){c=!0,r=l}finally{try{o||null==a.return||a.return()}finally{if(c)throw r}}return i}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return o(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return o(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 o(e,n){(null==n||n>e.length)&&(n=e.length);for(var a=0,t=new Array(n);a<n;a++)t[a]=e[a];return t}var c=document.createElement("style");c.innerHTML=':root{--van-switch-size: .8rem;--van-switch-width: 2em;--van-switch-height: 1em;--van-switch-node-size: 1em;--van-switch-node-background-color: var(--van-white);--van-switch-node-box-shadow: 0 .08rem .02667rem 0 rgba(0, 0, 0, .05), 0 .05333rem .05333rem 0 rgba(0, 0, 0, .1), 0 .08rem .08rem 0 rgba(0, 0, 0, .05);--van-switch-background-color: var(--van-background-color-light);--van-switch-on-background-color: var(--van-primary-color);--van-switch-transition-duration: var(--van-animation-duration-base);--van-switch-disabled-opacity: var(--van-disabled-opacity);--van-switch-border: var(--van-border-width-base) solid rgba(0, 0, 0, .1)}.van-switch{position:relative;display:inline-block;box-sizing:content-box;width:var(--van-switch-width);height:var(--van-switch-height);font-size:var(--van-switch-size);background:var(--van-switch-background-color);border:var(--van-switch-border);border-radius:var(--van-switch-node-size);cursor:pointer;transition:background-color var(--van-switch-transition-duration)}.van-switch__node{position:absolute;top:0;left:0;width:var(--van-switch-node-size);height:var(--van-switch-node-size);font-size:inherit;background:var(--van-switch-node-background-color);border-radius:100%;box-shadow:var(--van-switch-node-box-shadow);transition:transform var(--van-switch-transition-duration) cubic-bezier(.3,1.05,.4,1.05)}.van-switch__loading{top:25%;left:25%;width:50%;height:50%;line-height:1}.van-switch--on{background:var(--van-switch-on-background-color)}.van-switch--on .van-switch__node{transform:translate(calc(var(--van-switch-width) - var(--van-switch-node-size)))}.van-switch--on .van-switch__loading{color:var(--van-switch-on-background-color)}.van-switch--disabled{cursor:not-allowed;opacity:var(--van-switch-disabled-opacity)}.van-switch--loading{cursor:default}._sticky_wg0y2_1 .van-sticky{background:url(./assets/bgImg.2964f21d.png) no-repeat top center;background-size:100% 5.70667rem}._listContainer_wg0y2_5{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_wg0y2_5 ._line_wg0y2_17{margin:0 .4rem;width:.02667rem;height:.26667rem;background:#e8e8e8}._listContainer_wg0y2_5 ._active_wg0y2_23{color:#333}._label_wg0y2_26{margin-right:.21333rem;font-size:.37333rem;color:#fff}._label_wg0y2_26 .van-list__loading,._label_wg0y2_26 .van-list__finished-text,._label_wg0y2_26 .van-list__error-text{width:100%}._label_wg0y2_26 .iconfont-down{margin-left:.10667rem}._alumnList_wg0y2_39{padding:0 .32rem;border-radius:.48rem;background-color:#fff;margin:.37333rem}._bgImg_wg0y2_45{position:fixed;top:0;left:0;width:100%;height:5.70667rem;z-index:-1}._tagTabs_wg0y2_53 .van-tabs__nav{background-color:transparent;padding:0}._tagTabs_wg0y2_53 .van-tab{font-size:.42667rem;font-weight:700;color:#fff}._tagTabs_wg0y2_53 .van-tab--shrink{padding:0;margin:.4rem}._tagTabs_wg0y2_53 .van-tab--active{color:#fff}._tagTabs_wg0y2_53 .van-tab--active:after{content:" ";display:inline-block;width:96%;position:absolute;height:.18667rem;background:#2dc7aa;border-radius:.10667rem;bottom:-.05333rem;left:2%;transition:all ease .3s}._tagTabs_wg0y2_53 .van-tab--active .van-tab__text{z-index:1}._tagTabs_wg0y2_53 .van-tabs__line{height:0}._fleg_wg0y2_87{display:flex;align-items:center;font-size:.37333rem;font-weight:600}._fleg_wg0y2_87 span{padding-top:.08rem}._fleg_wg0y2_87 .van-switch{margin-right:.13333rem;border-color:rgba(255,255,255,.3);background:#9ec6fa}._fleg_wg0y2_87 .van-switch__node{background:rgba(255,255,255,.51)}._fleg_wg0y2_87 .van-switch--on{background:#62c4ab}._fleg_wg0y2_87 .van-switch--on .van-switch__node{background:#ffffff}\n',document.head.appendChild(c),System.register(["./index-legacy.b903c881.js","./index-legacy.f52c26b4.js","./index-legacy.8abefd50.js","./index-legacy.ae2ce69e.js","./index-legacy.ba78f33e.js","./index-legacy.3e4ae683.js","./select-tag-legacy.e25783c1.js","./music-legacy.1b935274.js","./select-subject-legacy.71d46246.js","./hooks-legacy.84a774a1.js","./index-legacy.c848501c.js","./index-legacy.885c229f.js","./index-legacy.8e85fa65.js","./index-legacy.909b3c1c.js","./use-tab-status-legacy.a19d344b.js","./use-id-legacy.29724920.js","./use-refs-legacy.14daae14.js","./index-legacy.b7f666cc.js","./index-legacy.e9e6da38.js","./index-legacy.857a8bc7.js","./index-legacy.a3b9d61a.js","./index-legacy.fea60f22.js","./index-legacy.6e10cd37.js","./index-legacy.c28809c6.js","./icon_uploader-legacy.b178a553.js","./icon-xin-legacy.34fb9986.js","./icon_album-legacy.27017c0f.js","./icon_album_active-legacy.fcd6f4c0.js","./icon_exquisite-legacy.80eb242a.js","./icon_music_active-legacy.77693573.js","./index-legacy.5b93d63d.js","./icon-play-legacy.50b88257.js","./index-legacy.77670d98.js"],(function(e){"use strict";var a,r,o,c,l,u,s,d,f,g,v,b,h,p,m,y,w,_,A,j,S,x,k,C,I,E,T,B,R,z,O,N,P,U,D,H;return{setters:[function(e){a=e.A,r=e.E,o=e.H,c=e.d,l=e.a_,u=e.a1,s=e.j,d=e.aS,f=e.N,g=e.w,v=e.g,b=e.S,h=e.O,p=e.P,m=e.Q,y=e.U,w=e.f,_=e.F,A=e.z,j=e.M,S=e.be,x=e.C,k=e.aR},function(e){C=e.L},function(){},function(){},function(e){I=e.T,E=e.a},function(e){T=e.S},function(e){B=e.S},function(e){R=e.g},function(e){z=e.S},function(e){O=e.a,N=e.S},function(e){P=e.S},function(e){U=e.C},function(e){D=e.c},function(e){H=e.T},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var V=i(a("switch"),2),F=V[0],L=V[1],M={size:r,loading:Boolean,disabled:Boolean,modelValue:o,activeColor:String,inactiveColor:String,activeValue:{type:o,default:!0},inactiveValue:{type:o,default:!1}},J=c({name:F,props:M,emits:["change","update:modelValue"],setup:function(e,n){var a=n.emit,t=function(){return e.modelValue===e.activeValue},r=function(){if(!e.disabled&&!e.loading){var n=t()?e.inactiveValue:e.activeValue;a("update:modelValue",n),a("change",n)}},i=function(){if(e.loading){var n=t()?e.activeColor:e.inactiveColor;return s(d,{class:L("loading"),color:n},null)}};return l((function(){return e.modelValue})),function(){var n=e.size,a=e.loading,o=e.disabled,c=e.activeColor,l=e.inactiveColor,d=t(),f={fontSize:u(n),backgroundColor:d?c:l};return s("div",{role:"switch",class:L({on:d,loading:a,disabled:o}),style:f,tabindex:o?void 0:0,"aria-checked":d,onClick:r},[s("div",{class:L("node")},[i()])])}}}),X=f(J),q="_sticky_wg0y2_1",Q="_label_wg0y2_26",Y="_alumnList_wg0y2_39",Z="_bgImg_wg0y2_45",K="_tagTabs_wg0y2_53",G="_fleg_wg0y2_87",W=function(){};e("default",c({name:"MusicList",props:{hideSearch:{type:Boolean,default:!1},defauleParams:{type:Object,default:function(){return{}}},onItemClick:{type:Function,default:W},teacherId:{type:String||Number,default:""},myself:{type:Boolean,default:!1}},setup:function(e,a){var r=e.hideSearch,i=e.defauleParams,o=e.onItemClick,c=e.teacherId,l=e.myself,u=a.expose,d=D(g(v.platformApi+"/MusicTag/tree",{params:{type:"MUSIC"}}),null),f=(d.isLoading,d.state),V=b({id:"",name:""});if("TEACHER"===v.platformType){var F=v.user.data;V.value={name:F.defaultSubjectName||"全部声部",id:F.defaultSubject||""}}else{if(!O(N.SEARCH).id){var L=v.user.data,M=L.subjectId?Number(L.subjectId.split(",")[0]):"",J=L.subjectName?L.subjectName.split(",")[0]:"";M&&O(N.SEARCH,JSON.stringify({id:M,name:J}),"set")}}localStorage.setItem("behaviorId",R());var $=h(),ee=p(),ne={};v.version&&(ne.version=v.version||"",ne.platform="STUDENT"===v.platformType?"ios-student":"ios-teacher");var ae=b(!1);if(!r){if("TEACHER"===v.platformType)ne.subjectIds=V.value.id;else{var te=O(N.SEARCH);ne.subjectIds=te.id}var re=O(N.MUSIC_FREE);ae.value=re.chargeType}var ie=m(t(t({search:$.query.search||"",musicTagIds:$.query.tagids||"",page:1},i),ne)),oe=b(null),ce=b(!1),le=b(!1),ue=b(!1),se=b(!1),de=b(!0),fe=b("STUDENT"===v.platformType?"/api-student":"/api-teacher"),ge=function(e){ie.page=1,ie.search=e,oe.value=null,ve()},ve=function(){var e=n(regeneratorRuntime.mark((function e(){var n,a,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ce.value){e.next=2;break}return e.abrupt("return");case 2:return ce.value=!0,ue.value=!1,n=t(t({},ie),{},{auditStatus:"PASS",idAndName:ie.search,createBy:c}),ae.value&&(n.chargeType="FREE"),n.myself=!!l,e.prev=7,e.next=10,g.post("".concat(fe.value,"/music/sheet/list"),{data:n});case 10:a=e.sent,oe.value&&(i=((null===(r=oe.value)||void 0===r?void 0:r.rows)||[]).concat(a.data.rows||[]),oe.value.rows=i),oe.value=oe.value||a.data,ie.page=a.data.pageNo+1,le.value=a.data.pageNo>=a.data.totalPage,e.next=20;break;case 17:e.prev=17,e.t0=e.catch(7),ue.value=!0;case 20:ce.value=!1;case 21:case"end":return e.stop()}}),e,null,[[7,17]])})));return function(){return e.apply(this,arguments)}}(),be=function(){var e=n(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g.post("/api-teacher/teacher/defaultSubject",{params:{subjectId:n}});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(n){return e.apply(this,arguments)}}(),he=function(e){var n={};for(var a in e)-1===Number(a)?ae.value=!!e[a][0]:n[a]=e[a];var t=Object.values(n).flat().filter(Boolean).join(",");ie.musicTagIds=t,ie.page=1,oe.value=null,ve(),se.value=!1},pe=function(e){ie.page=1,ie.subjectIds=e.id,oe.value=null,"TEACHER"===v.platformType?(V.value={name:e.name,id:e.id},be(e.id)):(ye.id=e.id,ye.name=e.name,O(N.SEARCH,JSON.stringify({id:e.id,name:e.name}),"set")),ve(),ye.show=!1},me=O(N.SEARCH),ye=m({show:!1,name:me.id?me.name:"全部声部",id:me.id||""});return y(n(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,w().iPhone){e.next=4;break}return de.value=!1,e.abrupt("return");case 4:return e.next=6,g.get("/api-admin/appVersionInfo/queryByPlatform",{params:{platform:"TEACHER"===v.platformType?"ios-teacher":"ios-student"}});case 6:n=e.sent,a=n.data,v.version>a.version?de.value=!0:de.value=!1,e.next=13;break;case 11:e.prev=11,e.t0=e.catch(0);case 13:case"end":return e.stop()}}),e,null,[[0,11]])})))),u({onSearch:ge,onComfirm:he,onComfirmSubject:pe}),function(){var e=f.value&&f.value.data||[];return s(_,null,[!r&&s(_,null,[s(H,{class:q},{default:function(){return[s(U,{background:"transparent",isFixed:!1,border:!1,backIconColor:"white",color:"#fff"},{right:function(){return!de.value&&s("span",{class:G,onClick:function(){ae.value,ae.value,O(N.MUSIC_FREE,JSON.stringify({chargeType:ae.value}),"set"),oe.value=null,ie.page=1,ve()}},[s(X,{modelValue:ae.value,"onUpdate:modelValue":function(e){return ae.value=e},size:"20px"},null),s("span",null,[A("免费")])])}}),s(T,{onSearch:ge,background:"transparent",inputBackground:"transparent",leftIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA6BJREFUWEe9l2molVUUhp+32YKoSBNEKAoriawfShRhpIRNVkg/kiCHhCAzikiEjEQztJnyRzRB9SOwbBCKirLBkgoawYIoUAJDi2ikAXljxf4u62y/e8/xnsNd/87+1l7rOXuvvfa7RQ9mezpwCXA2MAU4FjgE+B3YAXwBbAFelPRzDyGHXDSSs+1LgdXAtB6D/g08BtwpaVcvc1oBbB8PPAOc00uQFp8/gVWS1nebvw+A7VnAs2WZh5tv4N+yDSPleB5YICm2qtU6AGzPBl4BDq68I1kE2wy8D+yS9I/to4ETgTnAVcDUlizvAbPDv41gCMD2qcAHwFGVYyS+VdJ3XerlgAJxDzCx8n1K0jXDAtiOf/wJcFpy2gvcIumBbvuYv9ueBLwAxMnJtljSE3Ws/1fA9jLgwepjJL93f5I3vmVrtgEnp/k/AifU9SDbB5azHOSNbZI0bzTJE0Rs6edVPd0s6f4cNwAuLIXXjEexTJX0bT8AZWUfBq5Pcb6UdHoN8BCwNA2+JOnyfpMXgFOAr6pYkyV934zFCnwIzEhOiyQ9OQiAAvF1VQvzJG3KAHuqpjND0scDBHgOyPUUR/ruDBB7nhtPxxL1C2K73uI1klZmgOjb41KiKZK+6TdxOg2PAtemeHdIWpUBdgKTk8N5kt4ZIEC09jhpjS2VtCEDvAZckBxWSlozCADbBwG7gbgzGpsl6a0McFu585uxzySdOSCA+GPxBxuLejtG0h8ZIDrW9irhZZJe7hfC9tZKU2yWNDfHbe6Ct4GZ6UMU4XRJv4wWwvZCoL58LpYUNTFkDUAkD02X9cHroQMlhRbYL7N9LvAGcGiauE1SaMoOy3rgcWBR9T2W8EpJP/RKYPtq4BHg8DTnL+AsSXE5DQtwGPBmUb7Z6SdgHbBBUvSMVrN9RinmUM/ZQr7NlxQybx+rJdl44F0gLpHaonIDMFRTKN74PaFIsjjnbXIskq+QtM72BElxJNtXoBm1fSTwNNBRrb1uQfILIRoX20bba4El0W8kfZpjDSfLYzzu8egRx40i+atFzm23fR9wU4kRj5Y5kj5qYnZ7mBwB3AAsBk7qAhJNJprOeklRvCH14mFT95NfgYskhbruOHYjxi+quX6a/QbEXRJPs62SInhnBdq3xyOlGo7tmStpy4grMIqlb51iezlwV/WH40RdMSYAZTtuBEKQ5pwbxwygQFwX/QSIR0wopfljClAgFgDnAwsl7f0PfUtCHGOyShkAAAAASUVORK5CYII="},{left:function(){return s("div",{class:Q,onClick:function(){return ye.show=!0}},["TEACHER"===v.platformType?V.value.name:ye.name,s(j,{classPrefix:"iconfont",name:"down",size:12,color:"#fff"},null)])}}),s(I,{shrink:!0,class:K,lineHeight:0,"onClick-tab":function(e){ie.musicTagIds=e.name,oe.value=null,ie.page=1,ve()}},{default:function(){return[s(E,{title:"全部",name:""},null),e.map((function(e){return s(E,{title:e.name,name:e.id},null)}))]}})]}}),s("img",{class:Z,src:"./assets/bgImg.2964f21d.png"},null)]),s("div",{class:Y},[s(C,{loading:ce.value,finished:le.value,"finished-text":(oe.value&&oe.value.rows.length,""),onLoad:ve,error:ue.value},{default:function(){return[oe.value&&oe.value.rows.length?s(P,{list:oe.value.rows,onDetail:function(e){if(o===W){var n=location.origin+location.pathname+"#/music-detail?id="+e.id;S(n,(function(){ee.push({path:"/music-detail",query:{id:e.id}})}))}else null==o||o(e)}},null):!ce.value&&s(x,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}})]),s(k,{show:se.value,round:!0,closeable:!0,position:"bottom",style:{height:"60%"},teleport:"body","onUpdate:show":function(e){return se.value=e}},{default:function(){return[s(B,{exquisiteFlag:!0,onConfirm:he,onCancel:function(){},defaultValue:$.query.tagids},null)]}}),s(k,{show:ye.show,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:function(){return ye.show=!1},onClosed:function(){return ye.show=!1}},{default:function(){return[s(z,{type:"MUSIC",searchParams:"TEACHER"===v.platformType?V.value:ye,onComfirm:pe},null)]}})])}}}))}}}))}();
|