简要描述:
- 聚合页面商品列表
请求域名:
- http://xx.com
请求URL:
POST/plugin.store-cashier.frontend.store.goods.get-store-goods-list
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
search.keyword | 是 | string | 关键字 |
lng | 是 | string | 经度 |
lat | 是 | string | 纬度 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"current_page": 1,
"data": [
{
"id": 54,
"title": "测试销售",
"thumb": "http://yzhonshop.com/static/upload/images/1/2022/08/8b07768b28bd989168878c4a282f1868.png",
"price": "100.00",
"distance": 13.9,
"unit": "km",
"vip_price": "100.00",
"next_level_price": "100.00",
},
{
"id": 55,
"title": "测试商品1",
"thumb": "http://yzhonshop.com/static/upload/images/1/2022/08/1c9964d9bc8cb6d23e0aa918ec461052.jpg",
"price": "154.00",
"distance": 43,
"unit": "km",
"vip_price": "154.00",
"next_level_price": "154.00",
}
],
"first_page_url": "http://yzhonshop.com/addons/yun_shop/api.php?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://yzhonshop.com/addons/yun_shop/api.php?page=1",
"next_page_url": null,
"path": "http://yzhonshop.com/addons/yun_shop/api.php",
"per_page": 15,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 商品id |
title | string | 商品标题 |
price | float | 价格 |
thumb | string | 图片 |
distance | float | 公里数 |
unit | string | 距离单位 |