From cec511e4a14931ed67d09292fbbb01fe5126e5cf Mon Sep 17 00:00:00 2001 From: lisy <linlangsur163@163.com> Date: 星期一, 07 八月 2023 18:59:28 +0800 Subject: [PATCH] app端:优惠券的规则字段处理 --- cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCouponInfo.js | 48 +++++++++++++++++++++++++----------------------- 1 files changed, 25 insertions(+), 23 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 59f4a30..66943ad 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 @@ -243,10 +243,8 @@ couponInfoDlg.addSubmit = function () { var resultData = {}; - // 用户权限 - var userType = $('#userType').val(); // 优惠券名称 - var couponName = $('#name').val; + var couponName = $('#name').val(); // 优惠券类型 var prescription = $('#prescription').val(); // 说明 @@ -267,8 +265,9 @@ let exchangeMethod = $(':radio[name="exchangeMethod"]:checked').val(); - var requiredCash = $('#requiredCash').val; + var requiredCash = $('#requiredCash').val(); + console.log('11111111') //提交信息 var ajax = new $ax(Feng.ctxPath + "/tCouponManage/commitData", function (data) { @@ -278,25 +277,28 @@ }, function (data) { Feng.error("添加失败!" + data.responseJSON.message + "!"); }); - 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.set("userType",1); + ajax.set("cityManagerId",1); + ajax.set("couponName",couponName); + ajax.set("prescription",prescription); + ajax.set("condition",$('#conditionalAmount').val()); + ajax.set("subtraction",$('#deductionAmount').val()); + ajax.set("discount",$('#voucherAmount').val()); + ajax.set("experience",$('#experienceName').val()); + ajax.set("illustrate",illustrate); + ajax.set("distributionMethod",distributionMethod); + ajax.set("requiredPoints",requiredPoints); + ajax.set("requiredCash",requiredCash); + ajax.set("userGroup",userGroup); + ajax.set("quantityIssued",quantityIssued); + ajax.set("pickUpQuantity",pickUpQuantity); + ajax.set("periodOfValidity",periodOfValidity); + ajax.set("exchangeMethod",exchangeMethod); + ajax.set("goodImg",this.goodsCover); + ajax.set("goodImgs",this.goodsPicArray); + ajax.set("company",$('#company').val()); + ajax.set("cityIds",[]); + ajax.set("storeIds",[]); ajax.start(); } -- Gitblit v1.7.1