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