enablePullDownRefresh 手指松后页面并不会滑到顶

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

enablePullDownRefresh 手指松后页面处于这种情况,必须再手动往上划才能到顶。。

这个就是这样吗?还是需要怎么设置?

7 回复
xuefang
xuefang1 楼6 年前

  onPullDownRefresh:function(){

    wx.stopPullDownRefresh();

  }

改成这样只会,在开发工具上是没问题了。。

但是手机上还是之前的老样子。真机是iPhone6

xiuying55
xiuying552 楼6 年前

我没有这种情况。 你看看是不是有两个onPullDownRefresh

lchang
lchang3 楼6 年前

非常感谢你的回答。。我之前写错方法了。我调用的是onReachBottom()…

jun57
jun574 楼6 年前

onReachBottom里吗?

xieyang
xieyang5 楼6 年前

onPullDownRefresh内数据刷新加载完毕后调用

leiwan
leiwan6 楼6 年前

在哪里调用这个啊?

ming71
ming717 楼5 年前

加载完毕调用wx.stopPullDownRefresh()