|
|
|
@ -26,6 +26,7 @@ Page({ |
|
|
|
// 事件处理函数
|
|
|
|
onLoad: async function () { |
|
|
|
await this.getToken() |
|
|
|
this.getIntelligentMessage() |
|
|
|
// await this.getIntelligentMessage()
|
|
|
|
await this.getStaffbasicinfo() |
|
|
|
this.setData({ |
|
|
|
@ -44,11 +45,11 @@ Page({ |
|
|
|
} |
|
|
|
}, |
|
|
|
onShow(){ |
|
|
|
this.getIntelligentMessage() |
|
|
|
|
|
|
|
this.getSituation() |
|
|
|
this.getInspRecord() |
|
|
|
}, |
|
|
|
onPullDownRefresh() { |
|
|
|
onPullDownRefresh() { |
|
|
|
this.setData({ |
|
|
|
pageNo:1, |
|
|
|
tableData:[] |
|
|
|
@ -127,14 +128,16 @@ onScrollToLower(e){ |
|
|
|
item.typeName = '房屋信息采集' |
|
|
|
} else if (item.msgType === 'resident_categiry') { |
|
|
|
item.typeName='数据更新提醒' |
|
|
|
} |
|
|
|
}else if (item.msgType === 'srap_confirm') { |
|
|
|
item.typeName='服务更新提醒' |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
console.log( res.data.list); |
|
|
|
this.setData({ |
|
|
|
loadMoreType: res.data.list.length === this.data.pageSize ? 'more' : 'none', |
|
|
|
tableData: this.data.tableData.concat(res.data.list), |
|
|
|
}) |
|
|
|
|
|
|
|
console.log(this.data.tableData) |
|
|
|
if (this.data.tableData.length == 0) { |
|
|
|
this.setData({ |
|
|
|
loadMoreVisible: false, |
|
|
|
@ -143,11 +146,6 @@ onScrollToLower(e){ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}).catch(err=>{ |
|
|
|
console.log(err); |
|
|
|
this.setData({ |
|
|
|
|