var f=(n,a,c)=>new Promise((u,e)=>{var m=i=>{try{l(c.next(i))}catch(r){e(r)}},s=i=>{try{l(c.throw(i))}catch(r){e(r)}},l=i=>i.done?u(i.value):Promise.resolve(i.value).then(m,s);l((c=c.apply(n,a)).next())});import{_ as y,c as d,w as t,aP as L,f as N,o as _,k as o,j as I,i as k,p,t as g,ad as T,L as b,M as D,N as S,ae as B,l as C,al as V}from"./index-CZJgrp0v.js";import{g as F}from"./platformPart.CNQPxedB.js";const W={data(){return{imageList:[],info:{},noticeId:""}},onLoad(n){this.noticeId=n.noticeId,this.getWxNoticeDetail()},methods:{getWxNoticeDetail(){return f(this,null,function*(){let n=yield F(this.noticeId);if(n.code!==0){this.$showToastNone(n.msg);return}let a=n.data;a.content=L(a.content),this.info=a;try{if(a.coverImage){let c=JSON.parse(a.coverImage);this.imageList=c}}catch(c){this.imageList=[]}})}}};function j(n,a,c,u,e,m){const s=I,l=C,i=B,r=T,h=V,x=N("layout-default-uni");return _(),d(x,null,{default:t(()=>[o(s,{class:"container"},{default:t(()=>[o(s,{class:"content"},{default:t(()=>[o(s,{class:"content_top",style:{position:"relative"}},{default:t(()=>[o(s,{class:"title"},{default:t(()=>[p(g(e.info.name),1)]),_:1})]),_:1}),o(s,{class:"des-time"},{default:t(()=>[p(g(e.info.publishTime?e.info.publishTime:e.info.updateTime),1)]),_:1}),e.imageList.length>0?(_(),d(s,{key:0,class:"detail_bg"},{default:t(()=>[o(r,{class:"detail_bg",autoplay:!0,"indicator-color":"white"},{default:t(()=>[(_(!0),b(D,null,S(e.imageList,(v,w)=>(_(),d(i,{key:w},{default:t(()=>[o(l,{src:v.url,mode:"aspectFill",class:"image_item"},null,8,["src"])]),_:2},1024))),128))]),_:1})]),_:1})):k("",!0),o(s,{class:"des-content"},{default:t(()=>[o(h,{nodes:e.info.content},null,8,["nodes"])]),_:1})]),_:1})]),_:1})]),_:1})}const M=y(W,[["render",j],["__scopeId","data-v-6f4489ed"]]);export{M as default};
