Commit fa8e59eb9aef86302645629b27f1fefb2fba6e52

Authored by teemitop
1 parent e3198b40

替换参数

... ... @@ -80,22 +80,12 @@ class Area extends Common
if(Request::isAjax()){
$data = Request::except('file');
$key= input('post.key') ? input('post.key') : "";
$channel = @$key['channel'] ? @$key['channel'] : 1;
$address = @$key['address'] ? @$key['address'] : '';
$prov = @$key['prov'] ? @$key['prov'] : '';
$city = @$key['city'] ? @$key['city'] : '';
$area = @$key['area'] ? @$key['area'] : '';
$limit = '';#'&x='.$data["page"].'&y='.$data["limit"];
$limit = '&agent_name='.@$key['id'];
//获取运营人员列表
$list= file_get_contents(ON_LINE.'App.Agent.getAgentList'.$limit);
$list= file_get_contents(ON_LINE.'App.Agent.GetAgentList'.$limit);
$array = json_decode($list,TRUE);
/*foreach ($array['data'][0]['data'] as $key => $value) {
$array['data'][0]['data'][$key]['cdate'] = date("Y-m-d H:i:s",$value['cdate']);
}*/
return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'],'rel'=>1];#'count'=>$array['data'][0]['total']
}
$this->assign ( 'title','代理商管理');
... ...
... ... @@ -84,19 +84,10 @@
//搜索
$('#search').on('click', function() {
var key = $('#key').val();
/*if($.trim(key)==='') {
layer.msg('{:lang("pleaseEnter")}店铺名称!',{icon:0});
return;
}*/
tableIn.reload({
page:{page: 1},
where:{
key: key,
address: $('#address').val(),
channel: $('#channel').val(),
prov: $("#provid").find("option:selected").text(),
city: $("#cityid").find("option:selected").text(),
area: $("#areaid").find("option:selected").text()
key: key
}
});
});
... ...