index-3a6defdf.js 3.6 KB

12345
  1. <<<<<<<< HEAD:dist/assets/index-3a6defdf.js
  2. import{d as r,P as c,x as d,y as u,a as o,W as m,a2 as p,D as g}from"./index-71d641bf.js";import{M as a}from"./index-cbbf2337.js";import{u as f,a as v}from"./index-52c7da18.js";import{A as _}from"./index-9d5afd97.js";import{I as y}from"./index-b76c7acb.js";import"./browser-504037ee.js";import"./index-259e91d1.js";import"./index-e4fa11ce.js";const w="_detail_1vfwn_1",L="_container_1vfwn_7",k="_instrumentLogo_1vfwn_14",b="_logo_1vfwn_27",M="_title_1vfwn_31",h="_content_1vfwn_40",i={detail:w,container:L,instrumentLogo:k,logo:b,title:M,content:h},H=r({name:"instrument-detail",setup(){const s=c(),t=d({titleOpacity:0,background:"transparent",color:"#fff",detail:{},musicList:[],loading:!1}),l=async()=>{t.loading=!0;try{const{data:e}=await g.get("/edu-app/knowledgeWiki/detail/"+s.query.id);e.intros=e.intros.replace(/<video/gi,'<video style="width: 100% !important;" controlslist="nodownload" poster="https://oss.dayaedu.com/ktqy/1701759849244.png"'),t.detail=e||{},t.musicList=e.knowledgeWikiResources.map(n=>({id:n.id,name:n.name,url:n.url}))}catch(e){}t.loading=!1};return u(()=>{f(document,"scroll",()=>{const{y:e}=v();t.titleOpacity=e.value>100?1:e.value/100}),l()}),()=>o("div",{class:i.detail},[o(a,{position:"top"},{default:()=>[o(m,{border:!1,background:`rgba(255,255,255, ${t.titleOpacity})`,color:`rgba(51,51,51, ${t.titleOpacity})`,title:t.detail.name||""},null)]}),o("div",{class:i.container},[o("div",{class:i.instrumentLogo},[o(y,{class:i.logo,fit:"cover",src:t.detail.avatar},null)]),o("div",{class:i.title},[t.detail.name]),o("div",{class:i.content,innerHTML:t.detail.intros},null),!t.loading&&!t.detail.intros&&o(p,{description:"暂无内容"},null)]),o(a,{position:"bottom"},{default:()=>[t.musicList.length>0&&o(_,{musicList:t.musicList},null)]})])}});export{H as default};
  3. ========
  4. import{d as r,P as c,x as d,y as u,a as o,W as m,a2 as p,D as g}from"./index-73508c8b.js";import{M as a}from"./index-720528e8.js";import{u as f,a as v}from"./index-6c5917c0.js";import{A as _}from"./index-594edf17.js";import{I as y}from"./index-3133fc58.js";import"./browser-504037ee.js";import"./index-f90ac417.js";import"./index-174a8bb2.js";const w="_detail_1vfwn_1",L="_container_1vfwn_7",k="_instrumentLogo_1vfwn_14",b="_logo_1vfwn_27",M="_title_1vfwn_31",h="_content_1vfwn_40",i={detail:w,container:L,instrumentLogo:k,logo:b,title:M,content:h},H=r({name:"instrument-detail",setup(){const s=c(),t=d({titleOpacity:0,background:"transparent",color:"#fff",detail:{},musicList:[],loading:!1}),l=async()=>{t.loading=!0;try{const{data:e}=await g.get("/edu-app/knowledgeWiki/detail/"+s.query.id);e.intros=e.intros.replace(/<video/gi,'<video style="width: 100% !important;" controlslist="nodownload" poster="https://oss.dayaedu.com/ktqy/1701759849244.png"'),t.detail=e||{},t.musicList=e.knowledgeWikiResources.map(n=>({id:n.id,name:n.name,url:n.url}))}catch(e){}t.loading=!1};return u(()=>{f(document,"scroll",()=>{const{y:e}=v();t.titleOpacity=e.value>100?1:e.value/100}),l()}),()=>o("div",{class:i.detail},[o(a,{position:"top"},{default:()=>[o(m,{border:!1,background:`rgba(255,255,255, ${t.titleOpacity})`,color:`rgba(51,51,51, ${t.titleOpacity})`,title:t.detail.name||""},null)]}),o("div",{class:i.container},[o("div",{class:i.instrumentLogo},[o(y,{class:i.logo,fit:"cover",src:t.detail.avatar},null)]),o("div",{class:i.title},[t.detail.name]),o("div",{class:i.content,innerHTML:t.detail.intros},null),!t.loading&&!t.detail.intros&&o(p,{description:"暂无内容"},null)]),o(a,{position:"bottom"},{default:()=>[t.musicList.length>0&&o(_,{musicList:t.musicList},null)]})])}});export{H as default};
  5. >>>>>>>> iteration-20231220:dist/assets/index-503d2ce5.js