解决下拉不加载

main
zhangqun 11 months ago
parent a9f4d50c3b
commit b365bc3faf
  1. 7
      pages/investigation/index.vue

@ -122,13 +122,16 @@
} }
}) })
}, },
getList() { getList(v) {
let datas = { let datas = {
nuserid: this.$.getData('token'), nuserid: this.$.getData('token'),
status: this.status, status: this.status,
} }
this.$request.globalRequest(`/hiddenDanger/highDanger/getHigDangerDealt?pageNum=${this.page}&pageSize=${10}`, datas, 'POST').then(res => { this.$request.globalRequest(`/hiddenDanger/highDanger/getHigDangerDealt?pageNum=${this.page}&pageSize=${10}`, datas, 'POST').then(res => {
if (res.code === 200) { if (res.code === 200) {
if(v){
this.list = []
}
if (res.result.total === 0) { if (res.result.total === 0) {
this.isEmpty = true; this.isEmpty = true;
} else { } else {
@ -162,6 +165,8 @@
// //
setTimeout(() => { setTimeout(() => {
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
this.page = 1
this.getList('onPullDownRefresh')
}, 1500); }, 1500);
}, },
// //

Loading…
Cancel
Save