onPullDownRefresh下拉(异步请求)回弹有空白

发布于 7 年前作者 lima11037 次浏览最后编辑 7 年前来自 ask

代码如下 

onPullDownRefresh() {

        pregnantRes.hasDeposit(app.globalData.accountId).then(res => {

            this.setData({hasDeposit: res.data})

            wx.stopPullDownRefresh()

        }).catch(res => {

            console.log(res.data.reason)

        })

    }

2 回复
junqian
junqian1 楼6 年前

配置什么,

"enablePullDownRefresh": true

这个我加了的 我能触发这个方法,但是回弹的效果很差

jing65
jing652 楼5 年前

当前页的json需要配置一下