|
@@ -43,6 +43,7 @@ Page({
|
|
|
},
|
|
|
// 获取首页信息
|
|
|
initIndexData (pullDownRefresh = false) {
|
|
|
+ var that = this
|
|
|
wx.showLoading({
|
|
|
title: '加载中...',
|
|
|
mask: true
|
|
@@ -52,11 +53,11 @@ Page({
|
|
|
if (pullDownRefresh) {
|
|
|
wx.stopPullDownRefresh()
|
|
|
}
|
|
|
- var response = hoemRes.data.documentVos
|
|
|
+ var response = hoemRes.data.documentVos || []
|
|
|
response.map(item => {
|
|
|
item.birthDay = item.birthday.split(' ')[0]
|
|
|
})
|
|
|
- this.setData({
|
|
|
+ that.setData({
|
|
|
useNumber: hoemRes.data.useNumber,
|
|
|
documentVos: response
|
|
|
})
|