1、swiper-item的高度只能是在onload的时候改变,在运行中是改变不了的
2、padding和margin使用不了变量作为它的值
3、uni-app对于scroll-view的某一个view是否出现在屏幕上,只是记录这个view的最开始的位置,view的位置改变之后,它不会实时更新。
observer = uni.createIntersectionObserver(this);
observer.relativeTo('.scroll-view').observe('.listrowview3', (res) => {
if (res.intersectionRatio > 0 ) {
this.appear = true;
// console.log("出现")
} else if (!res.intersectionRatio > 0 && this.appear) {
this.appear = false;
// console.log("隐藏")
}
})