pages/carts/carts.vue
@@ -1,6 +1,6 @@ <template> <view class="carts"> <view class="c-title"> <view class="c-title" :style="{top:statusBarHeight+ 'px'}"> <text>共{{cartsTotal}}件商品</text> <view class="" @tap="delCarts"> <text>删除</text> @@ -78,6 +78,7 @@ checkAll: false, checkIds: [], checkIdx: [1], statusBarHeight: 0, } }, onShow() { @@ -90,6 +91,9 @@ setTimeout(() => { }, 2000) const windowInfo = uni.getWindowInfo(); this.statusBarHeight = windowInfo.windowTop || windowInfo.safeAreaInsets.top; }, methods: { getCarts () {