1 |
- !function(){function e(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);n&&(c=c.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,c)}return a}function n(n){for(var c=1;c<arguments.length;c++){var t=null!=arguments[c]?arguments[c]:{};c%2?e(Object(t),!0).forEach((function(e){a(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):e(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function a(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function c(e,n,a,c,t,u,i){try{var l=e[u](i),r=l.value}catch(o){return void a(o)}l.done?n(r):Promise.resolve(r).then(c,t)}System.register(["./index-legacy.fba2875c.js","./index-legacy.33680739.js","./index-legacy.5bc911c3.js","./index-legacy.40021ffd.js","./header-legacy.99360b2d.js","./music-legacy.bbe2d538.js","./hooks-legacy.148eb332.js","./index-legacy.2374f896.js","./index-legacy.a7012d0a.js","./use-tab-status-legacy.8752ccde.js","./index-legacy.edb65d0c.js","./index-legacy.af00a324.js","./index-legacy.5aeab789.js","./use-id-legacy.db87b112.js","./use-refs-legacy.2affcb61.js","./index-legacy.d92f7da7.js","./index-legacy.fc679d65.js","./index-legacy.7dcec7b3.js","./index-legacy.8921f068.js","./select-subject-legacy.91071995.js","./index-legacy.78361179.js","./index-legacy.e7460ea1.js","./index-legacy.40eca993.js","./use-height-legacy.233a2ec8.js","./index-legacy.0e744c22.js","./bg-image-legacy.44e2b3db.js","./index-legacy.1c1cdc6c.js","./icon-xin-legacy.98015baf.js","./index-legacy.45490234.js","./index-legacy.32d1c54d.js","./index-legacy.6e10cd37.js","./index-legacy.94e5c17b.js","./index-legacy.85fd8338.js","./mitt-legacy.d2fe1d8d.js"],(function(e){"use strict";var a,t,u,i,l,r,o,s,f,d,v,b,g,m,j,y,p,h;return{setters:[function(e){a=e.d,t=e.O,u=e.P,i=e.Q,l=e.U,r=e.j,o=e.w,s=e.S,f=e.bC},function(e){d=e.c},function(e){v=e.default},function(e){b=e.default},function(e){g=e.m,m=e.s},function(e){j=e.g},function(e){y=e.a,p=e.S},function(e){h=e.M},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var x={},O=a({name:"MusicSearch",props:{defauleParams:{type:Object,default:function(){return{}}}},emits:["confirm"],setup:function(e){t();var a=u(),s=i({albumList:[]}),f=function(){var a,t=(a=regeneratorRuntime.mark((function a(){var c,t;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,o.post("/api-student/music/album/list",{data:n(n({},e.defauleParams),{},{page:1,rows:3})});case 3:c=a.sent,t=c.data,console.log(t),s.albumList=t.rows||[],a.next=11;break;case 9:a.prev=9,a.t0=a.catch(0);case 11:case"end":return a.stop()}}),a,null,[[0,9]])})),function(){var e=this,n=arguments;return new Promise((function(t,u){var i=a.apply(e,n);function l(e){c(i,t,u,l,r,"next",e)}function r(e){c(i,t,u,l,r,"throw",e)}l(void 0)}))});return function(){return t.apply(this,arguments)}}();return l((function(){f()})),function(){return r("div",{class:x.allSearch},[r("div",{class:x.albumSection},[r("div",{class:x.musicGrid},[r(h,{list:s.albumList,onGoto:function(e){a.push({name:"music-album-detail",params:{id:e.id}})}},null)])])])}}});e("default",a({name:"MusicSearch",emits:["confirm"],setup:function(){localStorage.setItem("behaviorId",j());var e=t(),n=u(),a=s(e.query.keyword||""),c=s(e.query.tagids||""),i=s(),o=s(!1),h=d("music-search",[]),x=s("all"),P=y(p.SEARCH);i.value=P.id;var S=function(e){var n,c;a.value=e;var t=h.value.indexOf(e);t>-1&&h.value.splice(t,1),e&&(h.value.unshift(e),h.value.length=Math.min(h.value.length,5)),null===(n=(c=("album"===x.value?k:T).value).onSearch)||void 0===n||n.call(c,e)},w=function(e){var n,a,t=Object.values(e).flat().filter(Boolean).join(",");c.value=t,null===(n=(a=("album"===x.value?k:T).value).onComfirm)||void 0===n||n.call(a,e),o.value=!1},I=function(e){var n,a;i.value=e.id,null===(n=(a=("album"===x.value?k:T).value).onComfirmSubject)||void 0===n||n.call(a,e)},k=s(null),T=s(null),C=function(e){console.log(e,"val"),x.value=e};return l((function(){g.on("changeTab",C),g.on("search",S),g.on("confirm",w),g.on("confirmSubject",I),console.log(x.value,"activeTab.value")})),f((function(){g.off("changeTab",C),g.off("search",S),g.off("confirm",w),g.off("confirmSubject",I)})),function(){return r("div",{class:m.search},["all"===x.value&&r(O,{defauleParams:{albumTagIds:c.value,subjectIds:i.value}},null),"album"===x.value&&r(v,{hideSearch:!0,ref:k,defauleParams:{albumTagIds:c.value,subjectIds:i.value}},null),"songe"===x.value&&r(b,{hideSearch:!0,ref:T,onItemClick:function(a){n.push({path:"/music-detail",query:{id:a.id,albumId:e.params.id}})},defauleParams:{musicTagIds:c.value,subjectIds:i.value}},null)])}}}))}}}))}();
|