简要描述:
- 获取项目详情
请求URL:
GET/plugin.store-projects.frontend.project.get-detail
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
lng | 是 | float | 经度 |
lat | 是 | float | 纬度 |
project_id | 是 | int | 项目ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"project": {
"id": 2,
"uniacid": 5,
"title": "预约项目2",
"thumb": "https://dev1.yunzmall.com/attachment/images/5/2020/01/my5aAwK5WWLm9lzM2w5MM2cd04DDLA.jpg",
"banner_imgs": [
"https://dev1.yunzmall.com/attachment/images/5/2020/01/w9kIP5ZpArUokArSdOR9acEZkQYky7.jpg",
"https://dev1.yunzmall.com/attachment/images/5/2020/01/pYESAWYwYgNeay1I4NwHYz0a3yeG13.jpg"
],
"store_ids": "18,19",
"description": "项目介绍项目介绍",
"content": "<p><span style=\"color: rgb(67, 63, 63); font-family: arial, "Hiragino Sans GB", "Microsoft Yahei", 微软雅黑, 宋体, 宋体, Tahoma, Arial, Helvetica, STHeiti; font-size: 12px; text-align: right; background-color: rgb(255, 255, 255);\">项目描述</span><span style=\"color: rgb(67, 63, 63); font-family: arial, "Hiragino Sans GB", "Microsoft Yahei", 微软雅黑, 宋体, 宋体, Tahoma, Arial, Helvetica, STHeiti; font-size: 12px; text-align: right; background-color: rgb(255, 255, 255);\">项目描述</span></p>"
},
"goods": [
{
"id": 254,
"title": "预约商品1",
"thumb": "https://dev1.yunzmall.com/attachment/images/5/2020/01/fJT8Ht8gqdj8GM8MUmv1NtJ2Dvq81V.jpg",
"price": "100.00",
"show_sales": 8,
"status_name": null
}
],
"store": [
{
"id": 18,
"store_name": "草莓牛奶",
"thumb": "https://dev1.yunzmall.com/addons/yun_shop/storage/app/avatars/store_apply6aGYMcQsJU",
"longitude": "113.30046266811",
"latitude": "23.268749032591",
"address": "11111",
"mobile": "15212345678",
"business_hours_start": "10:00",
"business_hours_end": "10:00",
"distance": 6.4,
"unit": "km"
},
{
"id": 19,
"store_name": "浅光404",
"thumb": "https://dev1.yunzmall.com/addons/yun_shop/storage/app/avatars/store_applyzcyEt5spqX",
"longitude": "113.30046266811",
"latitude": "23.268749032591",
"address": "111",
"mobile": "15212345678",
"business_hours_start": "00:00",
"business_hours_end": "00:00",
"distance": 6.4,
"unit": "km"
}
]
}
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
projects | obj | 项目信息 |
projects->id | int | 项目ID |
projects->title | string | 项目标题 |
projects->thumb | string | 项目缩略图 |
projects->banner_imgs | Array | 项目详情页banner图 |
projects->description | string | 项目描述 |
projects->content | string | 项目详情 |
goods | obj | 商品信息 |
goods->id | int | 商品ID |
goods->title | string | 商品名称 |
goods->thumb | string | 商品缩略图 |
goods->price | float | 商品价格 |
goods->show_sales | int | 商品销量 |
store | obj | 技师所属门店信息 |
store->id | int | 门店ID |
store->store_name | string | 门店名称 |
store->thumb | string | 门店缩略图 |
store->longitude | float | 经度 |
store->latitude | float | 纬度 |
store->address | string | 地址 |
store->mobile | string | 电话 |
store->business_hours_start | string | 营业开始时间 |
store->business_hours_end | string | 营业结束时间 |
store->distance | float | 距离 |
store->unit | float | 距离单位 |
备注:
- 更多返回错误代码请看首页的错误代码描述