44323
2023-11-17 2bb111939922d8e48fe11374bfe8ef2834a5bb43
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
@@ -215,6 +242,11 @@
    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==''){