import{r as t,o as e,c as a,w as l,i as s,a as r,b as n,d as i,e as o,u as p,F as u,f as c,s as d,n as f,g as _}from"./index-115eb096.js";import{_ as x}from"./uni-icons.65aa37b4.js";import{_ as g,o as y,A as m,r as h}from"./index.4540eefd.js";import{_ as I,a as k}from"./uni-list.7ca13d67.js";const z=g({__name:"index",setup(g){let z=t({color:"#FF8A5B",size:"28",type:"vip"}),b=t({color:"#26CED0",size:"28",type:"hand-up"});const j=t=>{sessionStorage.setItem("userlist_type",t),d({url:"/pages/user/list"})};let v=t([]);return y((()=>{sessionStorage.setItem("userlist_type",""),m().then((t=>{t.status&&(v.value=t.data.list)}))})),(t,d)=>{const g=s,y=h(_("uni-icons"),x),m=h(_("uni-list-item"),I),w=h(_("uni-list"),k);return e(),a(g,{class:"container"},{default:l((()=>[r(g,{class:"top"},{default:l((()=>[r(g,{class:"top_left",onClick:d[0]||(d[0]=t=>j("expend"))},{default:l((()=>[r(g,{style:{display:"flex","margin-top":"60rpx"}},{default:l((()=>[r(g,null,{default:l((()=>[n("收费")])),_:1})])),_:1}),r(g,{style:{"padding-top":"20rpx","text-align":"center"}},{default:l((()=>[r(y,{type:"wallet",style:{color:"#fff","margin-top":"4rpx","margin-left":"4rpx"},size:"99"})])),_:1})])),_:1}),r(g,{class:"top_right"},{default:l((()=>[r(g,{class:"top_right1",onClick:d[1]||(d[1]=t=>{f({url:"/pages/user/user_add"})})},{default:l((()=>[r(g,{style:{display:"flex"}},{default:l((()=>[r(g,null,{default:l((()=>[n("新建")])),_:1})])),_:1}),r(g,{style:{"text-align":"center"}},{default:l((()=>[r(y,{type:"personadd",style:{color:"#fff","margin-top":"4rpx","margin-left":"4rpx"},size:"60"})])),_:1})])),_:1}),r(g,{class:"top_right2",onClick:d[2]||(d[2]=t=>j("recharge"))},{default:l((()=>[r(g,{style:{display:"flex"}},{default:l((()=>[r(g,null,{default:l((()=>[n("充值")])),_:1})])),_:1}),r(g,{style:{"text-align":"center"}},{default:l((()=>[r(y,{type:"vip",style:{color:"#fff","margin-top":"4rpx","margin-left":"4rpx"},size:"60"})])),_:1})])),_:1})])),_:1})])),_:1}),r(g,{style:{padding:"15rpx"}},{default:l((()=>[r(g,{class:"title"},{default:l((()=>[r(g,null,{default:l((()=>[n("今日流水")])),_:1}),r(y,{type:"map",style:{color:"#00BBF9","margin-top":"2rpx","margin-left":"4rpx"},size:"22"})])),_:1}),r(g,{class:"bottom"},{default:l((()=>[r(w,null,{default:l((()=>[(e(!0),i(u,null,o(p(v),((t,s)=>(e(),a(g,{key:s},{default:l((()=>[1==t.type?(e(),a(m,{key:0,showExtraIcon:"true",extraIcon:p(z),title:`充值${t.change_money}`,note:t.name,rightText:t.created_at.slice(-8)},null,8,["extraIcon","title","note","rightText"])):c("",!0),2==t.type?(e(),a(m,{key:1,showExtraIcon:"true",extraIcon:p(b),title:`${t.desc}${t.change_money}`,note:t.name,rightText:t.created_at.slice(-8)},null,8,["extraIcon","title","note","rightText"])):c("",!0)])),_:2},1024)))),128))])),_:1}),0==p(v).length?(e(),a(g,{key:0,style:{"font-size":"28rpx",color:"#ccc","text-align":"center","padding-top":"20rpx"}},{default:l((()=>[n(" 今日暂无记录 ")])),_:1})):c("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-b45ec131"]]);export{z as default};
