pages-pay-recharge-log.5dbc95ff.js 3.2 KB

1
  1. import{v as s,o as t,x as a,e,f as l,w as o,ax as i,_ as n,l as c,j as r,k as u,r as d,F as m,g as p,i as f,m as _,p as g,z as y,t as x,u as w,s as b,C as h}from"./index-9880b451.js";import{_ as j}from"./s-empty.74111684.js";import{_ as S}from"./uni-load-more.aac4524a.js";import{_ as k}from"./s-layout.dfc5b0b5.js";import{f as v}from"./useGoods.bdd1c2ea.js";import{_ as N}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css */import"./index.df38848e.js";const C=N({__name:"recharge-log",setup(N){const C=s({pagination:{list:[],total:0,pageNo:1,pageSize:5},loadStatus:""});async function M(s=1,t=5){const{code:a,data:e}=await i.getWalletRechargePage({pageNo:s,pageSize:t});0===a&&(C.pagination.list=n.concat(C.pagination.list,e.list),C.pagination.total=e.total,C.loadStatus=C.pagination.list.length<C.pagination.total?"more":"noMore")}function P(){"noMore"!==C.loadStatus&&(C.pagination.pageNo++,M())}return t((()=>{M()})),a((()=>{P()})),(s,t)=>{const a=f,i=h,n=c(_("s-empty"),j),N=c(_("uni-load-more"),S),M=c(_("s-layout"),k);return e(),l(M,{class:"widthdraw-log-wrap",title:"充值记录"},{default:o((()=>[r(a,{class:"wallet-log-box ss-p-b-30"},{default:o((()=>[(e(!0),u(m,null,d(C.pagination.list,(s=>(e(),l(a,{class:"log-list",key:s},{default:o((()=>[r(a,{class:"head ss-flex ss-col-center ss-row-between"},{default:o((()=>[r(a,{class:"title"},{default:o((()=>[g("充值金额")])),_:1}),r(a,{class:y(["num",10===s.refundStatus?"danger-color":"success-color"])},{default:o((()=>[g(x(w(v)(s.payPrice))+" 元 ",1),s.bonusPrice>0?(e(),l(i,{key:0},{default:o((()=>[g("(赠送 "+x(w(v)(s.bonusPrice))+" 元)",1)])),_:2},1024)):p("",!0)])),_:2},1032,["class"])])),_:2},1024),r(a,{class:"status-box item ss-flex ss-col-center ss-row-between"},{default:o((()=>[r(a,{class:"item-title"},{default:o((()=>[g("支付状态")])),_:1}),r(a,{class:y(["status-text",10===s.refundStatus?"danger-color":"success-color"])},{default:o((()=>[g(x(10===s.refundStatus?"已退款":"已支付"),1)])),_:2},1032,["class"])])),_:2},1024),r(a,{class:"time-box item ss-flex ss-col-center ss-row-between"},{default:o((()=>[r(i,{class:"item-title"},{default:o((()=>[g("充值渠道")])),_:1}),r(a,{class:"time ss-ellipsis-1"},{default:o((()=>[g(x(s.payChannelName),1)])),_:2},1024)])),_:2},1024),r(a,{class:"time-box item ss-flex ss-col-center ss-row-between"},{default:o((()=>[r(i,{class:"item-title"},{default:o((()=>[g("充值单号")])),_:1}),r(a,{class:"time"},{default:o((()=>[g(x(s.payOrderChannelOrderNo),1)])),_:2},1024)])),_:2},1024),r(a,{class:"time-box item ss-flex ss-col-center ss-row-between"},{default:o((()=>[r(i,{class:"item-title"},{default:o((()=>[g("充值时间")])),_:1}),r(a,{class:"time"},{default:o((()=>[g(x(w(b).$helper.timeFormat(s.payTime,"yyyy-mm-dd hh:MM:ss")),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),0===C.pagination.total?(e(),l(n,{key:0,icon:"/static/comment-empty.png",text:"暂无充值记录"})):p("",!0),C.pagination.total>0?(e(),l(N,{key:1,status:C.loadStatus,"content-text":{contentdown:"上拉加载更多"},onClick:P},null,8,["status"])):p("",!0)])),_:1})}}},[["__scopeId","data-v-91f665b3"]]);export{C as default};