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 }}
+
+
-
-
-
+
+
+