简要描述:
- 会员订单列表
请求域名:
- http://xx.com
请求URL:
plugin.live-install.frontend.order.orderList
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
code | 否 | string | 看返回数据的state_arr字段 |
page | 是 | int | 页数,初始值为1 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "获取成功",
"data": {
"total": 3,
"per_page": 15,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 3,
"data": [
{
"order_id": 1115,
"order_sn": "SN20200618092146JO",
"reserve_time": "2021-04-06 11:07",
"state_name": "已完成",
"button_group": [
{
"api": "order.my-comment.paging",
"name": "评价",
"code": "comment",
"beizhu": "会员评价订单"
}
],
"goods_list": [
{
"install_order_goods_id": 1,
"goods_id": 1079,
"title": "购物赠送余额测试123154655133",
"goods_option_title": "hhh22faffaff上三个三个是",
"thumb": "http://zouye.yunzmall.com/static/upload/newimage/5207761395c74705f9a56d9aeb973e08.jpg",
"total": 2
}
],
"goods_count": 2
},
{
"order_id": 1115,
"order_sn": "SN20200618092146JO",
"reserve_time": "2021-04-06 11:07",
"state_name": "待取货",
"button_group": [],
"goods_list": [
{
"install_order_goods_id": 1,
"goods_id": 1079,
"title": "购物赠送余额测试123154655133",
"goods_option_title": "hhh22faffaff上三个三个是",
"thumb": "http://zouye.yunzmall.com/static/upload/newimage/5207761395c74705f9a56d9aeb973e08.jpg",
"total": 2
}
],
"goods_count": 2
},
{
"order_id": 1115,
"order_sn": "SN20200618092146JO",
"reserve_time": "2021-04-06 11:07",
"state_name": "待取货",
"button_group": [],
"goods_list": [
{
"install_order_goods_id": 1,
"goods_id": 1079,
"title": "购物赠送余额测试123154655133",
"goods_option_title": "hhh22faffaff上三个三个是",
"thumb": "http://zouye.yunzmall.com/static/upload/newimage/5207761395c74705f9a56d9aeb973e08.jpg",
"total": 2
}
],
"goods_count": 2
}
],
"state_arr": [
{
"code": "all",
"name": "全部订单"
},
{
"code": "waitPay",
"name": "待支付"
},
{
"code": "waitWorker",
"name": "待分配"
},
{
"code": "waitTake",
"name": "待取货订单"
},
{
"code": "waitDeliveryPay",
"name": "待到付订单"
},
{
"code": "waitInstall",
"name": "待安装订单"
},
{
"code": "isFinish",
"name": "已完成订单"
},
{
"code": "refund",
"name": "售后订单"
}
]
}
}
错误时返回:
{
"result": 0,
"msg": "具体错误原因",
"data": {}
}
返回参数说明:
参数名 | 类型 | 说明 | |
---|---|---|---|
data[ ]->order_id | int | 订单id | |
data[ ]->order_sn | string | 订单号 | |
data[ ]->reserve_time | string | 预约安装时间 | |
data[ ]->reward_amount | float | 分红 | |
data[ ]->mobile | int | 手机号,为空字符串时不显示 | |
data[ ]->state_name | int | 订单状态名 | |
data[ ]->button_group | arr | 按钮组,可能出现的按钮code:orderRefunding,stateRefunding,orderApplyRefund,orderClose,comment,orderPay详情查看按钮组详解 | |
data[ ]->goods_list | arr | 订单商品列表 | |
data[ ]->goods_list[ ]->goods_id | int | 订单商品id | |
data[ ]->goods_list[ ]->title | string | 订单商品名 | |
data[ ]->goods_list[ ]->thumb | string | 订单商品图片 | |
data[ ]->goods_list[ ]->total | int | 订单内该商品的数量 | |
data[ ]->goods_count | int | 订单商品总数 |