Closed djspys1 closed 5 years ago
在全局配置文件中使用"enablePullDownRefresh":true,时,会引发一些bug, 比如在我的页面、购物车页面等地方,在模拟器时没有问题,但是在真机调试时,下拉后不会反弹回去,会在顶部留一段空白
"enablePullDownRefresh":true,
解决办法有二个,一个是取消全局的下拉刷新,在首页需要的地方进行手动配置 第二个是在每个页面配置如下代码:
onPullDownRefresh: function() { wx.stopPullDownRefresh() }
或者直接在json文件中加入 "enablePullDownRefresh": false
"enablePullDownRefresh": false
全局 enablePullDownRefresh 已改为页面 enablePullDownRefresh,感谢分享!
感谢分享! enablePullDownRefresh 从全局改为 页面定义。
在全局配置文件中使用
"enablePullDownRefresh":true,
时,会引发一些bug, 比如在我的页面、购物车页面等地方,在模拟器时没有问题,但是在真机调试时,下拉后不会反弹回去,会在顶部留一段空白解决办法有二个,一个是取消全局的下拉刷新,在首页需要的地方进行手动配置 第二个是在每个页面配置如下代码:
或者直接在json文件中加入
"enablePullDownRefresh": false