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 | 65 ++++++++++++++++++++++++++++++-- 1 files changed, 60 insertions(+), 5 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 9f0ca04..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 @@ -5,6 +5,7 @@ <div class="form-horizontal" id="carInfoForm"> <input hidden id="id" value="${item.id}"> + <input hidden id="state" value="${state}"> <input hidden id="s1" value="${item.registerCondition}"> <input hidden id="q1" value="${item.cashPrice}"> <input hidden id="q2" value="${item.playPaiCoin}"> @@ -177,13 +178,39 @@ <script> window.onload = function() { + var q1=$("#q1").val(); + var q2=$("#q2").val(); + var q3=$("#q3").val(); + console.log("看看钱") + console.log(q1) + console.log(q2) + console.log(q3) + if (q1==""){ + $("#payType1").hide(); + }else{ + var elementById = document.getElementById("t1"); + elementById.checked = true; + $("#payType1").show(); + } + if (q2==""){ + $("#payType2").hide; + }else{ + var elementById1 = document.getElementById("t2"); + elementById1.checked = true; + $("#payType2").show(); + } + if (q3==""){ + $("#payType3").hide; + }else{ + var elementById2 = document.getElementById("t3"); + elementById2.checked = true; + $("#payType3").show(); + } if($("#type").val()==1){ $("#types").html("待审核").css("color","goldenrod") }else if($("#type").val()==3){ $("#types").html("未通过").css("color","red") } - - var OBJradio = document.getElementsByName("registerCondition") for (i = 0; i < OBJradio.length; i++) {//循环查找这个radio @@ -198,23 +225,51 @@ } } - 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(); } } function editSubmit(){ let audit = document.querySelector('input[name="auditType"]:checked').value; + var state = $("#state").val(); + if(state==3){ + Feng.error("当前赛事状态不能再审核!") + return ; + } let text = $("#text").val() if(audit==3){ if(text==''){ -- Gitblit v1.7.1