"use strict";const e=require("../../../common/vendor.js"),r=require("../../../common/libraries/apiLoading.js"),o=require("../../../gen/Apis.js");require("../../../common/libraries/request.js");const t=require("../../../common/store/useWeAppAuthStore.js");require("../../../common/store/useWorkStore.js");const n=require("../../../common/libraries/day.js"),s=require("../../../common/libraries/userUserLogin.js");if(require("../../../common/libraries/setTabBar.js"),!Array){e.resolveComponent("uni-icons")()}Math;const i=e.defineComponent({__name:"NewsList",setup(i){const u=t.useWeAppAuthStore(),a=e.ref([]);e.watch((()=>{var e;return null==(e=null==u?void 0:u.data)?void 0:e.selected_house}),(()=>{var e;(null==(e=s.getUserLogin)?void 0:e.getLoginStatus())&&r.getApiLoading(o.Apis.Msg.MsgPropertyAnnouncements.List,{}).then((e=>{a.value=e.data,console.log(e)}))}),{deep:!0});const l=()=>{e.index.navigateTo({url:"/INDEX/message_center/list/index"})};return(r,o)=>{var t,s;return e.e({a:null==(t=a.value)?void 0:t.length},(null==(s=a.value)?void 0:s.length)?{b:e.p({type:"right",size:"15",color:"#C4C4C4"}),c:e.o(l),d:e.f(a.value,((r,o,t)=>({a:e.t(null==r?void 0:r.title),b:e.t(e.unref(n.getFromNow)(null==r?void 0:r.created_at)),c:`items_${o}`})))}:{})}}}),u=e._export_sfc(i,[["__scopeId","data-v-5b53e3c7"]]);wx.createComponent(u);
