效果图:

1.html写上动态padding-bottom
<view class="button-wrap" :style="'padding-bottom:'+bottomPadding+'rpx'">
<view class="com-btn cencel-btn">
取消
</view>
<view class="com-btn confirm-btn " @click='onConfirmDlg'>
确认
</view>
</view>
2.获取设备信息
const res = await uni.getSystemInfo({})
this.bottomPadding = (res.screenHeight - res.safeArea.bottom) * 2 || 30









![【算法每日一练]-动态规划 (保姆级教程 篇15) #纸带 #围栏木桩 #四柱河内塔](https://img-blog.csdnimg.cn/direct/1cea3486216242abb2b62aff231340d4.png)








