黑马程序员-智慧商城H5
  1. 订单模块
黑马程序员-智慧商城H5
  • wiki说明
  • 公共模块
    • 上传图片
      POST
  • 首页模块
    • 获取首页数据
      GET
  • 分类模块
    • 获取全部分类
      GET
  • 商品模块
    • 获取商品详情
      GET
    • 商品搜索
      GET
    • 商品保障服务
      GET
  • 登录模块
    • 获取图形验证码-选做
      GET
    • 获取短信验证码-选做
      POST
    • 手机验证码登录
      POST
  • 用户模块
    • 获取用户信息
      GET
    • 获取余额,积分,优惠券
      GET
    • 获取商品状态数量(全部/待支付/待收货/待发货)
      GET
  • 购物车
    • 添加商品到购物车
      POST
    • 获取购物车商品列表
      GET
    • 更新购物车商品
      POST
    • 删除购物车商品
      POST
    • 获取购物车商品总数量
      GET
  • 订单模块
    • 获取订单结算信息
      GET
    • 提交订单
      POST
    • 支付订单
      GET
    • 获取订单列表
      GET
    • 获取订单详情
      GET
    • 取消订单
      POST
    • 订单确认收货
      POST
    • 订单评价商品列表
      GET
  • 收获地址
    • 获取收货地址列表
    • 获取默认收货地址id
    • 获取省市区-添加地址
    • 添加收货地址
    • 设置默认地址
    • 删除收货地址
    • 获取收货地址详情
    • 编辑收货地址
  • 商品评价
    • 获取商品评价
    • 获取商品评价总数
    • 商品评价列表
  • 其他
    • 我的-提交商品评价
    • 我的-申请售后
  1. 订单模块

获取订单列表

开发中
GET
/order/list

请求参数

Query 参数
dataType
string 
必需
订单类型,all-全部,payment-待支付,delivery-待发货,received-待收货,comment-待评价
示例值:
all
page
string 
默认值
必需
示例值:
1
Header 参数
Access-Token
string 
必需
示例值:
1741f74aed758a688515f72572dc8e37
platform
string 
必需
示例值:
H5、MP-WEIXIN

返回响应

🟢200成功
application/json
Body
status
integer 
必需
message
string 
必需
data
object 
必需
list
object 
必需
示例
{
    "status": 200,
    "message": "success",
    "data": {
        "list": {
            "total": 12,
            "per_page": 15,
            "current_page": 1,
            "last_page": 1,
            "data": [
                {
                    "order_id": 10027,
                    "order_no": "2023032448524849",
                    "total_price": "0.01",
                    "order_price": "0.01",
                    "coupon_id": 0,
                    "coupon_money": "0.00",
                    "points_money": "0.00",
                    "points_num": 0,
                    "pay_price": "0.01",
                    "update_price": {
                        "symbol": "+",
                        "value": "0.00"
                    },
                    "buyer_remark": "",
                    "pay_type": 10,
                    "pay_status": 20,
                    "pay_time": "2023-03-24 08:46:56",
                    "delivery_type": 10,
                    "express_price": "0.00",
                    "express_id": 0,
                    "express_company": "",
                    "express_no": "",
                    "delivery_status": 10,
                    "delivery_time": "",
                    "receipt_status": 10,
                    "receipt_time": "",
                    "order_status": 10,
                    "points_bonus": 0,
                    "is_settled": 0,
                    "transaction_id": "",
                    "is_comment": 0,
                    "order_source": 10,
                    "order_source_id": 0,
                    "platform": "h5",
                    "user_id": 10003,
                    "is_delete": 0,
                    "create_time": "2023-03-24 08:46:56",
                    "goods": [
                        {
                            "order_goods_id": 10032,
                            "goods_id": 10038,
                            "goods_name": "三星手机 SAMSUNG Galaxy S23 8GB+256GB 超视觉夜拍系统 超清夜景 悠雾紫 5G手机 游戏拍照旗舰机s23",
                            "image_id": 10214,
                            "deduct_stock_type": 10,
                            "spec_type": 10,
                            "goods_sku_id": "0",
                            "goods_props": null,
                            "goods_no": "SH001",
                            "goods_price": "0.01",
                            "line_price": "6699.00",
                            "goods_weight": 0.1,
                            "is_user_grade": 1,
                            "grade_ratio": 10,
                            "grade_goods_price": "0.01",
                            "grade_total_money": "0.00",
                            "coupon_money": "0.00",
                            "points_money": "0.00",
                            "points_num": 0,
                            "points_bonus": 0,
                            "total_num": 1,
                            "total_price": "0.01",
                            "total_pay_price": "0.01",
                            "is_comment": 0,
                            "order_id": 10027,
                            "user_id": 10003,
                            "goods_source_id": 0,
                            "goods_image": "http://cba.itlike.com/public/uploads/10001/20230321/8f505c6c437fc3d4b4310b57b1567544.jpg",
                            "image": {
                                "file_id": 10214,
                                "group_id": 0,
                                "channel": 10,
                                "storage": "local",
                                "domain": "",
                                "file_type": 10,
                                "file_name": "p1.jpg",
                                "file_path": "10001/20230321/8f505c6c437fc3d4b4310b57b1567544.jpg",
                                "file_size": 71199,
                                "file_ext": "jpg",
                                "cover": "",
                                "uploader_id": 0,
                                "is_recycle": 0,
                                "is_delete": 0,
                                "store_id": 10001,
                                "create_time": "2023-03-21 09:47:30",
                                "update_time": "2023-03-21 09:47:30",
                                "preview_url": "http://cba.itlike.com/public/uploads/10001/20230321/8f505c6c437fc3d4b4310b57b1567544.jpg",
                                "external_url": "http://cba.itlike.com/public/uploads/10001/20230321/8f505c6c437fc3d4b4310b57b1567544.jpg"
                            }
                        }
                    ],
                    "state_text": "待发货"
                },
                {
                    "order_id": 10026,
                    "order_no": "2023032497501025",
                    "total_price": "0.01",
                    "order_price": "0.01",
                    "coupon_id": 0,
                    "coupon_money": "0.00",
          
上一页
支付订单
下一页
获取订单详情
Built with