简要描述:
- 切换导航
请求域名:
- http://.yunzshop.com
请求URL:
GET: route=plugin.store-alone-temp.frontend.member.nav-data
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
code | 是 | string | 导航的code(对应获取某导航的数据) |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"data": {
"current_page": 1,
"data": [
{
"id": 76,
"title": "希尔顿羽绒被 全棉磨毛面料 高端外贸出口产品 五星级酒店级别的白鹅",
"thumb": "images/1/2019/12/pc7lmRlHEp5l4M11957lPIYC1l1e11.jpg",
"market_price": "123.00",
"price": "123.00",
"cost_price": "123.00",
"stock": 122,
"real_sales": 1,
"show_sales": 1,
"virtual_sales": 123,
"has_option": 0,
"plugin_id": 0,
"vip_price": "123.00",
"has_many_goods_discount": [
{
"id": 1090,
"goods_id": 76,
"level_discount_type": 1,
"discount_method": 1,
"level_id": 0,
"discount_value": "",
"created_at": "2019-12-17 19:36:49",
"updated_at": "2019-12-17 19:36:49",
"deleted_at": null
},
{
"id": 1091,
"goods_id": 76,
"level_discount_type": 1,
"discount_method": 1,
"level_id": 1,
"discount_value": "",
"created_at": "2019-12-17 19:36:49",
"updated_at": "2019-12-17 19:36:49",
"deleted_at": null
},
{
"id": 1092,
"goods_id": 76,
"level_discount_type": 1,
"discount_method": 1,
"level_id": 2,
"discount_value": "",
"created_at": "2019-12-17 19:36:49",
"updated_at": "2019-12-17 19:36:49",
"deleted_at": null
}
]
},
{
"id": 22,
"title": "测试3",
"thumb": "images/1/2019/04/kC95a1h4eEA8z9eHc5feFFE5aEA57c.jpg",
"market_price": "4000.00",
"price": "0.01",
"cost_price": "3.00",
"stock": 17,
"real_sales": 17,
"show_sales": 17,
"virtual_sales": 0,
"has_option": 0,
"plugin_id": 0,
"vip_price": "0.01",
"has_many_goods_discount": [
{
"id": 479,
"goods_id": 22,
"level_discount_type": 1,
"discount_method": 1,
"level_id": 0,
"discount_value": "",
"created_at": "2019-05-06 13:51:20",
"updated_at": "2019-05-06 13:51:20",
"deleted_at": null
},
{
"id": 480,
"goods_id": 22,
"level_discount_type": 1,
"discount_method": 1,
"level_id": 1,
"discount_value": "",
"created_at": "2019-05-06 13:51:20",
"updated_at": "2019-05-06 13:51:20",
"deleted_at": null
}
]
},
],
"first_page_url": "http://yzmall.com/addons/yun_shop/api.php?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://yzmall.com/addons/yun_shop/api.php?page=1",
"next_page_url": null,
"path": "http://yzmall.com/addons/yun_shop/api.php",
"per_page": 20,
"prev_page_url": null,
"to": 14,
"total": 14
}
}
}
错误时返回:
code参数是【推荐商品】和【限时购商品】时返回参数说明:
参数名 | 类型 | 说明 | |
---|---|---|---|
id | 是 | int | 商品id |
title | 是 | string | 商品名 |
thumb | 是 | string | 商品图片 |
market_price | 是 | float | 原价 |
price | 是 | float | 现价 |
cost_price | 是 | float | 成本价 |
stock | 是 | int | 库存 |
show_sales | 是 | int | 展示销量 |
备注:
- 更多返回错误代码请看首页的错误代码描述