"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[5566],{75566:function(e,t,s){s.r(t),s.d(t,{default:function(){return H}});var a=s(66252),n=s(3577),o=s(49963);const i=e=>((0,a.dD)("data-v-5c9279ac"),e=e(),(0,a.Cn)(),e),l=i((()=>(0,a._)("div",{class:"newPosted_generalMessage_title modal_title_text"},[(0,a._)("span",null,"动态")],-1))),r={class:"newPosted_generalMessage_center modal_title_text"},c=["onClick"],d={class:"newPosted_generalMessage_item_right"},_=["onClick"],g=["src"],w={class:"newPosted_generalMessage_item_content"},p={class:"modal_title_text_intro"},u=["onClick"],h={class:"modal_title_text_intro"},m={class:"newPosted_generalMessage_item_left"},v={class:"newPosted_generalMessage_item_img"},k=["src"],M={key:0,class:"newPosted_generalMessage_item",style:{"justify-content":"center"}},P={class:"page_loading_box"},y={class:"page_loading",ref:"loadingDom"};function f(e,t,s,i,f,D){const C=(0,a.up)("a-spin");return(0,a.wg)(),(0,a.iD)(a.HY,null,[l,(0,a._)("div",r,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(e.dataList,(t=>((0,a.wg)(),(0,a.iD)("div",{class:"newPosted_generalMessage_item",key:t.id,onClick:s=>e.setRead(t)},[(0,a._)("div",d,[(0,a._)("div",{class:"newPosted_generalMessage_item_img pointer",onClick:s=>e.openOtherUsers(t)},[(0,a._)("img",{src:t.avatar,alt:""},null,8,g)],8,_)]),(0,a._)("div",w,[(0,a._)("div",p,(0,n.zw)(t.userName),1),(0,a._)("div",{class:"newPosted_generalMessage_item_content_title pointer",onClick:s=>e.openOtherWork(t)},(0,n.zw)(t.portfolioName),9,u),(0,a._)("div",h,(0,n.zw)(t.createTime),1)]),(0,a._)("div",m,[(0,a._)("div",v,[(0,a._)("img",{src:t.canvas,alt:""},null,8,k)])])],8,c)))),128)),0==e.dataList.length&&e.isNoData?((0,a.wg)(),(0,a.iD)("div",M,(0,n.zw)(e.$t("account.dataNull")),1)):(0,a.kq)("",!0),(0,a.wy)((0,a._)("div",P,[(0,a.wy)((0,a._)("span",y,null,512),[[o.F8,!e.isShowMark]]),(0,a.wy)((0,a._)("span",null,[(0,a.Wm)(C,{size:"large"})],512),[[o.F8,e.isShowMark]])],512),[[o.F8,!e.isNoData]])])],64)}var D=s(2262),C=s(74961),N=s(22201),b=s(33907),z=(0,a.aZ)({components:{},setup(){const e=(0,N.tv)(),t=(0,b.oR)();let s=(0,D.qj)({activeKey:(0,D.iH)("1"),dataList:[],page:1,size:10,isNoData:!1,isShowMark:!1}),n=(0,D.iH)(null),o=()=>{s.isNoData=!1,s.page=0,new IntersectionObserver(((e,t)=>{e[0].intersectionRatio&&(s.page+=1,i())})).observe(n.value);let e={type:"newPosted"};C.V.axiosPost(C.V.httpUrls.oneClickRead,"",{params:e}).then((e=>{t.commit("setMessageSystem",{newPosted:0})})).catch((e=>{}))},i=()=>{s.isShowMark=!0;let e={page:s.page,size:s.size,type:"newPosted"};C.V.axiosPost(C.V.httpUrls.getHistoryNotification,e).then((e=>{s.isShowMark=!1,0!=e.content.length?s.dataList=e.content:s.isNoData=!0})).catch((()=>{s.isShowMark=!1,s.isNoData=!0}))},l=t=>{const s=e.resolve({path:"/home/otherUsers",query:{userId:t.senderId}});window.open(s.href,"_blank")},r=t=>{const s=e.resolve({path:"/home/works",query:{workId:t.portfolioId}});window.open(s.href,"_blank")};return(0,a.bv)((()=>{})),{...(0,D.BK)(s),loadingDom:n,init:o,getPostedHistory:i,openOtherUsers:l,openOtherWork:r}},data(){return{}}}),x=s(83744);const S=(0,x.Z)(z,[["render",f],["__scopeId","data-v-5c9279ac"]]);var H=S}}]);