m0_37538027
m0_37538027
采纳率0%
2017-02-15 13:33 阅读 10.3k

微信小程序scroll-view bindscrolltolower事件不触发

微信小程序scroll-view bindscrolltolower事件不触发

<view>
        <scroll-view hidden="{{m_hidden}}" style="height:500px" scroll-y="true"  bindscrolltolower="loadMore" wx:for="{{month_list}}" wx:for-index="idx" wx:for-item="holidayAll">
                        <view class="month">
                                <image src=" https://calendar.8geek.com/Public/Mapi/imgs/month/{{monthImg}}.png"  animation="{{animationData_month}}"></image>
                        </view>
                        <view class="solid f_solid"  animation="{{animationData_sliod}}"></view>
                        <view class="week">
                                <view>一</view>
                                <view>二</view>
                                <view>三</view>
                                <view>四</view>
                                <view>五</view>
                                <view>六</view>
                                <view>日</view>
                        </view>
                        <view class="day">
                                <view wx:for="{{holidayAll}}" wx:for-index="idx" wx:for-item="holidayAll_1" class=" rili_box  ripple {{day_showName}}"   bindtap="day_showThis">
                                        <view>{{idx+1}}</view>
                                        <view>{{holidayAll_1.lunarday}}</view>
                                </view>
                        </view>
                </scroll-view>
        </view>

页面其他元素都hidden了 , bindscrolltolower="loadMor" 还是触发不了...求解啊

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • fight_in_dl 战在春秋 2017-02-15 22:09

    高度500px是否不合适?

    可以用如下代码获取页面高度存到winH中。

         wx.getSystemInfo({
        success: ( res ) => { // 用这种方法调用,this指向Page
            this.setData({
                winH: res.windowHeight
            });
        }
    });
    

    然后

         <scroll-view …(省略其它属性)... style="height: {{winH}}px;">
    
    点赞 评论 复制链接分享

相关推荐