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