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 |   78 +++++++++++++++++++++++++++++++++++---
 1 files changed, 71 insertions(+), 7 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 9d8a0cf..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
@@ -1,10 +1,11 @@
-@layout("/common/_container.html"){
+    @layout("/common/_container.html"){
 <script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.15&key=77b37f0753049c4e712ea79a24e0719c"></script>
 <div class="ibox float-e-margins">
     <div class="ibox-content">
 
         <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}">
@@ -131,7 +132,16 @@
             </div>
 
             <#avatar id="coverDrawing" name="赛事封面(推荐像素:210*280px):" avatarImg="${item.coverDrawing}" />
-            <#avatar id="imgs" name="赛事图片(推荐像素:780*440px):" />
+            <div class="form-group">
+                <label class="col-sm-3 control-label head-scu-label">赛事图片(推荐像素:780*440px):</label>
+                <div class="col-sm-4">
+                    <div id="imgsPreId">
+                        @for(i in imgs){
+                        <img width="100px" height="100px" id="img" src="${i}">
+                        @}
+                    </div>
+                </div>
+            </div>
             <#avatar id="registrationNotes" name="报名须知(推荐像素:宽780px):"  avatarImg="${item.registrationNotes}"/>
 
             <div class="form-group">
@@ -168,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
@@ -189,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