简要描述:

  • 好友裂变前端-活动详情

请求域名:

  • http://xx.com

请求URL:

plugin.customer-increase.frontend.activity.activityDetail

参数:

参数名 是否必须 类型 说明
id int 活动id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "id": 8,
        "name": "活动1",
        "start_time": 976763619,
        "step_rule": [
            {
                "id": 26,
                "uniacid": 1,
                "business_id": 1,
                "activity_id": 8,
                "step_level": 1,
                "step_people": 1,
                "step_reward": {
                    "point": 5,
                    "balance": 5,
                    "love": 5,
                    "integral": 5,
                    "coupon": [
                        {
                            "id": 11,
                            "name": "接龙用优惠券",
                            "reward_num": 2
                        }
                    ],
                    "member_level": {
                        "level_id": 0,
                        "level_name": "普通会员122"
                    }
                },
                "created_at": "2021-12-14 14:31:05",
                "updated_at": "2021-12-14 14:31:05",
                "deleted_at": null
            },
            {
                "id": 27,
                "uniacid": 1,
                "business_id": 1,
                "activity_id": 8,
                "step_level": 2,
                "step_people": 2,
                "step_reward": {
                    "point": 0,
                    "balance": 0,
                    "love": 0,
                    "integral": 0,
                    "coupon": [],
                    "member_level": {
                        "level_id": 0,
                        "level_name": "普通会员122"
                    }
                },
                "created_at": "2021-12-14 14:31:05",
                "updated_at": "2021-12-14 14:31:05",
                "deleted_at": null
            },
            {
                "id": 28,
                "uniacid": 1,
                "business_id": 1,
                "activity_id": 8,
                "step_level": 3,
                "step_people": 3,
                "step_reward": {
                    "point": 0,
                    "balance": 0,
                    "love": 0,
                    "integral": 0,
                    "coupon": [],
                    "member_level": {
                        "level_id": 0,
                        "level_name": "普通会员122"
                    }
                },
                "created_at": "2021-12-14 14:31:05",
                "updated_at": "2021-12-14 14:31:05",
                "deleted_at": null
            }
        ],
        "desc_text": "",
        "share_text": "",
        "bg_color": "#F8072F",
        "auto_poster": 0,
        "share_logo_url": "xxx",
        "state": 2,
        "end_time": -1,
        "start_time_str": "2000-12-14 11:13:39",
        "end_time_str": "",
        "staff_data": [
            {
                "avatar": "http://wework.qpic.cn/bizmail/B6sicvR9cyf96q66ObtIDrJSLnXgjLQCVzzjibGJZA7YqhGfbwD4OGxQ/0",
                "name": "Joy"
            },
            {
                "avatar": "http://wework.qpic.cn/bizmail/nXEfaZSylbYEJbvD0xqX34aE6h39ERia7061k847u5mHZiab3shNFbXw/0",
                "name": "柏丽芬"
            }
        ],
        "step": 1,
        "invite_count": 1,
        "next_step": {
            "id": 27,
            "uniacid": 1,
            "business_id": 1,
            "activity_id": 8,
            "step_level": 2,
            "step_people": 2,
            "step_reward": {
                "point": 0,
                "balance": 0,
                "love": 0,
                "integral": 0,
                "coupon": [],
                "member_level": {
                    "level_id": 0,
                    "level_name": "普通会员122"
                }
            },
            "created_at": "2021-12-14 14:31:05",
            "updated_at": "2021-12-14 14:31:05",
            "deleted_at": null
        },
        "poster_list": [
            {
                "created_at": "2021-12-16 17:59:49",
                "uid": 5,
                "has_one_member": {
                    "uid": 5,
                    "nickname": "莉莉娅",
                    "avatar": "http://wx.qlogo.cn/mmopen/vi_32/zs9mjh65RUyAyEH9GEKakpokzf6askhga7sKkaqjhT7M13XhbciaEq7CoDicVEN7ut3zC9dCmvlfiaCpNX8v4E1QA/0",
                    "avatar_image": "https://wx.qlogo.cn/mmopen/vi_32/zs9mjh65RUyAyEH9GEKakpokzf6askhga7sKkaqjhT7M13XhbciaEq7CoDicVEN7ut3zC9dCmvlfiaCpNX8v4E1QA/0",
                    "username": "莉莉娅"
                }
            },
            {
                "created_at": "2021-12-13 16:21:15",
                "uid": 5,
                "has_one_member": {
                    "uid": 5,
                    "nickname": "莉莉娅",
                    "avatar": "http://wx.qlogo.cn/mmopen/vi_32/zs9mjh65RUyAyEH9GEKakpokzf6askhga7sKkaqjhT7M13XhbciaEq7CoDicVEN7ut3zC9dCmvlfiaCpNX8v4E1QA/0",
                    "avatar_image": "https://wx.qlogo.cn/mmopen/vi_32/zs9mjh65RUyAyEH9GEKakpokzf6askhga7sKkaqjhT7M13XhbciaEq7CoDicVEN7ut3zC9dCmvlfiaCpNX8v4E1QA/0",
                    "username": "莉莉娅"
                }
            },
            {
                "created_at": "2021-12-13 16:21:15",
                "uid": 5,
                "has_one_member": {
                    "uid": 5,
                    "nickname": "莉莉娅",
                    "avatar": "http://wx.qlogo.cn/mmopen/vi_32/zs9mjh65RUyAyEH9GEKakpokzf6askhga7sKkaqjhT7M13XhbciaEq7CoDicVEN7ut3zC9dCmvlfiaCpNX8v4E1QA/0",
                    "avatar_image": "https://wx.qlogo.cn/mmopen/vi_32/zs9mjh65RUyAyEH9GEKakpokzf6askhga7sKkaqjhT7M13XhbciaEq7CoDicVEN7ut3zC9dCmvlfiaCpNX8v4E1QA/0",
                    "username": "莉莉娅"
                }
            }
        ]
    }
}

错误时返回:

  {
  }

返回参数说明:

参数名 类型 说明
名称 类型 说明
data.id int 活动ID
data.state int 活动状态 1待开始 2进行中 3已结束
data.start_time int 活动开始时间时间戳
data.end_time int 活动结束时间时间戳,-1为不限时,进行中的活动结束时间为-1时不显示结束时间
data.start_time_str string 活动开始时间字符串
data.end_time_str string 活动结束时间字符串
data.staff_data arr 活动企业成员信息
data.step int 当前成员所在阶梯层数
data.invite_count int 当前成员邀请人数
data.name string 活动名
data.desc_text string 活动描述
data.share_text string 分享文本
data.share_logo_url string 分享logo
data.bg_color string 背景颜色代码
data.auto_poster int 生成海报是否自动选择企业成员 0用户自己选 1系统自动选择
data.poster_list arr 最近海报生成记录
data.step_rule arr 活动阶梯列表,字段含义参考企业微信好友裂变(后端页面)-创建/编辑裂变活动请求参数
data.next_step object 下一层活动阶梯,字段含义参考企业微信好友裂变(后端页面)-创建/编辑裂变活动请求参数
data.chat_data object 客服信息数组
data.chat_data.show_mini int 1小程序显示客服 0小程序隐藏客服
data.chat_data.url string 客服链接,默认空字符串
data.chat_data.qrcode string 客服二维码或小程序码链接,默认空字符串
data.chat_data.mobile string 客服手机,默认空字符串
data.isset_poster int 是否已经生成海报 1已生成 0未生成
data.reward_pop_list[step] int 奖励弹窗提示,阶级
data.reward_pop_list[list] int 奖励弹窗提示,奖励列表