"use strict";const t=require("../../../common/vendor.js"),e=require("../../../request/api.js"),i=require("../../../utils/util.js"),a=require("../../../common/assets.js"),s={data:()=>({navH:t.inject("navHeight"),myLikeList:[],page:1,loadAll:!1,getLocaleHourMinute:i.getLocaleHourMinute}),onLoad(){this.getMyLikeListData()},onPullDownRefresh(){this.page=1,this.getMyLikeListData()},onReachBottom(){this.loadAll||(this.page++,this.getMyLikeListData())},methods:{clickLikeComment(i,a){e.likeEventComment(i).then((e=>{t.index.showToast({title:e.message}),this.myLikeList.splice(a,1)})).catch((t=>{}))},getMyLikeListData(){let i={page:this.page,type:"likes"};e.userActivityList(i).then((e=>{200==e.code?(1==e.data.current_page?this.myLikeList=e.data.activities:this.myLikeList=this.myLikeList.concat(e.data.activities),e.data.current_page==e.data.pages&&(this.loadAll=!0)):t.index.showToast({title:e.message,icon:"none"})})).catch((t=>{}))}}};if(!Array){t.resolveComponent("navBar")()}Math;const o=t._export_sfc(s,[["render",function(e,i,s,o,n,r){return{a:t.p({leftText:"我的点赞"}),b:a._imports_0,c:t.f(n.myLikeList,((e,i,a)=>({a:e.author.avatar_url,b:t.t(e.author.nickname),c:e.post_content,d:t.t(n.getLocaleHourMinute(e.like_time)),e:t.o((t=>r.clickLikeComment(e.like_id,i)),i),f:i}))),d:a._imports_1$6,e:t.s("top:"+n.navH+"px;")}}]]);wx.createPage(o);
