view-legacy-82ee48a7.js 1.9 KB

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