"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[5447],{85447:function(e,a,t){t.r(a),t.d(a,{default:function(){return C}});var s=t(66252),n=t(3577),i=t(49963);const l=e=>((0,s.dD)("data-v-1c827af9"),e=e(),(0,s.Cn)(),e),c={class:"account_like"},o={class:"account_generalMessage_title modal_title_text"},r={class:"account_generalMessage_center modal_title_text"},_=["onClick"],d={class:"account_generalMessage_item_right"},g=["onClick"],u=["src"],m={class:"account_generalMessage_item_right_title"},h={class:"account_generalMessage_item_right_title_name"},p={class:"account_generalMessage_item_left"},v=l((()=>(0,s._)("div",{class:"account_generalMessage_item_left_delete modal_title_text_intro"},[(0,s._)("span",{class:"icon iconfont icon-shanchu operate_icon"})],-1))),w={class:"modal_title_text_intro"},k={key:0,class:"account_generalMessage_item",style:{"justify-content":"center"}},M={class:"page_loading_box"},f={class:"page_loading",ref:"loadingDom"};function y(e,a,t,l,y,D){const R=(0,s.up)("a-badge"),z=(0,s.up)("a-spin");return(0,s.wg)(),(0,s.iD)("div",c,[(0,s._)("div",o,[(0,s._)("div",{class:"account_generalMessage_title_setting",onClick:a[0]||(a[0]=(...a)=>e.allRead&&e.allRead(...a))},(0,n.zw)(e.$t("account.AllRead")),1)]),(0,s._)("div",r,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.dataList,(a=>((0,s.wg)(),(0,s.iD)("div",{class:"account_generalMessage_item",key:a.id,onClick:t=>e.setRead(a)},[(0,s.Wm)(R,{dot:0==a.isRead},null,8,["dot"]),(0,s._)("div",d,[(0,s._)("div",{class:"account_generalMessage_item_right_img",onClick:t=>e.openOtherUsers(a)},[(0,s._)("img",{src:a.avatar,alt:""},null,8,u)],8,g),(0,s._)("div",m,[(0,s._)("div",h,[(0,s.Uk)((0,n.zw)(a.userName)+" ",1),(0,s._)("span",null,(0,n.zw)(e.$t("account.likedYourWork")),1)]),(0,s._)("div",null,(0,n.zw)(a.portfolioName),1)])]),(0,s._)("div",p,[v,(0,s._)("div",w,(0,n.zw)(a.createTime),1)])],8,_)))),128)),0==e.dataList.length&&e.isNoData?((0,s.wg)(),(0,s.iD)("div",k,(0,n.zw)(e.$t("account.dataNull")),1)):(0,s.kq)("",!0),(0,s.wy)((0,s._)("div",M,[(0,s.wy)((0,s._)("span",f,null,512),[[i.F8,!e.isShowMark]]),(0,s.wy)((0,s._)("span",null,[(0,s.Wm)(z,{size:"large"})],512),[[i.F8,e.isShowMark]])],512),[[i.F8,!e.isNoData]])])])}var D=t(2262),R=t(22201),z=t(33907),N=(0,s.aZ)({components:{},props:["setReadStatus","setAllmessage","getHistory"],setup(e,{emit:a}){const t=(0,R.tv)();(0,z.oR)();let n=(0,D.qj)({activeKey:(0,D.iH)("1"),dataList:[],page:1,size:10,isNoData:!1,isShowMark:!1}),i=(0,D.iH)(null),l=()=>{n.isShowMark=!0;let a={page:n.page,size:n.size};e.getHistory(a).then((e=>{n.isShowMark=!1,0!=e.content.length?n.dataList=e.content:n.isNoData=!0})).catch((()=>{n.isShowMark=!1,n.isNoData=!0}))},c=a=>{e.setReadStatus(a).then((e=>{a.isRead=1})).catch((e=>{}))},o=()=>{e.setAllmessage().then((()=>{})).catch((e=>{}))},r=e=>{const a=t.resolve({path:"/home/otherUsers",query:{userId:e.senderId}});window.open(a.href,"_blank")};return(0,s.bv)((()=>{n.isNoData=!1,n.page=0;document.querySelector(".account_systemMessage .page_loading");new IntersectionObserver(((e,a)=>{e[0].intersectionRatio&&(n.page+=1,l())})).observe(i.value)})),{...(0,D.BK)(n),setmessageList:l,setRead:c,allRead:o,openOtherUsers:r,loadingDom:i}},data(){return{}}}),S=t(83744);const b=(0,S.Z)(N,[["render",y],["__scopeId","data-v-1c827af9"]]);var C=b}}]);