import{c as t,s as e,y as a,o as s,z as o,e as l,f as n,w as r,_ as i,l as p,j as u,C as c,k as d,r as m,F as f,g,i as _,m as y,S as h,t as x,u as S,B as w,v as z,E as b}from"./index-68dd960a.js";import{_ as k}from"./s-empty.fd15ca2f.js";import{_ as v}from"./uni-load-more.49bf8042.js";import{_ as j,p as F}from"./s-layout.454a15cd.js";import{S as A}from"./score.602d4fe2.js";/* empty css                                                                 */import{_ as M}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css                                                                */import"./phone-international-input.471da4c0.js";const N=M({__name:"ScoreLog",props:{isFreeze:{type:Boolean}},setup(M){t((()=>e.$store("user").userWallet)),e.$platform.device.statusBarHeight,t((()=>e.$store("user").userInfo)),e.$platform.navbar;const N=M,$=a({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1,showQueModel:!1});async function T(t){$.loadStatus="loading";let{code:e,data:a}=await A.getScoreApi({pageNo:$.pagination.pageNo,pageSize:$.pagination.pageSize,isFreeze:t});if(0!==e)return;let s=i.concat($.pagination.list,a.list);$.pagination.list=s,$.pagination.total=a.total,$.loadStatus=$.pagination.list.length<$.pagination.total?"more":"noMore"}function B(t){"noMore"!==$.loadStatus&&($.pagination.pageNo++,T(t))}return s((()=>{T(N.isFreeze)})),o((()=>{B()})),(t,a)=>{const s=b,o=_,i=p(y("s-empty"),k),A=p(y("uni-load-more"),v),N=h,T=p(y("s-layout"),j);return l(),n(T,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"},{default:r((()=>[u(o,{class:"model-box ss-flex-col"},{default:r((()=>[u(N,{class:"list-box","scroll-y":"true",onTouchmove:a[2]||(a[2]=c((()=>{}),["stop"]))},{default:r((()=>[$.pagination.total>0?(l(),n(o,{key:0,style:{padding:"20rpx"}},{default:r((()=>[(l(!0),d(f,null,m($.pagination.list,((t,a)=>(l(),n(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:r((()=>[u(o,{class:"ss-flex ss-col-center",style:{width:"100%"}},{default:r((()=>[u(o,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"100%"}},{default:r((()=>[u(o,{class:"name",style:{width:"100%"}},{default:r((()=>[x(S(t.profitStatusName||"空")+" ",1),1==M.isFreeze?(l(),n(s,{key:0,style:{float:"right"},class:w(["color-red",{"color-green":t.freezeAmount<0}])},{default:r((()=>[x(S(t.freezeAmount>0?"+"+z(F)(t.freezeAmount):+z(F)(t.freezeAmount)),1)])),_:2},1032,["class"])):(l(),n(s,{key:1,style:{float:"right"},class:w(["color-red",{"color-green":t.amount<0}])},{default:r((()=>[x(S(t.amount>0?"+"+z(F)(t.amount):+z(F)(t.amount)),1)])),_:2},1032,["class"]))])),_:2},1024),u(o,{class:"time",style:{width:"100%"}},{default:r((()=>[x(S(z(e).$helper.timeFormat(t.createTime,"yyyy-mm-dd hh:MM"))+" ",1),1==M.isFreeze?(l(),n(s,{key:0,style:{float:"right"}},{default:r((()=>[x("余额:"+S(z(F)(t.afterFreezeAmount)),1)])),_:2},1024)):(l(),n(s,{key:1,style:{float:"right"}},{default:r((()=>[x("余额:"+S(z(F)(t.afterAmount)),1)])),_:2},1024))])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})):(l(),n(i,{key:1,text:"暂无数据",paddingTop:"200",icon:"/static/data-empty.png"})),$.pagination.total>0?(l(),n(A,{key:2,status:$.loadStatus,"content-text":{contentdown:"点击加载更多"},onClick:a[0]||(a[0]=t=>B(!0)),onScrolltolower:a[1]||(a[1]=t=>B(!0))},null,8,["status"])):g("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-24a800e4"]]);export{N as default};
