From 12e9108e6a410ca31b3706726c121840a62e5dff Mon Sep 17 00:00:00 2001
From: lisy <linlangsur163@163.com>
Date: 星期三, 02 八月 2023 18:37:41 +0800
Subject: [PATCH] 修复了开始上课的首页的课程列表中的数据bug

---
 cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCouponInfo.js |   74 +++++++++++++++++++++---------------
 1 files changed, 43 insertions(+), 31 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 bbf243d..7d2b80e 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
@@ -42,22 +42,6 @@
     parent.layer.close(window.parent.TCoupon.layerIndex);
 }
 
-function ajax(serverCouponId, value, remark) {
-    var ajax = new $ax(Feng.ctxPath + "/couponServer/examine", function (data) {
-        Feng.success("审核成功!");
-        window.parent.TCoupon.table.refresh();
-        couponInfoDlg.close();
-    }, function (data) {
-        Feng.error("审核失败!" + data.responseJSON.message + "!");
-    });
-    ajax.setData({
-        couponServerId: serverCouponId,
-        state: value,
-        remark: remark
-    });
-    ajax.start();
-}
-
 
 /**
  * 兑换方式1
@@ -254,22 +238,29 @@
 }
 
 /**
- * 关闭此对话框
+ * 提交
  */
-couponInfoDlg.addSubmitCoupon = function () {
-    var value = $('input:radio:checked').val();
-    let couponServerId = $("#serverCouponId").val();
-    let remark = $('#detail').val()
-    if (value == 1) {
-        //提交信息
-        ajax(couponServerId, value, remark)
-    } else {
-        if (!remark) {
-            Feng.error("请输入拒绝理由!");
-            return;
-        }
-        ajax(couponServerId, value, remark)
+couponInfoDlg.addSubmit = function () {
+    var userType = $('#userType').val();
+    var prescription = $('#prescription').val();
+    var illustrate = $('#illustrate').val();
+    var distributionMethod = $('#distributionMethod').val();
+    var prescription = $('#prescription').val();
+    if (userType === '1'){
+
     }
+    var couponName = $('#name').val;
+    var couponName = $('#name').val;
+    var couponName = $('#name').val;
+    var couponName = $('#name').val;
+    var couponName = $('#name').val;
+    var couponName = $('#name').val;
+    var couponName = $('#name').val;
+    var couponName = $('#name').val;
+    var couponName = $('#name').val;
+    var couponName = $('#name').val;
+
+
 }
 
 /**
@@ -302,5 +293,26 @@
 
 $(function () {
     getProvince(null);
-
+    radio1();
+    var userType = $('#userType').val();
+    if (userType === '1'){
+        // 兑换方式
+        $('#exchangeType').show();
+        $('#needAmount').show();
+        $('#needIntegral').show();
+        // 图片
+        $('#app').show();
+        $('#app1').show();
+        // 适用范围
+        $('#belongsCon').show();
+        $('#belongsNationwide').show();
+        $('#belongsCity').show();
+        $('#belongsStore').show();
+    }
+    if (userType === '2'){
+        $('#needIntegral').show();
+        $('#belongsCon').show();
+        $('#belongsStore').show();
+        $('#storeSelect').show();
+    }
 });

--
Gitblit v1.7.1