From 3f46bf31e8b000f7dc5ca57006d3181ea6e81d6c Mon Sep 17 00:00:00 2001 From: mixtan <424491071@qq.com> Date: Mon, 11 Aug 2025 11:04:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=9E=E7=8E=B0=E8=A3=85=E4=BF=AE?= =?UTF-8?q?=E7=A7=92=E6=9D=80=E6=B4=BB=E5=8A=A8=E8=B4=AD=E7=89=A9=E8=BD=A6?= =?UTF-8?q?=EF=BC=9B=E8=81=94=E8=B0=83=E7=A7=92=E6=9D=80=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E5=8A=A0=E8=B4=AD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/themes/diy.vue | 4 +- pagesub/diy-page/diy-page.vue | 119 +++++++++++++++++++++++++++++----- 2 files changed, 103 insertions(+), 20 deletions(-) diff --git a/components/themes/diy.vue b/components/themes/diy.vue index 2366eff..10aae37 100644 --- a/components/themes/diy.vue +++ b/components/themes/diy.vue @@ -1051,12 +1051,12 @@ export default { ]), getGoodsStatus (item){ - return item?.product_quantity == 0 || item?.item_quantity == 0 || typeof item.product_quantity == 'undefined' || typeof item.item_quantity == 'undefined' + return item?.product_quantity == 0 || item?.item_quantity == 0 }, async addCart(item) { - if (item?.product_quantity == 0 || item?.item_quantity == 0 || typeof item.product_quantity == 'undefined' || typeof item.item_quantity == 'undefined') { + if (item?.product_quantity == 0 || item?.item_quantity == 0) { uni.showToast({ icon: 'error', title: this.$.__("商品库存不足") diff --git a/pagesub/diy-page/diy-page.vue b/pagesub/diy-page/diy-page.vue index 06d4eef..b995898 100644 --- a/pagesub/diy-page/diy-page.vue +++ b/pagesub/diy-page/diy-page.vue @@ -7,26 +7,20 @@ + + + + + + {{ goodsNum }} + + - - - + + +