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,bQ as p,_ as u,e as c,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-DUAp9XEj.js";import{_ as k}from"./s-empty.BQPqUoar.js";import{_ as T}from"./uni-load-more.7LU3tP0I.js";import{_ as z}from"./s-layout.a1_kfpIW.js";import{f as N,p as $}from"./useGoods.Cwnq-veC.js";import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";/* empty css */import"./s-menu-tools.Bn3wdRty.js";import"./s-layout.vue_vue_type_style_index_0_scoped_d5f7c468_lang.CKkHKX6k.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a793e264_lang.Bv2EixP5.js";import"./s-tabbar.fodLOlFD.js";import"./phone-international-input.D4fi9eUK.js";const I=C({__name:"withdrawalLog",setup(C){t((()=>a.$store("user").userWallet)),a.$platform.device.statusBarHeight,t((()=>a.$store("user").userInfo)),a.$platform.navbar;const I=e({currentTab:0,pagination:{list:[],total:0,pageSize:10,pageNo:1},loadStatus:""});async function M(){I.loadStatus="loading";let{code:t,data:a}=await p.getWithdrawalPage({pageNo:I.pagination.pageNo,pageSize:I.pagination.pageSize});if(0!==t)return;let e=u.concat(I.pagination.list,a.list);I.pagination.list=e,I.pagination.total=a.total,I.loadStatus=I.pagination.list.length<I.pagination.total?"more":"noMore"}function A(){"noMore"!==I.loadStatus&&(I.pagination.pageNo++,M())}return s((()=>{M()})),o((()=>{A()})),(t,e)=>{const s=S,o=x,p=l(i("s-empty"),k),u=l(i("uni-load-more"),T),C=b,M=l(i("s-layout"),z);return c(),n(M,{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((()=>[_(C,{class:"list-box","scroll-y":"true",onTouchmove:e[2]||(e[2]=m((()=>{}),["stop"]))},{default:r((()=>[I.pagination.total>0?(c(),n(o,{key:0,style:{padding:"20rpx"}},{default:r((()=>[(c(!0),f(w,null,g(I.pagination.list,((t,e)=>(c(),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(N)(t.amount))+" ("+j(d(y)("wallet.consumption_points")+d($)(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})):(c(),n(p,{key:1,text:"暂无数据",paddingTop:"200",icon:"/static/data-empty.png"})),I.pagination.total>0?(c(),n(u,{key:2,status:I.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{I as default};
|