onPullDownRefresh下拉(异步请求)回弹有空白
代码如下
onPullDownRefresh() {
pregnantRes.hasDeposit(app.globalData.accountId).then(res => {
this.setData({hasDeposit: res.data})
wx.stopPullDownRefresh()
}).catch(res => {
console.log(res.data.reason)
})
}