pages-user-wallet-consumptionTransfersLog.1db5f79e.js 3.2 KB

1
  1. import{c as t,s as a,z as s,A as e,o,f as n,g as l,w as i,bN as r,_ as p,m as c,k as d,G as u,l as m,r as f,F as g,i as _,j as y,n as x,D as h,u as w,v as b,E as v,x as j,I as S}from"./index-a116b7fa.js";import{_ as k}from"./s-empty.4d7f5239.js";import{_ as N}from"./uni-load-more.2682655d.js";import{_ as T}from"./s-layout.4ae51839.js";import{p as I}from"./useGoods.6b315a78.js";import{_ as M}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css */import"./phone-international-input.b9f6c8e6.js";const z=M({__name:"consumptionTransfersLog",setup(M){const z=t((()=>a.$store("user").userWallet));a.$platform.device.statusBarHeight,t((()=>a.$store("user").userInfo)),a.$platform.navbar;const C=s({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1,showQueModel:!1});async function $(){C.loadStatus="loading";let{code:t,data:a}=await r.getConsumptionTransfersLog({pageNo:C.pagination.pageNo,pageSize:C.pagination.pageSize});if(0!==t)return;let s=p.concat(C.pagination.list,a.list);C.pagination.list=s,C.pagination.total=a.total,C.loadStatus=C.pagination.list.length<C.pagination.total?"more":"noMore"}const P=z.value.integralDO.userId,U=t=>P===t.recipientUserId?I(t.recipientPoints):I(t.consumptionPoints),D=t=>P===t.recipientUserId?I(t.afterRecipientConsumptionPoints):I(t.afterTransferConsumptionPoints);function F(t){"noMore"!==C.loadStatus&&(C.pagination.pageNo++,$())}return e((()=>{F()})),o((()=>{$()})),(t,s)=>{const e=S,o=y,r=c(x("s-empty"),k),p=c(x("uni-load-more"),N),I=h,M=c(x("s-layout"),T);return n(),l(M,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"},{default:i((()=>[d(o,{class:"model-box ss-flex-col"},{default:i((()=>[d(I,{class:"list-box","scroll-y":"true",onTouchmove:s[2]||(s[2]=u((()=>{}),["stop"]))},{default:i((()=>[C.pagination.total>0?(n(),l(o,{key:0,style:{padding:"20rpx"}},{default:i((()=>[(n(!0),m(g,null,f(C.pagination.list,((t,s)=>(n(),l(o,{class:"list-item ss-flex ss-col-center ss-row-between",key:t.id,style:{padding:"20rpx 0","border-bottom":"1px solid #c4c4c4"}},{default:i((()=>[d(o,{class:"ss-flex ss-col-center",style:{width:"100%"}},{default:i((()=>[d(o,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"100%"}},{default:i((()=>[d(o,{class:"name",style:{width:"100%"}},{default:i((()=>[w(b(t.transferUserName+" > "+t.recipientUserName)+" ",1),d(e,{style:{float:"right"},class:v(["color-red",{"color-green":U(t)<0}])},{default:i((()=>[w(b(U(t)),1)])),_:2},1032,["class"])])),_:2},1024),d(o,{class:"time",style:{width:"100%"}},{default:i((()=>[w(b(j(a).$helper.timeFormat(t.createTime,"yyyy-mm-dd hh:MM"))+" ",1),d(e,{style:{float:"right"}},{default:i((()=>[w("余额:"+b(D(t)),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})):(n(),l(r,{key:1,text:"暂无数据",paddingTop:"200",icon:"/static/data-empty.png"})),C.pagination.total>0?(n(),l(p,{key:2,status:C.loadStatus,"content-text":{contentdown:"点击加载更多"},onClick:s[0]||(s[0]=t=>F()),onScrolltolower:s[1]||(s[1]=t=>F())},null,8,["status"])):_("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-087d7cda"]]);export{z as default};