diff --git a/application/wechat/controller/Fans.php b/application/wechat/controller/Fans.php index 03d89cd0a..96e5f80f9 100644 --- a/application/wechat/controller/Fans.php +++ b/application/wechat/controller/Fans.php @@ -86,6 +86,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.back.html b/application/wechat/view/fans.back.html index 66f89b265..78999c3c4 100644 --- a/application/wechat/view/fans.back.html +++ b/application/wechat/view/fans.back.html @@ -43,6 +43,21 @@ +
+
+ +
+
+
@@ -61,7 +76,6 @@
-
@@ -81,8 +95,9 @@ 用户昵称 - 性别 - 区域 + 性别 + 标签 + 区域 关注时间 @@ -96,8 +111,25 @@ {$vo.nickname|default="未设置微信昵称"} - {$vo.sex==1?'男':($vo.sex==2?'女':'未知')} - {$vo.country|default='未设置区域信息'}{$vo.province}{$vo.city} + {$vo.sex==1?'男':($vo.sex==2?'女':'未知')} + + + + + + + {if empty($vo.tags_list)} + 尚未设置标签 + {else} + {foreach $vo.tags_list as $k=>$tag} + + {$tag} + + {/foreach} + {/if} + + + {$vo.country|default='未设置区域信息'}{$vo.province}{$vo.city} {$vo.subscribe_at} {/foreach} @@ -108,4 +140,65 @@ {if isset($page)}

{$page}

{/if} -{/block} \ No newline at end of file + +
+
+
+ {foreach $tags as $key=>$tag} +
+ +
+ {/foreach} +
+
+
+ + +
+
+
+{/block} + +{block name="script"} +{if auth("$classuri/tagset")} + +{/if} +{/block}