pages-user-wallet-maxScoreLog.eaa64284.js 3.3 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,bR as r,_ as u,m as p,k as d,G as m,l as c,r as f,F as g,i as _,j as y,n as x,D as b,u as h,v,E as w,x as S,I as j}from"./index-a116b7fa.js";import{_ as z}from"./s-empty.4d7f5239.js";import{_ as A}from"./uni-load-more.2682655d.js";import{_ as k}from"./s-layout.4ae51839.js";import{p as M}from"./useGoods.6b315a78.js";import{_ as N}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css */import"./phone-international-input.b9f6c8e6.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}),P=t=>{let a=t.profitStatusName+"";return t.username&&(a+="("+t.username+")"),a},T=t=>{let a="";return(t.freezeHighQuota>0||t.maxAvailablePointsAmount>0)&&(a="+"),a+=M(t.maxAvailablePointsAmount),a},H=t=>{let a="";return a+="余额:",a+=M(t.afterMaxAvailablePointsAmount),a};async function I(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 Q(t){"noMore"!==F.loadStatus&&(F.pagination.pageNo++,I())}return s((()=>{I($.isFreeze)})),o((()=>{Q()})),(t,e)=>{const s=j,o=y,r=p(x("s-empty"),z),u=p(x("uni-load-more"),A),M=b,N=p(x("s-layout"),k);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(M,{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(v(P(e))+" ",1),d(s,{style:{float:"right"},class:w(["color-red",{"color-green":e.maxAvailablePointsAmount<0||t.freezeHighQuota<0}])},{default:n((()=>[h(v(T(e)),1)])),_:2},1032,["class"])])),_:2},1024),d(o,{class:"time",style:{width:"100%"}},{default:n((()=>[h(v(S(a).$helper.timeFormat(e.createTime,"yyyy-mm-dd hh:MM"))+" ",1),d(s,{style:{float:"right"}},{default:n((()=>[h(v(H(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=>Q()),onScrolltolower:e[1]||(e[1]=t=>Q())},null,8,["status"])):_("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-ddf2bb22"]]);export{$ as default};