This commit is contained in:
woody 2025-10-30 14:04:05 +08:00
commit f9ae68daea
1 changed files with 13 additions and 8 deletions

View File

@ -201,6 +201,8 @@
mode="bottom"
border-radius="30"
:closeable="true"
:overlay="false"
:zIndex="200"
@close="showCartDrawer = false"
>
<view class="cart-drawer">
@ -248,7 +250,7 @@
</view>
</view>
<view class="cart-item-delete" @click="removeFromCart(index)">
<text class="cart-delete-icon">删除</text>
<u-icon name="trash" size="22" color="#BFBFBF"></u-icon>
</view>
</view>
</view>
@ -452,9 +454,12 @@ export default {
icon: 'success',
duration: 1500,
})
if (this.cartTotalCount === 0) {
this.showCartDrawer = false
}
}
},
zIndex: 10076, //
zIndex: 99999999, //
})
},
@ -1440,14 +1445,14 @@ export default {
}
.cart-item-delete {
padding: 12rpx 24rpx;
background: rgba(239, 68, 68, 0.1);
border-radius: 8rpx;
transition: all 0.2s ease;
// padding: 12rpx 24rpx;
// background: rgba(239, 68, 68, 0.1);
// border-radius: 8rpx;
// transition: all 0.2s ease;
.cart-delete-icon {
font-size: 26rpx;
color: #ef4444;
font-size: 22rpx;
// color: #ef4444;
font-weight: 500;
}