Browse Source

加入自动刷新礼品卡

master
wangjiahai 2 years ago
parent
commit
9f8b3cb5e0
  1. 9
      pages/card/card.vue

9
pages/card/card.vue

@ -58,8 +58,17 @@
data: [] data: []
} }
}, },
onLoad() {
uni.$on("order", (e) => {
this.$refs.paging.reload(true);
})
},
onUnload() {
uni.$off('order');
},
methods: { methods: {
queryList(pageNo, pageSize) { queryList(pageNo, pageSize) {
console.log(pageNo);
let _this = this let _this = this
_this.$api.cardList({ _this.$api.cardList({
"current": pageNo, "current": pageNo,

Loading…
Cancel
Save