不兼容机型
代码片断,请问一下有没有什么办法可以解决呢
getModuleSection() {
onst top = this.getFixedTop();
const bottom = this.getFixedBottom();
const that = this;
console.log('createIntersectionObserver--before', `.list-start-${this.data.moduleId}`);
console.log('createIntersectionObserver--before-===', `.list-start-${this.data.moduleId}`, top, bottom);
console.log('createIntersectionObserver--before--toViewport', this.createIntersectionObserver().relativeToViewport({ top, bottom }));
this.createIntersectionObserver().relativeToViewport({ top, bottom }).observe(`.list-start-${this.data.moduleId}`, (res) => {
console.log('createIntersectionObserver', res, `.list-start-${this.data.moduleId}`);
if (that.data.isFixed && res.intersectionRatio <= 0) {
that.setData({
isFixed: false,
});
this.triggerEvent('changeFixed', false);
}
if (!that.data.isFixed && res.intersectionRatio > 0) {
that.setData({
isFixed: true,
});
this.triggerEvent('changeFixed', true);
}
});
},
你好,麻烦在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,麻烦提供一下微信号,时间点