简要描述:
请求域名:
请求URL:
GET/&route=plugin.be-within-call.frontend.order.shi-fu.index
参数:
参数名 |
是否必须 |
类型 |
说明 |
tab |
否 |
string |
选项卡状态 |
lng |
是 |
string |
计算距离需要 |
lat |
是 |
string |
计算距离需要 |
tab 参数对应值:
待接单订单 = wait_accept
待服务订单 = wait_work
已完成订单 = completed
超时退单 = overtime
已关闭订单 = close
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"current_page": 1,
"data": [
{
"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,
"button_models": [
{
"name": "我要接单",
"api": "plugin.be-within-call.frontend.need-order-operate.receive",
"value": "receive"
}
],
"unit": "m",
"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",
"has_one_order": {
"id": 935,
"status": 1,
"pay_type_id": 5,
"price": "120.00",
"refund_id": 0,
"plugin_id": 63,
"shop_name": "预约订单",
"create_time": "2023-03-14 14:05:35",
"pay_time": "2023-03-14 14:06:55",
"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
},
"order_address": {
"realname": "高级技师",
"mobile": "1503456234",
"address": "广东省 广州市 白云区 三元里街道 哈哈哈哈"
},
"has_one_member": {
"uid": 2455,
"nickname": "Joe",
"realname": "柏丽芬",
"mobile": "15219025049",
"avatar": "http://demo.yun.cn/static/upload/images/6/2018/04/yCfnKfcWicKXATi5fKI0watW8K0tz0.jpg",
"avatar_image": "http://demo.yun.cn/static/upload/images/6/2018/04/yCfnKfcWicKXATi5fKI0watW8K0tz0.jpg",
"username": "Joe"
},
"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": 1,
"total": 1
}
}
返回参数说明:
返回参数说明(分页):
参数名 |
类型 |
说明 |
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 |
order_sn |
string |
订单编号 |
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 |
订单按钮 |
order_address |
obj |
订单地址信息 |
order_address.realname |
obj |
联系人 |
order_address.mobile |
obj |
手机号 |
order_address.address |
obj |
订单详细地址信息 |
distance |
string |
距离 |
unit |
string |
距离单位 |
参数名 |
类型 |
说明 |
name |
string |
按钮名称 |
api |
string |
按钮路由 |
value |
string |
按钮标识 |
备注: