简要描述:

  • 选项菜品页

请求域名:

  • http://xx.com

请求路由:

GET/&route=plugin.store-scan-code-meals.frontend.dish-goods.index

请求参数说明:

参数名 类型 是否必需 说明
store_id int 门店ID
is_u int 是否用户购物车,是传1否可不传

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "store",
    "data": {
        "category_list": [
            {
                "id": 17,
                "name": "门店8分类一"
            }
        ],
        "second_category": [
            {
                "id": 18,
                "name": "门店8分类一下"
            }
        ],
        "goods": {
            "current_page": 1,
            "data": [
                {
                    "id": 264,
                    "uniacid": 6,
                    "brand_id": 0,
                    "type": 1,
                    "status": 1,
                    "display_order": 1,
                    "title": "点餐商品1",
                    "thumb": "http://demo.yun.cn/static/upload/images/6/2024/05/6baa2ebdbbc03f9632011014f6b215d4.jpg",
                    "thumb_url": "a:0:{}",
                    "sku": "份",
                    "goods_sn": "gt11111",
                    "product_sn": "",
                    "market_price": "100.00",
                    "price": "99.00",
                    "cost_price": "100.00",
                    "stock": 11,
                    "reduce_stock_method": 0,
                    "show_sales": 0,
                    "real_sales": 0,
                    "weight": "0.00",
                    "has_option": 0,
                    "is_new": 0,
                    "is_hot": 0,
                    "is_discount": 0,
                    "is_recommand": 0,
                    "is_comment": 0,
                    "is_deleted": 0,
                    "created_at": "2025-07-30 09:37:35",
                    "deleted_at": null,
                    "updated_at": "2025-07-30 10:11:32",
                    "comment_num": 0,
                    "is_plugin": 42,
                    "plugin_id": 32,
                    "virtual_sales": 0,
                    "goods_video": "",
                    "no_refund": 0,
                    "need_address": 1,
                    "type2": 1,
                    "old_id": null,
                    "volume": "0.000",
                    "alias": "",
                    "is_hide": 1,
                    "min_price": "99.00",
                    "max_price": "99.00",
                    "hide_goods_sales": 0,
                    "hide_goods_sales_alone": 0,
                    "hide_goods_pic": 0,
                    "background_pic": "",
                    "advert_pic": "",
                    "goods_category_id": 1218,
                    "goods_id": 264,
                    "category_id": 18,
                    "category_ids": "17,18",
                    "buyNum": 0,
                    "vip_level_status": {
                        "status": 0,
                        "word": "",
                        "tips": ""
                    },
                    "goods_content_show": null,
                    "status_name": "上架",
                    "has_many_specs": [],
                    "has_many_options": []
                }
            ],
            "first_page_url": "http://demo.yun.cn/addons/yun_shop/api.php?page=1",
            "from": 1,
            "per_page": 15,
            "prev_page_url": null,
            "to": 1,
            "total": 1
        }
    }
}

data返回参数说明:

参数名 类型 说明
category_list array 门店一级分类
second_category array 第一个一级分类下的二级分类
goods page 第一个二级分类下商品
dining_table_cart obj 餐桌点餐订单
meals_member_cart array 用户购物车

category_list、second_category 参数说明:

参数名 类型 说明
id int 分类ID
name string 分类名称

goods 参数说明有分页:

参数名 类型 说明
id int 商品ID
title string 商品名称
thumb string 商品图片
stock int 商品库存
price string 商品价格
sku string 商品单位
has_option int 使用有规格