Commit 053d22c2 authored by agping's avatar agping

经纪人修改

parent e100d526
......@@ -300,6 +300,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
var temp = document.getElementById('agent_tpl').innerHTML;
var doTempl = doT.template(temp);
$("#agentlist").html(doTempl(data.data.list));
agent.getEvaluationList();
/*分页代码*/
add_page(data.data.total, pageNo, agent.pageSize, agent.getList);
$ ('.J_preview').preview ();
......@@ -387,6 +388,39 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
}
}
});
},
getEvaluationList:function(){
console.log('经纪人列表加载完成');
console.log($('.number-evaluation').attr("data-id"));
var _data={
};
// var _imgUploadLunbo = $('#agentlist').find(tr).find(td).eq(6); //详情页轮播图ul
console.log(_imgUploadLunbo);
// var _xiangqingPicObj = _imgUploadLunbo.find('li>img');
// var _urlCut = location.origin + '/resource/lib/Attachments/images/';//要截取的部分url
$.each(_imgUploadLunbo, function(i, item) {
_data['agents_id[' + i + ']'] = item.attr("data-id");
});
// console.log(_data);
$.ajax ({
url: '/index/agentEvaluateNumAndFraction',
type: 'GET',
async: true,
data: _data,
dataType: 'json',
success: function (data) {
if (data.code == 200 && data.data != null) {
var str = '';
$.each(data.data, function(i,item) {
str += '<option value="'+item.id+'">'+item.district_name+'</option>';
});
$('[name=district_id]').append(str);
fn && fn();
}
}
});
}
};
return agent;
......
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