From 375b05282f887e74152a2baa30bc0dfc9d5f65ea Mon Sep 17 00:00:00 2001
From: lisy <linlangsur163@163.com>
Date: 星期一, 07 八月 2023 16:00:14 +0800
Subject: [PATCH] app端:充值明细的接口bug优化;

---
 cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCouponInfo.js |   59 ++++++++++++++++++++++-------------------------------------
 1 files changed, 22 insertions(+), 37 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 76ed00a..59f4a30 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
@@ -265,44 +265,10 @@
     // 有效期
     var periodOfValidity = $('#periodOfValidity').val();
 
-    if (userType === '1'){
-        // 平台管理员
-        // 兑换方式:积分+现金
-        let exchangeMethod = $(':radio[name="exchangeMethod"]:checked').val();
+    let exchangeMethod = $(':radio[name="exchangeMethod"]:checked').val();
 
-        if (exchangeMethod === 1){
+    var requiredCash = $('#requiredCash').val;
 
-        }
-        if (exchangeMethod === 2){
-            var requiredCash = $('#requiredCash').val;
-
-        }
-        if (exchangeMethod === 3){
-
-        }
-        var goodImg = this.goodsCover;
-        var goodImgs = this.goodsPicArray;
-        // 适用范围 全国+指定城市+指定门店
-        let company = $(':radio[name="company"]:checked').val()
-        if (company === 2){
-
-        }
-        if (company === 3){
-
-        }
-
-        commitAJAX(resultData);
-    }
-    if (userType === '2'){
-        // 城市管理员
-
-
-    }
-
-
-}
-
-function commitAJAX(obj){
 
     //提交信息
     var ajax = new $ax(Feng.ctxPath + "/tCouponManage/commitData", function (data) {
@@ -312,8 +278,27 @@
     }, function (data) {
         Feng.error("添加失败!" + data.responseJSON.message + "!");
     });
-    ajax.set("dataResult", JSON.parse(obj));
+    ajax.set({
+        couponName: couponName,
+        prescription: prescription,
+        illustrate: illustrate,
+        distributionMethod: distributionMethod,
+        requiredPoints: requiredPoints,
+        requiredPoints: requiredPoints,
+        userGroup: userGroup,
+        quantityIssued: quantityIssued,
+        pickUpQuantity: pickUpQuantity,
+        periodOfValidity: periodOfValidity,
+        exchangeMethod: exchangeMethod,
+        goodImg: this.goodsCover,
+        goodImgs: this.goodsPicArray,
+        couponName: $('#requiredCash').val,
+        couponName: couponName,
+        couponName: couponName,
+
+    });
     ajax.start();
+
 }
 
 /**

--
Gitblit v1.7.1