"use strict";const e=require("../../common/vendor.js"),t=require("../../api/apis.js");if(!Array){(e.resolveComponent("uni-tag")+e.resolveComponent("uni-dateformat")+e.resolveComponent("mp-html"))()}Math||((()=>"../../uni_modules/uni-tag/components/uni-tag/uni-tag.js")+(()=>"../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.js")+(()=>"../../uni_modules/mp-html/components/mp-html/mp-html.js"))();const a={__name:"detail",setup(a){const o=e.ref({}),n=e.ref(""),l=e.ref("");e.onLoad((t=>{console.log(t),n.value=t.id,l.value=t.name,e.index.setNavigationBarTitle({title:l.value}),u()}));const u=async()=>{let e=await t.apiNoticeDetail({id:n.value});o.value=e.data,console.log(e)};return(t,a)=>e.e({a:o.value.select},o.value.select?{b:e.p({text:"置顶",inverted:!0,type:"error"})}:{},{c:e.t(o.value.title),d:e.t(o.value.author),e:e.p({date:o.value.publish_date,format:"yyyy-MM-dd hh:mm:ss"}),f:e.p({content:o.value.content}),g:e.t(o.value.view_count)})}},o=e._export_sfc(a,[["__scopeId","data-v-cb39523c"]]);wx.createPage(o);
