From e0d373b405297a6b3788c0206040c465bdbcdd55 Mon Sep 17 00:00:00 2001
From: mayf <m13160102112@163.com>
Date: 星期五, 20 九月 2024 16:39:40 +0800
Subject: [PATCH] 修改默认限购数量显示为1的问题

---
 pages/marketing/point-mall/coupon/index.vue |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pages/marketing/point-mall/coupon/index.vue b/pages/marketing/point-mall/coupon/index.vue
index 0962726..f9c55c8 100644
--- a/pages/marketing/point-mall/coupon/index.vue
+++ b/pages/marketing/point-mall/coupon/index.vue
@@ -101,7 +101,8 @@
           {
             text: '上架',
             show: (row) =>
-              row.status === 'inactive' || row.status === 'expired',
+              (row.status === 'inactive' || row.status === 'expired') &&
+              row.couponAmount > 0,
             atClick: async (row) => {
               try {
                 await this.$elBusUtil.confirm('确定要上架吗?')

--
Gitblit v1.9.3