pages-user-wallet-maxScoreLog.8995502f.js 3.5 KB

1
  1. import{c as t,s as a,z as e,o as s,A as o,f as l,g as i,w as n,bJ as r,_ as u,m as p,k as d,G as f,l as m,r as c,F as g,i as _,j as y,n as x,D as h,u as S,v as b,E as w,x as v,I as j}from"./index-0faec82b.js";import{_ as z}from"./s-empty.9ea3b407.js";import{_ as A}from"./uni-load-more.860cfa8a.js";import{_ as M}from"./s-layout.88d8cb8b.js";import{p as k}from"./useGoods.b071619b.js";import{_ as F}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css */import"./phone-international-input.38423d06.js";const H=F({__name:"maxScoreLog",props:{isFreeze:{type:Boolean}},setup(F){t((()=>a.$store("user").userWallet)),a.$platform.device.statusBarHeight,t((()=>a.$store("user").userInfo)),a.$platform.navbar;const H=F,N=e({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1,showQueModel:!1}),Q=t=>{let a=t.profitStatusName+"";return t.username&&(a+="("+t.username+")"),23===t.profitStatus||24===t.profitStatus?a+="-待确权":a+="-转确权",a},$=t=>{let a="";return(t.freezeHighQuota>0||t.maxAvailablePointsAmount>0)&&(a="+"),23===t.profitStatus||24===t.profitStatus?a+=k(t.freezeHighQuota):a+=k(t.maxAvailablePointsAmount),a},P=t=>{let a="";return 23===t.profitStatus||24===t.profitStatus?(a+="待确权余额:",a+=k(t.afterFreezeHighQuota)):(a+="余额:",a+=k(t.afterMaxAvailablePointsAmount)),a};async function T(t){N.loadStatus="loading";let{code:a,data:e}=await r.getMaxScoreList({pageNo:N.pagination.pageNo,pageSize:N.pagination.pageSize});if(0!==a)return;let s=u.concat(N.pagination.list,e.list);N.pagination.list=s,N.pagination.total=e.total,N.loadStatus=N.pagination.list.length<N.pagination.total?"more":"noMore"}function I(t){"noMore"!==N.loadStatus&&(N.pagination.pageNo++,T())}return s((()=>{T(H.isFreeze)})),o((()=>{I()})),(t,e)=>{const s=j,o=y,r=p(x("s-empty"),z),u=p(x("uni-load-more"),A),k=h,F=p(x("s-layout"),M);return l(),i(F,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"},{default:n((()=>[d(o,{class:"model-box ss-flex-col"},{default:n((()=>[d(k,{class:"list-box","scroll-y":"true",onTouchmove:e[2]||(e[2]=f((()=>{}),["stop"]))},{default:n((()=>[N.pagination.total>0?(l(),i(o,{key:0,style:{padding:"20rpx"}},{default:n((()=>[(l(!0),m(g,null,c(N.pagination.list,((e,r)=>(l(),i(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((()=>[S(b(Q(e))+" ",1),d(s,{style:{float:"right"},class:w(["color-red",{"color-green":e.maxAvailablePointsAmount<0||t.freezeHighQuota<0}])},{default:n((()=>[S(b($(e)),1)])),_:2},1032,["class"])])),_:2},1024),d(o,{class:"time",style:{width:"100%"}},{default:n((()=>[S(b(v(a).$helper.timeFormat(e.createTime,"yyyy-mm-dd hh:MM"))+" ",1),d(s,{style:{float:"right"}},{default:n((()=>[S(b(P(e)),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})):(l(),i(r,{key:1,text:"暂无数据",paddingTop:"200",icon:"/static/data-empty.png"})),N.pagination.total>0?(l(),i(u,{key:2,status:N.loadStatus,"content-text":{contentdown:"点击加载更多"},onClick:e[0]||(e[0]=t=>I()),onScrolltolower:e[1]||(e[1]=t=>I())},null,8,["status"])):_("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-e7e80580"]]);export{H as default};