#### 列表
> 状态,0=>已取消,1=>待付款,2=>待发货,3=>待收货,4=>待评价,5=>已评价
~~~[api]
get:/index/order/index
number:status=0#状态,0=>全部,1=>待付款,2=>待发货,3=>待收货,4=>待评价
number:p=1#当前页数
number:ps=10#分页大小
<<<
success
{
"code": 1,
"msg": "",
"time": "2018-06-25 12:12:51",
"data": [
{
"id": 11,
"dealer_id": 1,
"stores_id": 1,
"member_id": 5,
"referrer_id": 0,
"sn": "20180625105227612375",
"buyer_ip": "127.0.0.1",
"buyer_terminal": 3,
"consignee": "收货人",
"mobile": "18666864521",
"email": "",
"country": "86",
"province": "100000",
"city": "110000",
"district": "111000",
"twon": "0",
"address": "详细地址",
"zipcode": "",
"longitude": "1",
"latitude": "1",
"delivery_type": 1,
"delivery_price": "0.00",
"express_name": "",
"express_shipper_code": "",
"express_code": "",
"express_price": "0.00",
"express_remark": "",
"other_price": "0.00",
"other_price_remark": "",
"redpacket_deduction": "0.00",
"coupon_deduction": "0.00",
"balance_deduction": "0.00",
"actual_price": "0.00",
"price": "10.00",
"member_remark": "",
"remark": "",
"pay_type": 0,
"pay_code": "",
"sort": 0,
"is_cancel": 0,
"is_payment": 0,
"is_deliver": 0,
"is_receiving": 0,
"is_complete": 0,
"is_evaluate": 0,
"status": 1,
"created_at": "2018-06-25 10:52:27",
"updated_at": "2018-06-25 10:52:27",
"cancel_at": "2016-01-01 00:00:00",
"payment_at": "2016-01-01 00:00:00",
"deliver_at": "2016-01-01 00:00:00",
"receiving_at": "2016-01-01 00:00:00",
"complete_at": "2016-01-01 00:00:00",
"evaluate_at": "2016-01-01 00:00:00",
"stores": {
"id": 1,
"name": "门店1",
"thumb": "http://oss.dgyouduo.com/static/img/no-image.png"
},
"order_goods": [
{
"id": 7,
"order_id": 11,
"name": "商品1",
"thumb": "http://oss.dgyouduo.com/static/img/no-image.png",
"price": "10.00",
"market_price": "20.00",
"number": 1
}
],
"status_text": "待付款"
}
],
"_meta": {
"totalCount": 1,
"pageCount": 1,
"currentPage": 1,
"perPage": 1
}
}
~~~
#### 详情
> 状态,0=>已取消,1=>待付款,2=>待发货,3=>待收货,4=>待评价,5=>已评价
~~~[api]
get:/index/order/retrieve/id/:id
<<<
success
{
"code": 1,
"msg": "",
"time": "2018-06-26 16:34:28",
"data": {
"id": 4,
"dealer_id": 1,
"stores_id": 1,
"member_id": 5,
"referrer_id": 0,
"sn": "20180625020315722836",
"buyer_ip": "127.0.0.1",
"buyer_terminal": 3,
"consignee": "收货人",
"mobile": "18666864521",
"email": "",
"country": "86",
"province": "100000",
"city": "110000",
"district": "111000",
"twon": "0",
"address": "详细地址",
"zipcode": "",
"longitude": "1",
"latitude": "1",
"delivery_type": 1,
"delivery_price": "0.00",
"express_name": "",
"express_shipper_code": "",
"express_code": "",
"express_price": "0.00",
"express_remark": "",
"other_price": "0.00",
"other_price_remark": "",
"redpacket_deduction": "0.00",
"coupon_deduction": "0.00",
"balance_deduction": "0.00",
"actual_price": "0.00",
"price": "10.00",
"member_remark": "",
"remark": "",
"pay_type": 0,
"pay_code": "",
"sort": 0,
"is_cancel": 1,
"is_payment": 0,
"is_deliver": 0,
"is_receiving": 0,
"is_complete": 0,
"is_evaluate": 0,
"status": 1,
"created_at": "2018-06-25 02:03:15",
"updated_at": "2018-06-25 11:24:27",
"cancel_at": "2018-06-25 11:24:27",
"payment_at": "2016-01-01 00:00:00",
"deliver_at": "2016-01-01 00:00:00",
"receiving_at": "2016-01-01 00:00:00",
"complete_at": "2016-01-01 00:00:00",
"evaluate_at": "2016-01-01 00:00:00",
"stores": {
"id": 1,
"name": "门店1",
"thumb": "http://oss.dgyouduo.com/static/img/no-image.png"
},
"order_goods": [
{
"id": 1,
"order_id": 4,
"name": "商品1",
"thumb": "http://oss.dgyouduo.com/static/img/no-image.png",
"price": "10.00",
"market_price": "20.00",
"number": 1
}
],
"status_text": "待付款"
}
}
~~~
#### 购买
> 流程
> 获取门店和商品数据(返回商品总价和门店优惠、订单总价)
> 获取收货地址并选择
> 选择配送方式,快递、配送、自取(返回快递费或配送费或不在配送范围、订单总价)
> 选择优惠券(返回优惠券抵扣、订单总价)
> 选择红包(返回红包抵扣、订单总价)
~~~[api]
post:/index/order/buy
*number:stores_id#门店ID
*array:goods#商品
*number:goods_id#商品ID
*string:sku_key#商品存放SKU库存量项目ID
*number:number#商品数量
number:seckill_id#秒杀ID
number:address_id#收货地址ID
number:delivery_type#配送方式,1=>快递,2=>配送员送货,3=>自取
number:redpacket_id#红包记录ID
number:coupon_id#优惠券记录ID
<<<
success
{
"code": 1,
"msg": "",
"time": "2018-08-21 16:23:31",
"data": {
"stores": {
"id": 17,
"dealer_id": 1,
"cate_id": 2,
"auditd_id": 1,
"type": 2,
"name": "门店17",
"thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/08/pbcl71A8szLJ3k4SOypb8NizkkeIVH70.png",
"banner": [
"http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/07/uEj1cSh3qgDCjopNMVPWEL2ojRoiJz6O.jpg"
],
"notice": "欢迎光临,很高兴为您服务",
"mobile": "13380855430",
"province": 440000,
"city": 441900,
"district": 441903,
"twon": 0,
"address": "汇景上层",
"longitude": "113.742674",
"latitude": "23.00368",
"business_hours_start": "1",
"business_hours_end": "24",
"template_style": 1,
"delivery_scope": 1,
"delivery_setting": "1292",
"delivery_time": 1,
"delivery_goods_min_price": "10.00",
"delivery_price": "2.00",
"sort": 0,
"sales": 0,
"is_support_two": 1,
"is_support_express": 0,
"is_support_self_pickup": 0,
"is_support_delivery": 1,
"is_support_make_delivery": 0,
"is_self_delivery": 1,
"is_audit": 1,
"is_trash": 0,
"status": 1,
"created_at": "2018-07-17 18:58:21",
"updated_at": "2018-08-14 16:35:38",
"auditd_at": "2018-07-20 16:17:08",
"is_audit_text": "审核通过",
"status_text": "正常"
},
"goods": [
{
"id": 39,
"dealer_id": 1,
"stores_id": 17,
"cate_id": 31,
"brands_id": 31,
"express_id": 0,
"template_id": 4,
"sn": "20180820121258476076",
"name": "商品四",
"weight": 0,
"volume": 0,
"thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/08/WeJqEtDugxl1bKY5bHwFEQvtqwdiySNL.png",
"banner": [
"http://oss.dgyouduo.com/static/img/no-image-16x10.png"
],
"summary": "商品四",
"price": "4.00",
"market_price": "4.00",
"inventory": 400,
"view_count": 0,
"sale_count": 0,
"sort": 0,
"is_free_shipping": 1,
"is_hot": 0,
"is_new": 0,
"is_real": 1,
"is_sale": 1,
"is_trash": 0,
"status": 1,
"created_at": "2018-08-11 11:48:46",
"updated_at": "2018-08-11 11:48:46",
"saled_at": "2016-01-01 00:00:00",
"status_text": "正常",
"sku_key": null,
"number": 10
}
],
"price": {
"goods": 40,
"express": 0,
"delivery": 2,
"total": 35
},
"sales": {
"full_subtract": 1,
"redpacket": 2,
"coupon": 4
}
}
}
<<<
success秒杀
{
"code": 1,
"msg": "",
"time": "2018-08-22 18:08:12",
"data": {
"stores": {
"id": 17,
"dealer_id": 1,
"cate_id": 2,
"auditd_id": 1,
"type": 2,
"name": "门店17",
"thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/08/pbcl71A8szLJ3k4SOypb8NizkkeIVH70.png",
"banner": [
"http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/07/uEj1cSh3qgDCjopNMVPWEL2ojRoiJz6O.jpg"
],
"notice": "欢迎光临,很高兴为您服务",
"mobile": "13380855430",
"province": 440000,
"city": 441900,
"district": 441903,
"twon": 0,
"address": "汇景上层",
"longitude": "113.742674",
"latitude": "23.00368",
"business_hours_start": "1",
"business_hours_end": "24",
"template_style": 1,
"delivery_scope": 1,
"delivery_setting": "1292",
"delivery_time": 1,
"delivery_goods_min_price": "10.00",
"delivery_price": "2.00",
"sort": 0,
"sales": 0,
"is_support_two": 1,
"is_support_express": 0,
"is_support_self_pickup": 0,
"is_support_delivery": 1,
"is_support_make_delivery": 0,
"is_self_delivery": 1,
"is_audit": 1,
"is_trash": 0,
"status": 1,
"created_at": "2018-07-17 18:58:21",
"updated_at": "2018-08-14 16:35:38",
"auditd_at": "2018-07-20 16:17:08",
"is_audit_text": "审核通过",
"status_text": "正常"
},
"goods": [
{
"id": 39,
"dealer_id": 1,
"stores_id": 17,
"cate_id": 31,
"brands_id": 31,
"express_id": 0,
"template_id": 4,
"sn": "20180820121258476076",
"name": "商品四",
"weight": 0,
"volume": 0,
"thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/08/WeJqEtDugxl1bKY5bHwFEQvtqwdiySNL.png",
"banner": [
"http://oss.dgyouduo.com/static/img/no-image-16x10.png"
],
"summary": "商品四",
"price": "4.00",
"market_price": "4.00",
"inventory": 390,
"view_count": 0,
"sale_count": 10,
"sort": 0,
"is_free_shipping": 1,
"is_hot": 0,
"is_new": 0,
"is_real": 1,
"is_sale": 1,
"is_trash": 0,
"status": 1,
"created_at": "2018-08-11 11:48:46",
"updated_at": "2018-08-21 17:38:47",
"saled_at": "2016-01-01 00:00:00",
"status_text": "正常",
"sku_key": "",
"number": 1,
"seckill_id": 6,
"seckill": {
"id": 6,
"dealer_id": 1,
"stores_id": 17,
"goods_id": 39,
"price": "2.00",
"inventory": 10,
"max_buy_number": 1,
"status": 1,
"created_at": "2018-08-22 00:12:36",
"updated_at": "2018-08-22 00:12:36",
"start_at": "2018-08-22 00:00:00",
"end_at": "2018-08-23 00:00:00",
"status_text": "正常"
}
}
],
"price": {
"goods": 2,
"express": 0,
"delivery": 2,
"total": 4
},
"sales": {
"full_subtract": 0,
"redpacket": 0,
"coupon": 0
}
}
}
<<<
example
{
"stores_id": 17,
"goods": [
{
"goods_id": 39,
"sku_key": "",
"number": 10
}
],
"address_id": 10,
"delivery_type": 2,
"redpacket_id": 4,
"coupon_id": 5
}
<<<
example秒杀
{
"stores_id": 17,
"goods": [
{
"goods_id": 39,
"sku_key": "",
"number": 1,
"seckill_id": 6
}
],
"address_id": 10,
"delivery_type": 2
}
~~~
#### 创建
~~~[api]
post:/index/order/create
*number:stores_id#门店ID
*array:goods#商品
*number:goods_id#商品ID
*string:sku_key#商品存放SKU库存量项目ID
*number:number#商品数量
*number:address_id#收货地址ID
*number:delivery_type#配送方式,1=>快递,2=>配送员送货,3=>自取
*number:buyer_terminal#购买者终端,1=>PC,2=>WAP,3=>微信,4=>安卓,5=>IOS
number:redpacket_id#红包记录ID
number:coupon_id#优惠券记录ID
string:member_remark#会员备注
<<<
success
{
"code": 1,
"msg": "",
"time": "2018-08-21 17:38:47",
"data": {
"member_remark": "",
"member_id": 4,
"dealer_id": 1,
"stores_id": 17,
"sn": "20180821173847516462",
"buyer_ip": "127.0.0.1",
"buyer_terminal": 3,
"consignee": "谢谢谢",
"mobile": "18583898946",
"email": "",
"country": 86,
"province": 330000,
"city": 330100,
"district": 330102,
"twon": 0,
"address": "呵呵哒",
"zipcode": "",
"longitude": 111,
"latitude": 222,
"delivery_type": 2,
"delivery_price": 2,
"express_name": "",
"express_shipper_code": "",
"express_code": "",
"express_price": 0,
"express_remark": "",
"other_price": 0,
"other_price_remark": "",
"full_subtract_deduction": 1,
"redpacket_deduction": 2,
"coupon_deduction": 4,
"price": 35,
"created_at": "2018-08-21 17:38:47",
"updated_at": "2018-08-21 17:38:47",
"id": "22"
}
}
<<<
example
{
"stores_id": 17,
"goods": [
{
"goods_id": 39,
"number": 10
}
],
"address_id": 10,
"delivery_type": 2,
"redpacket_id": 4,
"coupon_id": 5,
"buyer_terminal": 3,
"longitude": 1,
"latitude": 1
}
~~~
#### 取消
> 取消只能在未支付的状态下
~~~[api]
post:/index/order/cancel/id/:id
<<<
success
{
"code": 1,
"msg": "success",
"time": "2018-06-25 11:26:00",
"data": []
}
~~~
#### 支付
~~~[api]
post:/index/order/payment
*number:order_id#订单ID
*number:pay_type#支付类型,1=>余额,2=>微信公众号,3=>微信APP,4=>微信H5,5=>微信扫码,6=>支付宝
<<<
success 2
{
"code": 1,
"msg": "",
"time": "2018-06-26 16:28:29",
"data": {
"appId": "wx14c3490a6fbcbaa3",
"nonceStr": "5b31f92d9182f",
"package": "prepay_id=wx26162829545366d28f111b7d2383287315",
"signType": "MD5",
"paySign": "3A8D86726931535D0C4ABD090D4F7177",
"timestamp": "1530001709"
}
}
<<<
success 3
{
"code": 1,
"msg": "",
"time": "2018-11-08 21:50:36",
"data": {
"appid": "wx6dfefd8f2acb42fc",
"partnerid": "1513894401",
"prepayid": "wx08215038736937fae8eefb893057803104",
"noncestr": "5be43f2f663b5",
"timestamp": 1541685039,
"package": "Sign=WXPay",
"sign": "3B4E4D9D13CF4D8AA8B46AEB7B7A1A35"
}
}
~~~
#### 收货
~~~[api]
post:/index/order/receive/id/:id
<<<
success
{
"code": 1,
"msg": "success",
"time": "2018-06-29 21:39:42",
"data": []
}
<<<
error
{
"code": 0,
"msg": "订单未发货",
"time": "2018-06-26 23:32:47",
"data": []
}
~~~
#### 评价
> 订单收货后才可评价
~~~[api]
post:/index/order/evaluate/
*number:order_id#订单ID
*array:goods#商品
*number:goods_id#商品ID
string:sku_key#商品存放SKU库存量项目ID
*string:content#内容
*array:images#图片
*number:grade#评分
<<<
success
success
{
"code": 1,
"msg": "success",
"time": "2018-06-29 21:39:42",
"data": []
}
<<<
example
{
"order_id": 7,
"goods": [
{
"goods_id": 1,
"sku_key": "",
"content": "好棒的产品",
"images": ["http://oss.dgyouduo.com/static/img/no-image.png"],
"grade": 5
}
]
}
~~~
#### 删除
- 简介
- 模型
- 模型规范
- 后台用户模型
- 商家用户模型
- 会员用户模型
- 配送员用户模型
- 文章模型
- 门店模型
- 门店模型(高德地图)
- 商品模型
- 模板商品模型
- 购物车模型
- 订单模型
- 配送订单模型
- 快递模型
- 积分商品模型
- 促销模型
- 平台API
- 首页
- 系统管理
- 账户管理
- 角色管理
- 权限管理
- 菜单管理
- 平台管理
- 会员端设定
- 积分设定
- 接口管理
- 微信接口
- 短信接口
- 快递接口
- 地图接口
- 支付宝接口
- 文章管理
- 分类管理
- 文章列表
- 审核管理
- 商家管理
- 商家列表
- 角色管理
- 权限管理
- 菜单管理
- 申请管理
- 门店管理
- 分类管理
- 门店列表
- 审核管理
- 配送员管理
- 配送员列表
- 会员管理
- 会员列表
- 商品管理
- 分类管理
- 品牌管理
- 商品列表
- 参数管理
- 规格管理
- 订单管理
- 订单列表
- 快递管理
- 快递列表
- 促销管理
- 红包管理
- 积分管理
- 商品管理
- 订单管理
- 财务管理
- 模板商品管理
- 分类管理
- 品牌管理
- 商品列表
- 参数管理
- 规格管理
- 商家API
- 首页
- 系统管理
- 账户管理
- 角色管理
- 权限管理
- 门店管理
- 门店列表
- 商品管理
- 分类管理
- 品牌管理
- 商品列表
- 参数管理
- 规格管理
- 模板商品
- 订单管理
- 订单列表
- 售后管理
- 投诉管理
- 快递管理
- 快递列表
- 配送员管理
- 配送员列表
- 促销管理
- 商品秒杀
- 订单满减
- 优惠券管理
- 财务管理
- 配送员API
- 首页
- 工作状态
- 订单管理
- 消息中心
- 个人中心
- 文章
- 钱包
- 系统
- 会员API
- 首页
- 商家
- 门店
- 商品
- 会员
- 收货地址
- 购物车
- 订单
- 订单售后
- 订单投诉
- 红包
- 优惠券
- 积分
- 文章
- 公共API
- 阿里云对象存储
- 微信公众平台
- 微信支付平台
- 支付宝
- 凌凯短信
- 快递鸟
- 接口返回码
- 20180104沟通记录
- 20180119沟通记录
- 20180130沟通记录
- 20180313沟通记录