简要描述:
- 点餐页购物车
请求域名:
- http://xx.com
请求路由:
GET/&route=plugin.store-scan-code-meals.frontend.order-food-cart.get-dish
请求参数说明:
| 参数名 | 类型 | 是否必需 | 说明 |
|---|---|---|---|
| pre_id | int | 是 | 餐桌订单ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "cart",
"data": [
{
"id": 1,
"uniacid": 6,
"store_id": 0,
"pre_id": 4,
"member_id": 2455,
"goods_id": 265,
"option_id": 0,
"total": 2,
"status": 0,
"created_at": "2025-11-17 16:25:55",
"goods_title": "猪脚",
"goods_thumb": "http://demo.yun.cn/static/upload/images/6/2024/05/6baa2ebdbbc03f9632011014f6b215d4.jpg",
"goods_option_title": "",
"goods_price": "111.00"
}
]
}
data返回参数说明:
| 参数名 | 类型 | 说明 | |
|---|---|---|---|
| id | int | 购物车ID | |
| pre_id | int | 餐桌预订单ID | |
| goods_id | int | 商品ID | |
| option_id | int | 商品规格ID | |
| total | int | 点餐菜品数量 | |
| goods_price | int | 商品单价 | |
| goods_title | int | 商品名称 | |
| goods_thumb | int | 商品图片 | |
| goods_option_title | int | 商品规格名称 |