原因:this.$uGetRect('.u-dropdown__menu')在浙政钉平台上运行真机无效。
修改:在u-dropdown文件上修改
let px = 80 * (uni.getSystemInfoSync().windowWidth / 750);
this.contentHeight = this.contentHeight == 0 ? windowHeight - px : this.contentHeight;
原因:this.$uGetRect('.u-dropdown__menu')在浙政钉平台上运行真机无效。
修改:在u-dropdown文件上修改
let px = 80 * (uni.getSystemInfoSync().windowWidth / 750);
this.contentHeight = this.contentHeight == 0 ? windowHeight - px : this.contentHeight;