lin
2026-05-18 e3ed35b53e2179a1e328daa8b53a7ece77b7161c
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>
@@ -47,7 +47,7 @@
         <view class="noData" v-else>
            <image src="/static/imgs/noData.png" mode="" style="margin-top: 200upx;"></image>
            <view class="">没有购物车信息</view>
            <view class="noDataBtn" @tap="$util.goSwitch('/pages/cates/cates')">去看看</view>
            <view class="noDataBtn" @tap="$util.goSwitch('/pages/index/index')">去看看</view>
         </view>
      </view>
      <view class="cartsControll" v-if="cartsData.length > 0">
@@ -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 () {