简要描述:

  • 预约对象详情-分时预约

请求URL:

GET/plugin.reserve-simple.frontend.obj.detail

参数:

参数名 是否必须 类型 说明
id int 预约对象id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "obj_info": {
            "id": 2,
            "uniacid": 2,
            "uid": 2663,
            "name": "预约对象2",
            "service_ids": "1,2,3",
            "thumb": "http://localhost:82/attachment/image/e2c2359777f808f0dcea40c08ec2c3c1.png",
            "description": "简介简介",
            "content": "<hr />\n<p><span style=\"color: #666666; font-family: arial, 'Hiragino Sans GB', 'Microsoft Yahei', 微软雅黑, 宋体, 宋体, Tahoma, Arial, Helvetica, STHeiti; font-size: 14px; text-align: right; background-color: #ffffff; float: none; display: inline;\">简介</span><span style=\"color: #666666; font-family: arial, 'Hiragino Sans GB', 'Microsoft Yahei', 微软雅黑, 宋体, 宋体, Tahoma, Arial, Helvetica, STHeiti; font-size: 14px; text-align: right; background-color: #ffffff; float: none; display: inline;\">简介</span></p>",
            "reserve_num": 0,
            "created_at": "2022-01-24 11:09:36",
            "updated_at": "2022-01-24 11:09:36",
            "deleted_at": null
        },
        "cservice": "https://static.meiqia.com/dist/standalone.html?eid=8783",
        "store_info": {
            "name": "店铺名称1",
            "full_address": " 店铺地址店铺地址",
            "lng": 113.275994999999994661266100592911243438720703125,
            "lat": 23.11705500000000057525539887137711048126220703125
        },
        "goods_list": [
            {
                "id": 360,
                "thumb": "http://localhost:82/attachment/image/6adc3f84138f014bd480f58fd8a5205f.png",
                "total_sales": 10,
                "market_price": "30.00",
                "price": "30.00",
                "cost_price": "30.00",
                "title": "商品名称",
                "goods_id": 360,
                "has_option": 1,
                "vip_price": "30.00",
                "vip_next_price": 0,
                "vip_level_status": null,
                "price_level": 1,
                "is_open_micro": 2,
                "goods_points": "",
                "status_name": null,
                "has_many_options": [
                    {
                        "goods_id": 360,
                        "product_price": "100.00",
                        "market_price": "100.00",
                        "stock": 1000
                    },
                    {
                        "goods_id": 360,
                        "product_price": "10.00",
                        "market_price": "10.00",
                        "stock": 100
                    }
                ],
                "has_many_goods_discount": [
                    {
                        "id": 6735,
                        "goods_id": 360,
                        "level_discount_type": 1,
                        "discount_method": 1,
                        "level_id": 0,
                        "discount_value": "",
                        "created_at": "2022-02-07 14:42:38",
                        "updated_at": "2022-02-07 14:42:38",
                        "deleted_at": null
                    },
                    {
                        "id": 6736,
                        "goods_id": 360,
                        "level_discount_type": 1,
                        "discount_method": 1,
                        "level_id": 1,
                        "discount_value": "",
                        "created_at": "2022-02-07 14:42:38",
                        "updated_at": "2022-02-07 14:42:38",
                        "deleted_at": null
                    },
                    {
                        "id": 6737,
                        "goods_id": 360,
                        "level_discount_type": 1,
                        "discount_method": 1,
                        "level_id": 10,
                        "discount_value": "",
                        "created_at": "2022-02-07 14:42:38",
                        "updated_at": "2022-02-07 14:42:38",
                        "deleted_at": null
                    },
                    {
                        "id": 6738,
                        "goods_id": 360,
                        "level_discount_type": 1,
                        "discount_method": 1,
                        "level_id": 11,
                        "discount_value": "",
                        "created_at": "2022-02-07 14:42:38",
                        "updated_at": "2022-02-07 14:42:38",
                        "deleted_at": null
                    },
                    {
                        "id": 6739,
                        "goods_id": 360,
                        "level_discount_type": 1,
                        "discount_method": 1,
                        "level_id": 12,
                        "discount_value": "",
                        "created_at": "2022-02-07 14:42:38",
                        "updated_at": "2022-02-07 14:42:38",
                        "deleted_at": null
                    },
                    {
                        "id": 6740,
                        "goods_id": 360,
                        "level_discount_type": 1,
                        "discount_method": 1,
                        "level_id": 13,
                        "discount_value": "",
                        "created_at": "2022-02-07 14:42:38",
                        "updated_at": "2022-02-07 14:42:38",
                        "deleted_at": null
                    },
                    {
                        "id": 6741,
                        "goods_id": 360,
                        "level_discount_type": 1,
                        "discount_method": 1,
                        "level_id": 14,
                        "discount_value": "",
                        "created_at": "2022-02-07 14:42:38",
                        "updated_at": "2022-02-07 14:42:38",
                        "deleted_at": null
                    },
                    {
                        "id": 6742,
                        "goods_id": 360,
                        "level_discount_type": 1,
                        "discount_method": 1,
                        "level_id": 15,
                        "discount_value": "",
                        "created_at": "2022-02-07 14:42:38",
                        "updated_at": "2022-02-07 14:42:38",
                        "deleted_at": null
                    },
                    {
                        "id": 6743,
                        "goods_id": 360,
                        "level_discount_type": 1,
                        "discount_method": 1,
                        "level_id": 16,
                        "discount_value": "",
                        "created_at": "2022-02-07 14:42:38",
                        "updated_at": "2022-02-07 14:42:38",
                        "deleted_at": null
                    }
                ]
            }
        ]
    }
}

错误时返回:

  

返回参数说明:

参数名 类型 说明
obj_info obj 预约对象信息
obj_info->id int 预约对象ID
obj_info->name string 预约对象名称
obj_info->thumb string 预约对象缩略图
obj_info->description string 简介
obj_info->content string 详情
obj_info->reserve_num int 已预约次数
cservice obj/string 客服信息
store_info obj 门店信息
goods_list array 商品列表

备注:

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