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