import{r as a,o as t,s as e,t as l,b as s,d as o,e as n,f as i,w as d,g as u,l as r,m,v as c,A as _,j as f,p,y as h}from"./index-DVkgSHpn.js";import{_ as v}from"./el-navbar.DVIyjZEN.js";import{_ as g}from"./el-loading.BSG4bmSC.js";import{_ as j}from"./mp-html.CxbQHlhy.js";import{_ as y,a as b}from"./el-layout._U-vZTft.js";import"./el-loading-icon.Bh3RKCou.js";const V=y({__name:"view",setup(y){let V=a(!0),w=a({id:"",author_name:"-",title:"",intro:"",content:"",hits:0,create_time:"-"});return t((async a=>{let{code:t,data:s}=await uni.$http.get("archives/detail",{id:a.id});t?(w.value=s,e({title:s.title}),V.value=!1):l("pages/public/empty")})),(a,t)=>{const e=s(o("el-navbar"),v),l=s(o("el-loading"),g),y=p,x=h,k=s(o("mp-html"),j),z=s(o("el-layout"),b);return n(),i(z,null,{default:d((()=>[u(e,{placeholder:!0,fixed:!0,autoBack:!0,border:!0,title:"详情"}),u(l,{modelValue:r(V),"onUpdate:modelValue":t[0]||(t[0]=a=>m(V)?V.value=a:V=a),zoom:!0},null,8,["modelValue"]),u(y,{class:"content"},{default:d((()=>[u(y,{class:"header"},{default:d((()=>[u(y,{class:"title"},{default:d((()=>[c(_(r(w).title),1)])),_:1}),u(y,{class:"author"},{default:d((()=>[u(x,null,{default:d((()=>[c("作者："+_(r(w).author_name),1)])),_:1}),u(x,null,{default:d((()=>[c(_(r(w).create_time),1)])),_:1})])),_:1})])),_:1}),r(w).intro.length>0?(n(),i(y,{key:0,class:"intor"},{default:d((()=>[u(x,null,{default:d((()=>[c("摘要: ")])),_:1}),c(" "+_(r(w).intro||""),1)])),_:1})):f("",!0),u(y,{class:"detail"},{default:d((()=>[u(k,{content:r(w).content},null,8,["content"])])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-e40a47d7"]]);export{V as default};
//# sourceMappingURL=pages-archives-view.Hpr1k_2w.js.map
