简要描述:
请求URL:
GET/route=plugin.yz-supply-camilo-resources.frontend.index.index
返回示例:
正确时返回:
{
"result": 1,
"msg": "获取成功",
"data": {
"banner": [
{
"title": "测试1",
"image": "images/5/2020/08/aGBvmP62Zg2NZg4WVphPnMHNp0HPvP.png",
"h5_url": "H5跳转链接1",
"mini_url": "小程序跳转链接2",
"image_url": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/08/aGBvmP62Zg2NZg4WVphPnMHNp0HPvP.png"
}
],
"recommend": [
{
"id": 885,
"title": "测试商品1-2-2",
"thumb": "https://supply-chain-yunzmall.oss-cn-beijing.aliyuncs.com/2022117/1642400895yz_supply.png",
"status_name": null
}
],
"category": {
"recommand_category": [
{
"id": 355,
"name": "卡券子分类1-2",
"thumb": ""
},
{
"id": 357,
"name": "卡券子分类2-1",
"thumb": ""
},
{
"id": 358,
"name": "卡券子分类2-2",
"thumb": ""
}
],
"categorys": {
"353": {
"id": 353,
"name": "卡券子分类1",
"thumb": "",
"children": [
{
"id": 354,
"name": "卡券子分类1-1",
"thumb": "",
"parent_id": 353,
"level": 2
},
{
"id": 355,
"name": "卡券子分类1-2",
"thumb": "",
"parent_id": 353,
"level": 2
}
]
},
"356": {
"id": 356,
"name": "卡券子分类2",
"thumb": "",
"children": [
{
"id": 357,
"name": "卡券子分类2-1",
"thumb": "",
"parent_id": 356,
"level": 2
},
{
"id": 358,
"name": "卡券子分类2-2",
"thumb": "",
"parent_id": 356,
"level": 2
}
]
}
}
}
}
}
参数名 |
类型 |
说明 |
banner |
array |
轮播图 |
recommend |
array |
推荐商品 |
category |
array |
分类 |
banner 轮播图:
参数名 |
类型 |
说明 |
title |
string |
名称 |
image_url |
string |
图片 |
h5_url |
string |
H5跳转链接 |
mini_url |
string |
小程序跳转链接 |
recommend 推荐商品:
参数名 |
类型 |
说明 |
id |
int |
id |
title |
string |
商品名称 |
thumb |
string |
图片 |
price |
string |
售价 |
market_price |
string |
市场价 |
category 分类:
参数名 |
类型 |
说明 |
recommand_category |
array |
推荐分类 |
categorys |
array |
分类 |
recommand_category 推荐分类:
参数名 |
类型 |
说明 |
id |
int |
|
name |
string |
名字 |
thumb |
string |
图标 |
categorys 分类:
参数名 |
类型 |
说明 |
id |
int |
|
name |
string |
名字 |
thumb |
string |
图标 |
children |
array |
子分类 |