"use strict";const e=require("../../common/vendor.js");require("../../uni_modules/uview-plus/index.js");const o=require("../../api/api.js");if(!Array){e.resolveComponent("z-paging")()}Math;const a={__name:"cardList",setup(a){let r=e.ref("");e.ref({});const t=e.ref(null);let c=e.ref([]),l=()=>!t.value;e.onLoad((e=>{r.value=e.id})),e.onPullDownRefresh((()=>{l()||t.value.reload().catch((()=>{}))})),e.onPageScroll((e=>{l()||(t.value.updatePageScrollTop(e.scrollTop),e.scrollTop<10&&t.value.doChatRecordLoadMore())})),e.onReachBottom((()=>{l()||t.value.pageReachBottom()}));const u=(e,a)=>{const c={current:e,pageSize:a,id:r.value};o.userCardRecord(c).then((e=>{t.value.complete(e)})).catch((e=>{t.value.complete(!1)}))};return(o,a)=>({a:e.f(e.unref(c),((o,a,r)=>({a:e.t(o.recordName||"-"),b:e.t(o.createTime),c:e.t(o.amount),d:a}))),b:e.sr(t,"1c414874-0",{k:"paging"}),c:e.o(u),d:e.o((o=>e.isRef(c)?c.value=o:c=o)),e:e.p({"use-page-scroll":!0,modelValue:e.unref(c)})})}},r=e._export_sfc(a,[["__scopeId","data-v-1c414874"]]);a.__runtimeHooks=1,wx.createPage(r);
