简要描述:

  • 获取分销活动首页数据

请求域名:

  • http://xx.com

请求URL:

POST:plugin.commission-activity.api.index.index

参数:

参数名 是否必须 类型 说明

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "rotation": [
            {
                "id": 1,
                "uniacid": 3,
                "title": "测试",
                "img": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/09/K7c1US5t7wzWP5uTxcAU7KZaTA5ukK.png",
                "url": "http://wq2.com/addons/yun_shop/?menu#/member?i=3",
                "created_at": "2020-03-04 09:57:21"
            }
        ],
        "activity": {
            "total": 1,
            "per_page": 10,
            "current_page": 1,
            "last_page": 1,
            "next_page_url": null,
            "prev_page_url": null,
            "from": 1,
            "to": 1,
            "data": [
                {
                    "title": "11",
                    "cover": "images/3/2018/03/Kk8KckV06Cd0HAPkazkCZpONDFcHPH.jpg"
                }
            ]
        }
        
    }
}

错误时返回:

{
  "result": 0,
  "msg": "收藏失败",
  "data": []
}

返回参数说明:

参数名 类型 说明
rotation array 轮播图数组
img string 图片地址
url string 跳转地址
activity array 活动
title string 标题
cover array 活动封面
join_num int 参与人数
adv array 活动
advs_one[img] string 广告一图片
advs_one[link] string 广告一链接
mini_advs_one[link] string 广告一小程序链接

备注: