/** * Created by A.J on 2019/3/17. */$(document).ready(function(){""!=$("#zstu").val()&&($("#zstudiv").html('<img src="'+$("#domain").text()+$("#zstu").val()+'" class="img-responsive">'),$("#quxiaozstu").removeClass("hidden")),$("#alias").on("change",function(){""!=$.trim($(this).val())&&$.post("productcategoriesaliaschk",{id:$.trim($("#id").val()),alias:$.trim($(this).val()),verification:$("#verification").text()},function(t){"ok"!=t&&$.alert({title:"",content:t,confirmButton:$("#queding").text()})})}),$("#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(t,i){"data/"==i.substr(0,5)?($("#zstu").val(i),$("#zstudiv").html('<img src="'+$("#domain").text()+i+'" class="img-responsive">'),$("#quxiaozstu").removeClass("hidden")):$.alert({title:$("#alertitle").text(),content:i,confirmButton:$("#queding").text()})}}),$("#quxiaozstu").on("click",function(){$.post($("#upload_delfile_url").text(),{delfile:$("#zstu").val(),verification:$("#verification").text()},function(t){$("#zstu").val(""),$("#zstudiv").html(""),$("#quxiaozstu").addClass("hidden")})})});