|
@ -17,26 +17,27 @@ Page({ |
|
|
nodata:false, |
|
|
nodata:false, |
|
|
emptyHouseNum:'', |
|
|
emptyHouseNum:'', |
|
|
catesNonIntResiNum:'', |
|
|
catesNonIntResiNum:'', |
|
|
readFlag:'' |
|
|
readFlag:'0', |
|
|
|
|
|
agencyName:'--' |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
// 事件处理函数
|
|
|
// 事件处理函数
|
|
|
onLoad: async function () { |
|
|
onLoad: async function () { |
|
|
this.setData({ |
|
|
|
|
|
statusHeight: app.globalData.deviceInfo.statusHeight, |
|
|
|
|
|
navigationHeight: app.globalData.deviceInfo.navigationHeight, |
|
|
|
|
|
share:app.globalData.share |
|
|
|
|
|
}) |
|
|
|
|
|
await this.getToken() |
|
|
await this.getToken() |
|
|
// await this.getIntelligentMessage()
|
|
|
// await this.getIntelligentMessage()
|
|
|
await this.getStaffbasicinfo() |
|
|
await this.getStaffbasicinfo() |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
statusHeight: app.globalData.deviceInfo.statusHeight, |
|
|
|
|
|
navigationHeight: app.globalData.deviceInfo.navigationHeight, |
|
|
|
|
|
share:app.globalData.share, |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
onShow(){ |
|
|
onShow(){ |
|
|
|
|
|
|
|
|
this.getIntelligentMessage() |
|
|
this.getIntelligentMessage() |
|
|
this.getSituation() |
|
|
this.getSituation() |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
onPullDownRefresh() { |
|
|
onPullDownRefresh() { |
|
|
this.setData({ |
|
|
this.setData({ |
|
@ -151,7 +152,10 @@ onScrollToLower(e){ |
|
|
}, |
|
|
}, |
|
|
getStaffbasicinfo(){ |
|
|
getStaffbasicinfo(){ |
|
|
getStaffbasicinfo().then(res=>{ |
|
|
getStaffbasicinfo().then(res=>{ |
|
|
app.globalData.user = res.data |
|
|
app.globalData.user = res.data; |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
agencyName:res.data.agencyName |
|
|
|
|
|
}) |
|
|
}).catch(err=>{ |
|
|
}).catch(err=>{ |
|
|
console.log(err); |
|
|
console.log(err); |
|
|
wx.redirectTo({ |
|
|
wx.redirectTo({ |
|
|