1 |
- System.register(["./index-legacy-a314c7dd.js","./index-legacy-2788affc.js","./index-legacy-fb49b6ec.js","./banner1-legacy-91237376.js","./index-legacy-3d6d0664.js","./index-legacy-72dfb7ed.js","./browser-legacy-794fdde3.js","./index-legacy-141c80f8.js","./index-legacy-dff5e6e7.js"],(function(t,e){"use strict";var a,i,s,l,n,o,d,c,r,u,g,p,m,v,y;return{setters:[t=>{a=t.d,i=t.P,s=t.x,l=t.y,n=t.z,o=t.a,d=t.W,c=t.a2},t=>{r=t.M},t=>{u=t.u,g=t.a},t=>{p=t.s,m=t.b},t=>{v=t.A},t=>{y=t.I},null,null,null],execute:function(){t("default",a({name:"instrument-detail",setup(){i();const t=s({titleOpacity:0,background:"transparent",color:"#fff",detail:{},musicList:[],loading:!1}),e=e=>{if("parent-notes"===e.data.api){var a,i;const s=e.data.message?JSON.parse(e.data.message):{};t.detail=s||{},t.detail.intros=null===(a=t.detail.intros)||void 0===a?void 0:a.replace(/<video/gi,'<video style="width: 100% !important;" controlslist="nodownload" poster="https://oss.dayaedu.com/ktqy/1701759849244.png"'),t.musicList=null===(i=s.knowledgeWikiResources)||void 0===i?void 0:i.map((t=>({id:t.id,name:t.name,url:t.url})))}};return l((()=>{u(document,"scroll",(()=>{const{y:e}=g();t.titleOpacity=e.value>100?1:e.value/100})),n((()=>{window.parent&&window.parent.postMessage({api:"onLoad",status:!0},"*")})),window.addEventListener("message",e)})),()=>o("div",{class:p.detail},[o("div",{class:p.bgSection},[o("img",{class:p.bg,src:t.detail.avatar||m},null)]),o(r,{position:"top"},{default:()=>[o(d,{isBack:!1,border:!1,background:`rgba(255,255,255, ${t.titleOpacity})`,color:`rgba(51,51,51, ${t.titleOpacity})`,title:t.detail.name||""},null)]}),o("div",{class:p.container},[o("div",{class:p.instrumentLogo},[o(y,{class:p.logo,fit:"cover",src:t.detail.avatar},null)]),o("div",{class:p.title},[t.detail.name]),o("div",{class:p.content,innerHTML:t.detail.intros},null),!t.loading&&!t.detail.intros&&o(c,{description:"暂无内容"},null)]),o(r,{position:"bottom"},{default:()=>[t.musicList.length>0&&o(v,{musicList:t.musicList},null)]})])}}))}}}));
|