实现步骤:

打开项目根目录下的app.json文件,然后给 window 对象新添加一个 "enablePullDownRefresh":true 属性,开启所有页面的下拉刷新功能,然后将 backgroundTextStyle 属性设置为 dark(将下拉 loading的样式该为drak),如下代码:

   "window":{
"backgroundTextStyle":"dark",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "首页",
"navigationBarTextStyle":"black",
"enablePullDownRefresh":true
},

效果图:

 

微信小程序下拉刷新_下拉刷新