小程序swiper组件默认高度150px,并且如果子元素过高,swiper不会自适应高度
律师小程序开发解决方案一: (总体来说不够完美,适合满屏滑动)
如果不是满屏的状态,用scroll-view IOS滑动兼容性不好,在IOS会有无法滑动的情况
style="height:{ {height}}px"
bindchange="change"
current-item-id="{ {docid}}"
duration="100"
>
wx:for="{ {title}}"
wx:key="index"
item-id="{ {item.id}}"
>
data-id="{ {item.id}}"
style='height:100%;'
scroll-y
bindscrolltolower="scrolltolower"
data-left="51"
scroll-top="{ {top}}"
bindscroll="scroll"
>
加载中...
适应场景:
scroll-view
适合这种满