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.
2 lines
1.7 KiB
2 lines
1.7 KiB
11 months ago
|
import{$ as t,p as s,q 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,x as d,f as m,t as p,k as f}from"./index-ae8bbb19.js";import{M as _,_ as g}from"./mescroll-mixins.7cda1bf3.js";import{r as h}from"./uni-app.es.ee1d5b08.js";import{_ as x}from"./_plugin-vue_export-helper.1b428a4d.js";const b="balance.log/list";const y=x({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,_,x,b){const y=f,k=n,L=h(d("mescroll-body"),g);return e(),l(k,{class:"container"},{default:o((()=>[i(L,{ref:"mescrollRef",sticky:!0,onInit:t.mescrollInit,down:{use:!1},up:x.upOption,onUp:b.upCallback},{default:o((()=>[i(k,{class:"log-list"},{default:o((()=>[(e(!0),r(u,null,c(x.list.data,((t,s)=>(e(),l(k,{key:s,class:"log-item"},{default:o((()=>[i(k,{class:"item-left flex-box"},{default:o((()=>[i(k,{class:"rec-status"},{default:o((()=>[i(y,null,{default:o((()=>[m(p(t.describe),1)])),_:2},1024)])),_:2},1024),i(k,{class:"rec-time"},{default:o((()=>[i(y,null,{default:o((()=>[m(p(t.create_time),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),i(k,{class:"item-right"},{default:o((()=>[i(y,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{y as default};
|