pages-user-wallet-ScoreLog.5b03e2fc.js 3.6 KB

1
  1. import{c as e,s as t,y as a,o as s,z as o,e as l,f as r,w as n,_ as i,l as u,j as p,C as d,k as c,r as f,F as m,g,i as _,m as y,S as h,t as x,u as S,B as z,v as b,E as w}from"./index-b48a414d.js";import{_ as k}from"./s-empty.6d3471cc.js";import{_ as j}from"./uni-load-more.647920f4.js";import{_ as v,p as F}from"./s-layout.d6dcdc81.js";import{S as A}from"./score.a7d54649.js";/* empty css */import{_ as M}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css */import"./phone-international-input.feef99c7.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 A.getScoreApi({pageNo:$.pagination.pageNo,pageSize:$.pagination.pageSize,isFreeze:e});if(0!==t)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 C(e){"noMore"!==$.loadStatus&&($.pagination.pageNo++,T(N.isFreeze))}return s((()=>{T(N.isFreeze)})),o((()=>{C()})),(e,a)=>{const s=w,o=_,i=u(y("s-empty"),k),A=u(y("uni-load-more"),j),N=h,T=u(y("s-layout"),v);return l(),r(T,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"},{default:n((()=>[p(o,{class:"model-box ss-flex-col"},{default:n((()=>[p(N,{class:"list-box","scroll-y":"true",onTouchmove:a[2]||(a[2]=d((()=>{}),["stop"]))},{default:n((()=>[$.pagination.total>0?(l(),r(o,{key:0,style:{padding:"20rpx"}},{default:n((()=>[(l(!0),c(m,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((()=>[p(o,{class:"ss-flex ss-col-center",style:{width:"100%"}},{default:n((()=>[p(o,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"100%"}},{default:n((()=>[p(o,{class:"name",style:{width:"100%"}},{default:n((()=>[x(S(e.profitStatusName||"空")+" "+S(e.username?"("+e.username+")":"")+" ",1),"true"==M.isFreeze?(l(),r(s,{key:0,style:{float:"right"},class:z(["color-red",{"color-green":e.freezeAmount<0}])},{default:n((()=>[x(S(e.freezeAmount>0?"+"+b(F)(e.freezeAmount):b(F)(e.freezeAmount)),1)])),_:2},1032,["class"])):(l(),r(s,{key:1,style:{float:"right"},class:z(["color-red",{"color-green":e.amount<0}])},{default:n((()=>[x(S(e.amount>0?"+"+b(F)(e.amount):b(F)(e.amount)),1)])),_:2},1032,["class"]))])),_:2},1024),p(o,{class:"time",style:{width:"100%"}},{default:n((()=>[x(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((()=>[x("余额:"+S(b(F)(e.afterFreezeAmount)),1)])),_:2},1024)):(l(),r(s,{key:1,style:{float:"right"}},{default:n((()=>[x("余额:"+S(b(F)(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(A,{key:2,status:$.loadStatus,"content-text":{contentdown:"点击加载更多"},onClick:a[0]||(a[0]=e=>C()),onScrolltolower:a[1]||(a[1]=e=>C())},null,8,["status"])):g("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-5e9e0bf2"]]);export{N as default};