Commit 5513af5c by 高淑倩

modify: 添加条件判断

parent f5abf9f7
......@@ -71,7 +71,7 @@ wxService.page({
if (result == 0) {
wx.hideLoading()
this.setData({
integralNum: data.point
integralNum: data && data.point || 0
})
}
})
......@@ -86,7 +86,7 @@ wxService.page({
if (result == 0) {
wx.hideLoading()
this.setData({
couponNum: data[1] || 0
couponNum: data && data[1] || 0
})
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment