电商管理后台 API 接口文档 (10)

响应数据

{ "data": { "order_id": 67, "user_id": 1, "order_number": "itcast-g7kmck71vjaujfgoi", "order_price": 20, "order_pay": "0", "is_send": "否", "trade_no": "", "order_fapiao_title": "个人", "order_fapiao_company": "", "order_fapiao_content": "", "consignee_addr": "", "pay_status": "0", "create_time": 1512533560, "update_time": 1512533560, "goods": [ { "id": 82, "order_id": 67, "goods_id": 96, "goods_price": 333, "goods_number": 2, "goods_total_price": 999 }, { "id": 83, "order_id": 67, "goods_id": 95, "goods_price": 666, "goods_number": 5, "goods_total_price": 999 } ] }, "meta": { "msg": "获取成功", "status": 200 } } 1.10.3. 查看订单详情

请求路径:orders/:id

请求方法:get

请求参数

参数名 参数说明 备注
id   订单 ID   不能为空携带在url中  

响应数据

{ "data": { "order_id": 67, "user_id": 1, "order_number": "itcast-g7kmck71vjaujfgoi", "order_price": 20, "order_pay": "0", "is_send": "否", "trade_no": "", "order_fapiao_title": "个人", "order_fapiao_company": "", "order_fapiao_content": "", "consignee_addr": "", "pay_status": "0", "create_time": 1512533560, "update_time": 1512533560, "goods": [ { "id": 82, "order_id": 67, "goods_id": 96, "goods_price": 333, "goods_number": 2, "goods_total_price": 999 }, { "id": 83, "order_id": 67, "goods_id": 95, "goods_price": 666, "goods_number": 5, "goods_total_price": 999 } ] }, "meta": { "msg": "获取成功", "status": 200 } } 1.10.4. 修改地址

省市区/县联动效果 - 结合ElementUI的 el-cascader 组件

1.10.5. 查看物流信息

请求路径:/kuaidi/:id

请求方法:get

供测试的物流单号:1106975712662

响应数据:

{ "data": [ { "time": "2018-05-10 09:39:00", "ftime": "2018-05-10 09:39:00", "context": "已签收,感谢使用顺丰,期待再次为您服务", "location": "" }, { "time": "2018-05-10 08:23:00", "ftime": "2018-05-10 08:23:00", "context": "[北京市]北京海淀育新小区营业点派件员 顺丰速运 95338正在为您派件", "location": "" }, { "time": "2018-05-10 07:32:00", "ftime": "2018-05-10 07:32:00", "context": "快件到达 [北京海淀育新小区营业点]", "location": "" }, { "time": "2018-05-10 02:03:00", "ftime": "2018-05-10 02:03:00", "context": "快件在[北京顺义集散中心]已装车,准备发往 [北京海淀育新小区营业点]", "location": "" }, { "time": "2018-05-09 23:05:00", "ftime": "2018-05-09 23:05:00", "context": "快件到达 [北京顺义集散中心]", "location": "" }, { "time": "2018-05-09 21:21:00", "ftime": "2018-05-09 21:21:00", "context": "快件在[北京宝胜营业点]已装车,准备发往 [北京顺义集散中心]", "location": "" }, { "time": "2018-05-09 13:07:00", "ftime": "2018-05-09 13:07:00", "context": "顺丰速运 已收取快件", "location": "" }, { "time": "2018-05-09 12:25:03", "ftime": "2018-05-09 12:25:03", "context": "卖家发货", "location": "" }, { "time": "2018-05-09 12:22:24", "ftime": "2018-05-09 12:22:24", "context": "您的订单将由HLA(北京海淀区清河中街店)门店安排发货。", "location": "" }, { "time": "2018-05-08 21:36:04", "ftime": "2018-05-08 21:36:04", "context": "商品已经下单", "location": "" } ], "meta": { "status": 200, "message": "获取物流信息成功!" } }

1.11. 数据统计 1.11.1. 基于时间统计的折线图

请求路径:reports/type/1

请求方法:get

响应数据

需要合并的选项

options: { title: { text: \'用户来源\' }, tooltip: { trigger: \'axis\', axisPointer: { type: \'cross\', label: { backgroundColor: \'#E9EEF3\' } } }, grid: { left: \'3%\', right: \'4%\', bottom: \'3%\', containLabel: true }, xAxis: [ { boundaryGap: false } ], yAxis: [ { type: \'value\' } ] }

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zzzddx.html