index-legacy.555676bf.js 16 KB

1
  1. !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return n};var n={},r=Object.prototype,i=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),o=new N(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return C()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var u=A(o,n);if(u){if(u===p)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,o),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(E){return{type:"throw",arg:E}}}n.wrap=s;var p={};function h(){}function d(){}function m(){}var g={};c(g,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(I([])));y&&y!==r&&i.call(y,o)&&(g=y);var w=m.prototype=h.prototype=Object.create(g);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(e,n){function r(a,o,u,l){var c=f(e[a],e,o);if("throw"!==c.type){var s=c.arg,p=s.value;return p&&"object"==t(p)&&i.call(p,"__await")?n.resolve(p.__await).then((function(t){r("next",t,u,l)}),(function(t){r("throw",t,u,l)})):n.resolve(p).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,l)}))}l(c.arg)}var a;this._invoke=function(t,e){function i(){return new n((function(n,i){r(t,e,n,i)}))}return a=a?a.then(i,i):i()}}function A(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,p;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function I(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=m,c(w,"constructor",m),c(m,"constructor",d),d.displayName=c(m,l,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},n.awrap=function(t){return{__await:t}},x(b.prototype),c(b.prototype,u,(function(){return this})),n.AsyncIterator=b,n.async=function(t,e,r,i,a){void 0===a&&(a=Promise);var o=new b(s(t,e,r,i),a);return n.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},x(w),c(w,l,"Generator"),c(w,o,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},n.values=I,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return o.type="throw",o.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;L(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},n}function n(t,e,n,r,i,a,o){try{var u=t[a](o),l=u.value}catch(c){return void n(c)}u.done?e(l):Promise.resolve(l).then(r,i)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(i,a){var o=t.apply(e,r);function u(t){n(o,i,a,u,l,"next",t)}function l(t){n(o,i,a,u,l,"throw",t)}u(void 0)}))}}var i=document.createElement("style");i.innerHTML="._myScore_1fgvc_1 .el-tabs__item{font-size:18px;font-weight:600;color:#999;height:56px;line-height:56px;padding-right:40px;padding-left:0}._myScore_1fgvc_1 .el-tabs__item.is-active{font-size:20px;color:#000}._myScore_1fgvc_1 .el-tabs__nav-wrap:after{height:1px;background:#eeeeee}._myScore_1fgvc_1 .el-tabs__active-bar{height:4px}\n",document.head.appendChild(i),System.register(["./index-legacy.2afa0454.js","./index-legacy.5924a931.js","./index-legacy.ddd79631.js","./index2-legacy.12ff18ed.js","./item-legacy.4a335d0c.js","./index2-legacy.11e2dacf.js","./index2-legacy.9b36938e.js"],(function(t){"use strict";var n,i,a,o,u,l,c,s,f,p,h,d,m;return{setters:[function(t){n=t.C},function(t){i=t.P},function(t){a=t.d,o=t.c,u=t.bK,l=t.a,c=t.b,s=t.F,f=t.aM,p=t.aN},function(t){h=t.E,d=t.a},function(t){m=t.M},function(){},function(){}],execute:function(){var g=a({name:"item",props:{item:{type:Object,default:function(){return{}}},onItemClick:{type:Function,default:function(t){}}},render:function(){var t=this,e=this.item;return o("div",{class:"rounded-[10px] w-[156px] cursor-pointer overflow-hidden relative transition-all",onClick:function(){t.onItemClick(e)}},[o(u,{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABiBJREFUaEPdm3tM1WUYxz8viikIhImaiiFjKYp4C01nWlsTq4lr2sUyLW3TbC6lrKGoeEEqC2ku080ulmkXXeGspLmV5rxE3iWwHF5AMyWQ25FEeNv7k8OORw7n/f3Oz0vn2c5fv+d9nuf7+z3vc3vfI7CfBNAe6ASEA2FAWyCw4ac01jb8qoByoAw4B5QA0k6TlDF2UADQDYgBugKtLAq9DBQDx4HTQL1FOY3LfAV4B9AH6AW09tUYt/U1wO/AEeBfq7KtAmwJ9AfiXNzOqg3e1il3PgocAK54Y3Z/bgXgPcBQIMSsMh/5K4FdwCkzcswAbAEMaXBHMzrs5lVuuxuo0xGsCzAIGNUQHXXk3mgeFW23Ag5vinQAqjD/6C1wSW+2K5f9viHNeOT1BlCBSwLaeNN2i55fAjY3B7I5gMotx9yGX879Xaovme3JXT0BVAFFgVMVyf+B1J5UIK8LPJ4ADrM7Wqa/QfyUp8RoAfLDL+WWOW9x2OY3p6LrTp08qPJcop3Kpz5L1Mql4vUAgfIM6iV10+fIt1d/zkk79QA57nnS/QuqCuUJO/ddpwha5f8kUu8MpaMrmIsV/B37kFxy7gKq/rSL1H782rXicQeY0FCC2aWQPZvF+MH9eLApgXsP8vP9SXKDbcquClIlXa5TpitAVTg/Y2dtmZZM7wUzxQzA016XC7PkirRM8mwEqWrX9c4C3VXxfcAAuxQNG0R4zjqREtTa6Ac9kqOG8sQJMmPnr0ZPaBftB35T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hZTWl+w6T+8kmmbv2K4p0DJz0JJHPjxUJA+NJCAmmnRohTkuRKzdkc0ZnvRuPx9G94rN8+BIQALExBOf9QbUFoxqX9Ikl+Ei+ZRleD1+UItuPz3wBbHKt1+MzpzzbD0BNGmqFXfsAVAn3+yNsI5r78yUEp4v49TUSV5B+exHICdKvr3I5Qfr1ZTzXsO231yldQfr1hVhXoH57pdm90vDbS+lNlVRqxnPb/K3gP+sGzxjJJkolAAAAAElFTkSuQmCC",class:"w-6 h-6 !absolute top-2 right-4 z-10"},null),o(u,{class:"w-full h-[156px] align-middle rounded-[10px]",fit:"cover",src:e.albumCoverUrl||"./assets/hold.abbcc7ab.png"},null),o("div",{class:"text-lg text-black whitespace-nowrap text-ellipsis overflow-hidden pb-0.5 pt-2"},[e.albumName]),o("div",{class:"flex justify-between text-sm text-[#999]"},[o("div",{class:"flex items-center"},[o("span",null,[e.musicSheetCount,l("首")])]),o("div",{class:"flex items-center "},[o("span",null,[e.albumFavoriteCount,l("收藏")])])])])}}),v=a({name:"list",data:function(){return{pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},list:[],loading:!1,dataShow:!1}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;return r(e().mark((function n(){var r,i;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=4,c.get("/api-website/music/album/favorite",{params:{page:t.pageInfo.page,rows:t.pageInfo.limit}});case 4:r=e.sent,i=r.data,t.list=i.rows||[],t.pageInfo.total=i.total,i.total<=0&&(t.dataShow=!0),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(1);case 13:t.dataShow?t.loading=!1:setTimeout((function(){t.loading=!1}),200);case 14:case"end":return e.stop()}}),n,null,[[1,11]])})))()}},render:function(){var t=this;return o(s,null,[o("div",{class:"flex flex-wrap"},[o(h,{loading:this.loading,animated:!0,class:"px-[14px] flex items-center flex-row justify-between",count:4},{default:function(){return[t.list.map((function(e){return o(s,null,[o("div",{class:"w-1/4 pb-5"},[o(g,{class:"m-auto",item:e,onItemClick:function(e){t.$router.push({path:"/albumDetail",query:{id:e.id}})}},null)])])}))]},template:function(){return o("div",{class:"flex items-center flex-col justify-between w-[156px]"},[o(d,{variant:"image",style:{width:"156px",height:"156px"}},null),o(d,{variant:"p",style:{width:"100%",margin:"4px 0"}},null),o("div",{class:"flex w-full justify-between"},[o(d,{variant:"p",style:{width:"35%"}},null),o(d,{variant:"p",style:{width:"35%"}},null)])])}})]),o(i,{total:this.pageInfo.total,page:this.pageInfo.page,"onUpdate:page":function(e){return t.pageInfo.page=e},limit:this.pageInfo.limit,"onUpdate:limit":function(e){return t.pageInfo.limit=e},pageSizes:this.pageInfo.page_size,pagination:this.getList},null),this.dataShow&&o(n,null,null)])}}),y={myScore:"_myScore_1fgvc_1"},w=a({name:"list",props:{auditStatus:{type:String,default:""},onNumber:{type:Function,default:function(t){}}},data:function(){return{pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},list:[],loading:!1,dataShow:!1}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;return r(e().mark((function n(){var r,i,a;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,r="MYSCORE"===t.auditStatus?"/api-website/music/sheet/my":"/api-website/music/sheet/favorite",e.next=5,c.get(r,{params:{page:t.pageInfo.page,rows:t.pageInfo.limit}});case 5:i=e.sent,a=i.data,t.list=a.rows||[],t.pageInfo.total=a.total,a.total<=0&&(t.dataShow=!0),e.next=14;break;case 12:e.prev=12,e.t0=e.catch(1);case 14:t.dataShow?t.loading=!1:setTimeout((function(){t.loading=!1}),200);case 15:case"end":return e.stop()}}),n,null,[[1,12]])})))()}},render:function(){var t=this;return o(s,null,[o("div",{class:"mt-5"},[o(h,{loading:this.loading,animated:!0,class:" w-full m-auto px-[14px] flex items-center flex-col",count:3},{default:function(){return[t.list.map((function(e){return o(m,{onClick:function(e){"UNPASS"===t.auditStatus&&(console.log(e),t.$router.push({path:"/userInfo/musicOperation",query:{type:"update",id:e.id}}))},item:{id:e.id,addName:e.addName,addUserAvatar:e.addUserAvatar,musicSheetName:e.musicSheetName,subjectNames:e.subjectNames,composer:e.composer,chargeType:e.chargeType},class:[y.musicListItem,"pt-2 cursor-pointer border-b border-solid border-[#E7E6E6] hover:bg-[#F4F4F4]"]},null)}))]},template:function(){return o("div",{class:"h-[94px] flex items-center justify-between w-full pt-2 mb-2"},[o("div",{class:"w-2/3 flex items-center"},[o(d,{variant:"circle",style:{width:"88px",height:"88px"}},null),o("div",{class:"w-1/2 pl-2"},[o(d,{variant:"h3"},null),o(d,{variant:"p",style:{width:"50%"}},null)])]),o(d,{variant:"p",style:{width:"20%"}},null)])}})]),o(i,{total:this.pageInfo.total,page:this.pageInfo.page,"onUpdate:page":function(e){return t.pageInfo.page=e},limit:this.pageInfo.limit,"onUpdate:limit":function(e){return t.pageInfo.limit=e},pageSizes:this.pageInfo.page_size,pagination:this.getList},null),this.dataShow&&o(n,{style:{marginBottom:"30px"}},null)])}});t("default",a({name:"live-class",data:function(){return{activeName:"MYSCORE"}},methods:{getList:function(){}},render:function(){var t=this;return o("div",{class:[y.myScore,"relative px-[25px]"]},[o(f,{modelValue:this.activeName,"onUpdate:modelValue":function(e){return t.activeName=e}},{default:function(){return[o(p,{label:"我的乐谱",name:"MYSCORE"},{default:function(){return["MYSCORE"===t.activeName&&o(w,{auditStatus:"MYSCORE"},null)]}}),o(p,{label:"收藏乐谱",name:"COLLECTION"},{default:function(){return["COLLECTION"===t.activeName&&o(w,{auditStatus:"COLLECTION"},null)]}}),o(p,{label:"收藏专辑",name:"ALBUM"},{default:function(){return["ALBUM"===t.activeName&&o(v,null,null)]}})]}})])}}))}}}))}();