小程序上拉刷新默认动画配置

512 阅读1分钟

开发时小程序上拉刷新的默认动画有可能无法展现 可以配置相关的颜色

完整配置

"enablePullDownRefresh": true,
"backgroundColor": "#fff",
"backgroundTextStyle": "dark"
 onPullDownRefresh: function () {
    wx.showNavigationBarLoading() //在标题栏中显示加载
    this.getTime();
},
wx.hideNavigationBarLoading() //完成停止加载
wx.stopPullDownRefresh() //停止下拉刷新