如果你想在原生 tabbar 上方悬浮一个菜单,之前写 bottom:0。这样的写法编译到 h5 后,这个菜单会和 tabbar 重叠,位于屏幕底部。
原码:
<view style="position: fixed;bottom:0;left: 0;background-color: #007AFF;
right: 0;height: 100rpx;line-height: 106rpx;z-index: 99;">
<view class="d-flex j-sa a-center">
<label class="radio">
<radio @tap="checkall" :checked="checkedall" color="#ee5f0d" />
<text>全选</text>
</label>
<text>合计:{
{ totalmoney }}yuan</text>
<text @tap="topay">结算</text>
</view>
</view>
uniapp增加了两个属性:
--window