企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
**简要描述:** - 获取订单列表 **请求URL:** - ` api/order/getorderlist ` **请求方式:** - get **参数:** |参数名|是否必选|类型|说明| |:---- |:---|:----- |----- | |type |必选 |string |订单类型;all-全部;pay-待付款;delivery-待收货;finish-已完成;close-已关闭 | |page_no |必选 |int |页码(默认第一页) | |page_size |必选 |int |每页数量(默认15) | **返回示例** ``` { "code":1, "msg":"获取成功", "data":[ { "order_id":51, "shop_id":1, "order_sn":"202007101550071485", "order_status":0, "pay_status":0, "order_amount":"3199.00", "order_goods":[ { "id":43, "order_id":51, "goods_id":3, "item_id":10, "goods_num":1, "goods_name":"Redmi K30 5G", "goods_price":"3199.00", "total_price":"3199.00", "spec_value":"6GB 64GB,白桃乌龙", "spec_value_ids":"8,11", "image":"http:\/\/www.likeb2b2c.com:20002\/uploads\/images\/20200709\/addd557ab9b9bb5f860d7b279d35bd0b.png", "spec_image":"\/uploads\/images\/20200709\/9cd0cb88b9102ddca4e7be762b3a16f7.jpg", "create_time":1594367407 } ], "shop":{ "id":1, "name":"汇联盛世自营旗舰店" }, "goods_count":1, "pay_btn":1, "cancel_btn":1, "delivery_btn":0, "take_btn":0, "del_btn":0 }, { "order_id":49, "shop_id":9, "order_sn":"202007101533501071", "order_status":0, "pay_status":0, "order_amount":"84.00", "order_goods":[ { "id":40, "order_id":49, "goods_id":9, "item_id":33, "goods_num":1, "goods_name":"快乐辣条", "goods_price":"42.00", "total_price":"42.00", "spec_value":"默认", "spec_value_ids":"13", "image":"http:\/\/www.likeb2b2c.com:20002\/uploads\/images\/20200710\/d0627f95f0eb13fa27b92990aa6704f0.jpg", "spec_image":"", "create_time":1594366430 }, { "id":41, "order_id":49, "goods_id":7, "item_id":30, "goods_num":1, "goods_name":"雀巢(Nestle)脆脆鲨 休闲零食 威化饼干巧克力味24*20g 8*20g", "goods_price":"42.00", "total_price":"42.00", "spec_value":"默认", "spec_value_ids":"11", "image":"http:\/\/www.likeb2b2c.com:20002\/uploads\/images\/20200710\/cd7dfb551061f353ba53d21c2a2275c4.jpg", "spec_image":"", "create_time":1594366430 } ], "shop":{ "id":9, "name":"杰鑫零食店" }, "goods_count":2, "pay_btn":1, "cancel_btn":1, "delivery_btn":0, "take_btn":0, "del_btn":0 } ], "show":0, "time":"0.455587", } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- | |order_id |int |订单id |order_sn |int |订单编号 |order_amount |int |实付金额 |goods_count |int |订单商品总量 |order_status |int |订单状态;0-待付款;1-待发货;2-待收货;3-已完成;4-已关闭, |pay_btn |int |是否显示待支付按钮;1-是;0-否 |cancel_btn |int |是否显示取消订单按钮;1-是;0-否 |delivery_btn |int |是否显示查看物流按钮;1-是;0-否 |take_btn |int |是否显示确定收货按钮;1-是;0-否 |del_btn |int |是否显示删除订单按钮;1-是;0-否 |comment_btn |int |是否显示评论按钮;1-是;0-否 |order_cancel_time |int |订单自动取消时长(分钟) |order_goods |array |订单商品 |----goods_id |int |商品id |----goods_name |int |商品名称 |----spec_value |string |规格名称 |----image_str |string |商品图片 |shop |array |店铺信息 |----id |id |店铺id |----name |string |店铺名称 |----type |int |店铺类型:0-自营店铺,1-联盟店铺' **备注** - 这里是备注信息