Commit 6b715ede authored by agping's avatar agping

修改

parent 76c867a4
...@@ -208,43 +208,6 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp ...@@ -208,43 +208,6 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
}); });
}); });
//老版本 经纪人 状态
$(document).delegate(".is_show", "click", function() { //点击禁用
if(!confirm('是否继续?')) {
return;
}
agent.id = $(this).attr("data-id");
var params = {
};
params.id = $(this).attr("data-id");
var str = $.trim($(this).html());
if(str === "正常") {
$(this).attr('class', 'btn1 btn-default is_show');
params.type = 1;
$(this).html('冻结');
} else if(str === "冻结") {
$(this).attr('class', 'btn1 btn-info is_show');
params.type = 0;
$(this).html('正常');
} else {
params.type = 2;
}
$.ajax({ //禁用
'type': 'POST',
'url': '/index/updateStatus',
data: {
"ids": agent.id,
"status": params.type
},
dataType: "json",
success: function(data) {
if(data.code != 200) {
alert("禁用失败!")
}
}
});
});
//手机绑定状态切换 //手机绑定状态切换
$(document).delegate(".is_show2", "click", function() { //点击禁用 $(document).delegate(".is_show2", "click", function() { //点击禁用
if(!confirm('是否继续?')) { if(!confirm('是否继续?')) {
......
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