需要在对应的json文件或者app.json下面加上

enablePullDownRefresh:true

如果看不见加载动画,在app.json下面加上

backgroundTextStyle: 'dark',

下拉刷新需要在页面上执行,而不是组件

onPullDownRefresh(){
      this.getWeather();
      wx.stopPullDownRefresh();
}

 

posted on 2018-12-06 19:24  chenlw101  阅读(756)  评论(0编辑  收藏  举报