/*** Created by A.J on 2019/3/13.*/$(document).ready(function(){$("#shijian").length>0&&$("#shijian").datetimepicker({format:"yyyy-mm-dd hh:ii:ss",autoclose:!0}),""!=$("#zstu").val()&&($("#zstudiv").html('<img src="'+$("#domain").text()+$("#zstu").val()+'" class="img-responsive">'),$("#quxiaozstu").removeClass("hidden")),""!=$("#shipin").val()&&($("#videodiv").html('<h2 class="text-success"><i class="icon-film"></i><i class="icon-ok"></i></h2>'),$("#quxiaoshipin").removeClass("hidden")),$("#zstuupload").uploadify({auto:!0,fileTypeExts:"*.jpg;*.png;*.gif;*.jpeg",multi:!0,formData:{verification:$("#verification").text()},fileSizeLimit:9999,buttonText:$("#buttonText").text(),showUploadedPercent:!0,showUploadedSize:!1,removeTimeout:3,uploader:$("#upload_image_url").text(),onUploadComplete:function(i,t){"data/"==t.substr(0,5)?($("#zstu").val(t),$("#zstudiv").html('<img src="'+$("#domain").text()+t+'" class="img-responsive">'),$("#quxiaozstu").removeClass("hidden")):$.alert({title:$("#alertitle").text(),content:t,confirmButton:$("#queding").text()})}}),$("#quxiaozstu").on("click",function(){$.post($("#upload_delfile_url").text(),{delfile:$("#zstu").val(),verification:$("#verification").text()},function(i){$("#zstu").val(""),$("#zstudiv").html(""),$("#quxiaozstu").addClass("hidden")})}),$("#videoupload").uploadify({auto:!0,fileTypeExts:"*.mp4;*.ogg;*.webm;*.flv;*.wav;*.avi;*.rmvb",multi:!1,formData:{verification:$("#verification").text()},fileSizeLimit:9999999,buttonText:$("#buttonText_video").text(),showUploadedPercent:!0,showUploadedSize:!1,removeTimeout:3,uploader:$("#upload_video_url").text(),onUploadComplete:function(i,t){"data/"==t.substr(0,5)?($("#shipin").val(t),$("#videodiv").html('<h2 class="text-success"><i class="icon-film"></i><i class="icon-ok"></i></h2>'),$("#quxiaoshipin").removeClass("hidden")):$.alert({title:$("#alertitle").text(),content:t,confirmButton:$("#queding").text()})}}),$("#quxiaoshipin").click(function(){$.post($("#upload_delfile_url").text(),{delfile:$("#shipin").val(),verification:$("#verification").text()},function(i){$("#shipin").val(""),$("#videodiv").html(""),$("#quxiaoshipin").addClass("hidden")})})});