用position : fixed;
wxml部分
<view class='add_btn'>
<button class='btn'>
按钮
</button>
</view>
wxss部分
.add_btn{
width: 100%;
position: fixed;
bottom: 30rpx;
}
.btn{
margin-top: 30rpx;
width: 450rpx;
background: #14a1fd;
color: #fff;
border-radius: 70rpx;
}
bottom设置为0 也可以 但是为了用户体验可以设置高一点