import{r as a,o as e,n as l,c as t,b as s,d as u,e as o,f as r,w as n,g as d,h as f,i as _,F as p,k as c,p as i,v as g,A as v,j as m,y}from"./index-DVkgSHpn.js";import{_ as h}from"./el-navbar.DVIyjZEN.js";import{_ as b}from"./el-refresh.CkIPFmzm.js";import{_ as j,a as k}from"./el-layout._U-vZTft.js";import"./el-empty.CMLN1lgh.js";import"./el-loading-icon.Bh3RKCou.js";const w=j({__name:"log",setup(j){const w=a(),x=a(0);e((()=>{l((()=>{H()}))}));const P=a([]),H=async()=>{var a;null==(a=w.value)||a.resetPage()},R=t((()=>{const{windowHeight:a}=c();return a-x.value})),S=()=>{H()},A=a=>{w.value.isMore()&&(w.value.loadingPage(),setTimeout((()=>{uni.$http.get("ucenter.recharge/log",{page:a.page}).then((e=>{1==e.code?(1==a.page&&(P.value=[]),w.value.setData(e.data.total,e.data.list.length),P.value=P.value.concat(e.data.list)):-1==e.code&&(1==a.page&&e.data.list.length<=0&&(P.value=[]),w.value.emptyPage())}))}),100))};return(a,e)=>{const l=s(u("el-navbar"),h),t=i,c=y,j=s(u("el-refresh"),b),H=s(u("el-layout"),k);return o(),r(H,null,{default:n((()=>[d(l,{top:x.value,"onUpdate:top":e[0]||(e[0]=a=>x.value=a),placeholder:!0,fixed:!0,autoBack:!0,border:!0,title:"充值记录"},null,8,["top"]),d(j,{ref_key:"refreshRef",ref:w,onRefresh:S,onScrolltolower:A,scrollHeight:R.value},{default:n((()=>[d(t,{class:"wrapper"},{default:n((()=>[d(t,{class:"list-wrap"},{default:n((()=>[(o(!0),f(p,null,_(P.value,((a,e)=>(o(),r(t,{class:"list-box"},{default:n((()=>[d(t,{class:"top"},{default:n((()=>[d(t,null,{default:n((()=>[g("订单号："+v(a.order_no),1)])),_:2},1024)])),_:2},1024),d(t,{class:"content"},{default:n((()=>[d(t,null,{default:n((()=>[d(c,null,{default:n((()=>[g("充值金额：")])),_:1}),d(c,null,{default:n((()=>[g(v(a.pay_price),1)])),_:2},1024)])),_:2},1024),d(t,null,{default:n((()=>[d(c,null,{default:n((()=>[g("赠送金额：")])),_:1}),d(c,null,{default:n((()=>[g(v(a.gift_money),1)])),_:2},1024)])),_:2},1024),d(t,null,{default:n((()=>[d(c,null,{default:n((()=>[g("充值时间：")])),_:1}),d(c,null,{default:n((()=>[g(v(a.create_time),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),d(t,{class:"bottom"},{default:n((()=>[1==a.pay_status?(o(),r(c,{key:0},{default:n((()=>[g("未支付")])),_:1})):m("",!0),2==a.pay_status?(o(),r(c,{key:1},{default:n((()=>[g("已支付")])),_:1})):m("",!0),3==a.pay_status?(o(),r(c,{key:2},{default:n((()=>[g("支付失败")])),_:1})):m("",!0)])),_:2},1024)])),_:2},1024)))),256))])),_:1})])),_:1})])),_:1},8,["scrollHeight"])])),_:1})}}},[["__scopeId","data-v-7ba34920"]]);export{w as default};
//# sourceMappingURL=pages-ucenter-wallet-log.Ds6Vsyr-.js.map
