pages-user-wallet-ScoreLog.c880b241.js 3.6 KB

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