PageSourceSearch

https://cdn-img.daxuesoutijiang.com/dx-college/_nuxt/DLe1nRMc.js

js daxuesoutijiang.com collected 2026-09-24 10:21:35 UTC 3,673 bytes, 2 lines download raw bytes

1import{E as v}from"./DhhkZITS.js";import{r as y,x as R,C as W,aP as b,d as H,bs as M,o as $,c as h,a,b as z,j as w,g as x,F as L,e as B,i as r,f as C,l as E,B as I,h as O,s as T,A,n as N,_ as P}from"./DXgSIwu3.js";import S from"./CWhxjnXy.js";import{E as V}from"./Ze4gtLlL.js";import{l as F}from"./D-JtxRKm.js";import{i as U}from"./B1PUzC5B.js";import{d as j}from"./Duhfv1fc.js";import"./DIAmkmNz.js";import"./ahkBmwSD.js";import"./CiS8iwFx.js";import"./DWX-vXCh.js";import"./BC1rYbxd.js";import"./qCBENYu7.js";import"./TSCGAzXg.js";import"./BvNwo2Mw.js";import"./f5hzVUbB.js";import"./bCtvC97J.js";import"./DLK8Xyx7.js";import"./Cq9Fpw4b.js";import"./BWu9-kVV.js";import"./CZDRMxn3.js";import"./BOTzL009.js";import"./DP2rzg_V.js";import"./nGfdyoYz.js";import"./D-XTRmxZ.js";import"./BB_Ol6Sd.js";import"./ezAtnxFD.js";import"./CdWiyKEi.js";import"./CIqWNART.js";import"./D_YQdCuR.js";import"./4WP-d8-q.js";import"./eoF7HMPM.js";import"./DOYu78ga.js";function K(f=12){const p=y(null),e=R({contentWrapperWidth:0,itemWidth:0,itemHeight:0,textRowLength:0,rowLength:0,materialRowLength:0,materialItemWidth:0}),n=j(s=>{s<=0||(s>1350?(e.rowLength=9,e.materialRowLength=8):s>1e3?(e.rowLength=7,e.materialRowLength=6):(e.rowLength=5,e.materialRowLength=4),e.itemWidth=(s-(e.rowLength-1)*f)/e.rowLength,e.materialItemWidth=(s-(e.materialRowLength-1)*f)/e.materialRowLength,e.itemHeight=e.itemWidth*1.16+24,e.textRowLength=Math.floor((e.itemWidth*1.16-65)/18))},100),u=()=>{new U(l=>{for(const c of l)c.target===p.value&&c.contentRect.width&&(e.contentWrapperWidth=c.contentRect.width,n(e.contentWrapperWidth))}).observe(p.value)};return W(()=>p.value,s=>{s&&(e.itemWidth=0,u())}),{layoutWarpRef:p,...b(e)}}const Q={class:"list"},q={class:"content"},D={key:2,class:"tips-box"},G={key:1,class:"no-more"},J=H({__name:"index",setup(f){const{$track:p}=M(),{layoutWarpRef:e,rowLength:n,itemWidth:u,itemHeight:s,textRowLength:l}=K(),c=y(),t=R({list:[],cursor:0,hasMore:!1,loading:!1,size:21,rowLength:0,isOk:!1,tabId:0}),g=async(i=!1)=>{try{if(!t.hasMore&&!i)return;t.loading=!0,i&&(t.cursor=0);const o=await T({method:"POST",url:A.WriteList,body:{cursor:t.cursor,pageSize:t.size}}),m=o==null?void 0:o.data,{hasMore:d,list:_}=m;t.cursor=t.cursor+t.size,t.hasMore=!!d,i?t.list=_:t.list=t.list.concat(_),N(()=>{n.value,t.loading=!1}),t.isOk=!0}catch(o){t.loading=!1,t.isOk=!0,console.warn("接口列表错误",o)}},k=i=>{const o=t.list.findIndex(m=>m.id===i.id);o!==-1&&(i.title?t.list[o].title=i.title:t.list.splice(o,1))};return W(()=>n.value,()=>{t.size=n.value*5}),F.throttle(()=>{if(t.loading||!t.hasMore)return;const i=c.value.wrap$.scrollHeight,o=c.value.wrap$.scrollTop,m=c.value.wrap$.offsetHeight;i-o-5<=m&&g()},100),$(()=>{p({name:"H0Q_025"}),g(!0)}),(i,o)=>{const m=v;return a(),h("div",Q,[z("div",q,[t.isOk&&t.list.length?(a(),h("div",{key:0,class:"list-warp",ref_key:"layoutWarpRef",ref:e},[(a(!0),h(L,null,B(t.list,d=>(a(),h(L,{key:d.id},[r(u)?(a(),w(S,{key:0,style:E({width:`${r(u)}px`,height:`${r(s)}px`}),class:C({row9:r(n)===9,row7:r(n)===7,row5:r(n)===5,textRow9:r(l)===9,textRow8:r(l)===8,textRow7:r(l)===7,textRow6:r(l)===6,textRow5:r(l)===5,textRow4:r(l)===4}),entry:"list",item:d,showMore:!0,onUpdate:k},null,8,["style","class","item"])):x("",!0)],64))),128))],512)):t.isOk&&!t.list.length?(a(),w(V,{key:1,tips:"暂无内容"})):x("",!0),t.list.length?(a(),h("div",D,[t.hasMore?(a(),w(m,{key:0,class:"btn load-more",onClick:o[0]||(o[0]=d=>g())},{default:I(()=>o[1]||(o[1]=[O("加载更多")])),_:1,__:[1]})):(a(),h("span",G,"没有更多了~"))])):x("",!0)])])}}}),zt=P(J,[["__scopeId","data-v-ee4de750"]]);export{zt as default};
2//# sourceMappingURL=DLe1nRMc.js.map

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.