/** * Created by A.J on 2020/7/28. */$(document).ready(function(){$("#upload1").uploadify({auto:!0,fileTypeExts:"*.crt",multi:!1,formData:{verification:$("#verification").val()},fileSizeLimit:999999,buttonText:$("#uploadfiletext").text(),showUploadedPercent:!0,showUploadedSize:!1,removeTimeout:3,uploader:$("#upload_certificate_url").text(),onUploadComplete:function(e,i){$("#zhengshu1").val(i),$("#zhengshuming1").text(i.split("/").pop()),$("#zhengshuwenjiandiv1").removeClass("hidden")}}),$("#upload2").uploadify({auto:!0,fileTypeExts:"*.crt",multi:!1,formData:{verification:$("#verification").val()},fileSizeLimit:999999,buttonText:$("#uploadfiletext").text(),showUploadedPercent:!0,showUploadedSize:!1,removeTimeout:3,uploader:$("#upload_certificate_url").text(),onUploadComplete:function(e,i){$("#zhengshu2").val(i),$("#zhengshuming2").text(i.split("/").pop()),$("#zhengshuwenjiandiv2").removeClass("hidden")}}),$("#upload3").uploadify({auto:!0,fileTypeExts:"*.crt",multi:!1,formData:{verification:$("#verification").val()},fileSizeLimit:999999,buttonText:$("#uploadfiletext").text(),showUploadedPercent:!0,showUploadedSize:!1,removeTimeout:3,uploader:$("#upload_certificate_url").text(),onUploadComplete:function(e,i){$("#zhengshu3").val(i),$("#zhengshuming3").text(i.split("/").pop()),$("#zhengshuwenjiandiv3").removeClass("hidden")}}),$("#quxiao1").click(function(){var e=$("#zhengshu1").val();$("#zhengshu1").val(""),$("#zhengshuming1").text(""),$("#zhengshuwenjiandiv1").addClass("hidden"),$.post($("#upload_delfile_url").text(),{delfile:e,verification:$("#verification").val()},function(e){})}),$("#quxiao2").click(function(){var e=$("#zhengshu2").val();$("#zhengshu2").val(""),$("#zhengshuming2").text(""),$("#zhengshuwenjiandiv2").addClass("hidden"),$.post($("#upload_delfile_url").text(),{delfile:e,verification:$("#verification").val()},function(e){})}),$("#quxiao3").click(function(){var e=$("#zhengshu3").val();$("#zhengshu3").val(""),$("#zhengshuming3").text(""),$("#zhengshuwenjiandiv3").addClass("hidden"),$.post($("#upload_delfile_url").text(),{delfile:e,verification:$("#verification").val()},function(e){})}),$("input:radio[name='qianming']").click(function(){"gongyao"==$(this).val()?($("#zhengshudiv").addClass("hidden"),$("#gongyaodiv").removeClass("hidden")):"gongyaozhengshu"==$(this).val()&&($("#gongyaodiv").addClass("hidden"),$("#zhengshudiv").removeClass("hidden"))}),"gongyao"==$("#qianmingdiv").text()?($("#qianming1").prop("checked",!0),$("#zhengshudiv").addClass("hidden"),$("#gongyaodiv").removeClass("hidden")):"gongyaozhengshu"==$("#qianmingdiv").text()?($("#qianming2").prop("checked",!0),$("#gongyaodiv").addClass("hidden"),$("#zhengshudiv").removeClass("hidden")):($("#qianming1").prop("checked",!0),$("#zhengshudiv").addClass("hidden"),$("#gongyaodiv").removeClass("hidden")),""!=$("#zhengshu1").val()&&($("#zhengshuming1").text($("#zhengshu1").val().split("/").pop()),$("#zhengshuwenjiandiv1").removeClass("hidden")),""!=$("#zhengshu2").val()&&($("#zhengshuming2").text($("#zhengshu2").val().split("/").pop()),$("#zhengshuwenjiandiv2").removeClass("hidden")),""!=$("#zhengshu3").val()&&($("#zhengshuming3").text($("#zhengshu3").val().split("/").pop()),$("#zhengshuwenjiandiv3").removeClass("hidden")),$("#baocun").click(function(){if($.catfishcms()){var e=$(this);e.children("span").removeClass("hidden"),$.post("",$("#alipayForm").serialize(),function(i){e.children("span").addClass("hidden"),"ok"!=i&&$.alert({title:$("#chucuo").text(),content:i,confirmButton:$("#queding").text()})})}})});