function getList(page){ var data = $("#saerchFrm").serializeJSON(); data['page'] = page || 1; data['size'] = 20; $("#list, #page").empty(); ajax(apiUrl+"forecast/list",data,function(res){ if(res.code == 1){ if(res.data.length > 0){ $("#list").html($.Template7.renderTpl("tempaltelist",res.data)); var newpage = new createPage(res['total'],data['page'],data['size'],3); $("#page").html(newpage.pageHtml); $(".table").hoverTable(true); }else $("#list").info("暂无信息。"); }else $("#list").info(res.msg); }); } pageGo = getList; function updateStatus(obj, id){ confirm("禁用该用户将无法在小程序中进行操作,是否继续?",function(){ }); }