文件地址:app\services\user\UserServices.php public function typeHead() { //全部会员 this->getCount([]); /** @var UserWechatuserServices userWechatUser = app()->make(UserWechatuserServices::class); //小程序会员 userWechatUser->getCount(['w.user_type' => 'routine']); //公众号会员 userWechatUser->getCount(['w.user_type' => 'wechat']); //H5会员 userWechatUser->getCount(['w.openid' => '', 'u.user_type' => 'h5']); //pc会员 userWechatUser->getCount(['w.openid' => '', 'u.user_type' => 'pc']); //app会员 userWechatUser->getCount(['w.user_type' => 'app']); return [ ['user_type' => '', 'name' => '全部会员', 'count' => routine], ['user_type' => 'wechat', 'name' => '公众号会员', 'count' => h5], ['user_type' => 'pc', 'name' => 'PC会员', 'count' => app], ]; } 复制代码
免费源码下载地址:github.crmeb.net/u/defu