门店详情 - 商品数据
创建于 2022-02-16 / 最近更新于 2022-04-08 /
638
字体:
[默认]
[大]
[更大]
简要描述
门店详情 - 商品数据
接口版本
版本号 | 制定人 | 制定日期 | 修订日期 |
---|---|---|---|
1.0.0 | Devil | 2020-09-29 |
请求URL
plugins/index&pluginsname=realstore&pluginscontrol=detail&pluginsaction=datalist
请求方式
POST
公共参数
参数名 | 是否必须 | 类型 | 默认值 | 描述 |
---|---|---|---|---|
application | 是 | string | web | 请求应用、参考公共中详解 |
application_client_type | 是 | string | pc | 请求客户端、参考公共中详解 |
token | 否 | string | token |
请求参数
{
"id": "1",
"buy_use_type_index": 0,
"category_id": 0,
"keywords": "",
"lng": 0,
"lat": 0,
"page": 1
}
参数名 | 是否必须 | 类型 | 默认值 | 描述 |
---|---|---|---|---|
id | 是 | int | 门店id | |
buy_use_type_index | 是 | int | 购买类型 | |
category_id | 是 | int | 商品分类id | |
keywords | 是 | string | 搜索关键字 | |
lng | 是 | float | 经度 | |
lat | 是 | float | 纬度 | |
page | 是 | int | 分页值 |
返回示例
正确时返回
{
"msg": "处理成功",
"code": 0,
"data": {
"page_total": 1,
"total": 1,
"data": [
{
"id": "12",
"title": "ZK星星绣花雪纺连衣裙中长款sukol裙少女心温柔超仙女chic裙子夏",
"title_color": "",
"simple_desc": "轻奢醋酸面料,高标准的生产要求,品质保证",
"images": "https://d1.shopxo.vip/static/upload/images/goods/2019/01/14/1547455890402147.jpg",
"price": "0.01-4.50",
"min_price": "0.01",
"max_price": "4.50",
"original_price": "0.00",
"min_original_price": "0.00",
"max_original_price": "0.00",
"is_shelves": "1",
"inventory": "256",
"inventory_unit": "箱",
"buy_min_number": "1",
"buy_max_number": "0",
"site_type": "-1",
"is_exist_many_spec": "1",
"add_time": "2019-01-14 16:57:10",
"price_container": {
"price": "0.01-5.00",
"min_price": "0.01",
"max_price": "5.00",
"original_price": "0.00",
"min_original_price": "0.00",
"max_original_price": "0.00"
},
"goods_url": "/pages/goods-detail/goods-detail?id=12",
"images_old": "/static/upload/images/goods/2019/01/14/1547455890402147.jpg",
"show_field_original_price_text": "原价",
"show_field_price_text": "<a href=\"https://d1.shopxo.vip/plugins/index/pluginsname/membershiplevelvip.html\" class=\"plugins-membershiplevelvip-goods-price-icon\" title=\"VIP1\">VIP1</a>",
"plugins_view_panel_data": [],
"plugins_view_icon_data": [],
"is_error": 0,
"is_error_msg": "",
"buy_number": 0
}
]
}
}
错误时返回
{
"msg": "error",
"code": -1,
"data": []
}
返回参数说明 -> data
参数名 | 是否必须 | 类型 | 描述 |
---|---|---|---|
page_total | 是 | int | 分页总数 |
total | 是 | int | 数据总数 |
data | 是 | array | 数据列表 |
备注
更多返回错误代码请看首页的错误代码描述
0 人点赞过