Browse Source

1111

master
wangjiahai 2 years ago
parent
commit
548dae5869
  1. 5
      pages/card/card.vue

5
pages/card/card.vue

@ -1,5 +1,6 @@
<template>
<!-- 有列表的时候用 :auto='false' 需要你在onload等调用reload方法 -->
<z-paging ref="paging" v-model="data" @query="queryList" :auto='true'>
<view @click="bind"
@ -60,6 +61,7 @@
},
onLoad() {
uni.$on("order", (e) => {
//
this.$refs.paging.reload(true);
})
},
@ -67,6 +69,7 @@
uni.$off('order');
},
methods: {
//
queryList(pageNo, pageSize) {
let _this = this
_this.$api.cardList({
@ -76,8 +79,10 @@
"customerSid": getApp().globalData.sid
}
}).then((resp) => {
//
this.$refs.paging.complete(resp.records)
}).catch(e => {
//
_this.$refs.paging.complete(false);
})
},

Loading…
Cancel
Save