index-legacy.f7167289.js 14 KB

1
  1. !function(){function e(e,n,a,t,r,i,o){try{var c=e[i](o),u=c.value}catch(l){return void a(l)}c.done?n(u):Promise.resolve(u).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,u,"next",n)}function u(n){e(o,r,i,c,u,"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(u){c=!0,r=u}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}\n",document.head.appendChild(c),System.register(["./index-legacy.b2528a15.js","./index-legacy.4f922f18.js","./index-legacy.9cbe7ce8.js","./index-legacy.3f4943f0.js","./index-legacy.7e6f30e7.js","./index-legacy.a87134f4.js","./select-tag-legacy.9deb7724.js","./index.module-legacy.7ae59c2a.js","./music-legacy.80266f81.js","./select-subject-legacy.c994b589.js","./hooks-legacy.fb8d6c34.js","./index-legacy.21779c2e.js","./index-legacy.81a64bb6.js","./index-legacy.44baf7f8.js","./use-tab-status-legacy.5c2c2da3.js","./use-id-legacy.4f071235.js","./use-refs-legacy.2f8acfce.js","./index-legacy.207dc8c2.js","./index-legacy.ab501af1.js","./index-legacy.edff980f.js","./index-legacy.987f23f1.js","./index-legacy.7d3d7cf1.js","./index-legacy.6e10cd37.js","./index-legacy.a493c461.js","./index-legacy.c610561c.js","./icon_uploader-legacy.db3a8c90.js","./icon-xin-legacy.18ed4a9d.js","./icon_album-legacy.d489a774.js","./icon_album_active-legacy.d2829e23.js","./icon_exquisite-legacy.178b582f.js","./icon_music_active-legacy.cc68af68.js","./index-legacy.ca42ae97.js","./icon-play-legacy.50b88257.js","./index-legacy.f75b8290.js","./use-height-legacy.2a153aaf.js"],(function(e){"use strict";var a,r,o,c,u,l,s,d,f,v,g,p,h,b,m,y,w,A,j,S,x,C,k,I,E,B,R,O,T,z,N,P,U,D,V,H,F;return{setters:[function(e){a=e.E,r=e.G,o=e.I,c=e.d,u=e.a$,l=e.a2,s=e.i,d=e.aS,f=e.O,v=e.e,g=e.s,p=e.U,h=e.P,b=e.Q,m=e.S,y=e.V,w=e.b,A=e.F,j=e.A,S=e.N,x=e.bg,C=e.C,k=e.aT},function(e){I=e.S},function(e){E=e.L},function(){},function(e){B=e.T,R=e.a},function(e){O=e.C},function(e){T=e.S},function(e){z=e.s},function(e){N=e.g},function(e){P=e.S},function(e){U=e.a,D=e.S},function(e){V=e.S},function(e){H=e.C},function(e){F=e.b},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var L=i(a("switch"),2),J=L[0],M=L[1],X={size:r,loading:Boolean,disabled:Boolean,modelValue:o,activeColor:String,inactiveColor:String,activeValue:{type:o,default:!0},inactiveValue:{type:o,default:!1}},q=c({name:J,props:X,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:M("loading"),color:n},null)}};return u((function(){return e.modelValue})),function(){var n=e.size,a=e.loading,o=e.disabled,c=e.activeColor,u=e.inactiveColor,d=t(),f={fontSize:l(n),backgroundColor:d?c:u};return s("div",{role:"switch",class:M({on:d,loading:a,disabled:o}),style:f,tabindex:o?void 0:0,"aria-checked":d,onClick:r},[s("div",{class:M("node")},[i()])])}}}),Q=f(q),Y=function(){};e("default",c({name:"MusicList",props:{hideSearch:{type:Boolean,default:!1},defauleParams:{type:Object,default:function(){return{}}},onItemClick:{type:Function,default:Y},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,u=e.myself,l=a.expose,d=F(v(g.platformApi+"/MusicTag/tree",{params:{type:"MUSIC"}}),null),f=(d.isLoading,d.state),L=p({id:"",name:""});if("TEACHER"===g.platformType){var J=g.user.data;L.value={name:J.defaultSubjectName||"全部声部",id:J.defaultSubject||""}}else{if(!U(D.SEARCH).id){var M=g.user.data,X=M.subjectId?Number(M.subjectId.split(",")[0]):"",q=M.subjectName?M.subjectName.split(",")[0]:"";X&&U(D.SEARCH,JSON.stringify({id:X,name:q}),"set")}}localStorage.setItem("behaviorId",N());var Z=h(),_=b(),G={};g.version&&(G.version=g.version||"",G.platform="STUDENT"===g.platformType?"ios-student":"ios-teacher");var K=p(!1);if(!r){if("TEACHER"===g.platformType)G.subjectIds=L.value.id;else{var W=U(D.SEARCH);G.subjectIds=W.id}var $=U(D.MUSIC_FREE);K.value=$.chargeType}var ee=m(t(t({search:Z.query.search||"",musicTagIds:Z.query.tagids||"",page:1},i),G)),ne=p(null),ae=p(!1),te=p(!1),re=p(!1),ie=p(!1),oe=p(!0),ce=p("STUDENT"===g.platformType?"/api-student":"/api-teacher"),ue=function(e){ee.page=1,ee.search=e,ne.value=null,le()},le=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(!ae.value){e.next=2;break}return e.abrupt("return");case 2:return ae.value=!0,re.value=!1,n=t(t({},ee),{},{auditStatus:"PASS",idAndName:ee.search,createBy:c}),K.value&&(n.chargeType="FREE"),n.myself=!!u,e.prev=7,e.next=10,v.post("".concat(ce.value,"/music/sheet/list"),{data:n});case 10:a=e.sent,ne.value&&(i=((null===(r=ne.value)||void 0===r?void 0:r.rows)||[]).concat(a.data.rows||[]),ne.value.rows=i),ne.value=ne.value||a.data,ee.page=a.data.pageNo+1,te.value=a.data.pageNo>=a.data.totalPage,e.next=20;break;case 17:e.prev=17,e.t0=e.catch(7),re.value=!0;case 20:ae.value=!1;case 21:case"end":return e.stop()}}),e,null,[[7,17]])})));return function(){return e.apply(this,arguments)}}(),se=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,v.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)}}(),de=function(e){var n={};for(var a in e)-1===Number(a)?K.value=!!e[a][0]:n[a]=e[a];var t=Object.values(n).flat().filter(Boolean).join(",");ee.musicTagIds=t,ee.page=1,ne.value=null,le(),ie.value=!1},fe=function(e){ee.page=1,ee.subjectIds=e.id,ne.value=null,"TEACHER"===g.platformType?(L.value={name:e.name,id:e.id},se(e.id)):(ge.id=e.id,ge.name=e.name,U(D.SEARCH,JSON.stringify({id:e.id,name:e.name}),"set")),le(),ge.show=!1},ve=U(D.SEARCH),ge=m({show:!1,name:ve.id?ve.name:"全部声部",id:ve.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 oe.value=!1,e.abrupt("return");case 4:return e.next=6,v.get("/api-admin/appVersionInfo/queryByPlatform",{params:{platform:"TEACHER"===g.platformType?"ios-teacher":"ios-student"}});case 6:n=e.sent,a=n.data,g.version>a.version?oe.value=!0:oe.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]])})))),l({onSearch:ue,onComfirm:de,onComfirmSubject:fe}),function(){var e=f.value&&f.value.data||[];return s(A,null,[!r&&s(A,null,[" ",s(I,{class:z.sticky},{default:function(){return[s(H,{background:"transparent",isFixed:!1,border:!1,backIconColor:"white",color:"#fff"},{right:function(){return!oe.value&&s("span",{class:z.fleg,onClick:function(){K.value,K.value,U(D.MUSIC_FREE,JSON.stringify({chargeType:K.value}),"set"),ne.value=null,ee.page=1,le()}},[s(Q,{modelValue:K.value,"onUpdate:modelValue":function(e){return K.value=e},size:"20px"},null),s("span",null,[j("免费")])])}}),s(O,{onSearch:ue,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:z.label,onClick:function(){return ge.show=!0}},["TEACHER"===g.platformType?L.value.name:ge.name,s(S,{classPrefix:"iconfont",name:"down",size:12,color:"#fff"},null)])}}),s(B,{shrink:!0,class:z.tagTabs,lineHeight:0,"onClick-tab":function(e){ee.musicTagIds=e.name,ne.value=null,ee.page=1,le()}},{default:function(){return[s(R,{title:"全部",name:""},null),e.map((function(e){return s(R,{title:e.name,name:e.id},null)}))]}})]}}),s("img",{class:z.bgImg,src:"./assets/bgImg.2964f21d.png"},null)]),s("div",{class:z.alumnList},[s(E,{loading:ae.value,finished:te.value,"finished-text":(ne.value&&ne.value.rows.length,""),onLoad:le,error:re.value},{default:function(){return[ne.value&&ne.value.rows.length?s(V,{list:ne.value.rows,onDetail:function(e){if(o===Y){var n=location.origin+location.pathname+"#/music-detail?id="+e.id;x(n,(function(){_.push({path:"/music-detail",query:{id:e.id}})}))}else null==o||o(e)}},null):!ae.value&&s(C,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}})]),s(k,{show:ie.value,round:!0,closeable:!0,position:"bottom",style:{height:"60%"},teleport:"body","onUpdate:show":function(e){return ie.value=e}},{default:function(){return[s(T,{exquisiteFlag:!0,onConfirm:de,onCancel:function(){},defaultValue:Z.query.tagids},null)]}}),s(k,{show:ge.show,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:function(){return ge.show=!1},onClosed:function(){return ge.show=!1}},{default:function(){return[s(P,{type:"MUSIC",searchParams:"TEACHER"===g.platformType?L.value:ge,onComfirm:fe},null)]}})])}}}))}}}))}();