0
点赞
收藏
分享

微信扫一扫

scroll-view的滚动触底事件

问题: bindscrolltolower="nextPage" ,已经加了触底事件了,但是怎么都触发不了

<scroll-view class="list" bindscrolltolower="nextPage" 
            scroll-with-animation>
</scroll-view>

解决:

需要固定一个高度,指定滚动方向 :scroll-y style="height:{{windowHeight-nav_height}}px;"

<scroll-view class="list" bindscrolltolower="nextPage" scroll-y style="height:{{windowHeight-nav_height}}px;"
               wx:if="{{filterList.length>0}}" scroll-with-animation>

 

其他原因:第一个分页数据过少的情况下,也可能因为没有填充满当前高度导致无法触发,这个触底事件。

参考:

scroll-view的滚动触底事件有概率不触发 | 微信开放社区

举报

相关推荐

0 条评论