简要描述:

  • 个人需求订单列表

请求域名:

  • http://xx.com

请求URL:

GET/&route=plugin.be-within-call.frontend.order.personal-need.index

参数:

参数名 是否必须 类型 说明
tab string 选项卡状态
tab 参数对应值:
待支付订单 = wait_pay
待审核订单 = wait_check
待接单订单 = wait_accept
待服务订单 = wait_work
已完成订单 = completed
超时退单   = overtime
已关闭订单 = close

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 2,
                "uniacid": 6,
                "member_id": 2455,
                "ability_id": null,
                "order_id": 933,
                "shifu_uid": 2460,
                "category_id": 1,
                "order_sn": "SN230313153102260B",
                "province_id": 440000,
                "city_id": 440100,
                "district_id": 440111,
                "street_id": 440111007,
                "longitude": "113.28",
                "latitude": "23.15",
                "address": "哈哈哈哈",
                "title": "需要安慰",
                "service_fee": "100.00",
                "valid_time": "2023-03-13 18:10:19",
                "content": "本地需要上门服务",
                "need_type": 0,
                "apply_status": 1,
                "status": 1,
                "start_at": "2023-03-13 13:10:19",
                "finish_at": "2023-03-13 20:10:19",
                "created_at": "2023-03-13 15:31:28",
                "audit_time": "2023-03-14 15:17:58",
                "accept_time": null,
                "complete_time": null,
                "close_time": null,
                "is_hide": 0,
                "status_name": "待接单",
                "apply_status_name": "审核通过",
                "full_address": "广东省 广州市 白云区 棠景街道 哈哈哈哈",
                "start_time_str": "2023-03-13 13:10:19",
                "finish_time_str": "20:10:19",
                "image_url": "http://demo.yun.cn/static/upload/images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                "button_models": [],
                "has_one_order": {
                    "id": 933,
                    "status": 1,
                    "pay_type_id": 5,
                    "price": "100.00",
                    "refund_id": 0,
                    "plugin_id": 63,
                    "shop_name": "需求订单",
                    "status_name": "待发货",
                    "pay_type_name": "后台",
                    "process": [],
                    "has_one_pay_type": {
                        "id": 5,
                        "name": "后台",
                        "plugin_id": 0,
                        "code": "backend",
                        "type": 1,
                        "unit": "元",
                        "updated_at": "2019-04-15 12:07:20",
                        "created_at": null,
                        "deleted_at": null,
                        "setting_key": "",
                        "need_password": 0,
                        "group_id": 4
                    },
                    "has_one_behalf_pay": null
                },
                "has_one_shifu": {
                    "member_id": 2460,
                    "identity": 2,
                    "realname": "高级技师",
                    "mobile": "1503456234",
                    "annex_file": {
                        "corp_license": "",
                        "corp_image": [],
                        "id_card_front": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                        "id_card_reverse": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                        "capability_certificate": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                        "health_certificate": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                        "shifu_image": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                        "shifu_video": "videos/6/2023/03/f505b17f2c05751ca48c7f31ce7d7bbd.mp4"
                    },
                    "apply_status_name": "待审核",
                    "personal_pic": "http://demo.yun.cn/static/upload/images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg"
                },
                "has_one_category": {
                    "id": 1,
                    "title": "需求分类",
                    "thumb": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                    "thumb_url": "http://demo.yun.cn/static/upload/images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg"
                },
                "has_one_ability": null
            },
            {
                "id": 3,
                "uniacid": 6,
                "member_id": 2455,
                "ability_id": 1,
                "order_id": 935,
                "shifu_uid": 2460,
                "category_id": 2,
                "order_sn": "SN2303141405FD6DCB",
                "province_id": 440000,
                "city_id": 440100,
                "district_id": 440111,
                "street_id": 440111002,
                "longitude": "113.28",
                "latitude": "23.15",
                "address": "哈哈哈哈",
                "title": "测试技能",
                "service_fee": "120.00",
                "valid_time": "2023-03-14 14:16:55",
                "content": "本地需要上门服务",
                "need_type": 1,
                "apply_status": 1,
                "status": 0,
                "start_at": "2023-03-13 13:10:19",
                "finish_at": "2023-03-13 20:10:19",
                "created_at": "2023-03-14 14:05:35",
                "audit_time": "2023-03-14 14:06:55",
                "accept_time": null,
                "complete_time": null,
                "close_time": null,
                "is_hide": 0,
                "status_name": "待接单",
                "apply_status_name": "审核通过",
                "full_address": "广东省 广州市 白云区 三元里街道 哈哈哈哈",
                "start_time_str": "2023-03-13 13:10:19",
                "finish_time_str": "20:10:19",
                "image_url": "http://demo.yun.cn/static/upload/images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                "button_models": [],
                "has_one_order": {
                    "id": 935,
                    "status": 1,
                    "pay_type_id": 5,
                    "price": "120.00",
                    "refund_id": 0,
                    "plugin_id": 63,
                    "shop_name": "预约订单",
                    "status_name": "待发货",
                    "pay_type_name": "后台",
                    "process": [],
                    "has_one_pay_type": {
                        "id": 5,
                        "name": "后台",
                        "plugin_id": 0,
                        "code": "backend",
                        "type": 1,
                        "unit": "元",
                        "updated_at": "2019-04-15 12:07:20",
                        "created_at": null,
                        "deleted_at": null,
                        "setting_key": "",
                        "need_password": 0,
                        "group_id": 4
                    },
                    "has_one_behalf_pay": null
                },
                "has_one_shifu": {
                    "member_id": 2460,
                    "identity": 2,
                    "realname": "高级技师",
                    "mobile": "1503456234",
                    "annex_file": {
                        "corp_license": "",
                        "corp_image": [],
                        "id_card_front": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                        "id_card_reverse": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                        "capability_certificate": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                        "health_certificate": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                        "shifu_image": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                        "shifu_video": "videos/6/2023/03/f505b17f2c05751ca48c7f31ce7d7bbd.mp4"
                    },
                    "apply_status_name": "待审核",
                    "personal_pic": "http://demo.yun.cn/static/upload/images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg"
                },
                "has_one_category": {
                    "id": 2,
                    "title": "技能分类",
                    "thumb": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                    "thumb_url": "http://demo.yun.cn/static/upload/images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg"
                },
                "has_one_ability": {
                    "id": 1,
                    "title": "测试技能",
                    "fee": "120.00",
                    "desc": "啊啊啊啊啊啊",
                    "pic": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                    "apply_status_name": "待审核",
                    "pic_url": "http://demo.yun.cn/static/upload/images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                    "video_url": "",
                    "start_time_str": "",
                    "finish_time_str": ""
                }
            }
        ],
        "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": 20,
        "prev_page_url": null,
        "to": 2,
        "total": 2
    }
}

