简要描述:
-获取活动信息及商品列表
请求域名:
请求URL:
route=plugin.merchant-meeting.frontend.index.activity
请求参数说明:
参数名 |
类型 |
是否必需 |
说明 |
activity_id |
int |
是 |
活动ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"activity": {
"id": 3,
"uniacid": 1,
"title": "线下活动",
"lecturer_bonus": "5.00",
"logistics_bonus": "4.00",
"start_time": 1630425600,
"end_time": 1632931200,
"created_at": "2021-09-27 15:16:39",
"updated_at": "2021-09-27 15:16:39",
"status": 1,
"status_name": "进行中",
"goods": [
{
"id": 76,
"title": "希尔顿羽绒被 全棉磨毛面料 高端外贸出口产品 五星级酒店级别的白鹅",
"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/12/pc7lmRlHEp5l4M11957lPIYC1l1e11.jpg",
"market_price": "123.00",
"price": "123.00",
"cost_price": "123.00",
"stock": 122,
"real_sales": 1,
"show_sales": 1,
"virtual_sales": 123,
"has_option": 0,
"plugin_id": 0,
"goods_id": 76,
"buyNum": 0,
"status_name": null,
"pivot": {
"activity_id": 3,
"goods_id": 76
},
"has_many_specs": [],
"has_many_options": []
},
{
"id": 1,
"title": "卫目天下护眼喷雾创客礼包",
"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/02/IRH7r73628mhszr3fqiQvmQw6HQB3r.jpg",
"market_price": "599.00",
"price": "400.00",
"cost_price": "103.00",
"stock": 999,
"real_sales": 48539,
"show_sales": 48539,
"virtual_sales": 1000,
"has_option": 0,
"plugin_id": 0,
"goods_id": 1,
"buyNum": 0,
"status_name": null,
"pivot": {
"activity_id": 3,
"goods_id": 1
},
"has_many_specs": [],
"has_many_options": []
}
]
}
}
}
返回参数说明:
参数名 |
类型 |
说明 |
|
id |
int |
活动ID |
|
title |
string |
活动标题 |
|
goods.id |
int |
商品ID |
|
goods.title |
string |
商品标题 |
|
goods.thumb |
string |
商品图片 |
|
goods.market_price |
float |
原价 |
|
goods.price |
float |
现价 |
|
goods.cost_price |
float |
成本价 |
|
goods.stock |
int |
商品库存 |
|
goods.has_option |
int |
1开启规格,0未开启 |
|
goods.goods_id |
int |
商品ID |
|
goods.has_many_specs |
array |
规格信息 |
|
goods.has_many_options |
array |
商品规格信息 |
|
关联规格说明 has_many_specs []:
参数名 |
类型 |
说明 |
id |
int |
规格ID |
goods_id |
int |
商品ID |
title |
string |
规格名 |
description |
string |
规格描述 |
关联规格项说明 has_many_specs [specitem]:
参数名 |
类型 |
说明 |
id |
int |
规格项ID |
title |
string |
规格项名 |
specid |
int |
规格ID |
thumb |
string |
规格项图片 |
关联Option说明 has_many_options[]:
参数名 |
类型 |
说明 |
id |
int |
分享ID |
goods_id |
int |
商品ID |
thumb |
string |
图片 |
product_price |
int |
价格(分) |
market_price |
int |
市场价格(分) |
stock |
int |
库存 |
specs |
string |
规格项ID拼接 |
weight |
float |
重量 |
错误时返回:
{
"result": 0,
"msg": "请登录",
"data": []
}