pages-user-wallet-maxScoreLog.8be23529.js 3.2 KB

1
  1. import{c as a,s as t,y as e,o as s,z as o,e as l,f as i,w as n,_ as r,l as p,j as u,C as m,k as c,r as d,F as f,g,i as y,m as _,S as x,t as b,u as h,B as S,v,E as w}from"./index-c374f39b.js";import{_ as j}from"./s-empty.f3eb5f44.js";import{_ as A}from"./uni-load-more.51c361e5.js";import{_ as k,p as M}from"./s-layout.9ed959df.js";import{S as z}from"./score.899267e7.js";import{_ as N}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css */import"./phone-international-input.8d9bfbe6.js";const P=N({__name:"maxScoreLog",props:{isFreeze:{type:Boolean}},setup(N){a((()=>t.$store("user").userWallet)),t.$platform.device.statusBarHeight,a((()=>t.$store("user").userInfo)),t.$platform.navbar;const P=N,$=e({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1,showQueModel:!1});async function F(a){$.loadStatus="loading";let{code:t,data:e}=await z.getMaxScoreList({pageNo:$.pagination.pageNo,pageSize:$.pagination.pageSize});if(0!==t)return;let s=r.concat($.pagination.list,e.list);$.pagination.list=s,$.pagination.total=e.total,$.loadStatus=$.pagination.list.length<$.pagination.total?"more":"noMore"}function T(a){"noMore"!==$.loadStatus&&($.pagination.pageNo++,F())}return s((()=>{F(P.isFreeze)})),o((()=>{T()})),(a,e)=>{const s=w,o=y,r=p(_("s-empty"),j),z=p(_("uni-load-more"),A),N=x,P=p(_("s-layout"),k);return l(),i(P,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"},{default:n((()=>[u(o,{class:"model-box ss-flex-col"},{default:n((()=>[u(N,{class:"list-box","scroll-y":"true",onTouchmove:e[2]||(e[2]=m((()=>{}),["stop"]))},{default:n((()=>[$.pagination.total>0?(l(),i(o,{key:0,style:{padding:"20rpx"}},{default:n((()=>[(l(!0),c(f,null,d($.pagination.list,((a,e)=>(l(),i(o,{class:"list-item ss-flex ss-col-center ss-row-between",key:a.id,style:{padding:"20rpx 0","border-bottom":"1px solid #c4c4c4"}},{default:n((()=>[u(o,{class:"ss-flex ss-col-center",style:{width:"100%"}},{default:n((()=>[u(o,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"100%"}},{default:n((()=>[u(o,{class:"name",style:{width:"100%"}},{default:n((()=>[b(h(a.profitStatusName||"空")+" "+h(a.username?"("+a.username+")":"")+" ",1),u(s,{style:{float:"right"},class:S(["color-red",{"color-green":a.maxAvailablePointsAmount<0}])},{default:n((()=>[b(h(a.maxAvailablePointsAmount>0?"+"+v(M)(a.maxAvailablePointsAmount):+v(M)(a.maxAvailablePointsAmount)),1)])),_:2},1032,["class"])])),_:2},1024),u(o,{class:"time",style:{width:"100%"}},{default:n((()=>[b(h(v(t).$helper.timeFormat(a.createTime,"yyyy-mm-dd hh:MM"))+" ",1),u(s,{style:{float:"right"}},{default:n((()=>[b("余额:"+h(v(M)(a.afterMaxAvailablePointsAmount)),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"})),$.pagination.total>0?(l(),i(z,{key:2,status:$.loadStatus,"content-text":{contentdown:"点击加载更多"},onClick:e[0]||(e[0]=a=>T()),onScrolltolower:e[1]||(e[1]=a=>T())},null,8,["status"])):g("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-fc05007a"]]);export{P as default};