import{_ as I}from"./BcaJas2w.js";import{_ as P}from"./CgYHnctC.js";import{u as m}from"./Bfjnp4Nb.js";import{U as b}from"./DJKkI0h1.js";import{u as S}from"./yGP1E5Ip.js";import{e as T,s as q,h as g,o as p,c as x,a as e,b as w,w as F,t as _,i as n,F as y,l as k,j as h,q as C,k as B,u as D,z as E,n as L,A as j}from"./jKZ1YmIl.js";import{E as z,_ as O}from"./CV4eMzHa.js";/* empty css        */import{a as V}from"./BD3TMmHG.js";import{c as H}from"./CNpTZBxo.js";import{u as M}from"./CnV9HVaY.js";/* empty css        *//* empty css        */const G={id:"news-recommend",class:"section","h-100vh":"","flex-cc":""},J={"pos-relative":"","h-860px":"","w-1555px":"","bg-hex-0F0F0F60":""},K={class:"news-pos-bg","pos-absolute":"","right-122px":"","top-95px":"","z-9":"","h-126px":"","w-505px":"",flex:"","justify-end":"","pt-10px":""},Q={"pos-relative":"","px-115px":"","pt-58px":""},W={"mt-38px":"",text:"38px hex-fff"},X={"mt-42px":"","flex-bc":""},Y=["src","onClick"],Z={"mt-24px":"",text:"20px hex-fff"},ee={"mt-16px":"",text:"24px hex-fff","lh-36px":"",class:"line-2"},se=["onClick"],te={"w-628px":""},oe=["src","onClick"],ne={"width-1px":"","ml-35px":"","flex-auto":""},le={text:"20px hex-fff"},re={"mt-16px":"","h-72px":"","w-full":"",text:"24px hex-fff","lh-36px":"",class:"line-2"},ie=["onClick"],ae=T({name:"NewsIndex",__name:"recommend",setup(U){const i=S(),{news:r}=q(i),a=g(()=>r.value?.pageTextInfo),f=g(()=>r.value?.newsList?.slice(0,1)||[]),v=g(()=>r.value?.newsList?.slice(1,4)||[]);return(t,o)=>{const d=P;return p(),x("div",G,[e("div",J,[e("div",K,[w(d,{to:"/news/lists","h-52px":""},{default:F(()=>o[0]||(o[0]=[e("span",{class:"shadow-more"},"更多",-1)])),_:1,__:[0]})]),e("div",Q,[o[3]||(o[3]=e("div",{"h-7px":"","w-42px":"",class:"news-title-mark"},null,-1)),e("div",W,_(n(a)?.title),1),e("div",X,[(p(!0),x(y,null,k(n(f),(s,c)=>(p(),x("div",{key:c,"w-658px":""},[e("img",{src:s.imageFile?.accessAddress,"h-395px":"","w-658px":"","cursor-pointer":"",alt:"",onClick:u=>("useUrl"in t?t.useUrl:n(m))({path:"/news/detail",query:{id:s.id}})},null,8,Y),e("div",null,[e("div",Z,"["+_(n(b)(s.publishDate,"yyyy-mm-dd"))+"]",1),e("div",ee,_(s.title),1),e("div",{"mt-32px":"","h-26px":"","w-26px":"","flex-cc":"","cursor-pointer":"","border-rd-13px":"",class:"news-btn",onClick:u=>("useUrl"in t?t.useUrl:n(m))({path:"/news/detail",query:{id:s.id}})},o[1]||(o[1]=[e("span",{"mr-7px":"",hidden:"",text:"14px hex-fff"},"了解更多",-1),e("i",{class:"i-carbon-arrow-right",text:"hex-fff 18px"},null,-1)]),8,se)])]))),128)),e("div",te,[(p(!0),x(y,null,k(n(v),(s,c)=>(p(),x("div",{key:c,"mb-25px":"","flex-bc":""},[e("img",{src:s.imageFile?.accessAddress,"h-175px":"","w-291px":"","flex-none":"","cursor-pointer":"",alt:"",onClick:u=>("useUrl"in t?t.useUrl:n(m))({path:"/news/detail",query:{id:s.id}})},null,8,oe),e("div",ne,[e("div",le,"["+_(n(b)(s.publishDate,"yyyy-mm-dd"))+"]",1),e("div",re,_(s.title),1),e("div",{"mt-32px":"","h-26px":"","w-26px":"","flex-cc":"","cursor-pointer":"","border-rd-13px":"",class:"news-btn",onClick:u=>("useUrl"in t?t.useUrl:n(m))({path:"/news/detail",query:{id:s.id}})},o[2]||(o[2]=[e("span",{"mr-7px":"",hidden:"",text:"14px hex-fff"},"了解更多",-1),e("i",{class:"i-carbon-arrow-right",text:"hex-ffffff60 18px"},null,-1)]),8,ie)])]))),128))])])])])])}}}),ce=Object.assign(ae,{__name:"NewsRecommend"}),pe={id:"footer","h-300px":"",class:"section"},Se=T({name:"PageNews",__name:"index",async setup(U){let i,r;const a=V();a.setFullPageIndex(0),a.setPageName("news");const f=S(),v=h(!0);[i,r]=C(()=>L()),await i,r(),[i,r]=C(()=>H("news-index",()=>{const l=[];return l.push(f.getInfo()),l.push(f.getNews()),Promise.all(l)},{mode:"navigation"})),await i,r(),v.value=!1;let t=h(0);const o=h();let d;function s(l){d&&clearTimeout(d),d=setTimeout(()=>{l.scrollTop>t.value&&l.scrollTop>(o.value?.$el.getBoundingClientRect().height||126)-126?a.setFullPageIndex(-99):a.setFullPageIndex(l.scrollTop>200?1:0),t.value=l.scrollTop},100)}const c=h(),{onScroll:u}=M("scrollbarRef",s);return B(()=>{c.value?.scrollTo(0,0)}),D({title:`新闻中心 - ${j}`}),(l,de)=>{const N=I,$=ce,R=O,A=z;return p(),E(A,{ref_key:"scrollbarRef",ref:c,height:"100vh",onScroll:n(u)},{default:F(()=>[w(N,{ref_key:"carouselRef",ref:o},null,512),w($),e("div",pe,[w(R)])]),_:1},8,["onScroll"])}}});export{Se as default};
