diff --git a/application/wechat/controller/Fans.php b/application/wechat/controller/Fans.php index 875dd0500..03d89cd0a 100644 --- a/application/wechat/controller/Fans.php +++ b/application/wechat/controller/Fans.php @@ -48,6 +48,9 @@ class Fans extends BasicAdmin { $db->where($key, 'like', "%{$get[$key]}%"); } } + if (isset($get['tag']) && $get['tag'] !== '') { + $db->where("concat(',',tagid_list,',') like :tag", ['tag' => "%,{$get['tag']},%"]); + } return parent::_list($db); } diff --git a/application/wechat/view/fans.index.html b/application/wechat/view/fans.index.html index c34ac21b7..8068fde83 100644 --- a/application/wechat/view/fans.index.html +++ b/application/wechat/view/fans.index.html @@ -43,6 +43,21 @@ +
+
+ +
+
+