import{c as t,s as e,B as a,C as s,o,f as l,g as n,w as r,bQ as i,_ as u,q as c,n as p,I as d,p as m,r as f,F as g,i as _,l as y,u as h,G as x,m as z,t as S,H as b,z as w,K as k}from"./index-007bf156.js";import{_ as v}from"./s-empty.df9577ad.js";import{_ as A}from"./uni-load-more.4c025ab2.js";import{_ as F}from"./s-layout.19bedb43.js";import{p as j}from"./useGoods.ac3bf93e.js";/* empty css                                                                 */import{_ as M}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css                                                                */import"./phone-international-input.3617e4e0.js";const Q=M({__name:"ScoreLog",props:{isFreeze:{type:String,default:""}},setup(M){t((()=>e.$store("user").userWallet)),e.$platform.device.statusBarHeight,t((()=>e.$store("user").userInfo)),e.$platform.navbar;const Q=M,N=a({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1,showQueModel:!1});async function $(t){N.loadStatus="loading";let{code:e,data:a}=await i.getScoreApi({pageNo:N.pagination.pageNo,pageSize:N.pagination.pageSize,isFreeze:t});if(0!==e)return;let s=u.concat(N.pagination.list,a.list);N.pagination.list=s,N.pagination.total=a.total,N.loadStatus=N.pagination.list.length<N.pagination.total?"more":"noMore"}const T=t=>{let e=t.profitStatusName+"";return t.username&&(e+="("+t.username+")"),[3].includes(t.profitStatus)&&"false"==Q.isFreeze&&t.ancestorQuotaAmount&&(e+="(超出额度:"+j(t.ancestorQuotaAmount)+")"),[22].includes(t.profitStatus)&&"false"==Q.isFreeze&&t.accumulatedQuotaAmount&&(e+="(超出额度:"+j(t.accumulatedQuotaAmount)+")"),e};function C(t){"noMore"!==N.loadStatus&&(N.pagination.pageNo++,$(Q.isFreeze))}return s((()=>{C()})),o((()=>{$(Q.isFreeze)})),(t,a)=>{const s=k,o=y,i=c(h("s-empty"),v),u=c(h("uni-load-more"),A),Q=x,$=c(h("s-layout"),F);return l(),n($,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"},{default:r((()=>[p(o,{class:"model-box ss-flex-col"},{default:r((()=>[p(Q,{class:"list-box","scroll-y":"true",onTouchmove:a[2]||(a[2]=d((()=>{}),["stop"]))},{default:r((()=>[N.pagination.total>0?(l(),n(o,{key:0,style:{padding:"20rpx"}},{default:r((()=>[(l(!0),m(g,null,f(N.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((()=>[p(o,{class:"ss-flex ss-col-center",style:{width:"100%"}},{default:r((()=>[p(o,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"100%"}},{default:r((()=>[p(o,{class:"name",style:{width:"100%"}},{default:r((()=>[z(S(T(t))+" ",1),"true"==M.isFreeze?(l(),n(s,{key:0,style:{float:"right"},class:b(["color-red",{"color-green":t.freezeAmount<0}])},{default:r((()=>[z(S(t.freezeAmount>0?"+"+w(j)(t.freezeAmount):w(j)(t.freezeAmount)),1)])),_:2},1032,["class"])):(l(),n(s,{key:1,style:{float:"right"},class:b(["color-red",{"color-green":t.amount<0}])},{default:r((()=>[z(S(t.amount>0?"+"+w(j)(t.amount):w(j)(t.amount)),1)])),_:2},1032,["class"]))])),_:2},1024),p(o,{class:"time",style:{width:"100%"}},{default:r((()=>[z(S(w(e).$helper.timeFormat(t.createTime,"yyyy-mm-dd hh:MM"))+" ",1),"true"==M.isFreeze?(l(),n(s,{key:0,style:{float:"right"}},{default:r((()=>[z("余额:"+S(w(j)(t.afterFreezeAmount)),1)])),_:2},1024)):(l(),n(s,{key:1,style:{float:"right"}},{default:r((()=>[z("余额:"+S(w(j)(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"})),N.pagination.total>0?(l(),n(u,{key:2,status:N.loadStatus,"content-text":{contentdown:"点击加载更多"},onClick:a[0]||(a[0]=t=>C()),onScrolltolower:a[1]||(a[1]=t=>C())},null,8,["status"])):_("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-b7ac4f0e"]]);export{Q as default};
