2025-01-01
滑到底部,页面会回弹。需要给底部设置空白区域。比如:
<scroll-view scroll-y enable-back-to-top class="scroll-container">
<block wx:for="{{articleNames}}" wx:key="index">
<view
class="list-item"
bindtap="onArticleClick"
data-index="{{index}}"
>
<text>{{index + 1}}. {{item}}</text>
</view>
</block>
<view style="height: 500rpx"></view> <!-- 设置底部空白,方便滚动到底部点击 -->
</scroll-view>
enable-back-to-top属性。可以参考官方的scroll-view知识