简要描述:

  • 获取首页基本信息-分时预约

请求URL:

GET/plugin.reserve-simple.frontend.index.get-data

参数:

参数名 是否必须 类型 说明
lng float 经度
lat float 纬度

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "carousels": [
            {
                "id": 1,
                "name": "幻灯片2",
                "link": "http://localhost:82/addons/yun_shop/?menu#/category?i=2",
                "small_link": "/packageC/o2o/o2oHome/o2oHome",
                "thumb": "http://localhost:82/attachment/image/6adc3f84138f014bd480f58fd8a5205f.png"
            }
        ],
        "cservice": "https://static.meiqia.com/dist/standalone.html?eid=8783",
        "store_info": {
            "name": "店铺名称1",
            "full_address": " 店铺地址店铺地址",
            "lng": 113.275994999999994661266100592911243438720703125,
            "lat": 23.11705500000000057525539887137711048126220703125,
            "distance": 12369.5,
            "distance_unit": "km"
        },
        "recommand_obj_list": [
            {
                "id": 3,
                "uniacid": 2,
                "uid": 2664,
                "name": "预约对象3",
                "thumb": "http://localhost:82/attachment/image/3cf9069ddc96fafc492dc81aec6a7582.png",
                "description": "简介11",
                "reserve_num": 0
            }
        ]
    }
}

错误时返回:

  

返回参数说明:

参数名 类型 说明
carousels array 幻灯片
carousels->id int 幻灯片ID
carousels->name string 幻灯片名称
carousels->link string 幻灯片链接
carousels->small_link string 幻灯片小程序
carousels->thumb string 幻灯片缩略图
cservice obj/string 客服信息
store_info obj 门店信息
store_info->name string 门店名称
store_info->full_address string 门店地址
store_info->distance float 门店距离
store_info->distance_unit string 门店距离单位
recommand_obj_list obj 推荐预约对象列表
recommand_obj_list->id int 预约对象ID
recommand_obj_list->name string 预约对象名称
recommand_obj_list->thumb string 预约对象缩略图
recommand_obj_list->description string 预约对象描述
recommand_obj_list->reserve_num string 被预约次数

备注:

  • 更多返回错误代码请看首页的错误代码描述