You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong/public/assets/pages-wallet-balance-log.40...

2 lines
1.7 KiB

11 months ago
import{$ as t,q as s,u as a,o as e,c as l,w as o,i as n,a as i,b as r,d as c,F as u,y as d,f as m,t as p,l as f}from"./index-4ddb689d.js";import{M as _,_ as g}from"./mescroll-mixins.a7931123.js";import{r as h}from"./uni-app.es.24af5d4f.js";import{_ as y}from"./_plugin-vue_export-helper.1b428a4d.js";const b="balance.log/list";const x=y({mixins:[_],data:()=>({list:s(),upOption:{auto:!0,page:{size:15},noMoreSize:12,empty:{tip:"亲,暂无账单明细"}}}),onLoad(t){},methods:{upCallback(t){const s=this;s.getLogList(t.num).then((t=>{const a=t.data.length,e=t.data.total;s.mescroll.endBySize(a,e)})).catch((()=>s.mescroll.endErr()))},getLogList(s=1){const e=this;return new Promise(((l,o)=>{var n;(n={page:s},t.get(b,n)).then((t=>{const o=t.data.list;e.list.data=a(o,e.list,s),l(o)}))}))}}},[["render",function(t,s,a,_,y,b){const x=f,L=n,j=h(d("mescroll-body"),g);return e(),l(L,{class:"container"},{default:o((()=>[i(j,{ref:"mescrollRef",sticky:!0,onInit:t.mescrollInit,down:{use:!1},up:y.upOption,onUp:b.upCallback},{default:o((()=>[i(L,{class:"log-list"},{default:o((()=>[(e(!0),r(u,null,c(y.list.data,((t,s)=>(e(),l(L,{key:s,class:"log-item"},{default:o((()=>[i(L,{class:"item-left flex-box"},{default:o((()=>[i(L,{class:"rec-status"},{default:o((()=>[i(x,null,{default:o((()=>[m(p(t.describe),1)])),_:2},1024)])),_:2},1024),i(L,{class:"rec-time"},{default:o((()=>[i(x,null,{default:o((()=>[m(p(t.create_time),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),i(L,{class:"item-right"},{default:o((()=>[i(x,null,{default:o((()=>[m(p(t.money>0?"+":"")+p(t.money)+"元",1)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1},8,["onInit","up","onUp"])])),_:1})}],["__scopeId","data-v-a2342826"]]);export{x as default};