From f4744cf0f465478f06a9ebbc2e4966bf096a06e2 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期四, 03 四月 2025 18:18:13 +0800
Subject: [PATCH] 惠民卡代码

---
 cloud-server-management/src/main/webapp/static/modular/system/worldCup/worldCup_info.js |   36 ++++++++++++++----------------------
 1 files changed, 14 insertions(+), 22 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/worldCup/worldCup_info.js b/cloud-server-management/src/main/webapp/static/modular/system/worldCup/worldCup_info.js
index 038ec1a..95dcffd 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/worldCup/worldCup_info.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/worldCup/worldCup_info.js
@@ -46,9 +46,6 @@
     let coverImg = $('#coverImg').val();
     let homeBackdropImg = $('#homeBackdropImg').val();
     let content = editor.getContent();
-    if("" == registrationClosingTime){
-        registrationClosingTime = null;
-    }
     if(null == name || '' == name){
         Feng.error("请填写有效的比赛名称");
         return
@@ -95,16 +92,13 @@
         return
     }
     if(null == basePeople || '' == basePeople){
-        Feng.error("请填写有效的基础报名人数");
-        return
+        basePeople = 0;
     }
     if(null == participationIntegral || '' == participationIntegral){
-        Feng.error("请填写有效的参赛可获积分");
-        return
+        participationIntegral = 0;
     }
     if(null == winIntegral || '' == winIntegral){
-        Feng.error("请填写有效的胜场可获积分");
-        return
+        winIntegral = 0;
     }
     if(null == address || '' == address){
         Feng.error("请填写有效的比赛地点");
@@ -146,7 +140,6 @@
         'name': name,
         'startTime': new Date(startTime + " 00:00:00"),
         'endTime': new Date(endTime + " 23:59:59"),
-        'registrationClosingTime': (null != registrationClosingTime && '' != registrationClosingTime ? new Date(registrationClosingTime + " 23:59:59") : null),
         'startAge': startAge,
         'endAge': endAge,
         'gender': gender,
@@ -167,6 +160,9 @@
         'intro': intro,
         'content': content,
         'stores': JSON.stringify(WorldCupInfo.stores)
+    }
+    if(null != registrationClosingTime && '' != registrationClosingTime){
+        data.registrationClosingTime = new Date(registrationClosingTime + " 23:59:59");
     }
 
     //提交信息
@@ -212,9 +208,6 @@
     let coverImg = $('#coverImg').val();
     let homeBackdropImg = $('#homeBackdropImg').val();
     let content = editor.getContent();
-    if("" == registrationClosingTime){
-        registrationClosingTime = null;
-    }
     if(null == name || '' == name){
         Feng.error("请填写有效的比赛名称");
         return
@@ -261,16 +254,13 @@
         return
     }
     if(null == basePeople || '' == basePeople){
-        Feng.error("请填写有效的基础报名人数");
-        return
+        basePeople = 0;
     }
     if(null == participationIntegral || '' == participationIntegral){
-        Feng.error("请填写有效的参赛可获积分");
-        return
+        participationIntegral = 0;
     }
     if(null == winIntegral || '' == winIntegral){
-        Feng.error("请填写有效的胜场可获积分");
-        return
+        winIntegral = 0;
     }
     if(null == address || '' == address){
         Feng.error("请填写有效的比赛地点");
@@ -313,7 +303,6 @@
         'name': name,
         'startTime': new Date(startTime + " 00:00:00"),
         'endTime': new Date(endTime + " 23:59:59"),
-        'registrationClosingTime': (null != registrationClosingTime && '' != registrationClosingTime ? new Date(registrationClosingTime + " 23:59:59") : null),
         'startAge': startAge,
         'endAge': endAge,
         'gender': gender,
@@ -334,6 +323,9 @@
         'intro': intro,
         'content': content,
         'stores': JSON.stringify(WorldCupInfo.stores)
+    }
+    if(null != registrationClosingTime && '' != registrationClosingTime){
+        data.registrationClosingTime = new Date(registrationClosingTime + " 23:59:59");
     }
 
     //提交信息
@@ -408,10 +400,10 @@
                 $('.cash').hide();
             }
             if(v == 2){
-                $('.classHour').hide();
+                $('.paiCoin').hide();
             }
             if(v == 3){
-                $('.paiCoin').hide();
+                $('.classHour').hide();
             }
         }
 

--
Gitblit v1.7.1