简要描述:

-订单列表

请求URL:

&route=plugin.shop-assistant.frontend.order.order-list

请求参数说明:

参数名 类型 是否必需 说明
search[search_type] int 1商品名2订单号3姓名4手机号
search[keyword] string 搜索数据
status string 传空就是全部,wait_pay待支付,wait_send待发货,wait_receive待收货,completed已完成

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"current_page": 1,
		"data": [
			{
				"id": 6,
				"order_sn": "SN20190416140038f2",
				"uid": 163778,
				"price": "50.00",
				"status": 1,
				"refund_id": 0,
				"plugin_id": 0,
				"is_pending": 0,
				"no_refund": 0,
				"fee_amount": "0.00",
				"shop_name": "芸信商城",
				"dispatch_type_id": 1,
				"finish_time": "1970-01-01 08:00:00",
				"is_all_send_goods": 0,
				"assist_button": [
					{
						"name": "确认发货",
						"value": "send",
						"api": "plugin.shop-assistant.frontend.order.send",
						"type": "send"
					},
					{
						"name": "多包裹发货",
						"value": "separate_send",
						"api": "plugin.shop-assistant.frontend.order.separate-send",
						"type": "separate_send"
					},
					{
						"name": "退款并关闭订单",
						"value": "manual_refund",
						"api": "plugin.shop-assistant.frontend.order.manual-refund",
						"type": "manual_refund"
					}
				],
				"status_name": "待发货",
				"pay_type_name": "",
				"process": [],
				"has_one_pay_type": null,
				"address": {
					"address": "北京 北京市 东城区 朝阳门街道 !!!",
					"mobile": "16620167538",
					"realname": "13113"
				},
				"has_many_order_goods": [
					{
						"goods_id": 2,
						"goods_option_id": 0,
						"goods_option_title": "",
						"goods_price": "50.00",
						"price": "50.00",
						"thumb": "https://dev8.yunzshop.com/static/upload/images/1/2019/04/tWMW4dK4vlxk2Zb29mGC922m82bwg2.jpg",
						"title": "测试",
						"total": 1,
						"goods_thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/02/In0DywOSf3FKWkF4nfkWSOyKm3iKRf.jpg",
						"buttons": [],
						"goods": {
							"id": 2,
							"uniacid": 1,
							"brand_id": 0,
							"type": 1,
							"status": 1,
							"display_order": 0,
							"title": "卫目天下护眼喷雾总代礼包",
							"thumb": "images/1/2020/02/In0DywOSf3FKWkF4nfkWSOyKm3iKRf.jpg",
							"thumb_url": "a:1:{i:0;s:51:\"images/1/2020/02/Q86E8G0SGYygh886644x1H7E18uYqq.jpg\";}",
							"sku": "套",
							"description": "",
							"content": "<p><img src="https://5c6-1301030994.cos.ap-shanghai.myqcloud.com/images/1/2020/06/NAcgwdL4URrRDn4a5Mm9Rn4TUJ8T3c.jpg" width="100%" alt="微信图片_20200601100630.jpg"/></p>",
							"goods_sn": "",
							"product_sn": "",
							"market_price": "8000.00",
							"price": "6000.00",
							"cost_price": "2060.00",
							"stock": 999,
							"reduce_stock_method": 2,
							"show_sales": 1102,
							"real_sales": 1102,
							"weight": "0.00",
							"has_option": 0,
							"is_new": 1,
							"is_hot": 1,
							"is_discount": 1,
							"is_recommand": 1,
							"is_comment": 0,
							"is_deleted": 0,
							"created_at": "2019-12-31 17:54:51",
							"deleted_at": null,
							"updated_at": "2021-11-01 13:50:18",
							"comment_num": 2,
							"is_plugin": 0,
							"plugin_id": 0,
							"virtual_sales": 500,
							"no_refund": 1,
							"need_address": 0,
							"type2": 1,
							"old_id": null,
							"volume": null,
							"status_name": "上架"
						}
					}
				],
				"has_one_refund_apply": null,
				"has_one_behalf_pay": null
			},
			{
				"id": 7,
				"order_sn": "SN20190416140209E2",
				"uid": 163778,
				"price": "50.00",
				"status": 1,
				"refund_id": 0,
				"plugin_id": 0,
				"is_pending": 0,
				"no_refund": 0,
				"fee_amount": "0.00",
				"shop_name": "芸信商城",
				"dispatch_type_id": 1,
				"finish_time": "1970-01-01 08:00:00",
				"is_all_send_goods": 0,
				"assist_button": [
					{
						"name": "确认发货",
						"value": "send",
						"api": "plugin.shop-assistant.frontend.order.send",
						"type": "send"
					},
					{
						"name": "多包裹发货",
						"value": "separate_send",
						"api": "plugin.shop-assistant.frontend.order.separate-send",
						"type": "separate_send"
					},
					{
						"name": "退款并关闭订单",
						"value": "manual_refund",
						"api": "plugin.shop-assistant.frontend.order.manual-refund",
						"type": "manual_refund"
					}
				],
				"status_name": "待发货",
				"pay_type_name": "",
				"process": [],
				"has_one_pay_type": null,
				"address": {
					"address": "北京 北京市 东城区 朝阳门街道 !!!",
					"mobile": "16620167538",
					"realname": "13113"
				},
				"has_many_order_goods": [
					{
						"goods_id": 2,
						"goods_option_id": 0,
						"goods_option_title": "",
						"goods_price": "50.00",
						"price": "50.00",
						"thumb": "https://dev8.yunzshop.com/static/upload/images/1/2019/04/tWMW4dK4vlxk2Zb29mGC922m82bwg2.jpg",
						"title": "测试",
						"total": 1,
						"goods_thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/02/In0DywOSf3FKWkF4nfkWSOyKm3iKRf.jpg",
						"buttons": [],
						"goods": {
							"id": 2,
							"uniacid": 1,
							"brand_id": 0,
							"type": 1,
							"status": 1,
							"display_order": 0,
							"title": "卫目天下护眼喷雾总代礼包",
							"thumb": "images/1/2020/02/In0DywOSf3FKWkF4nfkWSOyKm3iKRf.jpg",
							"thumb_url": "a:1:{i:0;s:51:\"images/1/2020/02/Q86E8G0SGYygh886644x1H7E18uYqq.jpg\";}",
							"sku": "套",
							"description": "",
							"content": "<p><img src="https://5c6-1301030994.cos.ap-shanghai.myqcloud.com/images/1/2020/06/NAcgwdL4URrRDn4a5Mm9Rn4TUJ8T3c.jpg" width="100%" alt="微信图片_20200601100630.jpg"/></p>",
							"goods_sn": "",
							"product_sn": "",
							"market_price": "8000.00",
							"price": "6000.00",
							"cost_price": "2060.00",
							"stock": 999,
							"reduce_stock_method": 2,
							"show_sales": 1102,
							"real_sales": 1102,
							"weight": "0.00",
							"has_option": 0,
							"is_new": 1,
							"is_hot": 1,
							"is_discount": 1,
							"is_recommand": 1,
							"is_comment": 0,
							"is_deleted": 0,
							"created_at": "2019-12-31 17:54:51",
							"deleted_at": null,
							"updated_at": "2021-11-01 13:50:18",
							"comment_num": 2,
							"is_plugin": 0,
							"plugin_id": 0,
							"virtual_sales": 500,
							"no_refund": 1,
							"need_address": 0,
							"type2": 1,
							"old_id": null,
							"volume": null,
							"status_name": "上架"
						}
					}
				],
				"has_one_refund_apply": null,
				"has_one_behalf_pay": null
			}
		],
		"first_page_url": "http://yzmall.com/addons/yun_shop/api.php?page=1",
		"from": 1,
		"last_page": 213,
		"last_page_url": "http://yzmall.com/addons/yun_shop/api.php?page=213",
		"next_page_url": "http://yzmall.com/addons/yun_shop/api.php?page=2",
		"path": "http://yzmall.com/addons/yun_shop/api.php",
		"per_page": 2,
		"prev_page_url": null,
		"to": 2,
		"total": 426
	}
}

返回参数说明:

参数名 类型 说明
id int id
order_sn string 订单编号
uid int 下单会员ID
price float 订单价格
status string 订单状态
status_name string 订单状态转中文
no_refund int 1不可退款,0可退款
shop_name string 平台名
assist_button array 按钮信息(跟商城订单列表的按钮都一样)
address array 订单地址信息
has_one_dispatch_type array 配送信息
has_many_order_goods array 订单商品信息

address返回参数说明:

参数名 类型 说明
realname string 姓名
mobile string 手机号
address string 地址

has_one_dispatch_type返回参数说明:

参数名 类型 说明
name string 配送方式名

has_many_order_goods返回参数说明:

参数名 类型 说明
goods_id int 商品ID
goods_option_title string 商品规格名
thumb string 图片
title string 商品名
total int 商品数量

错误时返回:

{
    "result": 0,
    "msg": "请登录",
    "data": []
}