onPullDownRefresh下拉(异步请求)回弹有空白
发布于 5 年前 作者 lima 10872 次浏览 来自 问答

代码如下 

onPullDownRefresh() {

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

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

            wx.stopPullDownRefresh()

        }).catch(res => {

            console.log(res.data.reason)

        })

    }

2 回复

配置什么,

"enablePullDownRefresh": true

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

当前页的json需要配置一下

回到顶部