简要描述:
- 获取首页数据
请求URL:
GET/plugin.store-projects.frontend.index.get-data
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
lng | 是 | float | 经度 |
lat | 是 | float | 纬度 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"carousels": [
{
"id": 1,
"name": "幻灯片标题1",
"link": "http://localhost:82/addons/yun_shop/?menu#/member?i=2",
"small_link": "/packageD/member/myRelationship/myRelationship",
"thumb": "http://localhost:82/attachment/image/08d33591d8af744390ac6a7299502094.png"
}
],
"projects": [
{
"id": 3,
"title": "测试项目3",
"thumb": "https://localhost:82/attachment/image/5f3d6b80fbf44ea3ae709805acc1fdaa.png",
"store_distance": 1008.6,
"store_distance_unit": "km"
},
{
"id": 2,
"title": "测试项目2",
"thumb": "https://localhost:82/attachment/images/2/2019/08/fv8mhb830HBd8d803zduMqSSHS88qu.png",
"store_distance": 1010.2,
"store_distance_unit": "km"
}
],
"project_category_list": [
{
"id": 1,
"name": "测试分类1",
"thumb": "https://localhost:82/attachment/images/2/2019/07/D99yd9gk8ZdxyKJ8IJI9mxKd9M3KOg.jpg"
},
{
"id": 4,
"name": "测试分类2",
"thumb": "https://localhost:82/attachment/images/2/2019/09/b771aSob37tASStS8k7TSFfRo8fcKZ.jpg"
}
]
}
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
carousels | obj | 幻灯片信息 |
carousels->name | string | 幻灯片名称 |
carousels->link | string | 链接 |
carousels->small_link | string | 小程序链接 |
carousels->thumb | string | 图片地址 |
projects | obj | 推荐项目信息 |
projects->id | int | ID |
projects->title | string | 项目名称 |
projects->thumb | string | 缩略图 |
projects->store_distance | float | 最近门店距离 |
projects->store_distance_unit | string | 最近门店距离单位 |
projects->period | int | 期限 |
project_category_list | obj | 项目分类 |
project_category_list->id | int | ID |
project_category_list->name | string | 项目分类名称 |
project_category_list->thumb | string | 项目分类缩略图 |
备注:
- 更多返回错误代码请看首页的错误代码描述