From 0ef19f02282d50e507bf26d71d5ff6f7ce491dba Mon Sep 17 00:00:00 2001 From: Default User Date: Fri, 23 Jan 2026 10:49:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=84=E6=A0=BC=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=BC=B9=E7=AA=97=EF=BC=9A=E5=B0=86=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E7=A7=BB=E5=88=B0=E5=BA=95=E9=83=A8=E5=B9=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods-update/goods-update.js | 13 ++++++++++++- pages/goods-update/goods-update.wxml | 14 +++++++------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/pages/goods-update/goods-update.js b/pages/goods-update/goods-update.js index 9219da6..1c48295 100644 --- a/pages/goods-update/goods-update.js +++ b/pages/goods-update/goods-update.js @@ -1771,7 +1771,15 @@ Page({ return; } - const goodsDetail = this.data.goodsDetail; + // 显示确认提示,防止误点 + wx.showModal({ + title: '确认下架', + content: `确定要下架选中的${selectedIndices.length}个规格吗?`, + confirmText: '确定', + cancelText: '取消', + success: (res) => { + if (res.confirm) { + const goodsDetail = this.data.goodsDetail; const productId = goodsDetail.productId || goodsDetail.id; const weightQuantityData = goodsDetail.weightQuantityData || []; @@ -1906,6 +1914,9 @@ Page({ duration: 2000 }); }); + } + } + }); }, // 编辑输入处理 diff --git a/pages/goods-update/goods-update.wxml b/pages/goods-update/goods-update.wxml index 74665df..064878f 100644 --- a/pages/goods-update/goods-update.wxml +++ b/pages/goods-update/goods-update.wxml @@ -504,12 +504,6 @@ - - - 取消 - 确定 - - 请选择要下架的规格 @@ -517,7 +511,7 @@ + + + + 取消 + 确定 + \ No newline at end of file