1 |
- !function(){function e(e,n,a,t,c,u,i){try{var s=e[u](i),o=s.value}catch(r){return void a(r)}s.done?n(o):Promise.resolve(o).then(t,c)}System.register(["./index-legacy.b903c881.js","./header-legacy.858f3a69.js","./music-legacy.7769391f.js","./hooks-legacy.84a774a1.js","./index-legacy.f52c26b4.js","./index-legacy.1c1000df.js","./index-legacy.857a8bc7.js","./index-legacy.8abefd50.js","./index-legacy.ae2ce69e.js","./index-legacy.ba78f33e.js","./use-id-legacy.29724920.js","./use-tab-status-legacy.a19d344b.js","./use-refs-legacy.14daae14.js","./index-legacy.3fd38cb5.js","./index-legacy.b7f666cc.js","./index-legacy.571708b1.js","./index-legacy.3e4ae683.js","./index-legacy.e9e6da38.js","./index-legacy.8e85fa65.js","./index-legacy.77670d98.js","./index-legacy.6e10cd37.js","./select-subject-legacy.b6a4ee6e.js","./index-legacy.909b3c1c.js","./index-legacy.885c229f.js","./icon-xin2-legacy.d521c9ab.js","./index-legacy.5b93d63d.js"],(function(n){"use strict";var a,t,c,u,i,s,o,r,l,f,d,v,g,y,m,h,j,x;return{setters:[function(e){a=e.d,t=e.O,c=e.P,u=e.S,i=e.Q,s=e.U,o=e.bC,r=e.j,l=e.be,f=e.C,d=e.w},function(e){v=e.m,g=e.s},function(e){y=e.g},function(e){m=e.a,h=e.S},function(e){j=e.L},function(e){x=e.S},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){n("default",a({name:"MusicSearch",emits:["confirm"],setup:function(){localStorage.setItem("behaviorId",y());var n=t(),a=c(),p=u(n.query.keyword||""),b=u(),w=m(h.SEARCH);b.value=w.id;var S=function(e){p.value=e,C.value&&(C.value.rows=[]),k.name=e,k.page=1,E()},k=i({name:n.query.search||"",rows:20,page:1}),C=u(null),N=u(!1),P=u(!1),q=u(!1),E=function(){var n,a=(n=regeneratorRuntime.mark((function e(){var n,a,t,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!N.value){e.next=2;break}return e.abrupt("return");case 2:return N.value=!0,q.value=!1,e.prev=4,e.next=7,d.post("/api-student/music/sheet/searchTenant",{data:k});case 7:n=e.sent,C.value&&(t=((null===(a=C.value)||void 0===a?void 0:a.rows)||[]).concat(n.data.music.rows||[]),C.value.rows=t),C.value=C.value||n.data.music,(c=C.value.rows||[]).forEach((function(e){p.value&&(e.musicSheetName=e.musicSheetName.replace(p.value,'<span style="color: #FE2451">'.concat(p.value,"</span>")))})),C.value.rows=c,k.page=n.data.music.pageNo+1,P.value=n.data.music.pageNo>=n.data.music.totalPage,e.next=20;break;case 17:e.prev=17,e.t0=e.catch(4),q.value=!0;case 20:N.value=!1;case 21:case"end":return e.stop()}}),e,null,[[4,17]])})),function(){var a=this,t=arguments;return new Promise((function(c,u){var i=n.apply(a,t);function s(n){e(i,c,u,s,o,"next",n)}function o(n){e(i,c,u,s,o,"throw",n)}s(void 0)}))});return function(){return a.apply(this,arguments)}}();return s((function(){v.on("search",S),E()})),o((function(){v.off("search",S)})),function(){return r("div",{class:[g.search,g.searchAlbum]},[C.value&&C.value.rows.length?r(j,{finished:P.value,"finished-text":(C.value&&C.value.rows.length,""),onLoad:E,error:q.value,immediateCheck:!1},{default:function(){return[r(x,{showTitleImg:!0,list:C.value.rows,onDetail:function(e){var n=location.origin+location.pathname+"#/music-detail?id="+e.id;l(n,(function(){a.push({path:"/music-detail",query:{id:e.id}})}))}},null)]}}):!N.value&&r(f,{tips:"暂无曲目",btnStatus:!1},null)])}}}))}}}))}();
|