<!-- pages/index/index.wxml -->
<view class="content" style="padding-bottom: {{bottomInset}}px;">
<!-- 页面内容 -->
</view>
// javascript
const systemInfo = wx.getSystemInfoSync();
const bottomInset = Math.abs(systemInfo.safeArea.bottom - systemInfo.windowHeight);
console.log('Bottom inset: ', bottomInset);