简要描述:
请求URL:
GET/route=plugin.yz-supply-cake.frontend.index.index
参数名 |
类型 |
说明 |
是否必须 |
city |
string |
城市名称 |
否 (全国的时候不要传这个值) |
返回示例:
正确时返回:
{
"result": 1,
"msg": "获取成功",
"data": {
"banner": [
{
"title": "2",
"image": "images/5/2020/08/X0l0vMm02VVM3m0aAV3pHx2VVVVM9J.png",
"h5_url": "312",
"mini_url": "312321321",
"image_url": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/08/X0l0vMm02VVM3m0aAV3pHx2VVVVM9J.png"
}
],
"notice": "3213131",
"category": [
{
"id": 5109,
"name": "零食小吃",
"thumb": "images/5/2020/08/X0l0vMm02VVM3m0aAV3pHx2VVVVM9J.png",
"small_adv_url": "/packageA/member/income_details_info/income_details_info",
"adv_img": "images/5/2020/08/X0l0vMm02VVM3m0aAV3pHx2VVVVM9J.png",
"adv_url": "http://shop/addons/yun_shop/?menu#/member/address?i=5",
"thumb_url": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/08/X0l0vMm02VVM3m0aAV3pHx2VVVVM9J.png",
"adv_img_url": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/08/X0l0vMm02VVM3m0aAV3pHx2VVVVM9J.png"
},
{
"id": 5109,
"name": "零食小吃",
"thumb": "images/5/2020/08/X0l0vMm02VVM3m0aAV3pHx2VVVVM9J.png",
"small_adv_url": "/packageA/member/income_details_info/income_details_info",
"adv_img": "images/5/2020/08/X0l0vMm02VVM3m0aAV3pHx2VVVVM9J.png",
"adv_url": "http://shop/addons/yun_shop/?menu#/member/address?i=5",
"thumb_url": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/08/X0l0vMm02VVM3m0aAV3pHx2VVVVM9J.png",
"adv_img_url": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/08/X0l0vMm02VVM3m0aAV3pHx2VVVVM9J.png"
},
{
"id": 5109,
"name": "零食小吃",
"thumb": "images/5/2020/08/X0l0vMm02VVM3m0aAV3pHx2VVVVM9J.png",
"small_adv_url": "/packageA/member/income_details_info/income_details_info",
"adv_img": "images/5/2020/08/X0l0vMm02VVM3m0aAV3pHx2VVVVM9J.png",
"adv_url": "http://shop/addons/yun_shop/?menu#/member/address?i=5",
"thumb_url": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/08/X0l0vMm02VVM3m0aAV3pHx2VVVVM9J.png",
"adv_img_url": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/08/X0l0vMm02VVM3m0aAV3pHx2VVVVM9J.png"
},
],
"goods": [
{
"name": "测试品牌",
"id": 3886,
"title": "手榴弹",
"thumb": "https://supply.yunzmall.com/uploads/file/da944987652fcf230814166bd9c18154_20220922173856.webp",
"price": "0.00",
"market_price": "0.00",
"show_sales": 0,
"promotion_start_at": "2019-10-31 15:42:02",
"promotion_end_at": "2022-11-31 15:42:02"
},
{
"name": "测试品牌",
"id": 3886,
"title": "手榴弹",
"thumb": "https://supply.yunzmall.com/uploads/file/da944987652fcf230814166bd9c18154_20220922173856.webp",
"price": "0.00",
"market_price": "0.00",
"show_sales": 0,
"promotion_start_at": "2019-10-31 15:42:02",
"promotion_end_at": "2019-12-30 15:42:02"
}
],
"advertising": {
"cat_adv_img_1": "images/5/2020/08/X0l0vMm02VVM3m0aAV3pHx2VVVVM9J.png",
"cat_adv_img_url_1": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/08/X0l0vMm02VVM3m0aAV3pHx2VVVVM9J.png",
"cat_adv_url_1": "http://shop/addons/yun_shop/?menu#/home?i=5",
"small_cat_adv_url_1": "/pages/index/index",
"cat_adv_img_2": "images/5/2020/08/xcUB5id3bI4uGg5DZdyIttYD5U43wU.png",
"cat_adv_img_url_2": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/08/xcUB5id3bI4uGg5DZdyIttYD5U43wU.png",
"cat_adv_url_2": "http://shop/addons/yun_shop/?menu#/member/orderList/0?i=5",
"small_cat_adv_url_2": "/packageA/member/myOrder_v2/myOrder_v2",
"cat_adv_img_3": "images/5/2020/08/j4c0p4vcppV40V2Pt00yn4nfOVUtbf.jpg",
"cat_adv_img_url_3": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/08/j4c0p4vcppV40V2Pt00yn4nfOVUtbf.jpg",
"cat_adv_url_3": "http://shop/addons/yun_shop/?menu#/cart?i=5",
"small_cat_adv_url_3": "/packageD/member/collection/collection",
"cat_adv_img_4": "images/5/2020/08/aGBvmP62Zg2NZg4WVphPnMHNp0HPvP.png",
"cat_adv_img_url_4": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/08/aGBvmP62Zg2NZg4WVphPnMHNp0HPvP.png",
"cat_adv_url_4": "http://shop/addons/yun_shop/?menu#/member/footprint?i=5",
"small_cat_adv_url_4": "/packageB/member/Integral_love/Integral_love "
},
"brand": [
{
"id": 179,
"name": "测试品牌",
"logo": "1"
}
]
}
}
参数名 |
类型 |
说明 |
banner |
array |
轮播图 |
category |
array |
分类 |
notice |
string |
公告 |
goods |
array |
限时抢商品(6个) |
advertising |
广告 |
|
banner 轮播图:
参数名 |
类型 |
说明 |
title |
string |
名称 |
image_url |
string |
图片 |
h5_url |
string |
H5跳转链接 |
mini_url |
string |
小程序跳转链接 |
category 分类:
参数名 |
类型 |
说明 |
id |
int |
|
name |
string |
名字 |
thumb |
string |
图标 |
small_adv_url |
string |
小程序广告链接 |
adv_url |
string |
H5广告链接 |
adv_img_url |
移动端分类广告图片 |
|
thumb_url |
分类图片 |
|
goods:
参数名 |
类型 |
说明 |
id |
int |
id |
title |
string |
商品名称 |
thumb |
string |
图片 |
price |
string |
售价 |
market_price |
string |
市场价 |
show_sales |
int |
销量 |
name |
string |
品牌 |
promotion_start_at |
string |
活动开始时间 |
promotion_end_at |
string |
活动结束时间 |
advertising 广告 需要自行判断哪个有哪个没有:
参数名 |
类型 |
说明 |
cat_adv_img_url_1 |
string |
广告图片 |
cat_adv_url_1 |
string |
H5链接 |
small_cat_adv_url_1 |
string |
小程序链接 |