From eaf23e23812409841ab256118996b92ed1d4cae0 Mon Sep 17 00:00:00 2001 From: woody Date: Thu, 30 Oct 2025 14:16:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(hiList):=20=E4=B8=B4=E6=97=B6=E8=B4=AD?= =?UTF-8?q?=E7=89=A9=E8=BD=A6=E4=BA=A4=E4=BA=92=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/shareArea/hiList.vue | 41 +++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/pages/shareArea/hiList.vue b/pages/shareArea/hiList.vue index 79cffb5..20258e9 100644 --- a/pages/shareArea/hiList.vue +++ b/pages/shareArea/hiList.vue @@ -196,13 +196,11 @@ @@ -443,24 +441,25 @@ export default { // 从购物车删除商品 removeFromCart(index) { - uni.showModal({ - title: '提示', - content: '确定要删除该商品吗?', - success: res => { - if (res.confirm) { - this.cartData[this.activeTab].splice(index, 1) - uni.showToast({ - title: '删除成功', - icon: 'success', - duration: 1500, - }) - if (this.cartTotalCount === 0) { - this.showCartDrawer = false - } - } - }, - zIndex: 99999999, // 确保层级高于抽屉 - }) + this.cartData[this.activeTab].splice(index, 1) + if (this.cartTotalCount === 0) { + this.showCartDrawer = false + } + // uni.showModal({ + // title: '提示', + // content: '确定要删除该商品吗?', + // success: res => { + // if (res.confirm) { + // this.cartData[this.activeTab].splice(index, 1) + // uni.showToast({ + // title: '删除成功', + // icon: 'success', + // duration: 1500, + // }) + // } + // }, + // zIndex: 99999999, // 确保层级高于抽屉 + // }) }, // 切换购物车抽屉