Skip to content
关注公众号,获取新课通知

查看订单列表


接口功能

查看订单列表

URL

http://ceshi3.dishait.cn/api/order/:type

支持格式

JSON

HTTP请求方式

POST

header头
参数必选类型说明
tokentrueStringtoken
请求参数
参数必选类型说明
typetruestring订单类型,可选项:paying(待支付),receiving(待收货),reviewing(待评论),all(全部订单)
接口示例

http://ceshi3.dishait.cn/api/order/all

json5
{

   "msg": "ok",
   "data": [
     {
           "id": 125,
           "user_id": 3,
           "no": "20191214165957322059",
           "total_price": "0.25",
           "paid_time": 1576314004,
           "refund_status": "pending",
           "ship_status": "pending",
           "create_time": "2019-12-14 16:59:57",
           "reviewed": 0,
           "order_items": [
               {
                   "id": 122,
                   "order_id": 125,
                   "shop_id": 2,
                   "goods_id": 25,
                   "num": 1,
                   "price": "0.50",
                   "skus_type": 1,
                   "goods_item": {
                       "id": 25,
                       "title": "小米-百支酒店风抱枕套",
                       "cover": "http://...png",
                       "sku_type": 1
                   },
                   "goods_skus": {
                       "id": 2,
                       "skus": {
                           "0": {
                               "goods_skus_card_id": 1,
                               "id": 1,
                               "name": "颜色",
                               "value": "黄色"
                           },
                          // ...
                       }
                   }
               },
               // ...
           ]
       },
       // ...
   ]
}