简要描述:
- 根据项目ID获取门店列表
请求URL:
GET/plugin.store-projects.frontend.store.get-list-by-project-id
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
project_id | 是 | int | 项目ID |
page | 否 | int | 分页 |
pagesize | 否 | int | 每页条数,默认10 |
lng | 是 | float | 经度 |
lat | 是 | float | 纬度 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"current_page": 1,
"data": [
{
"id": 5,
"store_name": "芸众商城门店",
"thumb": "https://wx.qlogo.cn/mmopen/9M0PhLTmTIfg9jKoeUWscJnEre7w6L5GJENQyWcv8yMqmnD1ic1BPLRQ10jaaJb35geqwVPCibmXiaqXJMKXpFibicFLaO8gKMeGB/0",
"business_hours_start": "13:05",
"business_hours_end": "20:40",
"store_distance": 1008.2,
"store_distance_unit": "km",
"full_address": "广东省 广州市 广州市 百信广场"
},
{
"id": 3,
"store_name": "门店1",
"thumb": "images/2/2017/10/X0vxO7w67l7h0435i777Xi7Hs3i770.png",
"business_hours_start": "00:00",
"business_hours_end": "18:30",
"store_distance": 1008.6,
"store_distance_unit": "km",
"full_address": "广东省 广州市 广州市 新市百信广场"
}
],
"first_page_url": "http://localhost:82/addons/yun_shop/api.php?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost:82/addons/yun_shop/api.php?page=1",
"next_page_url": null,
"path": "http://localhost:82/addons/yun_shop/api.php",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 门店id |
store_name | string | 门店名称 |
thumb | string | 门店缩略图 |
business_hours_start | string | 门店营业时间开始 |
business_hours_end | string | 门店营业时间结束 |
store_type | int | 商户类型:1-门店;2-酒店 |
store_distance | float | 门店距离 |
store_distance_unit | string | 门店距离单位 |
full_address | string | 门店地址 |
备注:
- 更多返回错误代码请看首页的错误代码描述