<view class="div-section">
<u-input />
</view>
const that = this
let view = uni.createSelectorQuery().select(".div-section")
view.boundingClientRect(function(data) {
//获取固定尾部的高度 = data.height
that.style.footViewHeight = data.height
}).exec();
<view class="div-section">
<u-input />
</view>
const that = this
let view = uni.createSelectorQuery().select(".div-section")
view.boundingClientRect(function(data) {
//获取固定尾部的高度 = data.height
that.style.footViewHeight = data.height
}).exec();