简要描述:

  • 获取首页数据

请求URL:

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

参数:

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

返回示例:

正确时返回:

{
    "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
            },
        ],
        "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": ""
            },
        ],
        "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"
            }
        ],
		 "category": [
            {
                "id": 2,
                "name": "呜呜",
                "thumb": "http://www.shop777.com/static/upload/images/1/2024/01/241fed586ea860e69064ce029009144c.jpg"
            },
            {
                "id": 1,
                "name": "上品",
                "thumb": ""
            }
        ],
    }
}

错误时返回:

  

返回参数说明:

参数名 类型 说明
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 项目描述
projects.has_one_store obj 项目门店信息,新样式返回
projects.has_one_store.store_address string 附近项目门店地址
projects.has_one_store.distance float 距离
projects.has_one_store.unit string 距离单位
workers obj 技师信息
workers.id int ID
workers.member_u_id int 用户Uid
workers.name string 姓名
workers.thumb string 缩略图
workers.has_one_store obj 项目门店信息,新样式返回
workers.has_one_store.store_address string 附近项目门店地址
workers.has_one_store.distance float 距离
workers.has_one_store.unit string 距离单位
category.id int 分类id
category.name string 分类名称
category.thumb string 分类图片地址

备注:

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