1.父组件添加css
.orderDetail {
padding-bottom: 200rpx;
height: calc(100vh - 200rpx);
overflow: scroll;
}
子组件 中 <uni-easyinput></uni-easyinput> 添加属性 :always-embed='true'
pages.json中添加 "disableScroll": true,
{
"path": "myOrder/orderDetail",
"style": {
"navigationBarTitleText": "订单详情",
"enablePullDownRefresh": false,
"disableScroll": true, // ios弹窗遮罩层输入框会滚动添加的属性
"app-plus": {
"bounce": "none"
} // 防止ios端上下拖动
}
},