/** * Created by A.J on 2019/3/16. */$(document).ready(function(){$("#datepicker").length>0&&$("#datepicker").datetimepicker({format:"yyyy-mm-dd",minView:"month",autoclose:!0});var t="";$("#upload").uploadify({auto:!0,fileTypeExts:"*.jpg;*.png;*.gif;*.jpeg",multi:!1,formData:{verification:$("#verification").text()},fileSizeLimit:9999,buttonText:$("#buttonText").text(),showUploadedPercent:!0,showUploadedSize:!1,removeTimeout:3,uploader:"uploadimage",onUploadComplete:function(a,e){t=$("#domain").text()+e,$("#avatar").val(t),$("#avatarImg").attr("src",t)}}),""!=$("#avatar").val()&&$("#avatarImg").attr("src",$("#avatar").val()),$("#baocun").click(function(){if($.catfishcms()){var t=$(this);t.children("span").removeClass("hidden"),$.post("",$("#catfishForm").serialize(),function(a){t.children("span").addClass("hidden"),"ok"!=a&&$.alert({title:$("#chucuo").text(),content:a,confirmButton:$("#queding").text()})})}})});