简要描述:

  • 周边游-商品列表--首页下面使用这个

请求URL:

GET/route=plugin.travel-around.frontend.goods.goods.getGoodsList

参数:

参数名 类型 说明 必传
page int 分页
longitude float 经度
latitude float 维度
city string 站点名称
cityCode string 城市编码
travel_around_goods_type int 1无需预约2即将下架
is_recommand int 1推荐
category int 分类id
title string 商品名称

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "获取成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "endTime": "1663227376000",
                "bookingType": 0,
                "id": 3758,
                "title": "炒肝",
                "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                "price": "16.00",
                "market_price": "18.00",
                "show_sales": 0,
                "distance": 11350822.43996898,
                "status_name": null
            },
            {
                "endTime": "2145801600000",
                "bookingType": 0,
                "id": 3749,
                "title": "麻辣烫",
                "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                "price": "16.00",
                "market_price": "18.00",
                "show_sales": 0,
                "distance": 11350822.43996898,
                "status_name": null
            },
            {
                "endTime": "2145801600000",
                "bookingType": 0,
                "id": 3757,
                "title": "豆汁",
                "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                "price": "16.00",
                "market_price": "18.00",
                "show_sales": 0,
                "distance": 11350822.43996898,
                "status_name": null
            },
            {
                "endTime": "2145801600000",
                "bookingType": 0,
                "id": 3750,
                "title": "麻辣兔头",
                "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                "price": "90.00",
                "market_price": "100.00",
                "show_sales": 0,
                "distance": 11350822.43996898,
                "status_name": null
            },
            {
                "endTime": "2145801600000",
                "bookingType": 0,
                "id": 3751,
                "title": "醪糟汤圆",
                "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                "price": "16.00",
                "market_price": "18.00",
                "show_sales": 0,
                "distance": 11350822.43996898,
                "status_name": null
            },
            {
                "endTime": "2145801600000",
                "bookingType": 0,
                "id": 3759,
                "title": "爆肚",
                "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                "price": "16.00",
                "market_price": "18.00",
                "show_sales": 0,
                "distance": 11350822.43996898,
                "status_name": null
            },
            {
                "endTime": "2145801600000",
                "bookingType": 0,
                "id": 3752,
                "title": "披萨",
                "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                "price": "25.00",
                "market_price": "28.00",
                "show_sales": 0,
                "distance": 11350822.43996898,
                "status_name": null
            },
            {
                "endTime": "2145801600000",
                "bookingType": 0,
                "id": 3760,
                "title": "焦圈",
                "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                "price": "90.00",
                "market_price": "100.00",
                "show_sales": 0,
                "distance": 11350822.43996898,
                "status_name": null
            },
            {
                "endTime": "2145801600000",
                "bookingType": 0,
                "id": 3753,
                "title": "豌杂面",
                "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                "price": "14.00",
                "market_price": "15.00",
                "show_sales": 0,
                "distance": 11350822.43996898,
                "status_name": null
            },
            {
                "endTime": "2145801600000",
                "bookingType": 0,
                "id": 3761,
                "title": "豌豆黄",
                "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                "price": "16.00",
                "market_price": "18.00",
                "show_sales": 0,
                "distance": 11350822.43996898,
                "status_name": null
            },
            {
                "endTime": "2145801600000",
                "bookingType": 0,
                "id": 3754,
                "title": "鱼腥草凉拌折耳根",
                "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                "price": "8.00",
                "market_price": "10.00",
                "show_sales": 0,
                "distance": 11350822.43996898,
                "status_name": null
            },
            {
                "endTime": "2145801600000",
                "bookingType": 0,
                "id": 3762,
                "title": "油条",
                "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                "price": "100.00",
                "market_price": "120.00",
                "show_sales": 0,
                "distance": 11350822.43996898,
                "status_name": null
            },
            {
                "endTime": "2145801600000",
                "bookingType": 0,
                "id": 3747,
                "title": "BURGER QUEEN",
                "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                "price": "40.00",
                "market_price": "45.00",
                "show_sales": 0,
                "distance": 11350822.43996898,
                "status_name": null
            },
            {
                "endTime": "2145801600000",
                "bookingType": 0,
                "id": 3755,
                "title": "老北京炸酱面",
                "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                "price": "128.00",
                "market_price": "168.00",
                "show_sales": 0,
                "distance": 11350822.43996898,
                "status_name": null
            },
            {
                "endTime": "2145801600000",
                "bookingType": 0,
                "id": 3763,
                "title": "糖耳朵",
                "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                "price": "40.00",
                "market_price": "45.00",
                "show_sales": 0,
                "distance": 11350822.43996898,
                "status_name": null
            },
            {
                "endTime": "2145801600000",
                "bookingType": 1,
                "id": 3748,
                "title": "火锅",
                "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                "price": "140.00",
                "market_price": "200.00",
                "show_sales": 0,
                "distance": 11350822.43996898,
                "status_name": null
            },
            {
                "endTime": "2145801600000",
                "bookingType": 0,
                "id": 3756,
                "title": "驴打滚",
                "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                "price": "13.00",
                "market_price": "14.00",
                "show_sales": 0,
                "distance": 11350822.43996898,
                "status_name": null
            },
            {
                "endTime": "2145801600000",
                "bookingType": 0,
                "id": 3763,
                "title": "糖耳朵",
                "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                "price": "40.00",
                "market_price": "45.00",
                "show_sales": 0,
                "distance": 11351771.234319605,
                "status_name": null
            }
        ],
        "first_page_url": "http://shop/addons/yun_shop/api.php?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://shop/addons/yun_shop/api.php?page=1",
        "next_page_url": null,
        "path": "http://shop/addons/yun_shop/api.php",
        "per_page": 20,
        "prev_page_url": null,
        "to": 18,
        "total": 18
    }
}

goods:

参数名 类型 说明
id int id
title string 商品名称
thumb string 图片
price string 售价
market_price string 市场价
show_sales int 销量
distance float 距离 单位米
endTime int 抢购结束时间
bookingType int 预约方式 0-无需预约 1-网址预约 2-电话预约
has_one_travel_around_goods array 周边游商品内容

has_one_travel_around_goods 分类:

参数名 类型 说明
long_title string 长标题