PageSourceSearch

https://www.5iidea.com/_nuxt/BCesWLbc.js

js 5iidea.com collected 2026-10-06 07:02:30 UTC 2,702 bytes, 1 lines download raw bytes

1import{u as N}from"./BwDsCntP.js";import{w as k,o as m,c as u,F as x,r as B,b as s,t as D,e as U,p as z,M as q,D as F,f as n}from"./CH10udjl.js";import{u as L}from"./B_OZ1GI0.js";import{p as T}from"./CYfvttT6.js";import"./BJQQwUAQ.js";const V=["onClick"],j={class:"col-5",style:{"padding-left":"0"}},M=["src"],P={class:"col-7",style:{padding:"0"}},S={class:"match-mobile-matchitem-news-body-item-right-text"},$={key:0,class:"match-mobile-matchitem-news-body-more"},E="/images/xyj/mobile/下箭头.png",Q={__name:"newsColumn",props:{itemData:{type:Object,default:()=>({})}},setup(f){const v=f;N();const i=n(0),c=n(!1),r=n(!1),o=n([]),l=n({type:"B",cmsCategoryId:"",status:"public",size:5,current:1}),p=e=>Array.isArray(e?.data)?e.data:Array.isArray(e?.data?.records)?e.data.records:Array.isArray(e?.data?.data)?e.data.data:[],h=e=>{const t=Number(e?.data?.current??e?.page?.nowPage??l.value.current??1),a=Number(e?.data?.pages??e?.page?.pageCount??t);return{current:t,pages:a}},b=e=>({...e,cmsContentBlog:{...e?.cmsContentBlog||{},introImageUrl:T(e?.cmsContentBlog?.introImageUrl||e?.introImageUrl||"")}}),w=()=>{const e=v.itemData?.setting?.categoryId;return Array.isArray(e)&&e.length?e[e.length-1]:e||""},y=async(e=!1)=>{if(c.value||!l.value.cmsCategoryId)return;const t=++i.value;c.value=!0;try{const a=await L.findpagelist({...l.value});if(t!==i.value)return;const d=p(a).map(b);o.value=e?[...o.value,...d]:d;const{current:g,pages:A}=h(a);r.value=g>=A,l.value.current=r.value?g:g+1}catch(a){t===i.value&&!e&&(o.value=[],r.value=!0),console.error("load matchitem news failed",a)}finally{t===i.value&&(c.value=!1)}},C=async()=>{if(o.value=[],r.value=!1,l.value={type:"B",cmsCategoryId:w(),status:"public",size:5,current:1},!l.value.cmsCategoryId){r.value=!0;return}await y(!1)},I=()=>{r.value||c.value||y(!0)},_=e=>{e?.id&&F(`/mobile/cyxq/content/${e.id}`)};return k(()=>v.itemData?.setting?.categoryId,()=>{C()},{immediate:!0,deep:!0}),(e,t)=>(m(),u("div",{style:q(r.value?"padding-bottom: 4rem;":"")},[(m(!0),u(x,null,B(o.value,a=>(m(),u("div",{key:a.id},[s("div",{class:"match-mobile-matchitem-news-body-item-row",onClick:d=>_(a)},[s("div",j,[s("img",{src:a.cmsContentBlog.introImageUrl,class:"match-mobile-matchitem-news-body-item-left-img",alt:""},null,8,M)]),s("div",P,[s("div",S,[s("p",null,D(a.title),1)]),t[0]||(t[0]=s("div",{class:"match-mobile-matchitem-news-body-item-right-line"},null,-1))])],8,V)]))),128)),!r.value&&o.value.length>0?(m(),u("div",$,[s("div",{class:"match-mobile-matchitem-news-body-more-text",onClick:I},[t[1]||(t[1]=U(" 点击查看更多 ",-1)),s("img",{src:E,class:"match-mobile-matchitem-news-body-more-text-img",alt:""})])])):z("",!0)],4))}};export{Q as default};

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.