🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
**简要描述:** - 获取订单详情 **请求URL:** - ` api/order/detail` **请求方式:** - get **参数:** |参数名|是否必选|类型|说明| |:---- |:---|:----- |----- | |id |必选 |id |订单id | **返回示例** ``` { "code": 1, "msg": "获取成功", "data": { "id": 6, "order_sn": "202101151014326716", "order_type": 2, "order_status": 0, "pay_way": 1, "pay_time": "", "consignee": "测试先生", "mobile": "13104997825", "delivery_type": 1, "goods_price": "1250.00", "order_amount": "1250.00", "discount_amount": "0.00", "integral_amount": "0.00", "total_amount": "1250.00", "total_num": 25, "shipping_price": "0.00", "shipping_time": "", "user_remark": "", "confirm_take_time": "", "cancel_time": "", "refund_status": 0, "settle_id": 0, "settle_amount": null, "use_integral": 0, "refund_amount": null, "create_time": "2021-01-15 10:14:32", "update_time": null, "coupon_list_id": null, "team": { "need": 2, "join": 1, "joins": [{ "avatar": "http:\/\/www.likeshopv2.localhost\/uploads\/user\/avatar\/259dd42fa8f6b7f34669f51d803c83eb.jpeg", "nickname": "momo", "is_found": 1 }], "notice": "您正在参与2人团" }, "order_goods": [{ "id": 5, "order_id": 6, "goods_id": 10, "item_id": 10, "goods_name": "顺丰包邮 12期免息日本PILOT百乐Justus 95钢笔14K金尖FJ-3MR可调书写软硬金笔成人书法练字商务办公送礼盒装", "goods_num": 25, "goods_price": "50.00", "total_price": "1250.00", "total_pay_price": "1250.00", "discount_price": "0.00", "integral_price": "0.00", "spec_value_ids": "10", "delivery_id": 0, "refund_status": 0, "is_comment": 0, "is_seckill": 0, "goods_info": "{\"item_id\":10,\"goods_id\":10,\"goods_name\":\"顺丰包邮 12期免息日本PILOT百乐Justus 95钢笔14K金尖FJ-3MR可调书写软硬金笔成人书法练字商务办公送礼盒装\",\"status\":1,\"del\":0,\"image\":\"\\\/uploads\\\/images\\\/background\\\/20201210\\\/6768915899c1f445e43c886ad5e8668a.png\",\"stock\":2369,\"free_shipping_type\":1,\"free_shipping\":\"0.00\",\"free_shipping_template_id\":0,\"spec_image\":\"\",\"spec_value_str\":\"默认\",\"spec_value_ids\":\"10\",\"goods_price\":\"50.00\",\"volume\":2,\"weight\":2,\"third_category_id\":15,\"original_price\":\"1680.00\",\"team_id\":1,\"image_str\":\"http:\\\/\\\/www.likeshopv2.localhost\\\/uploads\\\/images\\\/background\\\/20201210\\\/6768915899c1f445e43c886ad5e8668a.png\",\"goods_num\":\"25\"}", "create_time": 1610676872, "comment_btn": 0, "refund_btn": 0, "spec_value": "默认", "image": "http:\/\/www.likeshopv2.localhost\/uploads\/images\/background\/20201210\/6768915899c1f445e43c886ad5e8668a.png" }], "delivery_address": "北京北京市东城区测试小区", "pay_btn": 1, "cancel_btn": 1, "delivery_btn": 0, "take_btn": 0, "del_btn": 0, "order_cancel_time": 1610678672, "pay_way_text": "微信支付" }, "show": 0, "time": "0.339484" } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- | |order_id |int |订单id |order_sn |int |订单编号 |delivery_address |int |收货地址 |order_status |int |订单状态;0-待付款;1-待发货;2-待收货;3-已完成;4-已关闭 |user_remark |int |用户备注 |shipping_price |int |运费 |shipping_time |int |发货时间 |pay_time |int |支付时间 |goods_price |int |商品金额 |order_amount |int |实付金额 |total_amount |int |订单总额 |create_time |int |下单时间 |cancel_time |int |取消时间 |take_time |int |确认收货时间 |order_cancel_time |int |订单自动取消时长 |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-否 |refund_btn |int |是否显示申请退款按钮;1-是;0-否 |order_goods |array |订单商品 |----goods_id |int |商品id |----goods_name |int |商品名称 |----spec_value |string |规格名称 |----image |string |商品图片 |----goods_num | int | 商品数量 |----goods_price | float |商品价格 |team | array | 拼团信息;拼团订单才有 |need | int | 成团需要人数 |join| int | 已参团人数 |---joins | array | 参与人的头像 |------avatar | string | 头像 |------nickname | string | 昵称 |------is_found| int | 是否为团长;0-不是; 1-是 |---notice | string| 提示语 **备注** - 这里是备注信息