| 1 |
- import{d,q as i,U as l,x as c,y as u,a,S as f,a1 as p,D as g}from"./index-618de94a.js";import{M as m}from"./index-3c640b6c.js";import{s as o}from"./index.module-681f9142.js";import{u as y,a as w}from"./index-af130878.js";const M=d({name:"unit-detail",setup(){i();const s=l(),e=c({detailId:s.query.detailId,loading:!1,background:"transparent",color:"#fff",dataInfo:{},title:" "}),r=async()=>{e.loading=!0;try{const{data:t}=await g.get("/edu-app/lessonCoursewareKnowledgeDetail/detail/"+e.detailId);e.dataInfo=t,e.title=t.name}catch(t){}e.loading=!1};return u(()=>{y(document,"scroll",()=>{const{y:t}=w();t.value>52?(e.background="#fff",e.color="#323333"):(e.background="transparent",e.color="#fff")}),r()}),()=>{var t,n;return a("div",{class:o.knowledgeLibrary},[a(m,{position:"top"},{default:()=>[a(f,{border:!1,background:e.background,color:e.color,title:e.title},null)]}),a("div",{class:[o.containerSection,o.woringSection]},[((t=e.dataInfo)==null?void 0:t.desc)&&a("div",{class:o.woringContent,innerHTML:e.dataInfo.desc},null),!((n=e.dataInfo)!=null&&n.desc)&&!e.loading&&a("div",{class:o.woringContent},[a(p,{description:"暂无内容",style:{paddingTop:"40px"}},null)])])])}}});export{M as default};
|