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

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>
posted @ 2018-09-04 16:36  温柔的悬念。  阅读(3241)  评论(0编辑  收藏  举报