From 7e7f901b2172281dc294dfbc67e6ad00625f09f4 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期一, 04 三月 2024 10:11:21 +0800
Subject: [PATCH] 合并代码

---
 cloud-server-management/src/main/webapp/WEB-INF/view/system/tCompetitionAudit/TCompetition_edit.html |   29 ++++++++++++++++++++++++++---
 1 files changed, 26 insertions(+), 3 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/WEB-INF/view/system/tCompetitionAudit/TCompetition_edit.html b/cloud-server-management/src/main/webapp/WEB-INF/view/system/tCompetitionAudit/TCompetition_edit.html
index d23468f..d7566ff 100644
--- a/cloud-server-management/src/main/webapp/WEB-INF/view/system/tCompetitionAudit/TCompetition_edit.html
+++ b/cloud-server-management/src/main/webapp/WEB-INF/view/system/tCompetitionAudit/TCompetition_edit.html
@@ -225,17 +225,40 @@
             }
         }
 
-        if($("#q1").val()>0 && $("#type").val()==2){
+        if(Number($("#q1").val())>0){
             $("#payType1").show();
             $("input[id='t1']").attr("checked", "checked")
+        }else{
+            console.log("看看现金")
+            console.log($("#q1").val());
+            $("#payType1").hide();
+            var checkbox = document.getElementById("t1");
+            // 取消选中
+            checkbox.checked = false;
         }
-        if($("#q2").val()>0 && $("#type").val()==2){
+
+        if(Number($("#q2").val())>0 ){
+
             $("#payType2").show();
             $("input[id='t2']").attr("checked", "checked")
+        }else{
+            console.log("看看玩湃比")
+            console.log($("#q2").val());
+            $("#payType2").hide();
+            var checkbox = document.getElementById("t2");
+            // 取消选中
+            checkbox.checked = false;
         }
-        if($("#q3").val()>0 && $("#type").val()==2){
+        if(Number($("#q3").val())>0 ){
             $("#payType3").show();
             $("input[id='t3']").attr("checked", "checked")
+        }else{
+            console.log("看看课时")
+            console.log($("#q3").val());
+            var checkbox = document.getElementById("t3");
+            // 取消选中
+            checkbox.checked = false;
+            $("#payType3").hide();
         }
 
     }

--
Gitblit v1.7.1