pages-user-wallet-consumptionTransfersLog.mfVEBOKA.js 3.4 KB

1
  1. import{c as t,s,v as a,m as e,o,a as n,b as l,d as i,w as r,bP as p,_ as u,e as d,f as c,L as m,x as f,y as _,F as g,z as y,i as x,I as b,g as h,j as v,J as w,u as j,l as S}from"./index-rA9LQu-Z.js";import{_ as I}from"./s-empty.DeUWkR30.js";import{_ as N}from"./uni-load-more.DxBzzO3U.js";import{_ as T}from"./s-layout.B9qvEa4L.js";import{p as k}from"./useGoods.BijVnshj.js";import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";/* empty css */import"./s-menu-tools.DS1kA6Tz.js";import"./s-layout.vue_vue_type_style_index_0_scoped_d5f7c468_lang.DsLhC4_3.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a793e264_lang.BKCNw0rf.js";import"./s-tabbar.DG8GxPLd.js";import"./phone-international-input.xRkWv9wR.js";const M=C({__name:"consumptionTransfersLog",setup(C){const M=t((()=>s.$store("user").userWallet));s.$platform.device.statusBarHeight,t((()=>s.$store("user").userInfo)),s.$platform.navbar;const z=a({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:"",showModel:!1,showQueModel:!1});async function P(){z.loadStatus="loading";let{code:t,data:s}=await p.getConsumptionTransfersLog({pageNo:z.pagination.pageNo,pageSize:z.pagination.pageSize});if(0!==t)return;let a=u.concat(z.pagination.list,s.list);z.pagination.list=a,z.pagination.total=s.total,z.loadStatus=z.pagination.list.length<z.pagination.total?"more":"noMore"}const $=M.value.integralDO.userId,U=t=>$===t.recipientUserId?k(t.recipientPoints):k(t.consumptionPoints),L=t=>$===t.recipientUserId?k(t.afterRecipientConsumptionPoints):k(t.afterTransferConsumptionPoints);function F(t){"noMore"!==z.loadStatus&&(z.pagination.pageNo++,P())}return e((()=>{F()})),o((()=>{P()})),(t,a)=>{const e=S,o=x,p=n(l("s-empty"),I),u=n(l("uni-load-more"),N),k=b,C=n(l("s-layout"),T);return d(),i(C,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"},{default:r((()=>[c(o,{class:"model-box ss-flex-col"},{default:r((()=>[c(k,{class:"list-box","scroll-y":"true",onTouchmove:a[2]||(a[2]=m((()=>{}),["stop"]))},{default:r((()=>[z.pagination.total>0?(d(),i(o,{key:0,style:{padding:"20rpx"}},{default:r((()=>[(d(!0),f(g,null,_(z.pagination.list,((t,a)=>(d(),i(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:r((()=>[c(o,{class:"ss-flex ss-col-center",style:{width:"100%"}},{default:r((()=>[c(o,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"100%"}},{default:r((()=>[c(o,{class:"name",style:{width:"100%"}},{default:r((()=>[h(v(t.transferUserName+" > "+t.recipientUserName)+" ",1),c(e,{style:{float:"right"},class:w(["color-red",{"color-green":U(t)<0}])},{default:r((()=>[h(v(U(t)),1)])),_:2},1032,["class"])])),_:2},1024),c(o,{class:"time",style:{width:"100%"}},{default:r((()=>[h(v(j(s).$helper.timeFormat(t.createTime,"yyyy-mm-dd hh:MM"))+" ",1),c(e,{style:{float:"right"}},{default:r((()=>[h("余额:"+v(L(t)),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"})),z.pagination.total>0?(d(),i(u,{key:2,status:z.loadStatus,"content-text":{contentdown:"点击加载更多"},onClick:a[0]||(a[0]=t=>F()),onScrolltolower:a[1]||(a[1]=t=>F())},null,8,["status"])):y("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-1bdb4583"]]);export{M as default};