From 2b9052db0dfe13b6150c3f50c4d3898bc3982b4b Mon Sep 17 00:00:00 2001
From: lisy <linlangsur163@163.com>
Date: 星期四, 27 七月 2023 16:18:56 +0800
Subject: [PATCH] 开始上课的课时详情优化

---
 cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCoupon.js |   24 +++++++++++++-----------
 1 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCoupon.js b/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCoupon.js
index 6c7f68b..7904f52 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCoupon.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCoupon.js
@@ -69,10 +69,10 @@
     var index = layer.open({
         type: 2,
         title: '添加',
-        area: ['800px', '420px'], //宽高
+        area: ['100%', '100%'], //宽高
         fix: false, //不固定
         maxmin: true,
-        content: Feng.ctxPath + '/tCouponManage/tCouponManage_add'
+        content: Feng.ctxPath + '/tCouponManage/coupon_add'
     });
     this.layerIndex = index;
 };
@@ -82,15 +82,17 @@
  * 点击编辑
  */
 TCoupon.openChange = function () {
-    var index = layer.open({
-        type: 2,
-        title: '添加',
-        area: ['800px', '420px'], //宽高
-        fix: false, //不固定
-        maxmin: true,
-        content: Feng.ctxPath + '/tCouponManage/tCouponManage_add'
-    });
-    this.layerIndex = index;
+    if (this.check()){
+        var index = layer.open({
+            type: 2,
+            title: '编辑',
+            area: ['800px', '420px'], //宽高
+            fix: false, //不固定
+            maxmin: true,
+            content: Feng.ctxPath + '/tCouponManage/tCouponManage_add'
+        });
+        this.layerIndex = index;
+    }
 };
 
 

--
Gitblit v1.7.1