Commit 19ead170a96e6a6a18762c5bc7442c9f9915ecde

Authored by pengye
1 parent 3bf027eb

no message

... ... @@ -107,6 +107,20 @@ class Area extends Common
$this->assign ( 'title','代理商管理');
return $this->fetch();
}
/**
* 禁用运营
*/
public function setAgentOperate(){
if(Request::isAjax()){
$data = Request::except('file');
$list= file_get_contents(ON_LINE.'App.Agent.getAgentOperate&id='.$data['id']);
$array = json_decode($list,TRUE);
return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'],'rel'=>1];#'count'=>$array['data'][0]['total']
}
$this->assign ( 'title','代理商管理');
return $this->fetch();
}
/**
* 停用商家
... ...
... ... @@ -23,7 +23,6 @@
,{field:'sub_openid', title: '运营公众号ID', width:280,fixed: true}
,{field:'openid', title: '一键订商户ID', width:270}
,{field:'account', title: '运营账号', width:120}
,{field:'asname', title: '运营名称', width:120}
,{field:'cdate', title: '加入时间',width:180}
,{width:160,title: '操作', align:'center', toolbar: '#barDemo'}
]]
... ... @@ -32,8 +31,8 @@
table.on('tool(list)', function(obj){
var data = obj.data;
if(obj.event === 'del'){
layer.confirm('{:lang("Are you sure you want to delete it")}', function(index){
$.post("{:url('operateDel')}",{id:data.id},function(res){
layer.confirm('{:lang("确认禁用?")}', function(index){
$.post("{:url('setAgentOperate')}",{id:data.id},function(res){
if(res.code==1){
layer.msg(res.msg,{time:1000,icon:1});
obj.del();
... ...