searchdetail-legacy.5be15a85.js 13 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,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(P){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return E()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===h)continue;return c}}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 s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(t,n,a),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(P){return{type:"throw",arg:P}}}n.wrap=l;var h={};function p(){}function d(){}function g(){}var y={};u(y,a,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(S([])));v&&v!==r&&o.call(v,a)&&(y=v);var b=g.prototype=p.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function L(e,n){function r(i,a,c,s){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==t(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):n.resolve(h).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}}function j(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,j(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function x(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 I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(t){if(t){var e=t[a];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(o.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:E}}function E(){return{value:void 0,done:!0}}return d.prototype=g,u(b,"constructor",g),u(g,"constructor",d),d.displayName=u(g,s,"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,g):(t.__proto__=g,u(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},n.awrap=function(t){return{__await:t}},w(L.prototype),u(L.prototype,c,(function(){return this})),n.AsyncIterator=L,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new L(l(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),u(b,s,"Generator"),u(b,a,(function(){return this})),u(b,"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=S,O.prototype={constructor:O,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(I),!t)for(var e in this)"t"===e.charAt(0)&&o.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 a.type="throw",a.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 i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.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&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},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),h},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),I(n),h}},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 o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},n}function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function r(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void n(u)}c.done?e(s):Promise.resolve(s).then(r,o)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function c(t){i(a,r,o,c,s,"next",t)}function s(t){i(a,r,o,c,s,"throw",t)}c(void 0)}))}}System.register(["./index.module-legacy.bd02094d.js","./index-legacy.a836dbe3.js","./index-legacy.fe7501fd.js","./index-legacy.0b988fd1.js","./scrollbar.min-legacy.ca8faa57.js","./index-legacy.0bc369eb.js","./index-legacy.531fdbff.js","./index-legacy.f5e97ef9.js","./index-legacy.b65dbaf4.js","./index2-legacy.794f5e8a.js","./hot-legacy.e5ec21a3.js","./arrow-legacy.c72c6a83.js","./index2-legacy.8c922bf5.js","./pan-legacy.cb837250.js","./start-legacy.54568697.js","./icon-legacy.aed5a5b3.js","./music-legacy.146bf361.js"],(function(t){"use strict";var n,o,i,c,s,u,l,f,h,p,d,g,y,m,v,b,w,L,j;return{setters:[function(t){n=t.s},function(t){o=t.h},function(t){i=t.d,c=t.K,s=t.r,u=t.o,l=t.X,f=t.c,h=t.b,p=t.at,d=t.e,g=t.n,y=t.az,m=t.aA},function(t){v=t.s},function(t){b=t.a},function(t){w=t.P},function(t){L=t.C},function(t){j=t.M},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var x=i({name:"searchdetail",components:{hotSearch:o,silder:c,searchInput:v,albumItem:b,pagination:w,ColEmpty:L},setup:function(){var t=s({albumList:[],musicList:[],search:{},isshowData:!1,pageInfo:{limit:5,page:1,total:0,page_size:[5,10,20,40,50]}}),n=function(){var n=a(e().mark((function n(){var o;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,h.post("/api-website/open/music/album/list",{data:r(r({albumStatus:1},t.search),{},{page:t.pageInfo.page,rows:t.pageInfo.limit})});case 3:o=e.sent,t.albumList=o.data.rows,t.pageInfo.total=o.data.total,0==t.pageInfo.total?t.isshowData=!0:t.isshowData=!1,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.log(e.t0);case 12:case"end":return e.stop()}}),n,null,[[0,9]])})));return function(){return n.apply(this,arguments)}}();return u((function(){n()})),r(r({},l(t)),{},{getList:function(e){t.search=r(r({},e),{},{idAndName:e.search}),t.pageInfo.page=1,n()},getAlbumList:n})},render:function(){var t=this;return f("div",null,[f("div",null,[f("div",{class:n.w1200},[f("div",{class:n.section},[f("div",{class:n.albumList},[this.albumList.map((function(t){return f(b,{detail:t},null)}))]),this.isshowData&&f(L,null,null)])])]),f(w,{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.getAlbumList},null)])}}),I=i({name:"searchMusic",components:{hotSearch:o,silder:c,searchInput:v,albumItem:b,musicListItem:j,pagination:w,ColEmpty:L},setup:function(){var t=s({musicList:[],search:{},isshowData:!1,pageInfo:{limit:5,page:1,total:0,page_size:[5,10,20,40,50]}}),n=function(){var n=a(e().mark((function n(){var o;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,h.post("/api-website/open/music/sheet/list",{data:r(r({albumStatus:"PASS"},t.search),{},{page:t.pageInfo.page,rows:t.pageInfo.limit,state:1})});case 3:o=e.sent,t.musicList=o.data.rows,t.pageInfo.total=o.data.total,0==t.pageInfo.total?t.isshowData=!0:t.isshowData=!1,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.log(e.t0);case 12:case"end":return e.stop()}}),n,null,[[0,9]])})));return function(){return n.apply(this,arguments)}}(),o=function(e){t.search={subjectIds:e.subject,musicTagIds:e.albumTagIds,idAndName:e.search},t.pageInfo.page=1,n()};return u((function(){o(t.search)})),r(r({},l(t)),{},{getList:o,getMusicList:n})},render:function(){var t=this;return f("div",null,[f("div",null,[f("div",{class:n.w1200},[f("div",{class:n.section},[f("div",{class:n.musicList},[this.musicList.map((function(t){return f(j,{item:t},null)}))])])]),this.isshowData&&f(L,null,null)]),f(w,{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.getMusicList},null)])}});t("default",i({name:"searchdetail",components:{hotSearch:o,silder:c,searchInput:v,searchAlbum:x,searchMusic:I},setup:function(){var t=s({albumList:[],musicList:[],chiose:"album",searchs:{albumTagIds:"",search:"",subject:""}}),e=p(),n=d(),o=d(),i=function(e){t.searchs=r(r({},t.searchs),e),a()},a=function(){"album"==t.chiose&&n.value.getList(t.searchs),"music"==t.chiose&&o.value.getList(t.searchs)};return u((function(){e.query.search&&(t.searchs.search=e.query.search),e.query.subject&&(t.searchs.subject=e.query.subject),e.query.type&&(t.chiose=e.query.type),console.log(t.chiose,"chiose"),g((function(){a()}))})),r(r({},l(t)),{},{startSearch:i,searchRust:function(e){t.searchs.albumTagIds=e.join(","),i(t.searchs)},searchAlbumRef:n,searchMusicRef:o})},render:function(){var t=this;return f("div",null,[f("div",{class:""},[f("div",{class:"wall",style:{height:"70px"}},null),f("div",{class:n.w1200},[f("div",{class:n.section},[f(v,{isWhile:!0,searchVal:r({},this.searchs),onStartSearch:function(e){t.startSearch(e)}},null),f("div",{class:n.hotSearch},[f(o,{type:"search",onSearchRust:function(e){return t.searchRust(e)},onHotTag:function(e){t.searchs.search=e}},null)]),f("div",{class:n.myTabWrap},[f(y,{class:n.myTab,modelValue:this.chiose,"onUpdate:modelValue":function(e){return t.chiose=e}},{default:function(){return[f(m,{label:"专辑",name:"album"},{default:function(){return["album"==t.chiose?f(x,{ref:"searchAlbumRef"},null):null]}}),f(m,{label:"乐谱",name:"music"},{default:function(){return["music"==t.chiose?f(I,{ref:"searchMusicRef"},null):null]}})]}})])])])])])}}))}}}))}();