简要描述:
请求action:
memberCart.checkout
参数:
参数名 |
是否必须 |
类型 |
说明 |
cart_ids |
是 |
string |
购物车ids |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"need_choose": 1,
"dispatch_types": [
{
"id": 1,
"name": "快递",
"member_carts": [
{
"id": 30125,
"goods_id": 750,
"option_id": 816,
"total": 2,
"title": "不限食--蔓越莓弹性蛋白压片糖果",
"option_title": "白色",
"thumb": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/08/e3oP039fznqN3f2Nnp0Fvq2T3TN19s.png"
},
{
"id": 30126,
"goods_id": 776,
"option_id": 0,
"total": 1,
"title": "预售--白领纤体套餐【压片糖果2盒+能量代餐棒(营养坚果味)2盒+蔓越莓弹性蛋白压片糖果1盒】",
"option_title": null,
"thumb": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/08/GjeOooWqo8O2dlw2v5ODzDOZOqMOeJ.jpg"
},
{
"id": 30127,
"goods_id": 775,
"option_id": 0,
"total": 1,
"title": "外卖伴侣套餐【压片糖果2盒+γ-氨基丁酸压片糖果1盒】",
"option_title": null,
"thumb": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/08/Du9o808TVTuAEEaAUNc0ee0MeV0mB8.jpg"
}
]
},
{
"id": 8,
"name": "自提点",
"member_carts": [
{
"id": 30125,
"goods_id": 750,
"option_id": 816,
"total": 2,
"title": "不限食--蔓越莓弹性蛋白压片糖果",
"option_title": "白色",
"thumb": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/images/5/2020/08/e3oP039fznqN3f2Nnp0Fvq2T3TN19s.png"
}
]
}
]
}
}
参数名 |
类型 |
说明 |
need_choose |
int |
需要选择(1是0否) |
dispatch_types |
array |
可选配送方式 |
dispatch_types参数名 |
类型 |
说明 |
id |
int |
配送方式id |
name |
string |
配送方式名 |
memberCarts |
array |
满足的购车记录 |
memberCarts参数名 |
类型 |
说明 |
id |
int |
配送方式id |
goods_id |
int |
商品id |
option_id |
int |
商品规格id |
total |
int |
数量 |
title |
string |
标题 |
option_title |
string |
规格标题 |
thumb |
string |
缩略图地址 |
错误时返回:
{
"result": 0,
"msg":"错误提示",
"data": []
}
备注: