var y=(g,u,l)=>new Promise((i,r)=>{var f=a=>{try{t(l.next(a))}catch(e){r(e)}},m=a=>{try{t(l.throw(a))}catch(e){r(e)}},t=a=>a.done?i(a.value):Promise.resolve(a.value).then(f,m);t((l=l.apply(g,u)).next())});import{d as R,r as p,u as T,f as v,g as s,a1 as V,z as j,B as b,D as h,o as x,h as o,E as z,F as d,j as B,G as N,H as $,I as q,L as _,M as c,O as C,q as A}from"./index-C8qz7c0N.js";import{_ as F}from"./wd-text.CJ5LJV87.js";import{_ as I}from"./z-paging.Dxcf6OUf.js";import{u as P}from"./useZPaging.DLVc1w-R.js";import{i as G}from"./wallet.DtqW6x-g.js";const H=R({name:"WithdrawRecord",__name:"withdrawRecord",setup(g){const u=p(null);P(u);const l=p({}),i=p([]),r=p([]);function f(){return y(this,null,function*(){const t=yield V({id:3});i.value=t.data})}function m(t,a){return y(this,null,function*(){try{const e=yield G({page:t,size:a,accountType:l.value.type});u.value.complete(e.data.list)}catch(e){u.value.complete(!1)}})}return T(t=>{l.value=t,f()}),(t,a)=>{const e=B,D=b(h("wd-text"),F),E=b(h("z-paging"),I),L=j("layout-default-uni");return x(),v(L,null,{default:s(()=>[o(E,{ref_key:"paging",ref:u,modelValue:d(r),"onUpdate:modelValue":a[0]||(a[0]=n=>z(r)?r.value=n:null),"use-page-scroll":"",onQuery:m},{default:s(()=>[o(e,{class:"py-20rpx"},{default:s(()=>[(x(!0),N($,null,q(d(r),n=>(x(),v(e,{key:n.id,class:"bg-white px-22rpx py-18rpx"},{default:s(()=>[o(e,{class:"mb-8rpx flex items-center justify-between"},{default:s(()=>{var w;return[o(e,null,{default:s(()=>[_("ID:"+c(n.orderNo),1)]),_:2},1024),o(D,{type:n.status===4?"success":"primary",bold:"",text:(w=d(i).find(k=>k.code===n.status))==null?void 0:w.name},null,8,["type","text"])]}),_:2},1024),o(e,{class:"flex items-center justify-between text-22rpx text-#3A444C"},{default:s(()=>[o(e,null,{default:s(()=>[_(c(t.$t("orderDetail.walletAmountText"))+"：-"+c(d(C)(n.amount)),1)]),_:2},1024)]),_:2},1024),o(e,{class:"flex items-center justify-between text-22rpx text-#3A444C"},{default:s(()=>[o(e,null,{default:s(()=>[_(c(t.$t("orderDetail.walletFeeText"))+"：-"+c(d(C)(n.fee)),1)]),_:2},1024),o(e,null,{default:s(()=>[_(c(n.createTime),1)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1},8,["modelValue"])]),_:1})}}}),Z=A(H,[["__scopeId","data-v-98257e53"]]);export{Z as default};
