1 |
- !function(){function t(t,e,i,n,l,a,o){try{var s=t[a](o),r=s.value}catch(c){return void i(c)}s.done?e(r):Promise.resolve(r).then(n,l)}System.register(["./index-legacy-a314c7dd.js","./index-legacy-2788affc.js","./index-legacy-fb49b6ec.js","./index.module-legacy-80b22a8c.js","./index-legacy-3d6d0664.js","./index-legacy-72dfb7ed.js","./browser-legacy-794fdde3.js","./index-legacy-141c80f8.js","./index-legacy-dff5e6e7.js"],(function(e,i){"use strict";var n,l,a,o,s,r,c,d,u,g,y,p,m,v;return{setters:[t=>{n=t.d,l=t.P,a=t.x,o=t.y,s=t.a,r=t.W,c=t.a2,d=t.D},t=>{u=t.M},t=>{g=t.u,y=t.a},t=>{p=t.s},t=>{m=t.A},t=>{v=t.I},null,null,null],execute:function(){e("default",n({name:"instrument-detail",setup(){const e=l(),i=a({titleOpacity:0,background:"transparent",color:"#fff",detail:{},musicList:[],loading:!1}),n=function(){var n,l=(n=function*(){i.loading=!0;try{const{data:t}=yield d.get("/edu-app/knowledgeWiki/detail/"+e.query.id);t.intros=t.intros.replace(/<video/gi,'<video style="width: 100% !important;" controlslist="nodownload" poster="https://oss.dayaedu.com/ktqy/1701759849244.png"'),i.detail=t||{},i.musicList=t.knowledgeWikiResources.map((t=>({id:t.id,name:t.name,url:t.url})))}catch(t){}i.loading=!1},function(){var e=this,i=arguments;return new Promise((function(l,a){var o=n.apply(e,i);function s(e){t(o,l,a,s,r,"next",e)}function r(e){t(o,l,a,s,r,"throw",e)}s(void 0)}))});return function(){return l.apply(this,arguments)}}();return o((()=>{g(document,"scroll",(()=>{const{y:t}=y();i.titleOpacity=t.value>100?1:t.value/100})),n()})),()=>s("div",{class:p.detail},[s(u,{position:"top"},{default:()=>[s(r,{border:!1,background:`rgba(255,255,255, ${i.titleOpacity})`,color:`rgba(51,51,51, ${i.titleOpacity})`,title:i.detail.name||""},null)]}),s("div",{class:p.container},[s("div",{class:p.instrumentLogo},[s(v,{class:p.logo,fit:"cover",src:i.detail.avatar},null)]),s("div",{class:p.title},[i.detail.name]),s("div",{class:p.content,innerHTML:i.detail.intros},null),!i.loading&&!i.detail.intros&&s(c,{description:"暂无内容"},null)]),s(u,{position:"bottom"},{default:()=>[i.musicList.length>0&&s(m,{musicList:i.musicList},null)]})])}}))}}}))}();
|