微信小程序-下拉事件(onPullDownRefresh)不触发

时间:2021-07-10 20:02:12

1、app.json 没有配置

"window": {
/* 其他配置信息 */
"enablePullDownRefresh":true
}

2、scroll-view 改为 wiew

scroll-view

<!--加载中  -->
<view class='loading-container' wx:if="{{LOADING}}">
<text class='loading-title'>TITLE</text>
</view> <scroll-view scroll-y scroll-with-animation class="container" wx:else>
<!--正文 -->
<view class='header_text'>
</view>
</scroll-view>

view

<!--加载中  -->
<view class='loading-container' wx:if="{{LOADING}}">
<text class='loading-title'>TITLE</text>
</view> <view class="container" wx:else>
<!--正文 -->
<view class='header_text'>
</view>
</view>