You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
1.2 KiB
2 lines
1.2 KiB
import{B as v}from"./BigTitleCom.b6f1eed0.js";import{_ as w,r as n,b as f,o as l,c as d,a as r,h as c,F as h,i as V,u as s,e as N,L as k,k as B}from"./index.86346b70.js";import{N as L}from"./NewsCom.0343bdb4.js";import{P as b}from"./PaginationCom.0042ec63.js";import"./tools.c7b44144.js";const C={class:"news clear"},T={class:"container"},x={class:"container news-content"},y={class:"container pagination"},P={__name:"NewsView",emits:["backTop"],setup(z,{emit:g}){let u=n(0),o=n(1),t=n(30),i=n([]);const _=()=>{N({page:o.value,limit:t.value}).then(({data:e})=>{e&&(u.value=e.total,o.value=e.current_page,t.value=e.per_page,i.value=e.data,g("backTop"))})},m=e=>{o.value=e,_()};return f(()=>{function e(){const a=window.innerWidth;a>=1440?t.value=30:a>430&&a<1440?t.value=20:a<=430&&(t.value=10)}e(),window.onresize=e,_()}),(e,a)=>(l(),d("div",C,[r("div",T,[c(v,{bigTitle:"News & Events",subTitle:"Stay up to date with the latest news & events from Foresight Ventures"}),c(k)]),r("div",x,[(l(!0),d(h,null,V(s(i),p=>(l(),B(L,{flag:"news",key:p.id,data:p},null,8,["data"]))),128))]),r("div",y,[c(b,{page:s(o),onChangePage:m,total:s(u),per:s(t),dataList:s(i)},null,8,["page","total","per","dataList"])])]))}},M=w(P,[["__scopeId","data-v-94d71666"]]);export{M as default};
|