import{a as g,f as x,w as h,o as a,h as o,u as t,I as y,ba as C,i as s,j as u,c as v,p as k,t as p,k as b,m as E,b7 as w,E as D,A as F}from"./entry.49b00e51.js";import{u as N}from"./asyncData.c6aabeab.js";import{e as $,c as j}from"./news.8419498b.js";import{a as z,E as B,e as I}from"./empty_news.b72a5822.js";import{E as S}from"./index.13415be7.js";import"./debounce.66907efb.js";import"./index.f418b033.js";import"./index.6ac3a200.js";import"./_getTag.cf814d7e.js";const V={class:"px-[30px] py-5 user-info min-h-full flex flex-col"},A=s("div",{class:"border-b border-br pb-5"},[s("span",{class:"text-2xl font-medium"},"\u6211\u7684\u6536\u85CF")],-1),M={key:0},T=["onClick"],q={class:"border-b border-br py-4 flex items-center"},L={class:"flex-1"},O={class:"text-lg font-medium line-clamp-1"},P={class:"text-tx-regular line-clamp-2 mt-4"},U={class:"mt-5 text-tx-secondary flex justify-between"},G={class:"py-4 flex justify-end"},H={key:1,class:"flex flex-1 justify-center items-center"},se=g({__name:"collection",async setup(J){let i,d;const n=x({pageNo:1,pageSize:15}),{data:l,refresh:m}=([i,d]=h(()=>N(()=>$(n),{initialCache:!1},"$0MtqemkOuk")),i=await i,d(),i),f=async c=>{await j({articleId:c}),F.msgSuccess("\u5DF2\u53D6\u6D88\u6536\u85CF"),m()};return(c,r)=>(a(),o("div",V,[A,t(l).lists.length?(a(),o("div",M,[(a(!0),o(y,null,C(t(l).lists,e=>(a(),o("div",{class:"cursor-pointer",key:e.id,onClick:_=>c.$router.push(`/information/detail/${e.articleId}`)},[s("div",q,[e.image?(a(),v(t(B),{key:0,class:"flex-none w-[180px] h-[135px] mr-4",src:e.image,fit:"cover"},null,8,["src"])):k("",!0),s("div",L,[s("div",O,p(e.title),1),s("div",P,p(e.intro),1),s("div",U,[s("div",null,"\u6536\u85CF\u4E8E"+p(e.createTime),1),u(t(D),{link:"",onClick:w(_=>f(e.articleId),["stop"])},{default:b(()=>[E(" \u53D6\u6D88\u6536\u85CF ")]),_:2},1032,["onClick"])])])])],8,T))),128)),s("div",G,[u(t(S),{"current-page":n.pageNo,"onUpdate:current-page":r[0]||(r[0]=e=>n.pageNo=e),total:t(l).count,"page-size":n.pageSize,"hide-on-single-page":"",layout:"total, prev, pager, next, jumper",onCurrentChange:r[1]||(r[1]=e=>t(m)())},null,8,["current-page","total","page-size"])])])):(a(),o("div",H,[u(t(z),{image:t(I),description:"\u6682\u65E0\u6536\u85CF","image-size":250},null,8,["image"])]))]))}});export{se as default};
