<<<<<<<< HEAD:dist/assets/index-961b1848.js
import{d as r,P as d,x as c,y as u,a as e,W as m,a7 as p,D as f}from"./index-4228b913.js";import{M as s}from"./index-1d1924e5.js";import{u as g,a as y}from"./index-e7124857.js";import{s as i}from"./index.module-f489c00d.js";import{A as v}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 E=r({name:"instrument-detail",setup(){const l=d(),t=c({titleOpacity:0,background:"transparent",color:"#fff",detail:{},musicList:[],loading:!1}),n=async()=>{t.loading=!0;try{const{data:a}=await f.get("/edu-app/knowledgeWiki/detail/"+l.query.id);a.intros=a.intros.replace(/<video/gi,'<video style="width: 100% !important;" controlslist="nodownload" poster="https://oss.dayaedu.com/ktqy/1701759849244.png"'),t.detail=a||{},t.musicList=a.knowledgeWikiResources.map(o=>({id:o.id,name:o.name,url:o.url}))}catch(a){}t.loading=!1};return u(()=>{g(document,"scroll",()=>{const{y:a}=y();t.titleOpacity=a.value>100?1:a.value/100}),n()}),()=>e("div",{class:i.detail},[e(s,{position:"top"},{default:()=>[e(m,{border:!1,background:`rgba(255,255,255, ${t.titleOpacity})`,color:`rgba(51,51,51, ${t.titleOpacity})`,title:t.detail.name||""},null)]}),e("div",{class:i.container},[e("div",{class:i.instrumentLogo},[e(k,{class:i.logo,fit:"cover",src:t.detail.avatar},null)]),e("div",{class:i.title},[t.detail.name]),e("div",{class:i.content,innerHTML:t.detail.intros},null),!t.loading&&!t.detail.intros&&e(p,{description:"暂无内容"},null)]),e(s,{position:"bottom"},{default:()=>[t.musicList.length>0&&e(v,{musicList:t.musicList},null)]})])}});export{E as default};
========
import{d as r,P as d,x as c,y as u,a as e,W as m,a7 as p,D as f}from"./index-c4313132.js";import{M as s}from"./index-d9d89829.js";import{u as g,a as y}from"./index-456316d2.js";import{s as i}from"./index.module-f489c00d.js";import{A as v}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 E=r({name:"instrument-detail",setup(){const l=d(),t=c({titleOpacity:0,background:"transparent",color:"#fff",detail:{},musicList:[],loading:!1}),n=async()=>{t.loading=!0;try{const{data:a}=await f.get("/edu-app/knowledgeWiki/detail/"+l.query.id);a.intros=a.intros.replace(/<video/gi,'<video style="width: 100% !important;" controlslist="nodownload" poster="https://oss.dayaedu.com/ktqy/1701759849244.png"'),t.detail=a||{},t.musicList=a.knowledgeWikiResources.map(o=>({id:o.id,name:o.name,url:o.url}))}catch(a){}t.loading=!1};return u(()=>{g(document,"scroll",()=>{const{y:a}=y();t.titleOpacity=a.value>100?1:a.value/100}),n()}),()=>e("div",{class:i.detail},[e(s,{position:"top"},{default:()=>[e(m,{border:!1,background:`rgba(255,255,255, ${t.titleOpacity})`,color:`rgba(51,51,51, ${t.titleOpacity})`,title:t.detail.name||""},null)]}),e("div",{class:i.container},[e("div",{class:i.instrumentLogo},[e(k,{class:i.logo,fit:"cover",src:t.detail.avatar},null)]),e("div",{class:i.title},[t.detail.name]),e("div",{class:i.content,innerHTML:t.detail.intros},null),!t.loading&&!t.detail.intros&&e(p,{description:"暂无内容"},null)]),e(s,{position:"bottom"},{default:()=>[t.musicList.length>0&&e(v,{musicList:t.musicList},null)]})])}});export{E as default};
>>>>>>>> 0f2588f61580675e1c866dc0769d4ceb917efcec:dist/assets/index-8919619e.js
