简要描述:
- 通过门店分类ID搜索门店列表
请求URL:
GET/plugin.store-cashier.frontend.store.store.get-store-list-by-category-id
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
category_id | 是 | int | 门店分类ID |
lng | 是 | float | 经度 |
lat | 是 | float | 纬度 |
返回示例:
正确时返回:
{
result: 1,
msg: "获取门店列表成功",
data: {
store_list: [
{
id: 4,
uniacid: 3,
uid: 64,
user_uid: null,
store_name: "777",
thumb: "http://dev-yangyang.yunzshop.com/attachment/images/3/2017/08/Ewh4QhPzHqtTbybtHbSiytaZhWq7Ta.jpg",
category_id: 3,
province_id: 210000,
city_id: 210400,
district_id: 210404,
street_id: 210404005,
address: "滚犊子",
longitude: "126.710362",
latitude: "45.77006",
mobile: "15945596368",
store_introduce: "滚犊子",
username: "",
password: "",
template_id: "3543453451",
salers: "s:0:"";",
cashier_id: 89,
business_hours_start: "",
business_hours_end: "",
aptitude_imgs: null,
dispatch_type: 0,
affiche: "",
specify_show:0,
created_at: "2017-08-03 11:07:33",
updated_at: "2017-08-03 17:00:08",
deleted_at: null
}
]
}
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
distance | float | 距离 |
unit | string | 距离单位m/km |
order_total | int | 上个月订单数 |
average_score | float | 平均评分 |
dispatch | string | 支持的配送方式 |
store_name | string | 门店名称 |
thumb | string | 门店头像 |
id | int | 门店ID |
specify_show | int | 0:门店首页1:门店商品页 |
备注:
- 更多返回错误代码请看首页的错误代码描述