diff --git a/application/wechat/controller/Fans.php b/application/wechat/controller/Fans.php index 91ef40dc1..76b847e69 100644 --- a/application/wechat/controller/Fans.php +++ b/application/wechat/controller/Fans.php @@ -51,6 +51,29 @@ class Fans extends BasicAdmin { return parent::_list($db); } + /** + * 列表数据处理 + * @param type $list + */ + protected function _data_filter(&$list) { + $tags = Db::name('WechatFansTags')->column('id,name'); + foreach ($list as &$vo) { + $vo['tags_list'] = []; + foreach (explode(',', $vo['tagid_list']) as $tag) { + if ($tag !== '' && isset($tags[$tag])) { + $vo['tags_list'][$tag] = $tags[$tag]; + } elseif ($tag !== '') { + $vo['tags_list'][$tag] = $tag; + } + } + } + $this->assign('alert', [ + 'type' => 'success', + 'title' => '开发中', + 'content' => '请稍候...' + ]); + } + /** * 黑名单列表 */ diff --git a/application/wechat/view/fans.index.html b/application/wechat/view/fans.index.html index 55dcf109f..269439a6d 100644 --- a/application/wechat/view/fans.index.html +++ b/application/wechat/view/fans.index.html @@ -80,8 +80,9 @@