简要描述:
请求域名:
请求URL:
GET:route=plugin.fight-groups.frontend.controllers.fight-groups.index
参数:
无参数
返回示例:
正确时返回:
{
"result":1,
"msg":"ok",
"data":{
"total":1,
"per_page":10,
"current_page":1,
"last_page":1,
"next_page_url":null,
"prev_page_url":null,
"from":1,
"to":1,
"set":{
"share_title":"拼团列表分享标题",
"share_thumb":"https://release.yunzmall.com/attachment/images/3/2019/07/p1PZGp0z1szY0gsI091Y9Psn1s09ay.jpg",
"share_desc":"分销描述描述111",
"fight_groups_success_message":"122",
"fight_groups_fail_message":"123",
"share_url":"https://release.yunzmall.com/addons/yun_shop/?menu#/group_list?mid%3D=384&i=3"
},
"data":[
{
"id":1,
"title":"规格活动测试",
"status":1,
"goods_id":254,
"share_title":"原价¥<<商品最高价>>,现价¥<<商品最低价>>起,参加<<拼团活动名称>>即可享受",
"share_content":"活动商品数量有限<<商品最低价>>,先到先得。",
"desc_title":"我已经参加了<<团长名称>>发起的拼团。",
"desc_content":"凑足<<拼团人数>>人即可享受拼团优惠,我已经参加,你也来吧。",
"has_one_goods":{
"id":254,
"title":"经销商等级测试",
"thumb":"http://www.yz.com/attachment/images/2/2018/12/OeVQYZiYwgImwDmV5uTIUReYZaz2eu.jpg",
"thumb_url":[
"http://www.yz.com/attachment/images/2/2019/01/nMISoeijZz1Imue44e2RNeunobMnj2.jpg",
"http://www.yz.com/attachment/images/2/2019/01/vBJ2Qj2JqkQ5qZkQ5TQFKrR225hQQz.jpg",
"http://www.yz.com/attachment/images/2/2019/01/htPd9U6u9egdgAqZp964zge7e4mdP3.jpg"
],
"description":"",
"market_price":"0.01",
"price":"0.01",
"cost_price":"0.01",
"stock":2,
"sku":"23",
"status_name":null
},
"has_many_level":[
{
"id":1,
"group_id":1,
"member_num":3
},
{
"id":2,
"group_id":1,
"member_num":8
}
],
"has_many_option_levels":[
{
"id":1,
"group_id":1,
"groups_option_id":1,
"level_id":1,
"group_price":"1000.01",
"member_num":3,
"has_one_fight_groups_option":{
"id":1,
"group_id":1,
"option_id":363,
"option_title":"红色+24寸",
"option_price":null,
"stock":101,
"buy_limit":1
}
},
{
"id":2,
"group_id":1,
"groups_option_id":1,
"level_id":2,
"group_price":"1000.02",
"member_num":8,
"has_one_fight_groups_option":{
"id":1,
"group_id":1,
"option_id":363,
"option_title":"红色+24寸",
"option_price":null,
"stock":101,
"buy_limit":1
}
},
{
"id":3,
"group_id":1,
"groups_option_id":2,
"level_id":1,
"group_price":"1000.03",
"member_num":3,
"has_one_fight_groups_option":{
"id":2,
"group_id":1,
"option_id":364,
"option_title":"红色+32寸",
"option_price":null,
"stock":102,
"buy_limit":2
}
},
{
"id":4,
"group_id":1,
"groups_option_id":2,
"level_id":2,
"group_price":"1000.04",
"member_num":8,
"has_one_fight_groups_option":{
"id":2,
"group_id":1,
"option_id":364,
"option_title":"红色+32寸",
"option_price":null,
"stock":102,
"buy_limit":2
}
},
{
"id":5,
"group_id":1,
"groups_option_id":3,
"level_id":1,
"group_price":"1000.05",
"member_num":3,
"has_one_fight_groups_option":{
"id":3,
"group_id":1,
"option_id":365,
"option_title":"黄色+24寸",
"option_price":null,
"stock":103,
"buy_limit":3
}
},
{
"id":6,
"group_id":1,
"groups_option_id":3,
"level_id":2,
"group_price":"1000.06",
"member_num":8,
"has_one_fight_groups_option":{
"id":3,
"group_id":1,
"option_id":365,
"option_title":"黄色+24寸",
"option_price":null,
"stock":103,
"buy_limit":3
}
},
{
"id":7,
"group_id":1,
"groups_option_id":4,
"level_id":1,
"group_price":"1000.07",
"member_num":3,
"has_one_fight_groups_option":{
"id":4,
"group_id":1,
"option_id":366,
"option_title":"黄色+32寸",
"option_price":null,
"stock":104,
"buy_limit":4
}
},
{
"id":8,
"group_id":1,
"groups_option_id":4,
"level_id":2,
"group_price":"1000.08",
"member_num":8,
"has_one_fight_groups_option":{
"id":4,
"group_id":1,
"option_id":366,
"option_title":"黄色+32寸",
"option_price":null,
"stock":104,
"buy_limit":4
}
}
]
}
]
}
}
返回参数说明:
| 参数名 |
类型 |
说明 |
| total |
int |
总记录数 |
| per_page |
int |
每页记录数 |
| current_page |
int |
当前页数 |
| last_page |
int |
最后页数 |
| set |
object |
分享设置 |
| data |
array |
活动列表 |
| set 参数名 |
类型 |
说明 |
| share_title |
string |
分享标题 |
| share_thumb |
string |
分享图片 |
| share_desc |
string |
分享内容 |
| share_url |
string |
分享链接 |
返回data参数说明:
| data 参数名 |
类型 |
说明 |
| id |
int |
团队id |
| goods_id |
int |
商品id |
| title |
string |
活动标题 |
| start_time |
int |
开始时间 |
| end_time |
int |
结束时间 |
| has_one_goods |
object |
商品信息 |
| has_many_level |
array |
层级信息 |
| has_many_option_levels |
array |
规格层级信息 |
| has_one_goods 参数名 |
类型 |
说明 |
| id |
int |
商品id |
| title |
string |
商品名称 |
| thumb |
int |
商品图片地址 |
| thumb_url |
int |
详细图片地址 |
| description |
int |
商品描述 |
| market_price |
float |
原价 |
| price |
float |
现价 |
| cost_price |
float |
成本价 |
| stock |
int |
商品库存(活动库存) |
| sku |
string |
商品单位 |
| has_many_level 参数名 |
类型 |
说明 |
| id |
int |
层级id |
| member_num |
int |
几人团 |
| has_many_option_levels 参数名 |
类型 |
说明 |
| id |
int |
层级id |
| groups_option_id |
int |
活动规格id |
| level_id |
int |
层级id |
| group_price |
float |
团购价 |
| member_num |
int |
几人团 |
| has_one_fight_groups_option |
object |
活动规格信息 |
| has_one_fight_groups_option 参数名 |
类型 |
说明 |
| id |
int |
活动规格id |
| option_id |
int |
商品规格id |
| option_title |
int |
规格名称 |
| option_price |
float |
规格现价 |
| stock |
int |
库存 |
| buy_limit |
int |
限购件数 |
备注: