店铺商品搜索
创建于 2021-10-21 / 最近更新于 2021-10-21 /
875
字体:
[默认]
[大]
[更大]
简要描述
店铺商品搜索
接口版本
版本号 | 制定人 | 制定日期 | 修订日期 |
---|---|---|---|
1.0.0 | Devil | 2020-09-29 |
请求URL
plugins/index&pluginsname=shop&pluginscontrol=search&pluginsaction=index
请求方式
POST
公共参数
参数名 | 是否必须 | 类型 | 默认值 | 描述 |
---|---|---|---|---|
application | 是 | string | web | 请求应用、参考公共中详解 |
application_client_type | 是 | string | pc | 请求客户端、参考公共中详解 |
token | 否 | string | token |
请求参数
{
"wd": "",
"shop_id": "1",
"category_ids": "",
"page": 1
}
参数名 | 是否必须 | 类型 | 默认值 | 描述 |
---|---|---|---|---|
wd | 是 | string | 关键字 | |
shop_id | 是 | int | 店铺id | |
category_ids | 是 | array | 指定分类id | |
page | 是 | int | 分页 |
返回示例
正确时返回
{
"msg": "success",
"code": 0,
"data": {
"page_total": 1,
"total": 1,
"data": [
{
"id": "4",
"shop_id": "1",
"shop_user_id": "1",
"shop_category_id": "1",
"shop_settle_price": "0.00",
"shop_settle_rate": "0.00",
"brand_id": "1",
"site_type": "-1",
"title": "Huawei/华为 H60-L01 荣耀6 移动4G版智能手机 安卓",
"title_color": "",
"simple_desc": "",
"model": "",
"place_origin": "0",
"inventory": "888",
"inventory_unit": "步",
"images": "https://d1.shopxo.vip/static/upload/images/goods/2019/01/14/1547452474332334.jpg",
"original_price": "1999.00",
"min_original_price": "2300.00",
"max_original_price": "2300.00",
"price": "199.90",
"min_price": "199.90",
"max_price": "199.90",
"give_integral": "19",
"buy_min_number": "1",
"buy_max_number": "0",
"is_deduction_inventory": "1",
"is_shelves": "1",
"content_web": "<p><img src=\"https://d1.shopxo.vip/static/upload/images/goods/2019/01/14/1547452505568604.jpg\" title=\"1547452505568604.jpg\"/></p><p><img src=\"https://d1.shopxo.vip/static/upload/images/goods/2019/01/14/1547452505349986.jpg\" title=\"1547452505349986.jpg\"/></p><p><img src=\"https://d1.shopxo.vip/static/upload/images/goods/2019/01/14/1547452505184884.jpg\" title=\"1547452505184884.jpg\"/></p><p><br/></p>",
"photo_count": "2",
"sales_count": "5",
"access_count": "882",
"video": "",
"is_exist_many_spec": "0",
"spec_base": "",
"plugins_membershiplevelvip_price_extends": null,
"seo_title": "",
"seo_keywords": "",
"seo_desc": "",
"is_delete_time": "0",
"add_time": "2019-01-14 15:55:53",
"upd_time": "2021-10-20 12:58:52",
"price_container": {
"price": "1999.00",
"min_price": "1999.00",
"max_price": "1999.00",
"original_price": "2300.00",
"min_original_price": "2300.00",
"max_original_price": "2300.00"
},
"goods_url": "https://d1.shopxo.vip/goods/index/id/4.html",
"images_old": "/static/upload/images/goods/2019/01/14/1547452474332334.jpg",
"video_old": "",
"place_origin_name": null,
"brand_name": "强生",
"show_field_original_price_text": "原价",
"show_field_price_text": "<a href=\"https://d1.shopxo.vip/plugins/index/pluginsname/limitedtimediscount.html\" class=\"plugins-limitedtimediscount-goods-price-icon\" title=\"秒杀价\">秒杀价</a>",
"plugins_view_panel_data": [],
"plugins_view_icon_data": []
}
],
"shop_navigation": [
{
"id": "1",
"pid": "0",
"shop_id": "1",
"name": "页面设计",
"url": "/pages/plugins/shop/design/design?id=1",
"value": "1",
"data_type": "design",
"is_new_window_open": "0",
"active": 0
},
{
"id": "4",
"pid": "0",
"shop_id": "1",
"name": "手机",
"url": "/pages/plugins/shop/search/search?shop_id=1&category_id=1",
"value": "1",
"data_type": "category",
"is_new_window_open": "0",
"active": 0
}
],
"shop_goods_category": [
{
"id": "1",
"name": "手机",
"name_alias": "手机 (1)"
},
{
"id": "2",
"name": "包包",
"name_alias": "包包 (2)"
}
],
"search_map_info": {
"category": null
},
"shop_favor_user": [
"1"
],
"shop": {
"id": "1",
"user_id": "1",
"logo": "https://d1.shopxo.vip/static/upload/images/plugins_shop/user_shop/4148/2021/04/15/1618475981109734.jpg",
"logo_long": "https://d1.shopxo.vip/static/upload/images/plugins_shop/user_shop/4148/2021/04/15/1618476262656662.png",
"banner": "https://d1.shopxo.vip/static/plugins/images/shop/default-banner.jpg",
"name": "ShopXO多商户店铺",
"describe": "我们专注提供专业的软件产品和技术。为合作伙伴提供安全可靠的软件产品与解决方案,共同帮助终端用户实现业务创新、快速发展。",
"category_id": "1",
"data_model": "0",
"layout_config": null,
"service_weixin_qrcode": "https://d1.shopxo.vip/static/upload/images/plugins_shop/user_shop/4148/2021/04/15/1618476097689249.png",
"service_qq": "386392432",
"service_tel": "400-888-8888",
"open_week": "0",
"close_week": "4",
"open_time": "10:00",
"close_time": "18:00",
"is_extraction": "1",
"province": "9",
"city": "152",
"county": "1896",
"address": "浦江地铁站",
"lng": "0.0000000000",
"lat": "0.0000000000",
"seo_title": "",
"seo_keywords": "",
"seo_desc": "",
"add_time": "2021-04-15 16:42:29",
"upd_time": "2021-07-29 13:16:57",
"user": [],
"url": "https://d1.shopxo.vip/plugins/index/pluginsname/shop/pluginscontrol/index/pluginsaction/detail/id/1.html",
"province_name": "上海市",
"city_name": "闵行区",
"county_name": "浦江镇",
"shop_favor_count": 8,
"category_name": "数码家电",
"data_model_name": "自动模式",
"open_week_name": "周一",
"close_week_name": "周五"
}
}
}
错误时返回
{
"msg": "error",
"code": -1,
"data": []
}
返回参数说明 -> data
参数名 | 是否必须 | 类型 | 描述 |
---|---|---|---|
page_total | 是 | int | 分页总数 |
total | 是 | int | 数据总数 |
data | 是 | array | 商品数据或布局数据 |
shop_navigation | 是 | array | 店铺分类 |
shop_favor_user | 是 | array | 店铺收藏用户 |
shop_goods_category | 是 | array | 店铺商品分类 |
search_map_info | 是 | array | 指定搜索条件信息 |
shop | 是 | array | 店铺信息 |
备注
更多返回错误代码请看首页的错误代码描述
1 人点赞过