微信小程序onReachBottom不触发

作者: wechat 发布时间: 2021-01-26 浏览: 2575 次 编辑

当我们列表不满一屏幕时候,无法触发onReachBottom方法,我们可以这么操作:height: 100vh;

.view-container {
  display: -webkit-flex;
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  height: 100vh;
}

将中间撑满,使用height: 100vh;