解决下拉不加载

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

@ -141,15 +141,15 @@
"pathRewrite" : {
"^/HiatmpPro" : "/HiatmpPro"
}
},
"/hitapChat" : {
"target" : "http://219.147.31.25:30001/hitap",
"changeOrigin" : true,
"secure" : false,
"pathRewrite" : {
"^/hitapChat" : ""
}
}
},
"/hitapChat" : {
"target" : "http://219.147.31.25:30001/hitap",
"changeOrigin" : true,
"secure" : false,
"pathRewrite" : {
"^/hitapChat" : ""
}
}
}
},
"title" : "排查隐患"

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

Loading…
Cancel
Save