Commit 79fb0406 authored by agping's avatar agping

经纪人列表修改

parent 39c5c3f0
define(['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css', 'pagination', 'bootstrapJs','ckfinder', 'ckfinderStart', 'blow-up'], function (doT, template) { define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/agent_template_tpl.html','css!style/home.css', 'pagination', 'bootstrapJs','ckfinder', 'ckfinderStart', 'blow-up'], function (doT, template) {
var agent = { var agent = {
pageNo : 1, pageNo : 1,
pageSize : 15, pageSize : 15,
...@@ -262,6 +262,33 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css', 'pagin ...@@ -262,6 +262,33 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css', 'pagin
} }
}) })
}, },
//手机绑定
getPhoneBindingList: function (pageNo) {
agent.pageNo = pageNo;
var params = {};
params.pageNo = agent.pageNo;
params.pageSize = agent.pageSize;
params.search = $("input[name='search']").val();
params.groupname = $("input[name='groupname']").val();
params.store_name = $("input[name='store_name']").val();
$.ajax({
url: '/index/AgentList',
type: 'GET',
async: true,
data: params,
dataType: 'json',
success: function (data) {
var temp = document.getElementById('phone_binding_tpl').innerHTML;
var doTempl = doT.template(temp);
$("#agentlist").html(doTempl(data.data.list));
/*分页代码*/
add_page(data.data.total, pageNo, agent.pageSize, agent.getList);
$ ('.J_preview').preview ();
}
})
},
getRole : function (tempval) { getRole : function (tempval) {
$.ajax({ $.ajax({
url: '/index/getAuth2', url: '/index/getAuth2',
......
<script id="phone_binding_tpl" type="text/template">
[% if(it) { %]
[% for(var item in it){ %]
<tr class="text-center">
<td>[%= it[item]['created'] %]</td>
<td>[%= it[item]['visitor_name'] %]</td>
<td>
<a class="btn1 btn-info review-images" href="#modal-time" data-toggle="modal" data-img='[%= it[item]["scene_photo"] %]'>允许</a>
</td>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="8" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
\ No newline at end of file
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