简要描述:

  • 获取首页数据

请求URL:

GET/plugin.appointment.frontend.index.get-data

参数:

参数名 是否必须 类型 说明
city_name string 城市名

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "carousels": [
            {
                "id": 1,
                "uniacid": 5,
                "name": "10",
                "link": "https://dev1.yunzmall.com/addons/yun_shop/?menu#/member/info?i=5",
                "thumb": "https://dev1.yunzmall.com/attachment/images/5/2020/01/Q2bwdwbi4Dwdz20dW01WgT4DDw81Wd.jpg",
                "display_order": 0,
                "is_open": 1,
                "created_at": "2020-01-03 17:31:46",
                "updated_at": "2020-01-03 17:31:46",
                "deleted_at": null
            },
            {
                "id": 2,
                "uniacid": 5,
                "name": "幻灯片1",
                "link": "https://dev1.yunzmall.com/addons/yun_shop/?menu#/home?i=5",
                "thumb": "https://dev1.yunzmall.com/attachment/images/5/2020/01/hHHL0l8CxIHJxF8VvC8x6OjflUzoLZ.jpg",
                "display_order": 0,
                "is_open": 1,
                "created_at": "2020-01-03 17:32:51",
                "updated_at": "2020-01-03 17:32:51",
                "deleted_at": null
            }
        ],
        "projects": [
            {
                "id": 5,
                "title": "预约项目4",
                "thumb": "https://dev1.yunzmall.com/attachment/images/5/2020/01/DdAkle3LzR9Cr3ekVOROC2EEEwEDc9.jpg",
                "score": "0.00",
                "comment_num": null,
                "appointment_num": null,
                "is_recommand": 1,
                "description": ""
            },
            {
                "id": 4,
                "title": "预约项目4",
                "thumb": "https://dev1.yunzmall.com/attachment/images/5/2020/01/vG8yuuwdDUDQqXwP2Lw0kLQu22ky1p.jpg",
                "score": "0.00",
                "comment_num": null,
                "appointment_num": null,
                "is_recommand": 1,
                "description": "项目介绍"
            },
            {
                "id": 2,
                "title": "预约项目2",
                "thumb": "https://dev1.yunzmall.com/attachment/images/5/2020/01/my5aAwK5WWLm9lzM2w5MM2cd04DDLA.jpg",
                "score": "0.00",
                "comment_num": null,
                "appointment_num": null,
                "is_recommand": 1,
                "description": "项目介绍项目介绍"
            },
            {
                "id": 1,
                "title": "预约项目1",
                "thumb": "https://dev1.yunzmall.com/attachment/images/5/2020/01/ox3tKMXFQ06dXCF44Oy3K0CzEu86QD.jpg",
                "score": "0.00",
                "comment_num": null,
                "appointment_num": null,
                "is_recommand": 1,
                "description": "项目介绍\r\n项目介绍\r\n项目介绍"
            }
        ],
        "workers": [
            {
                "id": 3,
                "uniacid": 5,
                "member_u_id": 77,
                "name": "技师3",
                "thumb": "https://dev1.yunzmall.com/attachment/images/5/2020/01/AQ6Bd72dJ00N1Zn7bLBb02Y14B6VbB.jpg"
            },
            {
                "id": 2,
                "uniacid": 5,
                "member_u_id": 77,
                "name": "技师2",
                "thumb": "https://dev1.yunzmall.com/attachment/images/5/2020/01/N4X9aWsM16AF6SXWiI5F6S84T6T6Ao.jpg"
            },
            {
                "id": 1,
                "uniacid": 5,
                "member_u_id": 95,
                "name": "技师1",
                "thumb": "https://dev1.yunzmall.com/attachment/images/5/2020/01/EawYbWawJAyfJ8VWXfaBZy21Xxj81z.jpg"
            }
        ]
    }
}

错误时返回:

  

返回参数说明:

参数名 类型 说明
carousels obj 幻灯片信息
carousels->name string 幻灯片名称
carousels->link string 链接
carousels->thumb string 图片地址
projects obj 推荐项目信息
projects->id int ID
projects->title string 项目名称
projects->thumb string 缩略图
projects->score float 评分
projects->comment_num int 评论数
projects->appointment_num int 预约次数
projects->description string 项目描述
workers obj 技师信息
workers->id int ID
workers->member_u_id int 用户Uid
workers->name string 姓名
workers->thumb string 缩略图

备注:

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