From 86f37120981159ba1a08c5ad34b03bae0f38f987 Mon Sep 17 00:00:00 2001 From: mixtan <424491071@qq.com> Date: Wed, 23 Jul 2025 15:01:40 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E4=BC=98=E5=8C=96=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E6=96=87=E6=A1=88=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/product-list.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/product-list.vue b/components/product-list.vue index bef9139..2784e26 100644 --- a/components/product-list.vue +++ b/components/product-list.vue @@ -1882,7 +1882,7 @@ export default { addCart2(){ uni.showToast({ icon: 'error', - title: this.$.__("亲~商品没有库存啦!") + title: this.$.__("商品库存不足") }); }, @@ -1893,8 +1893,6 @@ addCart2(){ let step = parseInt(e.currentTarget.dataset.step); let user_cart_quantity = parseInt(e.currentTarget.dataset.num); - console.log(`sku${e.currentTarget.dataset.skuid}`); - let params = { item_id: e.currentTarget.dataset.skuid, cart_quantity: step, @@ -1904,7 +1902,7 @@ addCart2(){ }; if (e.currentTarget.dataset.stock == user_cart_quantity) { - that.$.alert(that.$.__("亲~商品没有库存啦!")); + that.$.alert(that.$.__("商品库存不足")); return; }