pages-user-wallet-withdrawalLog.DxRoVxYS.js 3.6 KB

1
  1. import{c as t,s as a,v as e,o as s,m as o,a as l,b as i,d as n,w as r,u as d,bS as p,_ as c,e as u,f as _,L as m,x as f,y as g,F as w,t as y,z as h,i as x,I as b,g as v,j,l as S}from"./index-CIHXBJK6.js";import{_ as k}from"./s-empty.DFelyBfT.js";import{_ as T}from"./uni-load-more.DLKkFol3.js";import{_ as z}from"./s-layout.DsRVkhyD.js";import{f as $,p as C}from"./useGoods.BMh-0Uau.js";import{_ as M}from"./_plugin-vue_export-helper.BCo6x5W8.js";/* empty css */import"./s-menu-tools.Di3ooeY2.js";import"./s-search-block.vue_vue_type_style_index_0_scoped_f692e81a_lang.XupmRtHT.js";import"./uni-icons.Dn5XuiUW.js";import"./s-layout.vue_vue_type_style_index_0_scoped_d5f7c468_lang.X__YG5gI.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a793e264_lang._Ymtd1hH.js";import"./s-search-block.Bj2KQbpW.js";import"./phone-international-input.11CX4hdU.js";const N=M({__name:"withdrawalLog",setup(M){t((()=>a.$store("user").userWallet)),a.$platform.device.statusBarHeight,t((()=>a.$store("user").userInfo)),a.$platform.navbar;const N=e({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:""});async function I(){N.loadStatus="loading";let{code:t,data:a}=await p.getWithdrawalPage({pageNo:N.pagination.pageNo,pageSize:N.pagination.pageSize});if(0!==t)return;let e=c.concat(N.pagination.list,a.list);N.pagination.list=e,N.pagination.total=a.total,N.loadStatus=N.pagination.list.length<N.pagination.total?"more":"noMore"}function A(){"noMore"!==N.loadStatus&&(N.pagination.pageNo++,I())}return s((()=>{I()})),o((()=>{A()})),(t,e)=>{const s=S,o=x,p=l(i("s-empty"),k),c=l(i("uni-load-more"),T),M=b,I=l(i("s-layout"),z);return u(),n(I,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:d(y)("wallet.withdrawal_records"),navbar:"normal"},{default:r((()=>[_(o,{class:"model-box ss-flex-col"},{default:r((()=>[_(M,{class:"list-box","scroll-y":"true",onTouchmove:e[2]||(e[2]=m((()=>{}),["stop"]))},{default:r((()=>[N.pagination.total>0?(u(),n(o,{key:0,style:{padding:"20rpx"}},{default:r((()=>[(u(!0),f(w,null,g(N.pagination.list,((t,e)=>(u(),n(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((()=>[_(o,{class:"ss-flex ss-col-center",style:{width:"100%"}},{default:r((()=>[_(o,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"100%"}},{default:r((()=>[_(o,{class:"name",style:{width:"100%"}},{default:r((()=>[v(j(1===t.withdrawalType?d(y)("wallet.wechat"):2===t.withdrawalType?d(y)("wallet.alipay"):d(y)("wallet.bank_card"))+" ("+j(t.withdrawalAccount)+") ",1),_(s,{style:{float:"right"},class:"color-red"},{default:r((()=>[v(" ¥"+j(d($)(t.amount))+" ("+j(d(y)("wallet.consumption_points")+d(C)(t.withdrawConsumption))+") ",1)])),_:2},1024)])),_:2},1024),_(o,{class:"time",style:{width:"100%"}},{default:r((()=>[v(j(d(a).$helper.timeFormat(t.createTime,"yyyy-mm-dd hh:MM"))+" ",1),_(s,{style:{float:"right"}},{default:r((()=>[v(j(t.status?1===t.status?d(y)("wallet.credited"):d(y)("wallet.withdrawal_failed"):d(y)("wallet.withdrawing")),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})):(u(),n(p,{key:1,text:"暂无数据",paddingTop:"200",icon:"/static/data-empty.png"})),N.pagination.total>0?(u(),n(c,{key:2,status:N.loadStatus,"content-text":{contentdown:d(y)("common.click_to_load_more")},onClick:e[0]||(e[0]=t=>A()),onScrolltolower:e[1]||(e[1]=t=>A())},null,8,["status","content-text"])):h("",!0)])),_:1})])),_:1})])),_:1},8,["title"])}}},[["__scopeId","data-v-b58d8fbc"]]);export{N as default};