From 7504753468ffbd0af41b07de66c0ccebf73680ea Mon Sep 17 00:00:00 2001
From: lisy <linlangsur163@163.com>
Date: 星期一, 14 八月 2023 15:47:20 +0800
Subject: [PATCH] 管理后台:添加优惠券的字段优化

---
 cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCouponInfo.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCouponInfo.js b/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCouponInfo.js
index 01e5dd4..7524448 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCouponInfo.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCouponInfo.js
@@ -349,15 +349,15 @@
     }
     // 兑换方式
     let exchangeMethod = $(':radio[name="exchangeMethod"]:checked').val();
-    if (distributionMethod === '' || distributionMethod === undefined || distributionMethod === null){
+    if (exchangeMethod === '' || exchangeMethod === undefined || exchangeMethod === null){
         return Feng.error('兑换方式不能为空');
     }
-    if (distributionMethod === '1'){
+    if (exchangeMethod === '1'){
         if (requiredPoints === undefined || requiredPoints === '' || requiredPoints === null){
             return Feng.error('所需积分不能为空');
         }
     }
-    if (distributionMethod === '2'){
+    if (exchangeMethod === '2'){
         if (requiredPoints === undefined || requiredPoints === '' || requiredPoints === null){
             return Feng.error('所需积分不能为空');
         }
@@ -365,7 +365,7 @@
             return Feng.error('所需现金不能为空');
         }
     }
-    if (distributionMethod === '3'){
+    if (exchangeMethod === '3'){
         if (requiredCash === undefined || requiredCash === '' || requiredCash === null){
             return Feng.error('所需现金不能为空');
         }

--
Gitblit v1.7.1