pages-user-wallet-consumptionLog.9100302e.js 3.2 KB

1
  1. import{c as t,s as a,z as s,A as o,o as e,f as n,g as l,w as i,bN as r,_ as p,m as u,k as c,G as d,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 S,x as b,E as j,I as v}from"./index-a116b7fa.js";import{_ as k}from"./s-empty.4d7f5239.js";import{_ as N}from"./uni-load-more.2682655d.js";import{_ as M}from"./s-layout.4ae51839.js";import{p as P}from"./useGoods.6b315a78.js";import{_ as z}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css */import"./phone-international-input.b9f6c8e6.js";const C=z({__name:"consumptionLog",setup(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.getConsumptionLog({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"}function T(t){"noMore"!==C.loadStatus&&(C.pagination.pageNo++,$())}return o((()=>{T()})),e((()=>{$()})),(t,s)=>{const o=v,e=y,r=u(x("s-empty"),k),p=u(x("uni-load-more"),N),z=h,$=u(x("s-layout"),M);return n(),l($,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"},{default:i((()=>[c(e,{class:"model-box ss-flex-col"},{default:i((()=>[c(z,{class:"list-box","scroll-y":"true",onTouchmove:s[2]||(s[2]=d((()=>{}),["stop"]))},{default:i((()=>[C.pagination.total>0?(n(),l(e,{key:0,style:{padding:"20rpx"}},{default:i((()=>[(n(!0),m(g,null,f(C.pagination.list,((t,s)=>(n(),l(e,{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((()=>[c(e,{class:"ss-flex ss-col-center",style:{width:"100%"}},{default:i((()=>[c(e,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"100%"}},{default:i((()=>[c(e,{class:"name",style:{width:"100%"}},{default:i((()=>[w(S(t.consumptionStatusName)+S([3,4].includes(t.consumptionStatus)?"("+t.generateUserName+")":"")+" "+S(1===t.consumptionStatus?"(金额:"+b(P)(t.practicalConsumptionPoints)+")":"")+" ",1),c(o,{style:{float:"right"},class:j(["color-red",{"color-green":t.consumptionPoints<0}])},{default:i((()=>[w(S(t.consumptionPoints>0?"+"+b(P)(t.consumptionPoints):b(P)(t.consumptionPoints)),1)])),_:2},1032,["class"])])),_:2},1024),c(e,{class:"time",style:{width:"100%"}},{default:i((()=>[w(S(b(a).$helper.timeFormat(t.createTime,"yyyy-mm-dd hh:MM"))+" ",1),c(o,{style:{float:"right"}},{default:i((()=>[w("余额:"+S(b(P)(t.afterConsumptionPoints)),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=>T()),onScrolltolower:s[1]||(s[1]=t=>T())},null,8,["status"])):_("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-a35c73d7"]]);export{C as default};