From 082bc6dfef1d860f619e732719ccf0f39dcdc7aa Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 16 May 2017 16:53:31 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E7=B2=89?= =?UTF-8?q?=E4=B8=9D=E6=A0=87=E7=AD=BE=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/controller/Fans.php | 3 +++ application/wechat/view/fans.index.html | 15 +++++++++++++++ 2 files changed, 18 insertions(+) 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 @@ +
+
+ +
+
+