在mpvue中,onPullDownRefresh直接能用
 1、首先要保证配置
  {path: 'pages/user',config: {navigationBarTitleText: '个人中心',navigationBarBackgroundColor: theme['@primary-color'],enablePullDownRefresh: true}}
2、和methods同层级写
 onPullDownRefresh() {wx.showNavigationBarLoading()console.log('pull')wx.stopPullDownRefresh()
}