<scroll-view
:style="'height:' + scrollViewHeight + ';'"
uni.getSystemInfo({ success: (resu) => { const query = uni.createSelectorQuery().in(this); query.select(".list-scroll").boundingClientRect(); let iosHeight = '0rpx' if(resu.system.slice(0,3) !== 'iOS'){ iosHeight = '30px' } this.submitWrapHeight = `calc(290rpx - ${iosHeight})` query.exec((res) => { if(this.isQuality){ this.scrollViewHeight = `calc(${resu.windowHeight}px - ${res[0].top}px - 145px + ${iosHeight})` }else{ this.scrollViewHeight = `calc(${resu.windowHeight}px - ${res[0].top}px - 105px + ${iosHeight})` } }); }, fail: (res) => {}, });