import{c as t,s as a,B as s,C as e,o,f as n,g as l,w as i,bM as r,_ as p,q as c,n as d,I as u,p as m,r as f,F as g,i as _,l as y,u as x,G as h,m as w,t as b,H as v,z as S,K as j}from"./index-007bf156.js";import{_ as k}from"./s-empty.df9577ad.js";import{_ as M}from"./uni-load-more.4c025ab2.js";import{_ as T}from"./s-layout.19bedb43.js";import{p as C}from"./useGoods.ac3bf93e.js";import{_ as I}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css                                                                */import"./phone-international-input.3617e4e0.js";const N=I({__name:"consumptionTransfersLog",setup(I){const N=t((()=>a.$store("user").userWallet));a.$platform.device.statusBarHeight,t((()=>a.$store("user").userInfo)),a.$platform.navbar;const z=s({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1,showQueModel:!1});async function $(){z.loadStatus="loading";let{code:t,data:a}=await r.getConsumptionTransfersLog({pageNo:z.pagination.pageNo,pageSize:z.pagination.pageSize});if(0!==t)return;let s=p.concat(z.pagination.list,a.list);z.pagination.list=s,z.pagination.total=a.total,z.loadStatus=z.pagination.list.length<z.pagination.total?"more":"noMore"}const P=N.value.integralDO.userId,U=t=>P===t.recipientUserId?C(t.recipientPoints):C(t.consumptionPoints),B=t=>P===t.recipientUserId?C(t.afterRecipientConsumptionPoints):C(t.afterTransferConsumptionPoints);function F(t){"noMore"!==z.loadStatus&&(z.pagination.pageNo++,$())}return e((()=>{F()})),o((()=>{$()})),(t,s)=>{const e=j,o=y,r=c(x("s-empty"),k),p=c(x("uni-load-more"),M),C=h,I=c(x("s-layout"),T);return n(),l(I,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"},{default:i((()=>[d(o,{class:"model-box ss-flex-col"},{default:i((()=>[d(C,{class:"list-box","scroll-y":"true",onTouchmove:s[2]||(s[2]=u((()=>{}),["stop"]))},{default:i((()=>[z.pagination.total>0?(n(),l(o,{key:0,style:{padding:"20rpx"}},{default:i((()=>[(n(!0),m(g,null,f(z.pagination.list,((t,s)=>(n(),l(o,{class:"list-item ss-flex ss-col-center ss-row-between",key:t.id,style:{padding:"20rpx 0","border-bottom":"1px solid #c4c4c4"}},{default:i((()=>[d(o,{class:"ss-flex ss-col-center",style:{width:"100%"}},{default:i((()=>[d(o,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"100%"}},{default:i((()=>[d(o,{class:"name",style:{width:"100%"}},{default:i((()=>[w(b(t.transferUserName+" > "+t.recipientUserName)+" ",1),d(e,{style:{float:"right"},class:v(["color-red",{"color-green":U(t)<0}])},{default:i((()=>[w(b(U(t)),1)])),_:2},1032,["class"])])),_:2},1024),d(o,{class:"time",style:{width:"100%"}},{default:i((()=>[w(b(S(a).$helper.timeFormat(t.createTime,"yyyy-mm-dd hh:MM"))+" ",1),d(e,{style:{float:"right"}},{default:i((()=>[w("余额:"+b(B(t)),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})):(n(),l(r,{key:1,text:"暂无数据",paddingTop:"200",icon:"/static/data-empty.png"})),z.pagination.total>0?(n(),l(p,{key:2,status:z.loadStatus,"content-text":{contentdown:"点击加载更多"},onClick:s[0]||(s[0]=t=>F()),onScrolltolower:s[1]||(s[1]=t=>F())},null,8,["status"])):_("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-087d7cda"]]);export{N as default};
