简要描述:
- 蛋糕叔叔-品牌馆(首页也使用这个)
请求URL:
GET/route=plugin.yz-supply-cake.frontend.goods.goods.getBrandAndGoodsAndStore
参数:
参数名 | 类型 | 说明 | 是否必须 |
---|---|---|---|
city | string | 城市名称 | 否 (全国的时候不要传这个值) |
pageSize | |||
page | |||
lng | 经度 | 否 | |
lat | 维度 | 否 | |
brand_name | string | 品牌名称 | 否 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "",
"data": {
"current_page": 1,
"data": [
{
"id": 686,
"name": "西檬树(无锡)",
"logo": "https://img.dangaoss.com/public/b/66/5/1348248_s.jpg",
"show_sales": 24,
"s_brand_id": 686,
"brand_id": 102420,
"category_name": "未知",
"city_num": 0,
"store_num": 7,
"has_one_store": {
"id": 1550,
"uniacid": 5,
"brand_id": "",
"yz_brand_id": "102420",
"city_id": "69",
"shop_id": 1116424,
"shop_name": "中基礼域店",
"phone": "0311-89288558",
"latitude": 38.058469,
"longitude": 114.509231,
"address": "石家庄市平安大街与栗中路交叉口东行100米路北中基礼域",
"status": 1,
"created_at": "2022-11-11 10:26:59",
"updated_at": "2022-11-11 10:26:59",
"deleted_at": null,
"distance": 12127426.821761763
},
"has_many_goods": [
{
"id": 5042,
"title": "粉色之恋L’amour en rose",
"thumb": "https://img.dangaoss.com/public/p/7/8/1348288_l.jpg",
"price": "43398.00",
"market_price": "43398.00",
"show_sales": 24,
"brand_id": 686,
"status_name": null
},
{
"id": 5093,
"title": "粉色之恋L’amour en rose",
"thumb": "https://img.dangaoss.com/public/p/7/8/1348288_l.jpg",
"price": "0.00",
"market_price": null,
"show_sales": 0,
"brand_id": 686,
"status_name": null
},
{
"id": 7236,
"title": "粉色之恋L’amour en rose",
"thumb": "https://img.dangaoss.com/public/p/7/8/1348288_l.jpg",
"price": "398.00",
"market_price": "41421.21",
"show_sales": 0,
"brand_id": 686,
"status_name": null
}
]
}
],
"first_page_url": "http://shop/addons/yun_shop/api.php?page=1",
"from": 1,
"last_page": 38,
"last_page_url": "http://shop/addons/yun_shop/api.php?page=38",
"next_page_url": "http://shop/addons/yun_shop/api.php?page=2",
"path": "http://shop/addons/yun_shop/api.php",
"per_page": "1",
"prev_page_url": null,
"to": 1,
"total": 38
}
}
goods:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 品牌id |
name | string | 品牌名称 |
logo | string | logo |
has_one_store | array | 有可能为空 门店信息,距离在这里(单位米) |
has_many_goods | array | 有可能为空 商品信息,四个最多 |