Commit e9a5f8eb authored by agping's avatar agping

经纪人修改

parent c23353cf
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
<!-- /.modal --> <!-- /.modal -->
</div> </div>
<!--绑定手机 2.2版本--> <!--绑定手机 2.2版本-->
<div class="modal fade" id="modal-unbundling" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal fade" id="modal-phonebundling" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog"> <div class="modal-dialog">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
...@@ -219,10 +219,9 @@ ...@@ -219,10 +219,9 @@
<div class="modal-body"> <div class="modal-body">
<form class="form-horizontal"> <form class="form-horizontal">
<div class="form-group"> <div class="form-group">
绑定手机 <div id="agent_phone_binding">
<!--<label class="col-sm-3 control-label">权限角色:</label> 555
<select name="status" class="form-control btn6" id="edit_role"> </div>
</select>-->
</div> </div>
</form> </form>
</div> </div>
......
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) { define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_template_tpl.html','css!style/home.css', 'pagination', 'bootstrapJs','ckfinder', 'ckfinderStart', 'blow-up'], function (doT, template,template_binding) {
var agent = { var agent = {
pageNo : 1, pageNo : 1,
pageSize : 15, pageSize : 15,
agent_id : 0, agent_id : 0,
init: function () { init: function () {
//初始化dot //初始化dot
$("body").append(template); $("body").append(template+template_binding);
agent.getList(); agent.getList();
agent.event(); agent.event();
}, },
...@@ -59,6 +59,9 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/agent_template_tp ...@@ -59,6 +59,9 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/agent_template_tp
$(this).val('').attr('type','password'); $(this).val('').attr('type','password');
}); });
$(document).on("click", ".phone-bundling",function () {
agent.getPhoneBindingList();
});
$(document).delegate(".submit_edit", "click", function () {//提交编辑 $(document).delegate(".submit_edit", "click", function () {//提交编辑
agent.Submit_edit(); agent.Submit_edit();
}); });
...@@ -262,7 +265,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/agent_template_tp ...@@ -262,7 +265,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/agent_template_tp
} }
}) })
}, },
//手机绑定 //手机绑定权限
getPhoneBindingList: function (pageNo) { getPhoneBindingList: function (pageNo) {
agent.pageNo = pageNo; agent.pageNo = pageNo;
var params = {}; var params = {};
...@@ -280,7 +283,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/agent_template_tp ...@@ -280,7 +283,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/agent_template_tp
success: function (data) { success: function (data) {
var temp = document.getElementById('phone_binding_tpl').innerHTML; var temp = document.getElementById('phone_binding_tpl').innerHTML;
var doTempl = doT.template(temp); var doTempl = doT.template(temp);
$("#agentlist").html(doTempl(data.data.list)); $("#agent_phone_binding").html(doTempl(data.data.list));
/*分页代码*/ /*分页代码*/
add_page(data.data.total, pageNo, agent.pageSize, agent.getList); add_page(data.data.total, pageNo, agent.pageSize, agent.getList);
$ ('.J_preview').preview (); $ ('.J_preview').preview ();
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
[% } %] [% } %]
<!--增加绑定手机号按钮 2.2版本--> <!--增加绑定手机号按钮 2.2版本-->
<!--权限--> <!--权限-->
<a class="btn1 btn-success" href="#modal-unbundling" data-toggle="modal" data-id='[%= it[item]["id"] %]'>绑定手机</a> <a class="btn1 btn-success phone-bundling" href="#modal-phonebundling" data-toggle="modal" data-id='[%= it[item]["id"] %]'>绑定手机</a>
</td> </td>
</tr> </tr>
......
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