PageSourceSearch

https://www.gdadri.com/_nuxt/BR0euJYj.js

js gdadri.com collected 2026-10-04 04:09:51 UTC 4,314 bytes, 1 lines download raw bytes

1import{r as x,x as S,h as V,i as $,j as E,g as I,k as z,c as i,o as l,a as e,l as y,m as t,F as k,n as D,p as j,t as c,d as G,b as T,G as O,q as P}from"./As61CBod.js";import{_ as U,g as p,f as H}from"./iFaOZvTc.js";import{_ as J}from"./BlMYRVBZ.js";import{u as K}from"./ZV0W_Kid.js";import{u as Q}from"./D2suBft5.js";const W={class:"mb-3 sm:mb-4 px-3 sm:px-0"},X={class:"mx-auto flex-col sm:flex sm:flex-row justify-between relative"},Y={class:"flex flex-col mb-4"},Z={key:0,class:"text-xl sm:text-4xl font-bold text-[#1E293B]"},tt={class:"flex flex-col justify-around sm:items-end space-x-2 overflow-x-auto pb-2 scrollbar-hide"},et={class:"flex justify-between"},st=["onClick"],ot={class:"px-4 sm:px-0 relative"},at={key:0,class:"flex flex-col sm:grid sm:grid-cols-4 sm:gap-5"},nt={class:"sm:col-span-2 overflow-hidden transition-shadow"},lt=["src"],it={class:"text-lg text-[#1A3C50] mb-3 line-clamp-1 text-justify"},ct={class:"text-[#1A3C50] mb-4 text-sm sm:text-base line-clamp-3 relative text-justify"},rt={class:"sm:col-span-2 sm:px-0 sm:grid sm:grid-cols-2 sm:gap-5"},mt=["src"],ut=["onClick"],dt={class:"text-[#000000] text-xl sm:text-base mb-3 line-clamp-2 text-justify"},xt={class:"text-[#3D3D3D] text-sm sm:text-base line-clamp-3 relative text-justify"},pt={class:"sm:hidden flex items-start text-[#000000B8] text-xs mt-2"},_t={key:0,class:"mx-2"},wt={__name:"RecommendationNews",props:{wrapperClass:{type:String,default:""},showMoreBtn:{type:Boolean,default:!0}},setup(_){const{getDictData:B}=K(),{getNewsRecommendListType:A}=Q(),q=_,{type:vt}=q,u=x([]),M=o=>{m.value=o,f()},r=S(()=>u.value?.[0]),v=x([]),m=x(""),h=x(!1),f=async()=>{h.value=!0;const{data:o}=await A(m.value);u.value=o||[],h.value=!1},b=V(),w=$(),C=o=>{console.log(o,o.id);const{edit:n,token:d,...N}=w.query;b.push({path:"/newDetails",query:{id:o.id,edit:n,token:d,type:m.value}})},R=()=>{const{edit:o,token:n,...d}=w.query;b.push({path:"/news",query:{edit:o,token:n}})};E(async()=>{const{data:o}=await B("newsType");v.value=o,m.value=v.value[0]?.value,await f()});const{lang:a}=I();return z(()=>a.value,async(o,n)=>{o!==n&&await f()},{immediate:!1}),(o,n)=>{const d=O,N=U,F=J;return l(),i("div",{class:j(["sm:min-h-screen py-3 sm:pb-20 gdad-container",_.wrapperClass])},[e("div",W,[e("div",X,[e("div",Y,[t(a)==="CN"?(l(),i("h1",Z," 新闻资讯 ")):y("",!0),n[1]||(n[1]=e("p",{class:"text-[#565657] text-xl sm:text-4xl mt-1 font-bold"}," News & Information ",-1))]),e("div",tt,[e("div",et,[(l(!0),i(k,null,D(t(v),(s,g)=>(l(),i("button",{key:g,class:j(["mr-4 sm:mr-5 xl:mr-8 last-of-type:mr-0 sm:py-2 text-sm sm:text-lg font-medium transition-colors cursor-pointer",s.value===t(m)?"text-[#2F92DD] underline":"text-[#1A3C50] hover:text-[#2F92DD]"]),onClick:L=>M(s.value)},c(t(a)==="CN"?s.label:s.value),11,st))),128))]),_.showMoreBtn?(l(),i("button",{key:0,onClick:R,class:"absolute right-0 bottom-[60px] sm:static flex items-center text-[#1A3C50] text-sm sm:text-lg whitespace-nowrap cursor-pointer hover:translate-y-[-5px] transition-transform duration-300"},[G(c(t(a)==="CN"?"更多":"More")+" ",1),T(d,{name:"mynaui:chevron-right",class:"ml-1 w-6 h-6"})])):y("",!0)])])]),e("div",ot,[T(N,{loading:t(h)},null,8,["loading"]),t(u)?.length>0?(l(),i("div",at,[e("div",nt,[e("img",{src:t(r)?.cover?.url||"",alt:"Main news",class:"w-full h-80 md:h-[470px] object-cover"},null,8,lt),e("div",{class:"py-6 cursor-pointer hover:underline",onClick:n[0]||(n[0]=s=>C(t(r)))},[e("h2",it,c(t(a)==="CN"?t(r)?.title:t(r)?.enTitle),1),e("p",ct,c(t(a)==="CN"?t(p)(t(r)?.content):t(p)(t(r)?.enContent)),1)])]),e("div",rt,[(l(!0),i(k,null,D(t(u).slice(1),(s,g)=>(l(),i("div",{key:g,class:"overflow-hidden transition-shadow flex flex-col items-start mb-6 sm:mb-0"},[e("img",{src:s?.cover?.url||"",alt:"News",class:"w-[250px] sm:w-full h-[210px] md:h-[203px] mx-auto object-cover"},null,8,mt),e("div",{class:"w-[250px] mx-auto sm:w-full pt-4 cursor-pointer hover:underline",onClick:L=>C(s)},[e("h3",dt,c(t(a)==="CN"?s.title:s.enTitle),1),e("p",xt,c(t(a)==="CN"?t(p)(s.content):t(p)(s.enContent)),1),e("div",pt,[e("span",null,c(t(a)==="CN"?s?.tags?.join(","):s?.enTags?.join(",")),1),s?.tags&&s.tags.length>0?(l(),i("span",_t,"|")):y("",!0),e("span",null,c(t(H)(s.publishedTime,t(a))),1)])],8,ut)]))),128))])])):(l(),P(F,{key:1}))])],2)}}};export{wt as _};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.