简要描述:
- 购物车或商品详情获取门店列表
请求URL:
POST/wapapi/goods/getStoreList
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
lng | 是 | string | 经度 |
lat | 是 | string | 纬度 |
shop_id | 否 | int | 店铺id (购物车获取门店列表时才传) |
sku_list | 否 | array | 店铺下所有商品的sku_id (购物车获取门店列表时才传) |
goods_id | 否 | int | 店铺下所有商品的sku_id (商品详情获取门店列表时才传) |
sku_list的格式如下:
{
sku_list = [
{
1
},
{
2
}
]
}
返回示例:
正确时返回:
{
"code": 1,
"message": "获取成功",
"data": {
0[
address: "越秀公园"
city_name: "广州市"
dictrict_name: "越秀区"
distance: 4.72
province_name: "广东省"
shop_id: 0
store_id: 13
store_name: "越秀公园"
store_tel: "020-2135435"
website_id: 26
score: 1
stock: 1887
]
}
}
参数名 | 类型 | 说明 |
---|---|---|
distance | float | 距离(km) |
store_id | int | 门店id |
store_name | string | 门店名称 |
store_tel | string | 门店电话 |
province_name | string | 门店所在省 |
city_name | string | 门店所在市 |
dictrict_name | string | 门店所在区 |
score | string | 门店评分 |
stock | string | 门店总库存 |