jQuery.shfftAjax={loadingId:"loading",loadingTextId:"loadingText",timeoutMessage:"操作超时",url:"/fftwebapp",ajaxRequest:function(C,B,A){$.ajax({url:C,type:"POST",cache:false,dataType:"json",data:B,success:function(D){jQuery.shfftAjax.hideShield();if(D.success==false){alert(D.syserr)}else{A(jQuery.shfftAjax.jsonWeightLoss(D))}},error:function(D){jQuery.shfftAjax.hideShield();alert(jQuery.shfftAjax.timeoutMessage)}})},ajaxSynRequest:function(C,B,A){$.ajax({url:C,type:"POST",cache:false,async:false,dataType:"json",data:B,success:function(D){jQuery.shfftAjax.hideShield();if(D.success==false){alert(D.syserr)}else{val=A(jQuery.shfftAjax.jsonWeightLoss(D));return val}},error:function(D){jQuery.shfftAjax.hideShield();$("#showInfo").text("请正确填写输入项")}})},ajaxGetRequest:function(C,B,A){$.ajax({url:C,type:"get",dataType:"json",data:B,success:function(D){jQuery.shfftAjax.hideShield();if(D.success==false){alert(D.syserr)}else{A(jQuery.shfftAjax.jsonWeightLoss(D))}},error:function(D){jQuery.shfftAjax.hideShield();alert(jQuery.shfftAjax.timeoutMessage)}})},jsonWeightLoss:function(A){if($(A.root).size()==1){A.root[0].syserr=A.syserr;return A.root[0]}else{A.root.syserr=A.syserr;return A.root}},showShield:function(){if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("
")}}else{if(document.getElementById("TB_overlay")===null){$("body").append("")}}$("#TB_overlay").addClass("TB_overlayBG");$("body").append("![]() | 处理中,请稍候... |