"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[9772],{69772:function(e,a,t){t.r(a),t.d(a,{default:function(){return I}});var s=t(66252),l=t(3577),o=t(49963);const i={class:"account_newFollow"},n={class:"account_generalMessage_title modal_title_text"},c={class:"account_generalMessage_center modal_title_text"},r=["onClick"],d={class:"account_generalMessage_item_right"},g=["onClick"],_=["src"],u={class:"account_generalMessage_item_right_title"},w={class:""},p={class:"modal_title_text_intro"},h={class:"account_generalMessage_item_left"},m=["onClick"],v=["onClick"],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,y,F,D){const C=(0,s.up)("a-badge"),R=(0,s.up)("a-spin");return(0,s.wg)(),(0,s.iD)("div",i,[(0,s._)("div",n,[(0,s._)("div",{class:"account_generalMessage_title_setting",onClick:a[0]||(a[0]=(...a)=>e.allRead&&e.allRead(...a))},(0,l.zw)(e.$t("account.AllRead")),1)]),(0,s._)("div",c,[((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)(C,{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,_)],8,g),(0,s._)("div",u,[(0,s._)("div",w,(0,l.zw)(a.userName),1),(0,s._)("div",p,(0,l.zw)(a.createTime)+" "+(0,l.zw)(e.$t("account.followedYou")),1)])]),(0,s._)("div",h,[0==a?.isFollow?((0,s.wg)(),(0,s.iD)("div",{key:0,onClick:(0,o.iM)((t=>e.setFollow(a)),["stop"])},(0,l.zw)(e.$t("newScaleImage.Follow")),9,m)):((0,s.wg)(),(0,s.iD)("div",{key:1,onClick:(0,o.iM)((t=>e.setFollow(a)),["stop"])},(0,l.zw)(e.$t("newScaleImage.Unfollow")),9,v))])],8,r)))),128)),0==e.dataList.length&&e.isNoData?((0,s.wg)(),(0,s.iD)("div",k,(0,l.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),[[o.F8,!e.isShowMark]]),(0,s.wy)((0,s._)("span",null,[(0,s.Wm)(R,{size:"large"})],512),[[o.F8,e.isShowMark]])],512),[[o.F8,!e.isNoData]])])])}var F=t(2262),D=t(74961),C=t(22201),R=t(33907),z=(0,s.aZ)({components:{},props:["setReadStatus","setAllmessage","getHistory"],setup(e,{emit:a}){const t=(0,C.tv)();(0,R.oR)();let l=(0,F.qj)({activeKey:(0,F.iH)("1"),dataList:[],page:1,size:10,isNoData:!1,isShowMark:!1}),o=(0,F.iH)(null),i=()=>{l.isShowMark=!0;let a={page:l.page,size:l.size};e.getHistory(a).then((e=>{l.isShowMark=!1,0!=e.length?l.dataList=e:l.isNoData=!0})).catch((()=>{l.isShowMark=!1,l.isNoData=!0}))},n=a=>{e.setReadStatus(a).then((e=>{a.isRead=1})).catch((e=>{}))},c=()=>{e.setAllmessage().then((()=>{})).catch((e=>{}))},r=e=>{let a=D.V.httpUrls.porfolioFollow;1==e.isFollow&&(a=D.V.httpUrls.porfolioCancelFollow),D.V.axiosGet(a,{params:{followeeId:e.senderId}}).then((a=>{1==e.isFollow?e.isFollow=0:e.isFollow=1}))},d=e=>{const a=t.resolve({path:"/home/otherUsers",query:{userId:e.senderId}});window.open(a.href,"_blank")};return(0,s.bv)((()=>{l.isNoData=!1,l.page=0;document.querySelector(".account_systemMessage .page_loading");new IntersectionObserver(((e,a)=>{e[0].intersectionRatio&&(l.page+=1,i())})).observe(o.value)})),{...(0,F.BK)(l),setmessageList:i,setRead:n,allRead:c,setFollow:r,openOtherUsers:d,loadingDom:o}},data(){return{}}}),S=t(83744);const b=(0,S.Z)(z,[["render",y],["__scopeId","data-v-53724ad3"]]);var I=b}}]);