zixun.91186931.js 1.6 KB

1
  1. import{_ as h,u as f,r as a,o as k,d as s,e as _,g as n,F as x,j as b,h as y,f as u,x as w,A as B,B as z}from"./index.bec96d93.js";import{E as C}from"./pagination.fbf1d98c.js";/* empty css *//* empty css *//* empty css */import{_ as I}from"./index.b1356415.js";import{Y as E}from"./Footer.15ea5cf4.js";import{l as F}from"./news.72259ab5.js";import"./formatTime.529a6f14.js";/* empty css */import"./useUpimages.1824edc2.js";import"./index.95f4c07f.js";const S=o=>(B("data-v-3293cbeb"),o=o(),z(),o),q={class:"articles-container"},L=S(()=>n("div",{class:"title"},"\u7CBE\u9009\u8D44\u8BAF",-1)),N={class:"content-list flex-row"},U={class:"pagination-container"},V={__name:"zixun",setup(o){const p=f(),i=a(1),c=a(0),d=t=>{i.value=t,l()};let r=a([]);const l=async()=>{try{const{data:t}=await F({page:i.value,limit:12,is_page:1,is_boutique:1});r.value=t.list,c.value=t.total}catch{}};k(l);const m=t=>{p.push({name:"news",query:{id:t}})};return(t,Y)=>{const g=C;return s(),_("div",q,[L,n("div",N,[(s(!0),_(x,null,b(y(r),(e,v)=>(s(),w(I,{key:v,onUpdate:j=>m(e.id),title:e.title,"time-ago":e.published_at,"like-count":e.like_count,"comment-count":e.comment_count,image:e.image,is_like:e.is_like,is_collect:e.is_collect},null,8,["onUpdate","title","time-ago","like-count","comment-count","image","is_like","is_collect"]))),128))]),n("div",U,[u(g,{background:"",layout:"prev, pager, next",total:c.value,"page-size":12,onCurrentChange:d},null,8,["total"])]),u(E)])}}};var Q=h(V,[["__scopeId","data-v-3293cbeb"]]);export{Q as default};