import{c as t,s as a,B as e,o as s,C as o,f as l,g as i,w as n,bQ as r,_ as u,q as p,n as d,I as m,p as c,r as f,F as g,i as _,l as y,u as x,G as b,m as h,t as w,H as v,z as S,K as j}from"./index-007bf156.js";import{_ as z}from"./s-empty.df9577ad.js";import{_ as A}from"./uni-load-more.4c025ab2.js";import{_ as M}from"./s-layout.19bedb43.js";import{p as k}from"./useGoods.ac3bf93e.js";import{_ as N}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css                                                                */import"./phone-international-input.3617e4e0.js";const $=N({__name:"maxScoreLog",props:{isFreeze:{type:Boolean}},setup(N){t((()=>a.$store("user").userWallet)),a.$platform.device.statusBarHeight,t((()=>a.$store("user").userInfo)),a.$platform.navbar;const $=N,F=e({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1,showQueModel:!1}),H=t=>{let a=t.profitStatusName+"";return t.username&&(a+="("+t.username+")"),a},P=t=>{let a="";return(t.freezeHighQuota>0||t.maxAvailablePointsAmount>0)&&(a="+"),a+=k(t.maxAvailablePointsAmount),a},Q=t=>{let a="";return a+="余额:",a+=k(t.afterMaxAvailablePointsAmount),a};async function T(t){F.loadStatus="loading";let{code:a,data:e}=await r.getMaxScoreList({pageNo:F.pagination.pageNo,pageSize:F.pagination.pageSize});if(0!==a)return;let s=u.concat(F.pagination.list,e.list);F.pagination.list=s,F.pagination.total=e.total,F.loadStatus=F.pagination.list.length<F.pagination.total?"more":"noMore"}function B(t){"noMore"!==F.loadStatus&&(F.pagination.pageNo++,T())}return s((()=>{T($.isFreeze)})),o((()=>{B()})),(t,e)=>{const s=j,o=y,r=p(x("s-empty"),z),u=p(x("uni-load-more"),A),k=b,N=p(x("s-layout"),M);return l(),i(N,{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]=m((()=>{}),["stop"]))},{default:n((()=>[F.pagination.total>0?(l(),i(o,{key:0,style:{padding:"20rpx"}},{default:n((()=>[(l(!0),c(g,null,f(F.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((()=>[h(w(H(e))+" ",1),d(s,{style:{float:"right"},class:v(["color-red",{"color-green":e.maxAvailablePointsAmount<0||t.freezeHighQuota<0}])},{default:n((()=>[h(w(P(e)),1)])),_:2},1032,["class"])])),_:2},1024),d(o,{class:"time",style:{width:"100%"}},{default:n((()=>[h(w(S(a).$helper.timeFormat(e.createTime,"yyyy-mm-dd hh:MM"))+" ",1),d(s,{style:{float:"right"}},{default:n((()=>[h(w(Q(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"})),F.pagination.total>0?(l(),i(u,{key:2,status:F.loadStatus,"content-text":{contentdown:"点击加载更多"},onClick:e[0]||(e[0]=t=>B()),onScrolltolower:e[1]||(e[1]=t=>B())},null,8,["status"])):_("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-ddf2bb22"]]);export{$ as default};
