<import src="../movie/movie-template.wxml" />
<template name="movieGridTemplate">
<scroll-view class="grid-container" srcoll-y="true" bindscrolltolower="lower" bindscroll="scrollFunc">
<block wx:for="{{movies}}" wx:for-item="movie" wx:key="i">
<view class="single-view-container">
<template data="{{...movie}}" is="movieTemplate" />
</view>
</block>
</scroll-view>
</template>
lower(event) {
console.log("加载更多");
},
scrollFunc() {
console.log("正在滑动");
},
两个方法都没触发 这是为啥 高度也已经设置了
4年同步微信官方迭代,累计20000+人学习, 比微信官方更火爆!
了解课程