Authored by 郝肖肖

wap 搜索文档整理

## 1、搜索商品列表接口
## 1、逛 (通过SKN获取商品信息)
### A.相关推荐商品列表接口
>访问地址:http://guang.m.yohobuy.com/info/index?id=50851
>接口示例:http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=1&attribute_not=2&order=shelve_time%3Adesc&viewNum=60&page=1
>接口示例:
http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=1&attribute_not=2&order=shelve_time%3Adesc&page=1&viewNum=5&query=51159630+51159661+51180447+51180452+51159636
### 字段说明
##### 字段说明
-------------------------------------------------------
|参数名 |值 |描述 |
|------ |---- |--- |
... ... @@ -13,86 +15,179 @@
|stocknumber|1 | 库存量如“stocknumber=1”,则过滤出库存量>=1的商品 |
|attribute_not|2 | 过滤商品属性,attribute_not=2过滤掉赠品 |
|order |shelve_time:desc | 排序类型 按时间降序 |
|viewNum |60 | 每页记录数默认为60 |
|Page |1 | 当前页 |
|Page|1 | 当前页码 |
|viewNum |5 | 每页记录数默认为5 |
|brand |700 | 品牌 |
|query |51159630+51159661+51180447+51180452+51159636 | 关键字 |
### 响应:code 200即为成功,否则为失败,响应json数据格式为下:
##### 响应:code 200即为成功,否则为失败,响应json数据格式为下:
{
"code": 200,
"code": 200,
"data": {
"page": 1,
"page_total": 896,
"product_list": [
{
"brand_domain": "jnby",
"brand_id": 1026,
"brand_name": "JNBY",
"cn_alphabet": "5F011001ChenShan",
"default_images": "/2015/11/09/06/016a0f690a3766648b88c4105d81a69adf.jpg",
"edit_time": 1467184537,
"gender": "2",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "383613",
"images_url": "/2015/11/09/06/016a0f690a3766648b88c4105d81a69adf.jpg",
"is_default": "N",
"product_skc": "295367",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_global": "N",
"is_limited": "N",
"is_new": "Y",
"is_outlets": 2,
"is_promotion": 108,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 795,
"max_sort_id": 1,
"middle_sort_id": 12,
"product_id": 299393,
"product_name": "JNBY 经典黑修身长袖衬衫",
"product_skn": 51166901,
"sales_num": 0,
"sales_phrase": "",
"sales_price": 33,
"shelve_time": 1467184537,
"small_sort_id": 115,
"status": 1,
"stock_number": 35,
"storage_num": 35,
"vip1_price": 31.35,
"vip2_price": 29.7,
"vip3_price": 29.04,
"vip_discount_type": 1,
"vip_price": 0,
"yohood_id": null
}
] ,
"total": 53728
"page": 1,
"page_total": 1,
"product_list": [
{
"brand_domain": "calvinklein",
"brand_id": 1016,
"brand_name": "Calvin Klein",
"cn_alphabet": "CALVINKLEINLADIESXiLieJingZuanJingGangCaiZhiNvXingWanBiaoK4323104",
"default_images": "/2016/01/05/02/0254660b4cb2f246795983acd8aa285898.jpg",
"edit_time": 1451963868,
"gender": "2",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "417385",
"images_url": "/2016/01/05/02/0254660b4cb2f246795983acd8aa285898.jpg",
"is_default": "Y",
"product_skc": "314586",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_global": "N",
"is_limited": "N",
"is_new": "N",
"is_outlets": 2,
"is_promotion": 0,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 2400,
"max_sort_id": 8,
"middle_sort_id": 59,
"product_id": 324255,
"product_name": "Calvin Klein Ladies系列晶钻女性腕表(黑色)K4323104",
"product_skn": 51180452,
"sales_num": 0,
"sales_phrase": "",
"sales_price": 1399,
"shelve_time": 1452562800,
"small_sort_id": 162,
"status": 1,
"stock_number": 3,
"storage_num": 3,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 1,
"vip_price": 0,
"yohood_id": null
}
],
"total": 5
},
"message": "Search List."
}
-------------------------------------------------------
## 2、潮流优选->详情页 NEW ARRIVAL 商品列表接口
### B.悬停浮动商品列表接口
>访问地址:http://guang.m.yohobuy.com/info/index?id=50853
>接口示例:
http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=1&attribute_not=2&order=shelve_time%3Adesc&page=1&viewNum=6&brand=700&gender=1%2C3
http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=1&attribute_not=2&order=shelve_time%3Adesc&page=1&viewNum=6&query=51177918+51168159+51189915+50031796+51032391+51184439
##### 字段说明
-------------------------------------------------------
|参数名 |值 |描述 |
|------ |---- |--- |
|Status |1| 是否上架 1 或 2 |
|sales |Y | 是否销售 |
|stocknumber|1 | 库存量如“stocknumber=1”,则过滤出库存量>=1的商品 |
|attribute_not|2 | 过滤商品属性,attribute_not=2过滤掉赠品 |
|order |shelve_time:desc | 排序类型 按时间降序 |
|Page|1 | 当前页码 |
|viewNum |6 | 每页记录数默认为6 |
|query |51177918+51168159+51189915+50031796+51032391+51184439 | 关键字 |
##### 响应:code 200即为成功,否则为失败,响应json数据格式为下:
{
"code": 200,
"data": {
"page": 1,
"page_total": 1,
"product_list": [
{
"brand_domain": "itstong",
"brand_id": 841,
"brand_name": "it's tong",
"cn_alphabet": "ITSTONGHeiSeYuRongFuY00201",
"default_images": "/2016/01/05/02/01ae0fef27ad2efae9ce2a010b825ef199.jpg",
"edit_time": 1451985491,
"gender": "2",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "437503",
"images_url": "/2016/01/05/02/01ae0fef27ad2efae9ce2a010b825ef199.jpg",
"is_default": "N",
"product_skc": "326743",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_global": "N",
"is_limited": "N",
"is_new": "N",
"is_outlets": 2,
"is_promotion": 0,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 1998,
"max_sort_id": 1,
"middle_sort_id": 18,
"product_id": 340725,
"product_name": "it's tong 欧美oversize立领羽绒服",
"product_skn": 51189915,
"sales_num": 0,
"sales_phrase": "",
"sales_price": 999,
"shelve_time": 1451985491,
"small_sort_id": 121,
"status": 1,
"stock_number": 5,
"storage_num": 5,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 3,
"vip_price": 0,
"yohood_id": null
}
],
"total": 3
},
"message": "Search List."
}
### C.品牌介绍页面 NEW ARRIVAL 商品列表接口
>访问地址: http://guang.m.yohobuy.com/plustar/brandinfo?id=342&gender=1%2C3
>接口示例:
http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=1&attribute_not=2&order=shelve_time%3Adesc&page=1&viewNum=6&brand=700&gender=1%2C3
### 字段说明
##### 字段说明
-------------------------------------------------------
|参数名 |值 |描述 |
|------ |---- |--- |
... ... @@ -106,9 +201,7 @@ http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=
|gender|1,2,3 | 性别1-男2-女3-通用查多个性别以逗号分隔 |
### 响应:code 200即为成功,否则为失败,响应json数据格式为下:
##### 响应:code 200即为成功,否则为失败,响应json数据格式为下:
{
"code": 200,
"data": {
... ... @@ -174,17 +267,115 @@ http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=
"message": "Search List."
}
-------------------------------------------------------
## 3、品牌详情页商品列表接口
-----------------------------------------------------------------------
## 2.获取搜索的数据(Ajax 异步筛选请求)
### A.品类商品列表页接口
>访问地址:https://list.m.yohobuy.com/?msort=365&misort=388&title=%E7%89%9B%E4%BB%94%E8%A3%A4
>接口示例:
http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=1&attribute_not=2&order=shelve_time%3Adesc&viewNum=60&msort=1&misort=11&gender=1%2C3&page=1
##### 字段说明
-------------------------------------------------------
|参数名 |值 |描述 |
|------ |---- |--- |
|Status |1| 是否上架 1 或 2 |
|sales |Y | 是否销售 |
|stocknumber|1 | 库存量如“stocknumber=1”,则过滤出库存量>=1的商品 |
|attribute_not|2 | 过滤商品属性,attribute_not=2过滤掉赠品 |
|order |shelve_time:desc | 排序类型 按时间降序 |
|Page|1 | 当前页码 |
|viewNum |60 | 每页记录数默认为60 |
|msort |1|产品大分类ID 查多个大类以逗号分隔 |
|misort |11|产品中分类ID查多个中类以逗号分隔 |
|gender |1,2,3 | 性别 |
##### 响应:code 200即为成功,否则为失败,响应json数据格式为下:
{
"code": 200,
"data": {
"page": 1,
"page_total": 61,
"product_list": [
{
"brand_domain": "gaws",
"brand_id": 560,
"brand_name": "GAWS",
"cn_alphabet": "GAWSGAWSA502TE20DuanXiuTXu",
"default_images": "/2015/05/04/03/0258f6bcbe124e9b22a77b370345504fb6.jpg",
"edit_time": 1467168462,
"gender": "1",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "221599",
"images_url": "/2015/05/04/03/0258f6bcbe124e9b22a77b370345504fb6.jpg",
"is_default": "N",
"product_skc": "212595",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_global": "N",
"is_limited": "N",
"is_new": "Y",
"is_outlets": 2,
"is_promotion": 107,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 139,
"max_sort_id": 1,
"middle_sort_id": 11,
"product_id": 162519,
"product_name": "GAWS 宗教印花T恤",
"product_skn": 51096220,
"sales_num": 170,
"sales_phrase": "",
"sales_price": 42,
"shelve_time": 1467168462,
"small_sort_id": 114,
"status": 1,
"stock_number": 12,
"storage_num": 12,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 3,
"vip_price": 0,
"yohood_id": null
}
],
"total": 3654
},
"message": "Search List."
}
### B.品牌商品列表页接口
>访问地址:https://disitu.m.yohobuy.com/
>接口示例:
http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=1&attribute_not=2&order=shelve_time%3Adesc&viewNum=60&brand=208&page=1
### 字段说明
##### 字段说明
-------------------------------------------------------
|参数名 |值 |描述 |
|------ |---- |--- |
|Status |1| 是否上架 1 或 2 |
... ... @@ -198,174 +389,161 @@ http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=
##### 响应:code 200即为成功,否则为失败,响应json数据格式为下:
### 响应:code 200即为成功,否则为失败,响应json数据格式为下:
{
"code": 200,
"data": {
"page": 1,
"page_total": 8,
"product_list": [
{
"brand_domain": "lal",
"brand_id": 208,
"brand_name": "Life·After Life",
"cn_alphabet": "LALA503SW137BKX2LIFEAFTERLIFEHaShiQiKaTongTuAnYuanLingMaoYi",
"default_images": "/2015/10/21/03/02c9147bee49f1793f1d086d3b41d2b7a7.jpg",
"edit_time": 1452741155,
"gender": "3",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "",
"cover_2": "/2015/10/26/01/02bef6b0cd3675a2e3572b68053da3fd60.jpg",
"goods_id": "371821",
"images_url": "/2015/10/21/03/02c9147bee49f1793f1d086d3b41d2b7a7.jpg",
"is_default": "Y",
"product_skc": "290265",
"status": "1"
},
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "/2015/11/02/08/01fef6dd7c123082f705613db836e6ed10.jpg",
"cover_2": "",
"goods_id": "371821",
"images_url": "/2015/10/21/03/02c9147bee49f1793f1d086d3b41d2b7a7.jpg",
"is_default": "Y",
"product_skc": "290265",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_global": "N",
"is_limited": "N",
"is_new": "N",
"is_outlets": 2,
"is_promotion": 101,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 319,
"max_sort_id": 1,
"middle_sort_id": 257,
"product_id": 289723,
"product_name": "Life·After Life 哈士奇卡通图案圆领毛衣【吴亦凡亲身试着】测试加价购商品名称过长显示",
"product_skn": 51162543,
"sales_num": 0,
"sales_phrase": "跳楼大甩卖!",
"sales_price": 129,
"shelve_time": 1452741155,
"small_sort_id": 258,
"status": 1,
"stock_number": 4742,
"storage_num": 4742,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 1,
"vip_price": 0,
"yohood_id": null
}
],
"total": 445
},
"message": "Search List."
}
-------------------------------------------------------
"vip_price": 0,
## 4、逛->相关推荐
"yohood_id": null
}
>接口示例:
http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=1&attribute_not=2&order=shelve_time%3Adesc&page=1&viewNum=5&query=51159630+51159661+51180447+51180452+51159636
],
"total": 445
### 字段说明
-------------------------------------------------------
|参数名 |值 |描述 |
|------ |---- |--- |
|Status |1| 是否上架 1 或 2 |
|sales |Y | 是否销售 |
|stocknumber|1 | 库存量如“stocknumber=1”,则过滤出库存量>=1的商品 |
|attribute_not|2 | 过滤商品属性,attribute_not=2过滤掉赠品 |
|order |shelve_time:desc | 排序类型 按时间降序 |
|Page|1 | 当前页码 |
|viewNum |5 | 每页记录数默认为5 |
|brand |700 | 品牌 |
|query |51159630+51159661+51180447+51180452+51159636 | 关键字 |
},
"message": "Search List."
}
### 响应:code 200即为成功,否则为失败,响应json数据格式为下:
{
"code": 200,
"data": {
"page": 1,
"page_total": 1,
"product_list": [
{
"brand_domain": "calvinklein",
"brand_id": 1016,
"brand_name": "Calvin Klein",
"cn_alphabet": "CALVINKLEINLADIESXiLieJingZuanJingGangCaiZhiNvXingWanBiaoK4323104",
"default_images": "/2016/01/05/02/0254660b4cb2f246795983acd8aa285898.jpg",
"edit_time": 1451963868,
"gender": "2",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "417385",
"images_url": "/2016/01/05/02/0254660b4cb2f246795983acd8aa285898.jpg",
"is_default": "Y",
"product_skc": "314586",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_global": "N",
"is_limited": "N",
"is_new": "N",
"is_outlets": 2,
"is_promotion": 0,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 2400,
"max_sort_id": 8,
"middle_sort_id": 59,
"product_id": 324255,
"product_name": "Calvin Klein Ladies系列晶钻女性腕表(黑色)K4323104",
"product_skn": 51180452,
"sales_num": 0,
"sales_phrase": "",
"sales_price": 1399,
"shelve_time": 1452562800,
"small_sort_id": 162,
"status": 1,
"stock_number": 3,
"storage_num": 3,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 1,
"vip_price": 0,
"yohood_id": null
}
],
"total": 5
},
"message": "Search List."
}
\ No newline at end of file
> PS:有筛选功能的商品列表页,可以根据选择的筛选条件进行筛选,只是传入的参数不同。目前涉及到的接口最终只有一个http://192.168.102.216:8080/yohosearch/search.json
\ No newline at end of file
... ...