PageSourceSearch

https://static-ugc.amz123.com/ugc_assets/articlesStore.45a1003f.js

js amz123.com collected 2026-09-25 21:44:56 UTC 1,704 bytes, 1 lines download raw bytes

1import{P as d,ds as D,Q as E,R as I,r as o,u as S,Y as n,x as g,T as u,a4 as B}from"./entry.9411848f.js";import{a as C}from"./content.93ac8b97.js";import{z as R}from"./zb.7168bab2.js";import{c as _}from"./cloneDeep.3535a94f.js";const x=d(D,()=>{const i=I({page:1,fid:C.头条,is_new:1,tag_ids:[]}),f=o([]),c=o([]),L=o(!1),l=o(),p=o(),A=o({title:""}),{appId:w}=S(),m=async(a=1)=>{try{const{data:t}=await n.getTopArticle(a);if(w.value===3||w.value===5)l.value=_(t.value);else{const e=t.value;l.value=[...(e==null?void 0:e.rows)??[]].slice(0,5)}g("当前轮播数据:",t.value,l.value)}catch(t){g("获取主页轮播数据失败:",t)}},y=async(a,t=!1,e=B.跨境头条)=>{try{const{data:r,error:s}=await n.getArticleDetailById(a,t,e);g("文章详情数据:",r.value,s.value);const h=r.value;p.value=h}catch(r){u("获取文章失败:",r)}},T=async()=>{try{const{data:a}=await R.getMorningList(1,10),t=a.value;t&&(t==null?void 0:t.rows.length)>0&&(A.value=t==null?void 0:t.rows[0])}catch{u("获取文章失败:",u)}},v=o(!1);return{params:i,loading:L,articleList:f,topArticleList:c,mainCarouselData:l,getMainCarouselData:m,articleDetailData:p,articleBelong:A,getArticleDetailById:y,getArticleBelong:T,getUgcArticleList:async(a=[],t,e)=>{t&&(i.tag_id=t),e&&e.length&&(i.tag_ids=e);const{data:r}=await n.getUgcArticleList(i),s=r.value;s!=null&&s.has_next?v.value=!1:v.value=!0,f.value=[...a,...(s==null?void 0:s.rows)??[]]},noMoreArticle:v,getNewTopArticleList:async()=>{var e;const{data:a}=await n.getNewTopArticleList(),t=a.value;((e=t==null?void 0:t.rows)==null?void 0:e.length)>0&&(c.value=t==null?void 0:t.rows,c.value.length>4&&(c.value=c.value.slice(0,4)))}}}),F=()=>E(x());export{x as a,F as u};

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.