简要描述:
- 获取附近项目列表
请求URL:
POST/plugin.appointment.frontend.project.get-project-list-new
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
city_name | 是 | string | 城市名称 |
lng | 是 | string | 经度 |
lat | 是 | string | 维度 |
sort | 否 | string | 排序。asc升序,desc降序 |
category_id | 否 | string | 分类ID |
name | 否 | string | 项目名称 |
page | 否 | int | 页码 |
city_name | 否 | string | 城市名 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"current_page": 1,
"data": [
{
"id": 2,
"title": "aaaa",
"thumb": "http://www.shop777.com/static/upload/images/1/2022/07/a208a6333901e1ed841090a2cf9513b5.jpg",
"score": null,
"comment_num": null,
"appointment_num": null,
"is_recommand": 1,
"description": "",
"store_id": 19,
"distance": 5852862,
"has_one_store": {
"id": 19,
"store_name": "aaa",
"longitude": "116.413384",
"latitude": "39.910925",
"address": "asdsad",
"province_id": 440000,
"city_id": 440100,
"district_id": 440106,
"distance": 5852.9,
"unit": "km",
"store_address": "广东省广州市天河区asdsad",
"province": {
"id": 440000,
"areaname": "广东省"
},
"city": {
"id": 440100,
"areaname": "广州市"
},
"district": {
"id": 440106,
"areaname": "天河区"
}
}
},
{
"id": 3,
"title": "啊啊啊啊啊啊啊啊啊",
"thumb": "http://www.shop777.com/static/upload/newimage/d0c3d0561f22622b87fd29aac7ca644a.jpg",
"score": null,
"comment_num": null,
"appointment_num": null,
"is_recommand": 0,
"description": "",
"store_id": 19,
"distance": 5852862,
"has_one_store": {
"id": 19,
"store_name": "aaa",
"longitude": "116.413384",
"latitude": "39.910925",
"address": "asdsad",
"province_id": 440000,
"city_id": 440100,
"district_id": 440106,
"distance": 5852.9,
"unit": "km",
"store_address": "广东省广州市天河区asdsad",
"province": {
"id": 440000,
"areaname": "广东省"
},
"city": {
"id": 440100,
"areaname": "广州市"
},
"district": {
"id": 440106,
"areaname": "天河区"
}
}
}
],
"first_page_url": "http://www.shop777.com/addons/yun_shop/api.php?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://www.shop777.com/addons/yun_shop/api.php?page=1",
"next_page_url": null,
"path": "http://www.shop777.com/addons/yun_shop/api.php",
"per_page": 15,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 项目ID |
title | string | 项目名称 |
thumb | string | 缩略图 |
score | float | 评分 |
comment_num | int | 评论数 |
appointment_num | int | 预约次数 |
is_recommand | int | 是否推荐,1推荐,0不推荐 |
has_one_store | obj | 门店信息 |
has_one_store.id | int | 门店ID |
has_one_store.store_name | string | 门店名称 |
has_one_store.longitude | float | 经度 |
has_one_store.latitude | float | 纬度 |
has_one_store.address | string | 地址 |
has_one_store.distance | float | 距离 |
has_one_store.unit | float | 距离单位 |
备注:
- 更多返回错误代码请看首页的错误代码描述