view-legacy-d8ada04f.js 2.0 KB

1
  1. System.register(["./index-legacy-e6be1dcb.js","./index-legacy-3fae0ac6.js","./index-legacy-cdd7affc.js","./banner1-legacy-91237376.js","./index-legacy-4d0c14d9.js","./index-legacy-d3534fc9.js","./browser-legacy-794fdde3.js","./index-legacy-f9858fd3.js","./index-legacy-72ad1f03.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.V,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)]})])}}))}}}));