Commit 0024d0b0df3122119e3ceb421b7c4be1796d9295

Authored by teemitop
1 parent bc4d8d41

PC商家列表增加筛选条件

... ... @@ -12,9 +12,10 @@ class Seller extends Common
if(Request::isAjax()){
$data = Request::except('file');
$key= input('post.key') ? input('post.key') : "";
$limit = '&x='.$data["page"].'&y='.$data["limit"].'&keywords='.@$key['id'];
$channel= input('post.channel') ? input('post.channel') : 1;
$limit = '&x='.$data["page"].'&y='.$data["limit"].'&keywords='.@$key['id'].'&channel='.$channel;
//获取运营人员列表
$list= file_get_contents(ON_LINE.'App.Seller.GetSellerList'.$limit);
$list= file_get_contents(UNDER_LINE.'App.Seller.GetSellerList'.$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']);
... ...
... ... @@ -19,6 +19,16 @@
搜索商家:<div class="layui-inline">
<input class="layui-input" name="key" id="key" placeholder="{:lang('pleaseEnter')}店铺名称" autocomplete="off">
</div>
商家来源:
<div class="layui-input-inline layui-form">
<div class="layui-input-8">
<select name="class" id="channel" lay-filter="myselect">
<option value="1">合作</option>
<option value="2">推广</option>
<option value="3">测试</option>
</select>
</div>
</div>
<button class="layui-btn" id="search" data-type="reload">搜索</button>
备注: 人均消费(130)、店铺评分(4.9,最高5分)、停车场(0/1 无/有)开启单元格编辑
</div>
... ... @@ -86,7 +96,7 @@
layer.msg('{:lang("pleaseEnter")}店铺名称!',{icon:0});
return;
}
tableIn.reload({ page: {page: 1},where: {key: key}});
tableIn.reload({ page: {page: 1},where: {key: key,channel: $('#channel').val()}});
});
var $ = layui.$, active = {
... ...