import{C as a,p as t,o as s,e,w as l,s as o,_ as n,b as r,i,f as u,h as c,F as d,k as p,m,d as _,u as g,y as f,z as v,aV as x,l as y}from"./index-520dfaee.js";import{_ as w}from"./s-empty.b6c95127.js";import{_ as k}from"./uni-load-more.ba4f287c.js";import{a as b}from"./s-layout.5146c957.js";import{_ as h}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css                                                                */const j=h({__name:"share-log",setup(h){const j=a({pagination:{data:[],current_page:1,total:1,last_page:1},loadStatus:""});async function S(a=1,t=8){j.loadStatus="loading";let s=await o.$api.user.share.list({list_rows:t,page:a});if(1===s.code){let a=n.concat(j.pagination.data,s.data.data);j.pagination={...s.data,data:a},j.pagination.current_page<j.pagination.last_page?j.loadStatus="more":j.loadStatus="noMore"}}function F(){"noMore"!==j.loadStatus&&S(j.pagination.current_page+1)}return t((async()=>{S()})),(a,t)=>{const n=y,h=m,S=r(_("s-empty"),w),$=r(_("uni-load-more"),k),C=r(_("s-layout"),b);return s(),e(C,{title:"分享记录"},{default:l((()=>[i(h,{class:"distraction-share-wrap"},{default:l((()=>[i(h,{class:"share-log-box"},{default:l((()=>[(s(!0),u(d,null,c(j.pagination.data,(a=>(s(),e(h,{class:"log-list ss-flex",key:a.id},{default:l((()=>[i(h,{class:"log-avatar-wrap"},{default:l((()=>{var t;return[i(n,{class:"log-avatar",src:g(o).$url.cdn(null==(t=a.user)?void 0:t.avatar),mode:"aspectFill"},null,8,["src"])]})),_:2},1024),i(h,{class:"item-right"},{default:l((()=>[i(h,{class:"name"},{default:l((()=>{var t;return[f(v(null==(t=a.user)?void 0:t.nickname),1)]})),_:2},1024),i(h,{class:"content ss-flex"},{default:l((()=>{var t,r;return[(null==(t=a.ext)?void 0:t.image)?(s(),e(h,{key:0,class:"content-img-wrap"},{default:l((()=>{var t;return[i(n,{class:"content-img",src:g(o).$url.cdn(null==(t=a.ext)?void 0:t.image),mode:"aspectFill"},null,8,["src"])]})),_:2},1024)):p("",!0),(null==(r=a.ext)?void 0:r.memo)?(s(),e(h,{key:1,class:"content-text"},{default:l((()=>{var t;return[f(v(null==(t=a.ext)?void 0:t.memo),1)]})),_:2},1024)):p("",!0)]})),_:2},1024),i(h,{class:"item-bottom ss-flex ss-row-between"},{default:l((()=>[i(h,{class:"from-text"}),i(h,{class:"time"},{default:l((()=>[f(v(g(x)(a.createtime).fromNow()),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128)),0===j.pagination.total?(s(),e(S,{key:0,icon:"/static/data-empty.png",text:"暂无分享记录"})):p("",!0),j.pagination.total>0?(s(),e($,{key:1,status:j.loadStatus,"content-text":{contentdown:"上拉加载更多"},onClick:F},null,8,["status"])):p("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-0f74b4a1"]]);export{j as default};
