简要描述:

  • 首页-技能师傅

请求域名:

  • http://xx.com

请求URL:

GET/&route=plugin.be-within-call.frontend.index.tab-two&sort_type=2

参数:

参数名 是否必须 类型 说明
sort_type int 必传,值固定:2
lng string 计算距离需要
lat string 计算距离需要

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "home",
    "data": {
        "categoryList": {
            "current_page": 1,
            "data": [
                {
                    "id": 2,
                    "uniacid": 6,
                    "sort": 0,
                    "type": 2,
                    "title": "技能分类",
                    "is_show": 1,
                    "is_recommend": 1,
                    "created_at": "2023-02-27 17:46:41",
                    "thumb": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                    "thumb_url": "http://demo.yun.cn/static/upload/images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg"
                }
            ],
            "first_page_url": "http://demo.yun.cn/addons/yun_shop/api.php?page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "http://demo.yun.cn/addons/yun_shop/api.php?page=1",
            "next_page_url": null,
            "path": "http://demo.yun.cn/addons/yun_shop/api.php",
            "per_page": 15,
            "prev_page_url": null,
            "to": 1,
            "total": 1
        },
        "recommendCategory": [
            {
                "id": 2,
                "uniacid": 6,
                "sort": 0,
                "type": 2,
                "title": "技能分类",
                "is_show": 1,
                "is_recommend": 1,
                "created_at": "2023-02-27 17:46:41",
                "thumb": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                "has_many_shifu": [
                    {
                        "ability_id": 1,
                        "shifu_id": 3,
                        "distance": 12368.7,
                        "unit": "km",
                        "personal_pic": "http://demo.yun.cn/static/upload/images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg"
                    }
                ],
                "thumb_url": "http://demo.yun.cn/static/upload/images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg"
            }
        ],
        "nearby_shifu": {
            "current_page": 1,
            "data": [
                {
                    "id": 3,
                    "uniacid": 6,
                    "member_id": 2460,
                    "identity": 2,
                    "blacklist": 0,
                    "province_name": "广东省",
                    "city_name": "广州市",
                    "district_name": "白云区",
                    "street_name": "景泰街道",
                    "province_id": 440000,
                    "city_id": 440100,
                    "district_id": 440111,
                    "street_id": 440111004,
                    "longitude": "113.28",
                    "latitude": "23.18",
                    "realname": "高级技师",
                    "mobile": "1503456234",
                    "other1": "1",
                    "other2": "",
                    "other3": "",
                    "created_at": "2023-03-09 17:36:22",
                    "detail_info": {
                        "age": "25",
                        "sex": "女",
                        "native_place": "都是",
                        "nation": "满",
                        "education": "天堂级别",
                        "stature": "169",
                        "weight": "120",
                        "introduce": "让你爽上天"
                    },
                    "apply_status": 1,
                    "distance": 7640.1,
                    "unit": "km",
                    "apply_status_name": "审核通过",
                    "personal_pic": "http://demo.yun.cn/static/upload/images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg"
                }
            ],
            "first_page_url": "http://demo.yun.cn/addons/yun_shop/api.php?page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "http://demo.yun.cn/addons/yun_shop/api.php?page=1",
            "next_page_url": null,
            "path": "http://demo.yun.cn/addons/yun_shop/api.php",
            "per_page": 15,
            "prev_page_url": null,
            "to": 1,
            "total": 1
        }
    }
}

返回参数说明:

返回参数说明(分页):

参数名 类型 说明
current_page int 当前页数
per_page int 每页条数
to int 当前页条数
total int 总条数(直推人数)
data array 内容数据
参数名 类型 说明
categoryList array 分类集合
recommendCategory array 推荐分类集合
nearby_shifu array 附件师傅集合

categoryList.data参数说明:

参数名 类型 说明
title string 分类名称
thumb_url string 分类图片
has_many_shifu array 师傅集合
has_many_shifu.shifu_id int 师傅ID
has_many_shifu.personal_pic string 师傅图片
has_many_shifu.ability_id int 师傅技能ID
has_many_shifu.distance string 距离
has_many_shifu.unit string 距离单位

nearby_shifu.data参数说明:

参数名 类型 说明
id int 师傅ID
personal_pic string 师傅图片
distance string 距离
unit string 距离单位

备注: