pages-user-wallet-maxScoreLog.79Z5wpi1.js 3.5 KB

1
  1. import{c as t,s as a,v as e,o as s,m as o,a as l,b as n,d as i,w as r,bT as p,_ as u,e as d,f as m,L as c,x as _,y as f,F as g,u as y,t as x,z as b,i as h,I as v,g as w,j,J as S,l as z}from"./index-DUAp9XEj.js";import{_ as A}from"./s-empty.BQPqUoar.js";import{_ as M}from"./uni-load-more.7LU3tP0I.js";import{_ as k}from"./s-layout.a1_kfpIW.js";import{p as N}from"./useGoods.Cwnq-veC.js";import{_ as T}from"./_plugin-vue_export-helper.BCo6x5W8.js";/* empty css */import"./s-menu-tools.Bn3wdRty.js";import"./s-layout.vue_vue_type_style_index_0_scoped_d5f7c468_lang.CKkHKX6k.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a793e264_lang.Bv2EixP5.js";import"./s-tabbar.fodLOlFD.js";import"./phone-international-input.D4fi9eUK.js";const $=T({__name:"maxScoreLog",props:{isFreeze:{type:Boolean}},setup(T){t((()=>a.$store("user").userWallet)),a.$platform.device.statusBarHeight,t((()=>a.$store("user").userInfo)),a.$platform.navbar;const $=T,F=e({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1,showQueModel:!1}),I=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+=N(t.maxAvailablePointsAmount),a},C=t=>{let a="";return a+=x("wallet.balance")+":",a+=N(t.afterMaxAvailablePointsAmount),a};async function H(t){F.loadStatus="loading";let{code:a,data:e}=await p.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 L(t){"noMore"!==F.loadStatus&&(F.pagination.pageNo++,H())}return s((()=>{H($.isFreeze)})),o((()=>{L()})),(t,e)=>{const s=z,o=h,p=l(n("s-empty"),A),u=l(n("uni-load-more"),M),N=v,T=l(n("s-layout"),k);return d(),i(T,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"},{default:r((()=>[m(o,{class:"model-box ss-flex-col"},{default:r((()=>[m(N,{class:"list-box","scroll-y":"true",onTouchmove:e[2]||(e[2]=c((()=>{}),["stop"]))},{default:r((()=>[F.pagination.total>0?(d(),i(o,{key:0,style:{padding:"20rpx"}},{default:r((()=>[(d(!0),_(g,null,f(F.pagination.list,((e,l)=>(d(),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:r((()=>[m(o,{class:"ss-flex ss-col-center",style:{width:"100%"}},{default:r((()=>[m(o,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"100%"}},{default:r((()=>[m(o,{class:"name",style:{width:"100%"}},{default:r((()=>[w(j(I(e))+" ",1),m(s,{style:{float:"right"},class:S(["color-red",{"color-green":e.maxAvailablePointsAmount<0||t.freezeHighQuota<0}])},{default:r((()=>[w(j(P(e)),1)])),_:2},1032,["class"])])),_:2},1024),m(o,{class:"time",style:{width:"100%"}},{default:r((()=>[w(j(y(a).$helper.timeFormat(e.createTime,"yyyy-mm-dd hh:MM"))+" ",1),m(s,{style:{float:"right"}},{default:r((()=>[w(j(C(e)),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})):(d(),i(p,{key:1,text:"暂无数据",paddingTop:"200",icon:"/static/data-empty.png"})),F.pagination.total>0?(d(),i(u,{key:2,status:F.loadStatus,"content-text":{contentdown:y(x)("common.click_to_load_more")},onClick:e[0]||(e[0]=t=>L()),onScrolltolower:e[1]||(e[1]=t=>L())},null,8,["status","content-text"])):b("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-80706fe5"]]);export{$ as default};