|
|
@@ -11,7 +11,7 @@ use app\admin\model\Office;
|
|
|
|
|
|
class Accounts extends Base
|
|
|
{
|
|
|
- // 用户列表
|
|
|
+ // 会员列表
|
|
|
public function index()
|
|
|
{
|
|
|
$toExcel = input('param.toExcel', 0);
|
|
|
@@ -22,7 +22,12 @@ class Accounts extends Base
|
|
|
$offset = (($param['pageNumber'] - 1) * $limit);
|
|
|
$where = [];
|
|
|
if (strlen($param['searchText'])) {
|
|
|
- $where['account_name'] = ['like', '%' . $param['searchText'] . '%'];
|
|
|
+ if($param['account'] == 'account_name'){
|
|
|
+ $where['account_name'] = ['like', '%' . $param['searchText'] . '%'];
|
|
|
+ }
|
|
|
+ if($param['account'] == 'nick_name'){
|
|
|
+ $where['nick_name'] = ['like', '%' . $param['searchText'] . '%'];
|
|
|
+ }
|
|
|
}
|
|
|
//标签
|
|
|
if ($param['label_id'] != '' && $param['label_id'] != 0) {
|
|
|
@@ -62,7 +67,7 @@ class Accounts extends Base
|
|
|
//所有标签
|
|
|
$label = db('accountslabel')->select();
|
|
|
if(!empty($label)){
|
|
|
- $option = '<option value="0">全部</option>';
|
|
|
+ $option = '<option value="0">会员标签</option>';
|
|
|
for($i=0;$i<count($label);$i++){
|
|
|
$option = $option.'<option value="'.$label[$i]['id'].'">'.$label[$i]['name'].'</option>';
|
|
|
}
|