From f0478926f9d3a090d45ea5864ebd41b667c02292 Mon Sep 17 00:00:00 2001 From: nige Date: Wed, 1 Feb 2023 10:18:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=E4=B8=8B=E6=9E=B6?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/cartlist/list.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pages/user/cartlist/list.js b/pages/user/cartlist/list.js index ddd0c1c..5ee79aa 100644 --- a/pages/user/cartlist/list.js +++ b/pages/user/cartlist/list.js @@ -83,11 +83,13 @@ Page({ let index = e.currentTarget.dataset.index, list = this.data.list; if (list[index].product.flag != 1 || list[index].sku.flag != 'on') { - wx.showToast({ - title: '产品已下架', - icon: 'none' - }) - return; + if (!this.data.manageFlag) { + wx.showToast({ + title: '产品已下架', + icon: 'none' + }) + return; + } } list[index].checked = list[index].checked ? false : true; this.setData({