index-legacy.9df359ec.js 14 KB

1
  1. !function(){function e(e,n,t,a,r,i,o){try{var c=e[i](o),u=c.value}catch(l){return void t(l)}c.done?n(u):Promise.resolve(u).then(a,r)}function n(n){return function(){var t=this,a=arguments;return new Promise((function(r,i){var o=n.apply(t,a);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 t(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 a(e){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?t(Object(a),!0).forEach((function(n){r(e,n,a[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))}))}return e}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 a,r,i=[],o=!0,c=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(u){c=!0,r=u}finally{try{o||null==t.return||t.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 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 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 t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}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.f8641610.js","./index-legacy.4ddb0119.js","./index-legacy.13f535d5.js","./index-legacy.00d337cc.js","./index-legacy.a8de4840.js","./index-legacy.e8dcdcc8.js","./select-tag-legacy.b1189321.js","./index.module-legacy.7ae59c2a.js","./music-legacy.1c924052.js","./select-subject-legacy.484824c5.js","./hooks-legacy.1d4168e3.js","./index-legacy.2c7bb048.js","./index-legacy.78c8492b.js","./index-legacy.a9cc406e.js","./use-tab-status-legacy.5d29085f.js","./use-id-legacy.30c2e9af.js","./use-refs-legacy.e503281e.js","./index-legacy.fc510843.js","./index-legacy.8a3dede6.js","./index-legacy.28050159.js","./index-legacy.421c6f71.js","./index-legacy.aee47fad.js","./index-legacy.6e10cd37.js","./index-legacy.d8170ee0.js","./index-legacy.c3bbeade.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.c8b60294.js","./icon-play-legacy.50b88257.js","./index-legacy.90f7f902.js","./use-height-legacy.be763bb2.js"],(function(e){"use strict";var t,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){t=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(t("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 t=n.emit,a=function(){return e.modelValue===e.activeValue},r=function(){if(!e.disabled&&!e.loading){var n=a()?e.inactiveValue:e.activeValue;t("update:modelValue",n),t("change",n)}},i=function(){if(e.loading){var n=a()?e.activeColor:e.inactiveColor;return s(d,{class:M("loading"),color:n},null)}};return u((function(){return e.modelValue})),function(){var n=e.size,t=e.loading,o=e.disabled,c=e.activeColor,u=e.inactiveColor,d=a(),f={fontSize:l(n),backgroundColor:d?c:u};return s("div",{role:"switch",class:M({on:d,loading:t,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,t){var r=e.hideSearch,i=e.defauleParams,o=e.onItemClick,c=e.teacherId,u=e.myself,l=t.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(a(a({search:Z.query.search||"",musicTagIds:Z.query.tagids||"",page:1},i),G)),ne=p(null),te=p(!1),ae=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,t,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!te.value){e.next=2;break}return e.abrupt("return");case 2:return te.value=!0,re.value=!1,n=a(a({},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:t=e.sent,ne.value&&(i=((null===(r=ne.value)||void 0===r?void 0:r.rows)||[]).concat(t.data.rows||[]),ne.value.rows=i),ne.value=ne.value||t.data,ee.page=t.data.pageNo+1,ae.value=t.data.pageNo>=t.data.totalPage,e.next=20;break;case 17:e.prev=17,e.t0=e.catch(7),re.value=!0;case 20:te.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 t in e)-1===Number(t)?K.value=!!e[t][0]:n[t]=e[t];var a=Object.values(n).flat().filter(Boolean).join(",");ee.musicTagIds=a,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,t;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,t=n.data,g.version>t.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:te.value,finished:ae.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):!te.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)]}})])}}}))}}}))}();