pages-user-wallet-ScoreLog.5f39a99a.js 3.8 KB

1
  1. import{c as t,s as e,z as a,A as s,o,f as l,g as n,w as r,bR as i,_ as u,m as c,k as p,G as d,l as m,r as f,F as g,i as _,j as y,n as x,D as h,u as z,v as S,E as b,x as w,I as k}from"./index-a116b7fa.js";import{_ as v}from"./s-empty.4d7f5239.js";import{_ as A}from"./uni-load-more.2682655d.js";import{_ as j}from"./s-layout.4ae51839.js";import{p as F}from"./useGoods.6b315a78.js";/* empty css */import{_ as M}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css */import"./phone-international-input.b9f6c8e6.js";const N=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 N=M,Q=a({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1,showQueModel:!1});async function $(t){Q.loadStatus="loading";let{code:e,data:a}=await i.getScoreApi({pageNo:Q.pagination.pageNo,pageSize:Q.pagination.pageSize,isFreeze:t});if(0!==e)return;let s=u.concat(Q.pagination.list,a.list);Q.pagination.list=s,Q.pagination.total=a.total,Q.loadStatus=Q.pagination.list.length<Q.pagination.total?"more":"noMore"}const T=t=>{let e=t.profitStatusName+"";return t.username&&(e+="("+t.username+")"),[3].includes(t.profitStatus)&&"false"==N.isFreeze&&t.ancestorQuotaAmount&&(e+="(超出额度:"+F(t.ancestorQuotaAmount)+")"),[22].includes(t.profitStatus)&&"false"==N.isFreeze&&t.accumulatedQuotaAmount&&(e+="(超出额度:"+F(t.accumulatedQuotaAmount)+")"),e};function I(t){"noMore"!==Q.loadStatus&&(Q.pagination.pageNo++,$(N.isFreeze))}return s((()=>{I()})),o((()=>{$(N.isFreeze)})),(t,a)=>{const s=k,o=y,i=c(x("s-empty"),v),u=c(x("uni-load-more"),A),N=h,$=c(x("s-layout"),j);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(N,{class:"list-box","scroll-y":"true",onTouchmove:a[2]||(a[2]=d((()=>{}),["stop"]))},{default:r((()=>[Q.pagination.total>0?(l(),n(o,{key:0,style:{padding:"20rpx"}},{default:r((()=>[(l(!0),m(g,null,f(Q.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(F)(t.freezeAmount):w(F)(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(F)(t.amount):w(F)(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(F)(t.afterFreezeAmount)),1)])),_:2},1024)):(l(),n(s,{key:1,style:{float:"right"}},{default:r((()=>[z("余额:"+S(w(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"})),Q.pagination.total>0?(l(),n(u,{key:2,status:Q.loadStatus,"content-text":{contentdown:"点击加载更多"},onClick:a[0]||(a[0]=t=>I()),onScrolltolower:a[1]||(a[1]=t=>I())},null,8,["status"])):_("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-b7ac4f0e"]]);export{N as default};