1、输入框组件设置 adjust-position="{{false}}"
2、输入框容器fixed
定位,style="bottom: {{bottom}}px"
3、如下
// 监听input获取焦点
onFocus (e) {
let that = this
that.setData({
bottom: e.detail.height
})
},
// 监听input失去焦点
onBlur (e) {
let that = this
that.setData({
bottom: 0
})
},