From db7fa6a91b9534ac90e219b6f554c54c43c83a5a Mon Sep 17 00:00:00 2001
From: liujie <liujie>
Date: 星期三, 16 八月 2023 09:28:15 +0800
Subject: [PATCH] update

---
 management/guns-admin/src/main/webapp/static/modular/system/tCoupon/tCoupon.js |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/management/guns-admin/src/main/webapp/static/modular/system/tCoupon/tCoupon.js b/management/guns-admin/src/main/webapp/static/modular/system/tCoupon/tCoupon.js
index 43c1631..3d48823 100644
--- a/management/guns-admin/src/main/webapp/static/modular/system/tCoupon/tCoupon.js
+++ b/management/guns-admin/src/main/webapp/static/modular/system/tCoupon/tCoupon.js
@@ -104,7 +104,7 @@
     var index = layer.open({
         type: 2,
         title: '添加',
-        area: ['800px', '420px'], //宽高
+        area: ['100%', '100%'], //宽高
         fix: false, //不固定
         maxmin: true,
         content: Feng.ctxPath + '/tCoupon/tCoupon_add'
@@ -162,6 +162,28 @@
 };
 
 /**
+ * 选择新人券或者活动券时
+ */
+TCoupon.changeCouponType = function (id,couponState) {
+
+    //监听下拉菜单的变动操作
+    $("#couponType").change(function(){
+        // 如果选择活动券,将赠送数量隐藏
+        if(this.value == 1){
+            $("#changeCouponSendQuantity").hide()
+        }
+        if(this.value == ""){
+            $("#changeCouponSendQuantity").hide()
+        }
+        if(this.value == 2){
+            $("#changeCouponSendQuantity").show()
+        }
+
+    })
+
+};
+
+/**
  * 查询列表
  */
 TCoupon.search = function () {

--
Gitblit v1.7.1