function enterprisehonor(){} /** * 初始化方法 * @return */ enterprisehonor.prototype.initmethod = function(){ enterprisehonor.prototype.pagequeryhonors(); } /** * 查询资质荣誉列表 * @return */ enterprisehonor.prototype.pagequeryhonors = function(v_pagesize,v_currentpage){ if( v_pagesize == null ){ v_pagesize = 9; } if( v_currentpage == null ){ v_currentpage = 1; } var queryobj = {pagesize:v_pagesize,currentpage:v_currentpage}; $.ajax({ url: root_path + "/honor/pagequeryhonorlis" , data: queryobj , type: "post" , datatype: "json" , success: function(data){ enterprisehonor.prototype.showhonorlis(data.content); if(data.totalpages < 1){ data.totalpages = 1; } var pageopt = { totalpages : data.totalpages ,currentpage : data.number , numberofpages : data.size }; enterprisehonor.prototype.setpaginator(pageopt); }, error: function(){ alert("查询资质荣誉数据出错!"); } }); } /** * 显示资质荣誉列表 * @param data * @return */ enterprisehonor.prototype.showhonorlis = function(data){ $("#honorlis").empty(); if(data != null && data.length > 0){ var $content = '