import{a7 as a,T as e,a6 as s,a as l,O as t,o as r,j as u,w as o,B as i,h as n,I as c,i as m,y as f,l as _,e as d,k as p,F as g,z as v,m as j}from"./index-90c12cc1.js";import{H as b}from"./index.0e2fd26a.js";import{u as x}from"./useScroll.50272fa4.js";import{ap as y,v as h}from"./images.cf3befb9.js";import{p as k}from"./index.24c948a7.js";import{u as w}from"./usePaging.b1735f9f.js";import{h as Y}from"./moment.6466d922.js";import{E as H}from"./index.ed915e92.js";import"./uv-icon.c815b875.js";import"./uv-icon.vue_vue_type_style_index_0_scoped_23936b10_lang.7145f5b2.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./utils.80a0ac72.js";const P={__name:"index",setup(P){const{scrollTop:T}=x();a((()=>{}));const C=e(),{user:D}=s(C),I=[{label:"全部",value:99},{label:"收入",value:1},{label:"支出",value:0}],M=l(99);const{otherParams:$,list:q,loading:z,refreshPage:B}=w({request:k,load:!1});return t((()=>{$.value={},$.value.category="integral",B()})),(a,e)=>{const s=i;return r(),u(s,null,{default:o((()=>[n(b,{"scroll-top":m(T),"system-bar-area-bg":"#fff","header-area-bg":"#fff"},{default:o((()=>[c(" 我的积分 ")])),_:1},8,["scroll-top"]),n(s,{class:"integral"},{default:o((()=>[n(s,{class:"num-card",style:f({backgroundImage:`url(${m(y)})`})},{default:o((()=>[n(s,{class:"title"},{default:o((()=>[c("当前积分")])),_:1}),n(s,{class:"num"},{default:o((()=>[c(_(m(D).integral||"0.00"),1)])),_:1})])),_:1},8,["style"]),n(s,{class:"tabs-row flex flex-ai__center flex-jc__sb"},{default:o((()=>[(r(),d(g,null,p(I,(a=>n(s,{class:j(["tab-item",{current:M.value===a.value}]),key:a.value,onClick:e=>async function(a){M.value=a.value,99===a.value?delete $.value.pm:$.value.pm=a.value,await B()}(a)},{default:o((()=>[c(_(a.label),1)])),_:2},1032,["class","onClick"]))),64))])),_:1}),n(s,{class:"integral-list"},{default:o((()=>[m(q).length>0?(r(!0),d(g,{key:0},p(m(q),(a=>(r(),u(s,{class:"row flex flex-jc__sb flex-ai__center"},{default:o((()=>[n(s,{class:"left"},{default:o((()=>[n(s,{class:"name"},{default:o((()=>[c(_(a.title),1)])),_:2},1024),n(s,{class:"time"},{default:o((()=>[c(_(m(Y)(a.createTime).format("YYYY-MM-DD HH:mm:ss")),1)])),_:2},1024)])),_:2},1024),n(s,{class:j(["right",{error:0===a.pm,success:1===a.pm}])},{default:o((()=>[c(_(0===a.pm?"-":"+")+_(a.number),1)])),_:2},1032,["class"])])),_:2},1024)))),256)):v("",!0),m(z)||0!==m(q).length?v("",!0):(r(),u(H,{key:1,"icon-src":m(h),padding:"0 0"},null,8,["icon-src"]))])),_:1})])),_:1})])),_:1})}}};export{P as default};
