简要描述:
- 获取装修商品
请求URL:
POST/plugin.store-projects.frontend.designer.get-goods
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
decorate_id | 是 | int | 装修页面ID |
component_id | 是 | string | 装修组件ID |
lng | 是 | float | lng |
lat | 是 | float | lat |
page | 否 | int | 页数,默认第一页 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"current_page": 1,
"data": [
{
"goodid": 380,
"name": "商品名称111",
"img": "http://localhost:82/attachment/image/6adc3f84138f014bd480f58fd8a5205f.png",
"priceold": "10.00",
"pricenow": "10.00",
"sales": 10,
"virtual_sales": 10,
"unit": "个",
"plugin_id": 113,
"stock": 1111,
"distance": 10891.399999999999636202119290828704833984375,
"goods_content_show": null,
"award_proportion": "0",
"price_level": 1,
"award": "0",
"love_name": "爱心值",
"distance_unit": "km",
"vip_price": "10.00"
},
{
"goodid": 352,
"name": "111",
"img": "http://localhost:82/attachment/image/5f3d6b80fbf44ea3ae709805acc1fdaa.png",
"priceold": "10.00",
"pricenow": "10.00",
"sales": 12,
"virtual_sales": 11,
"unit": "1",
"plugin_id": 113,
"stock": 1109,
"distance": 10892.20000000000072759576141834259033203125,
"goods_content_show": null,
"award_proportion": "0",
"price_level": 1,
"award": "0",
"love_name": "爱心值",
"distance_unit": "km",
"vip_price": "10.00"
}
],
"first_page_url": "http://localhost:82/addons/yun_shop/api.php?=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost:82/addons/yun_shop/api.php?=1",
"next_page_url": null,
"path": "http://localhost:82/addons/yun_shop/api.php",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 |
---|
备注:
- 更多返回错误代码请看首页的错误代码描述