'+data.data[i].supportedServices+'
' add+=''; $add = $(add); $("#consdcen").append($add); if(data.data[i].subject==undefined){ $(".li1").eq(i).css({"display":"none"}); } $add.find('.resoumag').attr("resourceId",data.data[i].resourceId); //$('.resoumag').eq(i+1).attr("resourceId",data.data[i].resourceId); if(data.data[i].images.length){ $add.find(".resourceImg").attr("src","/images/resource/"+data.data[i].resourceId+".jpg"); } else { $add.find(".resourceImg").attr("src","/images/default-resource.jpg"); } } $(".addworkbtn-list:gt(2)").css({"display":"none"}); } else { $.MsgBox.Alert('message',"系统异常!"); } }, "error":function(){$.MsgBox.Alert('message','failed')} }); } //获取最近3次的申请 function getRecentlyData(){ $.ajax({ "url":"/ajax/operation/pqpro", "type":"get", "data":{"id":userid,"pageSize":3}, "async": false, "success":function(data) { if(data.success) { $(".sharesrcbox11").html(""); for(var i=0;i