简要描述:

  • 接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2020-07-06

请求URL:

请求方式:

  • GET

请求头:

参数名 是否必须 类型 说明
token string token参数

请求参数:

参数名 是否必须 类型 说明
page int 页码
pagesize int 条数
get_order_type int 订单状态【1=待付款 2=待发货 3=待收货 4=待评价 5=已评价 6=已完成 】

返回示例:

正确时返回:

{
    "status": 200,
    "msg": "成功",
    "data": {
        "list": [
            {
                "order_id": 3,
                "uid": 4,
                "goods_order_num": "202007062232465038644308",
                "goods_all_price": "240.00",
                "pay_method": 1,
                "order_date": "2020-07-06",
                "goods_list": [
                    {
                        "goods_id": 5,
                        "goods_price": "240.00",
                        "num": 3,
                        "goods_name": "测试26孔",
                        "goods_cover": "http://unionshop.com:82/uploads/image/2020-07-06/5f02e517e0dfe.png",
                        "option_list_str": "白色;玻璃层架;蓝光",
                    }
                ],
                "goods_num":3
                "order_status": 0
            }
        ],
        "page": 1,
        "pagesize": 1,
        "total": 3
    },
    "other": []
}

错误时返回:

{
    "status": 0,
    "msg": "token过期",
    "data": []
}

list返回参数说明:

参数名 类型 说明
order_id int 订单id
uid int 用户id
goods_order_num int 订单号
goods_all_price string 订单总价格
pay_method string 支付方式 【WeChat=微信 Alipay=支付宝】
order_date string 订单时间
goods_list string 商品列表
goods_num int 商品件数
order_status int 订单状态【order_status 0=待支付 1=支付成功 2=支付失败 3=订单取消 4=退款中 5=已退款6=已发货 7=未发货 8=已收货 9=未收货 10=已评价 11=未评价】

goods_list返回参数说明:

参数名 类型 说明
goods_id int 商品id
goods_price string 商品价格
num int 数量
goods_name string 商品名称
goods_cover string 封面
option_list_str string 选项列表

备注:

  • order_status=0 取消按钮,立即支付,详情按钮
  • order_status=1 退款按钮,详情按钮
  • order_status=2 删除按钮,详情按钮
  • order_status=3 删除按钮,详情按钮
  • order_status=4 详情按钮
  • order_status=5 删除按钮,详情按钮
  • order_status=6 查看物流,详情按钮
  • order_status=7 退款按钮,详情按钮
  • order_status=8 查看物流,详情按钮,确认收货
  • order_status=9 查看物流,详情按钮
  • order_status=10 查看物流,详情按钮
  • order_status=11 查看物流,详情按钮,评价按钮
文档更新时间: 2021-05-27 10:26   作者:admin