index-301c4b2f.js 4.6 KB

12345
  1. <<<<<<<< HEAD:dist/assets/index-301c4b2f.js
  2. import{d,P as u,x as m,y as p,a,W as g,A as o,a8 as v,D as y}from"./index-ec1086fa.js";import{M as n}from"./index-ded61d08.js";import{u as f,a as b}from"./index-d91abb02.js";import{s as i}from"./index.module-d955ef3a.js";import{m as l,A as k}from"./index-417baac8.js";import{I as F}from"./index-9e2e6212.js";import{N as L}from"./index-087ac928.js";import"./index-c5383b3e.js";import"./browser-504037ee.js";import"./index-8467efeb.js";import"./index-e7aa4079.js";const q=d({name:"instrument-detail",setup(){const r=u(),t=m({titleOpacity:0,background:"transparent",detail:{},musicList:[],loading:!1}),c=async()=>{t.loading=!0;try{const{data:s}=await y.get("/edu-app/knowledgeWiki/detail/"+r.query.id);s.intros=s.intros.replace(/<video/gi,'<video style="width: 100% !important;" controlslist="nodownload" poster="https://oss.dayaedu.com/ktqy/1701759849244.png"'),t.detail=s||{},t.musicList=s.knowledgeWikiResources.map(e=>({id:e.id,name:e.name,url:e.url}))}catch(s){}t.loading=!1};return p(()=>{f(document,"scroll",()=>{const{y:s}=b();t.titleOpacity=s.value>100?1:s.value/100}),c()}),()=>a("div",{class:i.detail},[a("div",{class:i.bgSection},[a("img",{class:i.bg,src:t.detail.avatar||l},null)]),a(n,{position:"top"},{default:()=>[a(g,{border:!1,background:`rgba(255,255,255, ${t.titleOpacity})`,color:`rgba(51,51,51, ${t.titleOpacity})`,title:t.detail.name||""},null)]}),a("div",{class:i.container},[a("div",{class:i.musicHeader},[a("div",{class:i.imgSection},[a(F,{class:i.img,src:t.detail.avatar||l,fit:"cover"},null),a("div",{class:i.pan},[a("img",{src:t.detail.avatar||l},null)])]),a("div",{class:i.musicContent},[a("div",{class:[i.musicTitle,"van-multi-ellipsis--l2"]},[a(L,{scrollable:t.detail.name>=13,background:"transparent",text:t.detail.name||"--"},null)]),a("div",{class:i.musicInto},[t.detail.lyricists&&a("span",null,[o("作词:"),t.detail.lyricists]),t.detail.composers&&a("span",null,[o("作曲:"),t.detail.composers])])])]),t.detail.intros?a("div",{class:i.content},[a("div",{class:"only-child-select",innerHTML:t.detail.intros},null)]):"",!t.loading&&!t.detail.intros&&a("div",{class:i.content},[a(v,{description:"暂无内容"},null)])]),a(n,{position:"bottom"},{default:()=>[t.musicList.length>0&&a(k,{musicList:t.musicList},null)]})])}});export{q as default};
  3. ========
  4. import{d,P as u,x as m,y as p,a,W as g,A as o,a8 as v,D as y}from"./index-010a77d0.js";import{M as n}from"./index-bfe5a329.js";import{u as f,a as b}from"./index-6f99626a.js";import{s as i}from"./index.module-d955ef3a.js";import{m as l,A as k}from"./index-5d47f2b7.js";import{I as F}from"./index-9492e0e5.js";import{N as L}from"./index-5932cf10.js";import"./index-6635b977.js";import"./browser-504037ee.js";import"./index-a03ab380.js";import"./index-3b95ca36.js";const q=d({name:"instrument-detail",setup(){const r=u(),t=m({titleOpacity:0,background:"transparent",detail:{},musicList:[],loading:!1}),c=async()=>{t.loading=!0;try{const{data:s}=await y.get("/edu-app/knowledgeWiki/detail/"+r.query.id);s.intros=s.intros.replace(/<video/gi,'<video style="width: 100% !important;" controlslist="nodownload" poster="https://oss.dayaedu.com/ktqy/1701759849244.png"'),t.detail=s||{},t.musicList=s.knowledgeWikiResources.map(e=>({id:e.id,name:e.name,url:e.url}))}catch(s){}t.loading=!1};return p(()=>{f(document,"scroll",()=>{const{y:s}=b();t.titleOpacity=s.value>100?1:s.value/100}),c()}),()=>a("div",{class:i.detail},[a("div",{class:i.bgSection},[a("img",{class:i.bg,src:t.detail.avatar||l},null)]),a(n,{position:"top"},{default:()=>[a(g,{border:!1,background:`rgba(255,255,255, ${t.titleOpacity})`,color:`rgba(51,51,51, ${t.titleOpacity})`,title:t.detail.name||""},null)]}),a("div",{class:i.container},[a("div",{class:i.musicHeader},[a("div",{class:i.imgSection},[a(F,{class:i.img,src:t.detail.avatar||l,fit:"cover"},null),a("div",{class:i.pan},[a("img",{src:t.detail.avatar||l},null)])]),a("div",{class:i.musicContent},[a("div",{class:[i.musicTitle,"van-multi-ellipsis--l2"]},[a(L,{scrollable:t.detail.name>=13,background:"transparent",text:t.detail.name||"--"},null)]),a("div",{class:i.musicInto},[t.detail.lyricists&&a("span",null,[o("作词:"),t.detail.lyricists]),t.detail.composers&&a("span",null,[o("作曲:"),t.detail.composers])])])]),t.detail.intros?a("div",{class:i.content},[a("div",{class:"only-child-select",innerHTML:t.detail.intros},null)]):"",!t.loading&&!t.detail.intros&&a("div",{class:i.content},[a(v,{description:"暂无内容"},null)])]),a(n,{position:"bottom"},{default:()=>[t.musicList.length>0&&a(k,{musicList:t.musicList},null)]})])}});export{q as default};
  5. >>>>>>>> iteration-20250327-light:dist/assets/index-63e1fe73.js