返回参数说明:

返回参数说明(分页):

参数名 类型 说明
current_page int 当前页数
per_page int 每页条数
to int 当前页条数
total int 总条数(直推人数)
data array 内容数据

data参数说明:

参数名 类型 说明
id int 需求ID
order_id int 订单ID
member_id int 发布者会员ID
shifu_uid int 师傅会员ID
longitude int 经度
latitude int 纬度
title string 需求标题
content string 服务内容
start_time_str string 服务开始时间
finish_time_str string 服务结束时间
valid_time string 信息有效期
need_type int 0需求订单1预约订单
service_fee int 服务金额
status_name string 订单状态
full_address string 订单地址
image_url string 订单图片
has_one_member.avatar_image string 会员信息头像
button_models array 订单按钮
has_one_shifu obj 师傅信息
order_address obj 订单地址信息
order_address.realname obj 联系人
order_address.mobile obj 手机号
order_address.address obj 订单详细地址信息

has_one_shifu参数说明:

参数名 类型 说明
realname string 师傅姓名
mobile string 师傅手机号
personal_pic int 师傅个人图片

button_models参数说明:

参数名 类型 说明
name string 按钮名称
api string 按钮路由
value string 按钮标识

button_models参数说明:

name value api
支付 pay order.merge-pay
取消 cancel-pay plugin.be-within-call.frontend.need-order-operate.cancel-pay
我要评论 publish plugin.be-within-call.frontend.need-order-operate.push-remark
我要评论 shifu plugin.be-within-call.frontend.need-order-operate.shi-fu-remark
我要接单 receive plugin.be-within-call.frontend.need-order-operate.receive

备注: