1import{r as k}from"./rollingLoading-Dw49q4nO.js";import{P as D}from"./pages-BqF7egZ3.js";import{_ as O,I as l,y as m,u as v}from"./services-DMwYBTTp.js";import{m as _}from"./vendor-pinia-CkwwAs9v.js";import{t as p,M as o,Z as f,a1 as d,$ as S,L as T,au as w,O as y,S as b,as as N,ae as j,q as c}from"./vendor-vue-Cs0jG3vf.js";import"./rolling-DLWcmhOa.js";import"./vendor-DZeYsp6R.js";import"./vendor-element-plus-CnrZsLnk.js";import"./vendor-lodash-DXGp0yxs.js";const I={components:{Pages:D,rollingLoading:k},data(){return{pageNo:1,pageSize:10,notice:[],expiredCount:0,noticeData:[],pageObject:"",loginName:localStorage.getItem("user.loginName"),cashUserOpen:localStorage.getItem("cashUserOpen"),userLevelOpen:localStorage.getItem("userLevelOpen"),userGrade:localStorage.getItem("user.userGrade"),userTags:JSON.parse(localStorage.getItem("userTags"))}},computed:{..._(v),checkNoticeData(){return this.getNoticeData()},getGruop(){if(this.userTags!=null){for(let e=0;e<this.userTags.length;e++)if(this.userTags[e].startsWith("userGroup_"))return this.userTags[e].substr(10)}else return null}},mounted(){this.SetTurning(!0),this.isShow=!0,this.getNoticeData()},methods:{getNoticeData(){if(["",null].includes(this.siteStore.noticeData))this.isShow=!1;else{let e=this.siteStore.noticeData;e=this.noticeDataFilter(e);let s=new Date().getTime();this.notice=[];for(let r=0;r<e.length;r++)e[r].endTime>s&&e[r].startTime<=s&&this.notice.push(e[r]);this.showNotice()}return this.updatePageObject(),this.noticeData},updatePageObject(){this.pageObject={page:this.pageNo,pageSize:this.pageSize,count:this.notice.length},setTimeout(()=>{this.SetTurning(!1)},500)},changePageCallback(e){this.pageNo=e.page,this.showNotice()},showNotice(){this.noticeData=this.notice.slice((this.pageNo-1)*this.pageSize,this.pageNo*this.pageSize),this.isShow=!1},formatDate(e){return new Date(e).Format("yyyy-MM-dd hh:mm:ss")},contentHandler(e){let s=m(e,"<","<");return m(s,">",">")},noticeDataFilter(e){let s=[];for(let t=0;t<e.length;t++)switch(e[t].msgOpenGroupType){case 0:if(l(e[t].cashUserOpen)){var r=e[t].cashUserOpen.toString().split(",");for(let a=0;a<r.length;a++)if(Number(r[a])===Number(this.cashUserOpen)){s.push(e[t]);break}}else s.push(e[t]);break;case 1:if(l(e[t].userLevelOpen)){var h=e[t].userLevelOpen.toString().split(",");for(let a=0;a<h.length;a++)if(Number(h[a])===Number(this.userLevelOpen)){s.push(e[t]);break}}break;case 2:if(l(e[t].userOpen)){var i=e[t].userOpen.toString().split(",");for(let a=0;a<i.length;a++)if(i[a]===this.loginName){s.push(e[t]);break}}break;case 3:if(l(e[t].userOpen)){var n=e[t].userOpen.toString().split(",");for(let a=0;a<n.length;a++)if(n[a]===this.getGruop){s.push(e[t]);break}}break;case 4:if(l(e[t].userOpen)){var u=e[t].userOpen.toString().split(",");for(let a=0;a<u.length;a++)if(u[a]===this.userGrade){s.push(e[t]);break}}break;case 5:s.push(e[t]);break;case 6:if(l(e[t].accountNames)){var g=e[t].accountNames.toString().split(",");g.includes(this.loginName)&&s.push(e[t])}break}return s}}},C={class:"userRight"},L={class:"announcementList"};function P(e,s,r,h,i,n){const u=N("router-link"),g=N("pages");return c(),p("div",C,[s[1]||(s[1]=o("div",{class:"userTitle mgb10"},"ç½ç«å
¬å",-1)),o("div",L,[f(o("ul",null,[(c(!0),p(T,null,w(this.checkNoticeData,t=>(c(),p("li",{key:t.id},[d(u,{to:{path:"/memberCenter/noticeDetail",query:{noticeId:t.id}}},{default:y(()=>[o("a",null,b(n.contentHandler(t.title)),1)]),_:2},1032,["to"]),o("span",null,b(n.formatDate(t.startTime)),1)]))),128))],512),[[S,i.noticeData&&i.noticeData.length>0&&!e.isShow]]),f(o("div",null,[...s[0]||(s[0]=[o("div",{class:"notContent"},[o("i",{class:"iconfont"}),j("ææ å
Œ ")],-1)])],512),[[S,!i.noticeData||i.noticeData.length===0]]),d(g,{option:i.pageObject,callback:n.changePageCallback},null,8,["option","callback"])])])}const F=O(I,[["render",P],["__scopeId","data-v-86bf0db8"]]);export{F as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.