简要描述:
请求域名:
请求URL:
GET:route=plugin.fight-groups.frontend.controllers.team.index&team_id=1
参数:
参数名 |
是否必须 |
类型 |
说明 |
team_id |
是 |
int |
团队id |
返回示例:
正确时返回:
{
"result":1,
"msg":"ok",
"data":{
"id":1,
"uniacid":2,
"group_id":1,
"level_id":1,
"leader_id":244,
"start_time":1561361203,
"end_time":1591368603,
"status":1,
"status_message":"已开启",
"is_virtual":0,
"success_time":null,
"created_at":"2019-06-24 15:26:43",
"updated_at":"2019-06-24 17:30:03",
"deleted_at":null,
"has_many_success_member_count":1,
"has_many_success_member":[
{
"id":1,
"member_id":244,
"group_id":1,
"level_id":1,
"team_id":1,
"is_leader":1,
"has_one_member":{
"nickname":"18025971856",
"avatar":"https://dev3.yunzmall.com/attachment/images/2/2018/08/XZtELEeaKiEzgMpAlpaAG7VU8Ppan9.jpg",
"uid":244,
"avatar_image":"https://dev3.yunzmall.com/attachment/images/2/2018/08/XZtELEeaKiEzgMpAlpaAG7VU8Ppan9.jpg",
"username":"18025971856"
}
}
],
"has_one_group":{
"id":1,
"uniacid":2,
"goods_id":615,
"title":"拼团活动测试1",
"start_time":1561358412,
"end_time":null,
"note":"测试说明1",
"menu_show":1,
"hide_num":3,
"is_integral":0,
"integral_num":0,
"is_lead":0,
"setting":0,
"barrage":0,
"share_title":"原价¥89.00,现价¥61.00起,参加拼团活动测试1即可享受",
"share_content":"活动商品数量有限61.00,先到先得。",
"desc_title":"我已经参加了发起的拼团。",
"desc_content":"凑足3人即可享受拼团优惠,我已经参加,你也来吧。",
"status":1,
"created_at":"2019-06-24 14:40:12",
"updated_at":"2019-06-24 14:40:12",
"deleted_at":null,
"has_one_goods":{
"id":615,
"title":"拼团测试商品",
"thumb":"https://dev3.yunzmall.com/attachment/images/2/2019/05/TtM36DxcJFTtm7ljEEfMf36FTfJ49x.png",
"thumb_url":[
"https://dev3.yunzmall.com/attachment/images/2/2019/05/uGQ7qOH2SCP22O2222O11phH2qDQ1K.jpg",
"https://dev3.yunzmall.com/attachment/images/2/2019/05/F3w5wDxc6O5d3Fyf9f1g669OZvX5G3.png"
],
"description":"",
"market_price":"185.00",
"price":"122.00",
"cost_price":"100.00",
"stock":998,
"sku":"件",
"status_name":null,
"has_many_specs":[
{
"id":170,
"goods_id":615,
"title":"颜色",
"description":null,
"has_many_specs_item":[
{
"id":499,
"title":"红色",
"specid":170,
"thumb":null
},
{
"id":500,
"title":"黄色",
"specid":170,
"thumb":null
}
]
},
{
"id":171,
"goods_id":615,
"title":"尺寸",
"description":null,
"has_many_specs_item":[
{
"id":501,
"title":"24寸",
"specid":171,
"thumb":null
},
{
"id":502,
"title":"32寸",
"specid":171,
"thumb":null
}
]
}
],
"has_many_options":[
{
"id":625,
"goods_id":615,
"title":"红色+24寸",
"thumb":"",
"product_price":"86.00",
"market_price":"96.00",
"stock":123,
"specs":"499_501",
"weight":"0.00"
},
{
"id":626,
"goods_id":615,
"title":"红色+32寸",
"thumb":"",
"product_price":"87.00",
"market_price":"97.00",
"stock":122,
"specs":"499_502",
"weight":"0.00"
},
{
"id":627,
"goods_id":615,
"title":"黄色+24寸",
"thumb":"",
"product_price":"88.00",
"market_price":"98.00",
"stock":125,
"specs":"500_501",
"weight":"0.00"
},
{
"id":628,
"goods_id":615,
"title":"黄色+32寸",
"thumb":"",
"product_price":"89.00",
"market_price":"99.00",
"stock":122,
"specs":"500_502",
"weight":"0.00"
}
]
},
"has_many_options":[
{
"id":1,
"group_id":1,
"option_id":625,
"option_title":"红色+24寸",
"option_price":"86.00",
"stock":126,
"buy_limit":3,
"has_many_option_level":[
{
"id":1,
"group_id":1,
"groups_option_id":1,
"level_id":1,
"group_price":"61.00",
"member_num":3
},
{
"id":2,
"group_id":1,
"groups_option_id":1,
"level_id":2,
"group_price":"62.00",
"member_num":8
}
]
},
{
"id":2,
"group_id":1,
"option_id":626,
"option_title":"红色+32寸",
"option_price":"87.00",
"stock":127,
"buy_limit":4,
"has_many_option_level":[
{
"id":3,
"group_id":1,
"groups_option_id":2,
"level_id":1,
"group_price":"63.00",
"member_num":3
},
{
"id":4,
"group_id":1,
"groups_option_id":2,
"level_id":2,
"group_price":"64.00",
"member_num":8
}
]
},
{
"id":3,
"group_id":1,
"option_id":627,
"option_title":"黄色+24寸",
"option_price":"88.00",
"stock":128,
"buy_limit":5,
"has_many_option_level":[
{
"id":5,
"group_id":1,
"groups_option_id":3,
"level_id":1,
"group_price":"65.00",
"member_num":3
},
{
"id":6,
"group_id":1,
"groups_option_id":3,
"level_id":2,
"group_price":"66.00",
"member_num":8
}
]
},
{
"id":4,
"group_id":1,
"option_id":628,
"option_title":"黄色+32寸",
"option_price":"89.00",
"stock":129,
"buy_limit":6,
"has_many_option_level":[
{
"id":7,
"group_id":1,
"groups_option_id":4,
"level_id":1,
"group_price":"67.00",
"member_num":3
},
{
"id":8,
"group_id":1,
"groups_option_id":4,
"level_id":2,
"group_price":"68.00",
"member_num":8
}
]
}
],
"max_price":"89.00",
"min_price":"61.00"
},
"has_one_level":{
"id":1,
"member_num":3,
"expire_in":1
},
"has_one_leader":{
"uid":244,
"nickname":"18025971856",
"avatar":"https://dev3.yunzmall.com/attachment/images/2/2018/08/XZtELEeaKiEzgMpAlpaAG7VU8Ppan9.jpg",
"avatar_image":"https://dev3.yunzmall.com/attachment/images/2/2018/08/XZtELEeaKiEzgMpAlpaAG7VU8Ppan9.jpg",
"username":"18025971856"
},
"is_join":1,
"action":2,
"action_message":"邀请好友",
"order_id":146
}
}
返回data参数说明:
data 参数名 |
类型 |
说明 |
id |
int |
团队id |
goods_id |
int |
商品id |
level_id |
int |
所属层级id |
start_time |
int |
开始时间 |
end_time |
int |
结束时间 |
status |
int |
状态,情况1:为0时团长未支付,不可参团(禁用参团按钮) 情况2:为1时团长已开团,显示正在拼团,此时可参团 情况3:为2时,已成团,显示已成团信息,不可参团(禁用参团按钮) 情况4:为3时,拼团失败,显示已失效信息,不可参团(禁用参团按钮) |
is_join |
int |
当前会员是否已加入该团,为0时未加入,可进行参团 为1时已加入,提示已加入该团信息,禁用参团按钮 |
order_id |
int |
订单id,当按钮显示去支付的时候,取该字段调用支付接口 |
share_url |
string |
分享链接 |
has_many_success_member_count |
int |
已参团的成员数 |
has_many_success_member |
array |
已参团的成员信息 |
has_one_group |
object |
活动信息 |
has_one_level |
object |
层级信息 |
has_many_success_member 参数名 |
类型 |
说明 |
id |
int |
id |
group_id |
int |
活动id |
level_id |
int |
层级id |
team_id |
int |
团队id |
member_id |
int |
团员对应的会员id |
goods_id |
int |
商品id |
has_one_member |
object |
团员对应的会员信息 |
has_one_lottery |
object |
团员对应的会员中奖信息 |
has_one_lottery 参数名 |
类型 |
说明 |
is_win |
int |
0未中奖,1中奖 |
has_one_member 参数名 |
类型 |
说明 |
nickname |
string |
会员昵称 |
avatar |
string |
会员头像 |
uid |
int |
会员id |
has_one_group 参数名 |
类型 |
说明 |
id |
int |
活动id |
title |
string |
活动标题 |
share_title |
string |
分享标题 |
share_content |
string |
分享内容 |
desc_title |
string |
详情标题 |
desc_content |
string |
详情内容 |
note |
string |
商家说明 |
max_price |
float |
最高价 |
min_price |
float |
最低价 |
has_one_goods |
object |
活动商品信息 |
has_many_options |
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_specs |
array |
商品规格和规格项信息 |
has_many_options |
array |
组合规格信息 |
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 |
int |
商品规格原价 |
stock |
int |
库存 |
buy_limit |
float |
限购数量 |
has_one_level 参数名 |
类型 |
说明 |
id |
int |
层级id |
member_num |
int |
几人团 |
备注:
正确时返回:
该页面按钮和提示信息情况按以下分类
1.活动未开启,则按钮禁用,提示未开启信息
在活动开启的情况下
团长未支付 status=0
是团长本人,则去支付 action=1
不是团长,按钮去开团跳转商品详情 action=4
团长已支付 status=1
是团长本人,则按钮邀请 action=2
不是团长本人
未参团
有等待支付记录,则去支付 action=1
没有等待支付的记录,则按钮去参团 action=3
已参团,则显示已参团,按钮邀请好友 action=2
已成团 status=2
显示去开团,按钮去开团跳转商品详情 action=4
已失败 status=3
显示已失效,按钮去开团跳转商品详情 action=4
支付1,邀请2,参团3,开团4
活动未开启,提示未开启信息,禁用参团按钮