import{U as e,aI as a,o as s,b as t,h as l,u as i,t as r,r as n,a4 as c,G as u,j as d,k as v,q as o,n as m,aq as p,w as f,v as g,F as _,e as T,I as k,s as C,b4 as h,y,f as b,x,m as w}from"./vendor-jA_NIjzi.js";import{t as j,u as E,T as I}from"./agencyCenter-C2bbDF_O.js";import{u as U,l as L,aG as S,at as q,aE as D,aF as F,dX as G,dY as N,dZ as P,d_ as R,d$ as z,e0 as X,aD as Y}from"./common-utils-RDWuRZ1M.js";import{_ as Z}from"./common-store-kFD1YPwN.js";import{S as $}from"./SvgIcon-a1Rg7hQY.js";import"./vendor-crypto-Vtl7-GZS.js";import"./vendor-mqtt-lYGapirz.js";const A={class:"empty-data-container"},B=["src"],H=Z({__name:"EmptyData2",props:{title:String},setup(n){const{t:c}=e(),u=n,{title:d}=a(u),{theme:v}=U();return(e,a)=>(s(),t("div",A,[l("img",{src:i(L)("public/pickup-record-empty-".concat(i(v),".png")),alt:"empty",draggable:"false"},null,8,B),l("p",null,r(i(d)?i(d):i(c)("暂无游戏")),1)]))}},[["__scopeId","data-v-6fbfc02a"],["__file","EmptyData2.vue"]]),J={class:"withdrawals-record-container"},K={class:"records-select-box flex-center"},M={class:"select-area"},O={class:"records-select"},Q={class:"content animate__animated animate__fadeIn animate__faster"},V=["onClick"],W={class:"records-select-right"},ee={class:"commission"},ae={class:"main"},se={class:"wallet-history-list"},te=["onClick"],le={class:"items-bar flex-center"},ie={class:"flex-center"},re={class:"num1"},ne={class:"flex items-center"},ce={class:"yellow"},ue={class:"items-text"},de={class:"flex-center"},ve={class:""},oe=["src"],me=Z({__name:"PickUpRecord",setup(e){const{theme:a}=U(),Z=n(!1),A=n(!1),B=n(1),me=n([]),pe=n(!1),fe=c(),ge=n(!1),_e=u((()=>{var e;const a=null==(e=Ce.value)?void 0:e.find((e=>e.isCurr));return a?a.name:""})),Te=n({startTime:S,endTime:q}),ke=()=>{fe.go(-1)},Ce=n([{id:"-1",isCurr:!0,name:"全部"},{id:1,isCurr:!1,name:"今日"},{id:0,isCurr:!1,name:"昨日"},{id:2,isCurr:!1,name:"本周"},{id:3,isCurr:!1,name:"上周"},{id:4,isCurr:!1,name:"本月"}]),he=e=>{Ce.value.forEach((a=>{a.isCurr=a.id===e.id})),ge.value=!ge.value,(e=>{switch(e){case"-1":Te.value.startTime="",Te.value.endTime="";break;case 0:default:Te.value.startTime=D,Te.value.endTime=F;break;case 1:Te.value.startTime=Y,Te.value.endTime=q;break;case 2:Te.value.startTime=z,Te.value.endTime=X;break;case 3:Te.value.startTime=P,Te.value.endTime=R;break;case 4:Te.value.startTime=G,Te.value.endTime=N}w((()=>{ye(!0)}))})(e.id)},ye=async e=>{e&&(B.value=1,me.value=[],Z.value=!0,A.value=!1);const a=await j({pageNo:B.value,pageSize:10,startTime:Te.value.startTime,endTime:Te.value.endTime});if(!a.success)return Z.value=!1,A.value=!0,a.message&&C(a.message);pe.value=0===a.data.totalCount,me.value.push(...a.data.records),B.value++,Z.value=!1,me.value.length>=a.data.totalCount&&(A.value=!0)},be=n(0);return d((()=>{addEventListener("click",(()=>{ge.value=!1})),(async()=>{const e=await E();if(!e.success)return e.message&&C(e.message);be.value=e.data})()})),v((()=>{removeEventListener("click",(()=>{ge.value=!1}))})),(e,n)=>{var c;const u=h;return s(),t("div",J,[o(I,{title:"领取记录",onLeft:ke}),l("div",K,[l("div",M,[l("div",O,[l("div",{class:m(["records-select-title flex-center",{"records-select-title-active":ge.value}]),onClick:n[0]||(n[0]=p((e=>{ge.value=!ge.value}),["stop"]))},[l("p",null,r(_e.value),1),o($,{class:m(["svg",{rotated:ge.value}]),name:"arrowUp"},null,8,["class"])],2),f(l("div",Q,[(s(!0),t(_,null,T(Ce.value,(e=>(s(),t("div",{class:m(["items",{"items-active":e.isCurr}]),key:e.id,onClick:a=>he(e)},[l("p",null,r(e.name),1)],10,V)))),128))],512),[[g,ge.value]])])]),l("div",W,[n[2]||(n[2]=l("p",null,"已领取佣金",-1)),l("span",ee,r(be.value),1)])]),l("div",ae,[l("div",se,[o(u,{loading:Z.value,"onUpdate:loading":n[1]||(n[1]=e=>Z.value=e),"loading-text":"加载中",finished:A.value,"finished-text":(null==(c=me.value)?void 0:c.length)>0?"没有更多数据":"",onLoad:ye},{default:k((()=>[pe.value?(s(),y(H,{key:0,title:"暂无数据"})):b("",!0),(s(!0),t(_,null,T(me.value,(e=>(s(),t("div",{class:"items",key:e.id,onClick:e=>(async e=>{})()},[l("div",le,[l("div",ie,[n[3]||(n[3]=x(" 贡献人数 ")),l("p",re,r(e.receiveNum),1)]),l("div",ne,[n[4]||(n[4]=x(" 金额 ")),l("p",ce,r(e.amount),1)])]),l("div",ue,[l("div",de,[l("p",ve,r(e.receiveTime),1)])]),l("img",{src:i(L)("recharge/bolang-bg-".concat(i(a),".png")),alt:""},null,8,oe)],8,te)))),128))])),_:1},8,["loading","finished","finished-text"])])])])}}},[["__scopeId","data-v-65039897"],["__file","PickUpRecord.vue"]]);export{me as default};
