index-33f454d8.js 3.5 KB

12345
  1. <<<<<<<< HEAD:dist/assets/index-aabd470b.js
  2. import{d as r,P as d,x as c,y as u,a as e,W as m,a8 as p,D as f}from"./index-343d84cd.js";import{M as s}from"./index-8c23b7a1.js";import{u as g,a as y}from"./index-4b7e9471.js";import{s as a}from"./index.module-f489c00d.js";import{A as v}from"./index-eb6b90f0.js";import{I as k}from"./index-1c890e54.js";import"./index-87fd4ab9.js";import"./browser-504037ee.js";import"./index-84e39967.js";import"./index-b609bbd8.js";const A=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:i}=await f.get("/edu-app/knowledgeWiki/detail/"+l.query.id);i.intros=i.intros.replace(/<video/gi,'<video style="width: 100% !important;" controlslist="nodownload" poster="https://oss.dayaedu.com/ktqy/1701759849244.png"'),t.detail=i||{},t.musicList=i.knowledgeWikiResources.map(o=>({id:o.id,name:o.name,url:o.url}))}catch(i){}t.loading=!1};return u(()=>{g(document,"scroll",()=>{const{y:i}=y();t.titleOpacity=i.value>100?1:i.value/100}),n()}),()=>e("div",{class:a.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:a.container},[e("div",{class:a.instrumentLogo},[e(k,{class:a.logo,fit:"cover",src:t.detail.avatar},null)]),e("div",{class:a.title},[t.detail.name]),e("div",{class:a.content},[e("div",{class:"only-child-select",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{A as default};
  3. ========
  4. import{d as r,P as d,x as c,y as u,a as e,W as m,a8 as p,D as f}from"./index-2fb20f9e.js";import{M as s}from"./index-618f37a0.js";import{u as g,a as y}from"./index-ce39845f.js";import{s as a}from"./index.module-f489c00d.js";import{A as v}from"./index-79bd914e.js";import{I as k}from"./index-a1fbed11.js";import"./index-74def50d.js";import"./browser-504037ee.js";import"./index-4e06a9eb.js";import"./index-343dd03e.js";const A=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:i}=await f.get("/edu-app/knowledgeWiki/detail/"+l.query.id);i.intros=i.intros.replace(/<video/gi,'<video style="width: 100% !important;" controlslist="nodownload" poster="https://oss.dayaedu.com/ktqy/1701759849244.png"'),t.detail=i||{},t.musicList=i.knowledgeWikiResources.map(o=>({id:o.id,name:o.name,url:o.url}))}catch(i){}t.loading=!1};return u(()=>{g(document,"scroll",()=>{const{y:i}=y();t.titleOpacity=i.value>100?1:i.value/100}),n()}),()=>e("div",{class:a.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:a.container},[e("div",{class:a.instrumentLogo},[e(k,{class:a.logo,fit:"cover",src:t.detail.avatar},null)]),e("div",{class:a.title},[t.detail.name]),e("div",{class:a.content},[e("div",{class:"only-child-select",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{A as default};
  5. >>>>>>>> iteration-h5-share:dist/assets/index-33f454d8.js