Commit 59bde970 authored by xishifeng's avatar xishifeng

列表显示优化

parent 947a3b6f
......@@ -422,7 +422,16 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
var doTempl = doT.template(temp);
$("#agentlist").html(doTempl(data.data.list));
agent.getEvaluationList(agent.idArray);
$('.btn-default-show-caozuo').nextAll().hide();//默认按钮只显示两个
//显示优化
var _tempObj = $('.btn-default-show-caozuo');
$.each(_tempObj, function(i, v) {
var _$this = $(v);
_$this.nextAll().hide();//默认按钮只显示两个
if(_$this.index() == 0){
_$this.click();
}
});
/*分页代码*/
add_page(data.data.total, pageNo, agent.pageSize, agent.getList);
......
......@@ -1146,7 +1146,16 @@ if(data.code == 200) {
var temp = document.getElementById('house_list_tpl').innerHTML;
var doTtmpl = doT.template(temp);
$("#business_list").html(doTtmpl(data.data.list));
$('.btn-default-show-caozuo').nextAll().hide();//默认按钮只显示两个
//显示优化
var _tempObj = $('.btn-default-show-caozuo');
$.each(_tempObj, function(i, v) {
var _$this = $(v);
_$this.nextAll().hide();//默认按钮只显示两个
if(_$this.index() == 0){
_$this.click();
}
});
/*分页代码*/
add_page(data.data.total, pageNo, business.pageSize, business.getList);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment