Commit 0024d0b0df3122119e3ceb421b7c4be1796d9295

Authored by teemitop
1 parent bc4d8d41

PC商家列表增加筛选条件

@@ -12,9 +12,10 @@ class Seller extends Common @@ -12,9 +12,10 @@ class Seller extends Common
12 if(Request::isAjax()){ 12 if(Request::isAjax()){
13 $data = Request::except('file'); 13 $data = Request::except('file');
14 $key= input('post.key') ? input('post.key') : ""; 14 $key= input('post.key') ? input('post.key') : "";
15 - $limit = '&x='.$data["page"].'&y='.$data["limit"].'&keywords='.@$key['id']; 15 + $channel= input('post.channel') ? input('post.channel') : 1;
  16 + $limit = '&x='.$data["page"].'&y='.$data["limit"].'&keywords='.@$key['id'].'&channel='.$channel;
16 //获取运营人员列表 17 //获取运营人员列表
17 - $list= file_get_contents(ON_LINE.'App.Seller.GetSellerList'.$limit); 18 + $list= file_get_contents(UNDER_LINE.'App.Seller.GetSellerList'.$limit);
18 $array = json_decode($list,TRUE); 19 $array = json_decode($list,TRUE);
19 foreach ($array['data'][0]['data'] as $key => $value) { 20 foreach ($array['data'][0]['data'] as $key => $value) {
20 $array['data'][0]['data'][$key]['cdate'] = date("Y-m-d H:i:s",$value['cdate']); 21 $array['data'][0]['data'][$key]['cdate'] = date("Y-m-d H:i:s",$value['cdate']);
@@ -19,6 +19,16 @@ @@ -19,6 +19,16 @@
19 搜索商家:<div class="layui-inline"> 19 搜索商家:<div class="layui-inline">
20 <input class="layui-input" name="key" id="key" placeholder="{:lang('pleaseEnter')}店铺名称" autocomplete="off"> 20 <input class="layui-input" name="key" id="key" placeholder="{:lang('pleaseEnter')}店铺名称" autocomplete="off">
21 </div> 21 </div>
  22 + 商家来源:
  23 + <div class="layui-input-inline layui-form">
  24 + <div class="layui-input-8">
  25 + <select name="class" id="channel" lay-filter="myselect">
  26 + <option value="1">合作</option>
  27 + <option value="2">推广</option>
  28 + <option value="3">测试</option>
  29 + </select>
  30 + </div>
  31 + </div>
22 <button class="layui-btn" id="search" data-type="reload">搜索</button> 32 <button class="layui-btn" id="search" data-type="reload">搜索</button>
23 备注: 人均消费(130)、店铺评分(4.9,最高5分)、停车场(0/1 无/有)开启单元格编辑 33 备注: 人均消费(130)、店铺评分(4.9,最高5分)、停车场(0/1 无/有)开启单元格编辑
24 </div> 34 </div>
@@ -86,7 +96,7 @@ @@ -86,7 +96,7 @@
86 layer.msg('{:lang("pleaseEnter")}店铺名称!',{icon:0}); 96 layer.msg('{:lang("pleaseEnter")}店铺名称!',{icon:0});
87 return; 97 return;
88 } 98 }
89 - tableIn.reload({ page: {page: 1},where: {key: key}}); 99 + tableIn.reload({ page: {page: 1},where: {key: key,channel: $('#channel').val()}});
90 }); 100 });
91 101
92 var $ = layui.$, active = { 102 var $ = layui.$, active = {