import{a,a_ as e,aa as l}from"./index-d4baa715.js";const u=u=>{const v=a(1),t=a(10),s=a(""),n=a(""),o=a(""),i=a(""),r=a(""),d=a(""),c=a(!1),p=a(!1),y=a(!1),w=a([]),g=a({}),m=async()=>{if(p.value||c.value)return;p.value=!0;const a=await u({page:v.value,limit:t.value,keyword:s.value,type:n.value,sid:o.value,couponId:i.value,news:r.value,isIntegral:d.value,...g.value});y.value=!1,a&&(a.length<=0&&(1===v.value?y.value=!0:c.value=!0),w.value=w.value.concat(a)),p.value=!1};return e((()=>{})),l((()=>{p.value||c.value||(v.value+=1,m())})),{type:n,dataList:w,page:v,limit:t,keyword:s,loading:p,loadend:c,listEmpty:y,news:r,sid:o,couponId:i,refresh:async()=>{c.value=!1,p.value=!1,v.value=1,w.value=[],await m()},otherQuery:g}};export{u};
