<<<<<<<< HEAD:dist/assets/view-cf6e8af5.js
import{d as c,P as u,x as m,y as p,z as f,a,W as g,a7 as y}from"./index-4228b913.js";import{M as l}from"./index-1d1924e5.js";import{u as v,a as w}from"./index-e7124857.js";import{s}from"./index.module-f489c00d.js";import{A as L}from"./index-b5f5d316.js";import{I as k}from"./index-39fe3500.js";import"./browser-504037ee.js";import"./index-6343ec02.js";import"./index-c6087578.js";const A=c({name:"instrument-detail",setup(){u();const t=m({titleOpacity:0,background:"transparent",color:"#fff",detail:{},musicList:[],loading:!1}),d=e=>{var o,n;if(e.data.api==="parent-notes"){const r=e.data.message?JSON.parse(e.data.message):{};t.detail=r||{},t.detail.intros=(o=t.detail.intros)==null?void 0:o.replace(/<video/gi,'<video style="width: 100% !important;" controlslist="nodownload" poster="https://oss.dayaedu.com/ktqy/1701759849244.png"'),t.musicList=(n=r.knowledgeWikiResources)==null?void 0:n.map(i=>({id:i.id,name:i.name,url:i.url}))}};return p(()=>{v(document,"scroll",()=>{const{y:e}=w();t.titleOpacity=e.value>100?1:e.value/100}),f(()=>{window.parent&&window.parent.postMessage({api:"onLoad",status:!0},"*")}),window.addEventListener("message",d)}),()=>a("div",{class:s.detail},[a(l,{position:"top"},{default:()=>[a(g,{isBack:!1,border:!1,background:`rgba(255,255,255, ${t.titleOpacity})`,color:`rgba(51,51,51, ${t.titleOpacity})`,title:t.detail.name||""},null)]}),a("div",{class:s.container},[a("div",{class:s.instrumentLogo},[a(k,{class:s.logo,fit:"cover",src:t.detail.avatar},null)]),a("div",{class:s.title},[t.detail.name]),a("div",{class:s.content,innerHTML:t.detail.intros},null),!t.loading&&!t.detail.intros&&a(y,{description:"暂无内容"},null)]),t.musicList.length>0&&a(l,{position:"bottom",style:{background:"#fff"}},{default:()=>[a(L,{musicList:t.musicList},null)]})])}});export{A as default};
========
import{d as c,P as u,x as m,y as p,z as f,a,W as g,a7 as y}from"./index-c4313132.js";import{M as l}from"./index-d9d89829.js";import{u as v,a as w}from"./index-456316d2.js";import{s}from"./index.module-f489c00d.js";import{A as L}from"./index-380333a8.js";import{I as k}from"./index-3774457e.js";import"./browser-504037ee.js";import"./index-e4e37691.js";import"./index-33791411.js";const A=c({name:"instrument-detail",setup(){u();const t=m({titleOpacity:0,background:"transparent",color:"#fff",detail:{},musicList:[],loading:!1}),d=e=>{var o,n;if(e.data.api==="parent-notes"){const r=e.data.message?JSON.parse(e.data.message):{};t.detail=r||{},t.detail.intros=(o=t.detail.intros)==null?void 0:o.replace(/<video/gi,'<video style="width: 100% !important;" controlslist="nodownload" poster="https://oss.dayaedu.com/ktqy/1701759849244.png"'),t.musicList=(n=r.knowledgeWikiResources)==null?void 0:n.map(i=>({id:i.id,name:i.name,url:i.url}))}};return p(()=>{v(document,"scroll",()=>{const{y:e}=w();t.titleOpacity=e.value>100?1:e.value/100}),f(()=>{window.parent&&window.parent.postMessage({api:"onLoad",status:!0},"*")}),window.addEventListener("message",d)}),()=>a("div",{class:s.detail},[a(l,{position:"top"},{default:()=>[a(g,{isBack:!1,border:!1,background:`rgba(255,255,255, ${t.titleOpacity})`,color:`rgba(51,51,51, ${t.titleOpacity})`,title:t.detail.name||""},null)]}),a("div",{class:s.container},[a("div",{class:s.instrumentLogo},[a(k,{class:s.logo,fit:"cover",src:t.detail.avatar},null)]),a("div",{class:s.title},[t.detail.name]),a("div",{class:s.content,innerHTML:t.detail.intros},null),!t.loading&&!t.detail.intros&&a(y,{description:"暂无内容"},null)]),t.musicList.length>0&&a(l,{position:"bottom",style:{background:"#fff"}},{default:()=>[a(L,{musicList:t.musicList},null)]})])}});export{A as default};
>>>>>>>> 0f2588f61580675e1c866dc0769d4ceb917efcec:dist/assets/view-1f3a4500.js
