绿满眶商城微信小程序-uniapp
xiangpei
2025-05-30 e15dbdbc396f61a645c8d8a504b45476f1fcea08
pages/tabbar/cart/cartList.vue
@@ -1,5 +1,5 @@
<template>
  <div class="wrapper">
  <view class="wrapper">
    <u-navbar :is-back="false" title="购物车">
      <div slot="right">
        <div class="light-color edit" @click="isEdit = !isEdit">{{ !isEdit ? '编辑' : '完成'}}</div>
@@ -175,14 +175,26 @@
      </view>
    </div>
    <u-toast ref="uToast" />
  </div>
   <custom-tabbar bgColor="#ffffff" selected="buyCar"></custom-tabbar>
  </view>
</template>
<script>
import UNavbar from '@/uview-components/uview-ui/components/u-navbar/u-navbar.vue';
import UCheckboxGroup from '@/uview-components/uview-ui/components/u-checkbox-group/u-checkbox-group.vue';
import UCheckbox from '@/uview-components/uview-ui/components/u-checkbox/u-checkbox.vue';
import USwipeAction from '@/uview-components/uview-ui/components/u-swipe-action/u-swipe-action.vue';
import UImage from '@/uview-components/uview-ui/components/u-image/u-image.vue';
import UIcon from '@/uview-components/uview-ui/components/u-icon/u-icon.vue';
import UPopup from '@/uview-components/uview-ui/components/u-popup/u-popup.vue';
import UCountDown from '@/uview-components/uview-ui/components/u-count-down/u-count-down.vue';
import UModal from '@/uview-components/uview-ui/components/u-modal/u-modal.vue';
import UToast from '@/uview-components/uview-ui/components/u-toast/u-toast.vue';
import * as API_Trade from "@/api/trade";
import { debounce } from "@/utils/tools.js";
import uniNumberBox from '@/components/uni-number-box'
// import uniNumberBox from '@/components/uni-number-box'
export default {
  components:{uniNumberBox}, // 数量加减组件
  components:{UNavbar,UCheckboxGroup,UCheckbox,USwipeAction,UImage,UIcon,UPopup,UCountDown,UModal,UToast}, // 数量加减组件
  data() {
    return {
      loading:false,
@@ -623,7 +635,7 @@
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  height: calc(100vh - 50px);
  z-index: 99;
  padding-bottom: var(--window-bottom);
  display: flex;
@@ -688,7 +700,7 @@
}
.wrapper {
  height: 100%;
  height: calc(100% - 50px);;
}
/deep/ .u-col {
@@ -774,7 +786,7 @@
  justify-content: space-between;
  position: fixed;
  // #ifdef APP-PLUS || MP-WEIXIN
  bottom: 0;
  bottom: 50px;
  // #endif
  // #ifdef H5
  bottom: var(--window-bottom);