Authored by 毕凯

Merge branch 'release/4.8'

Too many changes to show.

To preserve performance only 24 of 24+ files are displayed.

## 一、最新上架--首页底部
###### 最新上架 :
* 请求URL:
>http://192.168.102.216:8080/yohosearch/new-shelve.json?order=shelve_time:desc&shelve_time=1462096371,1467280371&gender=2,3&status=1&sales=Y&attribute_not=2&stocknumber=3&misort=11&viewNum=4
### 字段说明
-------------------------------------------------------
|参数名 |值 |描述 |
|------ |---- |--- |
|order |shelve_time:desc| 排序类型格式:排序字段名:排序方式,如按热门正序排“hot_number:asc”多重排序以逗号分隔,如“order= hot_number:asc, shelve_time:desc” |
|shelve_time |1462096371,1467280371 | 时间区间起始时间以逗号分隔,如查询20150101-20150106 “shelve_time =1420041600,1420473600” |
|gender |2,3 | 性别1-男2-女3-通用查多个性别以逗号分隔 |
|status |1 | 是否上架 1 或 2 |
|sales |Y | 是否销售 “N”或”Y” |
|attribute_not |2 | 过滤商品属性,attribute_not=2过滤掉赠品 |
|stocknumber |3 | 库存量如“stocknumber=2”,则过滤出库存量>=2的商品 |
|misort |11 | 产品中分类ID查多个中类以逗号分隔|
|viewNum |4 | 每页记录数默认为10 |
### 参数返回
{
"code": 200,
"data": [
{
"brand_domain": "runningman",
"brand_id": 751,
"brand_name": "奔跑吧兄弟",
"cn_alphabet": "RUNNINGMANRMA502TE01",
"default_images": "/2015/06/15/02/01c24052905ced0d590ac76fc7554cf42b.jpg",
"edit_time": 1455616377,
"gender": "3",
"goods_list": [
{
"color_code": "47ba17",
"color_id": "6",
"color_name": "绿色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "273221",
"images_url": "/2015/06/15/05/02bd6524c28a305148f3f9ff8fad585162.jpg",
"is_default": "N",
"product_skc": "237939",
"status": "1"
},
{
"color_code": "ffeb00",
"color_id": "9",
"color_name": "黄色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "273233",
"images_url": "/2015/06/15/05/0161e49e8f5298385a73911ddfe6b6bf35.jpg",
"is_default": "N",
"product_skc": "237945",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "N",
"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": 139,
"max_sort_id": 1,
"middle_sort_id": 11,
"product_id": 204497,
"product_name": "奔跑吧兄弟 “撕名牌”魔术贴徽章T恤",
"product_skn": 51117072,
"sales_num": 1649,
"sales_phrase": null,
"sales_price": 139,
"shelve_time": 1455616377,
"small_sort_id": 114,
"status": 1,
"stock_number": 312,
"storage_num": 312,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 3,
"vip_price": 0,
"yohood_id": null
},
{
"brand_domain": "5min",
"brand_id": 910,
"brand_name": "5min",
"cn_alphabet": "5MINQiXingBuKaoTXuMJ1511",
"default_images": "/2015/10/12/02/0159d605c789a822824370fc93c40ae635.jpg",
"edit_time": 1455615066,
"gender": "3",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "357315",
"images_url": "/2015/10/12/02/0159d605c789a822824370fc93c40ae635.jpg",
"is_default": "N",
"product_skc": "280700",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "N",
"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": 488,
"max_sort_id": 1,
"middle_sort_id": 11,
"product_id": 276511,
"product_name": "5min 七星不靠胶印圆领长袖T恤",
"product_skn": 51153670,
"sales_num": 0,
"sales_phrase": null,
"sales_price": 488,
"shelve_time": 1455615066,
"small_sort_id": 114,
"status": 1,
"stock_number": 19,
"storage_num": 19,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 3,
"vip_price": 0,
"yohood_id": null
},
{
"brand_domain": "5cm",
"brand_id": 4,
"brand_name": "5CM",
"cn_alphabet": "5CMTXu5CXLTG2110W55",
"default_images": "/2015/11/10/08/0169de4b9f3c79bcd666d6528d27c3797a.jpg",
"edit_time": 1454314545,
"gender": "2",
"goods_list": [
{
"color_code": "0000fe",
"color_id": "7",
"color_name": "蓝色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "375825",
"images_url": "/2015/11/10/08/0169de4b9f3c79bcd666d6528d27c3797a.jpg",
"is_default": "N",
"product_skc": "292370",
"status": "1"
},
{
"color_code": "FFFFFF",
"color_id": "1",
"color_name": "白色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "375827",
"images_url": "/2015/11/11/09/01c0715d2900d85d0f761a611cb3a58a3d.jpg",
"is_default": "Y",
"product_skc": "292371",
"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": 479,
"max_sort_id": 1,
"middle_sort_id": 11,
"product_id": 293229,
"product_name": "5CM 堆堆领印花T恤",
"product_skn": 51164399,
"sales_num": 0,
"sales_phrase": "",
"sales_price": 239,
"shelve_time": 1454314545,
"small_sort_id": 114,
"status": 1,
"stock_number": 14,
"storage_num": 14,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 3,
"vip_price": 0,
"yohood_id": null
}
],
"message": "new product List."
}
### gateway接口
#### method=app.search.newProduct
##### 字段说明
-------------------------------------------------------
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
| :-- | :-- | :-- | :-- | :-- | :-- |
| method | String | 是 | app.search.category| |请求方法|
| dayLimit | String | 否 |1 || 时间区间标识 1:代表3天之内出售的,2:代表7天之内出售的,3代表30天以内的 |
| limit | int | 否 | 10 ||每页展示条数,默认10条|
| sort | String | 否 | "116,117,115,119,124,122,413,258,173,227,125,118,121,123,114,293" ||查询小分类ID,查多个小类以逗号分隔|
| page | int | 否 | 1 ||当前页|
| yh_channel | String | 否 | "1" ||频道|
| order | String | 否 | "s_t_desc" ||排序信息 |
| p_d | String | 否 | "0.7" ||打折区间,以逗号分隔|
| color | String | 否 | "145" ||颜色ID|
| brand | String | 否 | "125" ||品牌ID|
| shop_id | String | 否 | "155" ||店铺ID|
| price | String | 否 | "300,600" ||价格区间,以逗号分隔|
| size | String | 否 | "16,17" ||尺寸ID,以逗号分隔|
| gender | String | 否 | "1,3" ||性别,以逗号分隔|
| age_level | String | 否 | ||年龄层,以逗号分隔|
##### 接口返回
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"filter": {
"color": [
{
"color_id": 2,
"color_name": "黑色",
"color_value": "",
"color_code": "333333"
}
],
"gender": {
"2,3": "GIRLS"
},
"discount": {
"0.01,0.399": {
"count": 337,
"name": "1~3"
}
},
"ageLevel": [
{
"product_count": 98,
"name": "成人",
"id": "1"
}
],
"group_sort": [
{
"category_id": "5",
"category_name": "上衣",
"node_count": 0,
"parent_id": "1",
"relation_parameter": {
"sort": "114,293,116,117,115,119,124,122,413,258,173,227,125,118,121,123"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}",
"sub": [
{
"category_id": "45",
"category_name": "T恤",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "114,293"
},
"sort_ico": ""
}
]
}
],
"size": [
{
"size_name": "F",
"size_id": 199
}
],
"brand": [
{
"hot_keyword": "",
"brand_domain": "teebacco",
"brand_alif": "T",
"is_hot": "N",
"brand_ico": "http://img11.static.yhbimg.com/brandLogo/2015/12/03/14/013695ef0a10589ce0a789d9cd3c729b5c.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_name": "TEEBACCO",
"brand_keyword": "",
"id": 261,
"brand_name_en": "TEEBACCO",
"brand_name_cn": ""
}
],
"priceRange": {
"0,269": "¥0-269",
"500,1199": "¥500-1199",
"270,499": "¥270-499",
"1200,99999": "¥1199以上"
}
},
"standard": [
{
"standard_id": "789",
"sub": [
{
"standard_id": "4447",
"standard_name": "短袖"
}
],
"standard_name": "袖长"
}
],
"total": 1999,
"page_total": 167,
"tabs": {
"1": "07月06日",
"2": "本周上新",
"3": "销量"
},
"page": 1,
"product_list": [
{
"small_sort_id": 147,
"vip1_price": 141.54999999999998,
"gender": "3",
"is_global": "N",
"vip3_price": 131.12,
"is_outlets": 2,
"is_discount": "Y",
"brand_domain": "ivyboi",
"is_special": "N",
"goods_list": [
{
"color_id": "1",
"product_skc": "224975",
"cover_1": "",
"goods_id": "246439",
"images_url": "http://img13.static.yhbimg.com/goodsimg/2016/05/16/09/0256b451efae0ae76d83f6970995708524.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"color_name": "白色",
"cover_2": "",
"color_value": "",
"is_default": "N",
"color_code": "FFFFFF",
"status": "1"
}
],
"is_advance": "N",
"product_id": 181953,
"vip_discount_type": 3,
"sales_num": 445,
"cn_alphabet": "IVYBOIIBA502CS56WHX",
"product_skn": 51106125,
"shelve_time": 1467801284,
"vip2_price": 134.1,
"edit_time": 1467801284,
"is_new": "Y",
"is_limited": "N",
"brand_name": "Ivyboi",
"max_sort_id": 6,
"product_name": "IVYBOI×INTREPID 休闲洞洞鞋 贝壳白",
"brand_id": 302,
"tags": [
],
"default_images": "http://img13.static.yhbimg.com/goodsimg/2016/05/16/09/0256b451efae0ae76d83f6970995708524.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"stock_number": 494,
"storage_num": 494,
"is_soon_sold_out": "N",
"middle_sort_id": 44,
"sales_price": 149,
"is_promotion": 110,
"market_price": 199,
"vip_price": 0,
"status": 1
},
{
"small_sort_id": 114,
"vip1_price": 46.55,
"gender": "3",
"is_global": "N",
"vip3_price": 43.12,
"is_outlets": 2,
"is_discount": "Y",
"brand_domain": "teebacco",
"is_special": "N",
"goods_list": [
{
"color_id": "2",
"product_skc": "348920",
"cover_1": "http://img13.static.yhbimg.com/goodsimg/2016/05/05/13/02568978e0ea8c183e2638bba7c6bce004.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"goods_id": "480543",
"images_url": "http://img11.static.yhbimg.com/goodsimg/2016/04/13/05/01f84b53062faf65b996d0e6abdfa3f9c8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"color_name": "黑色",
"cover_2": "",
"color_value": "",
"is_default": "N",
"color_code": "333333",
"status": "1"
}
],
"is_advance": "N",
"product_id": 376601,
"vip_discount_type": 3,
"sales_num": 0,
"sales_phrase": "入夏新品尝鲜",
"cn_alphabet": "TEEBACCODuanXiuTXuTBA602TE190",
"product_skn": 51208313,
"shelve_time": 1467793587,
"vip2_price": 44.1,
"edit_time": 1467793587,
"is_new": "Y",
"is_limited": "N",
"brand_name": "TEEBACCO",
"max_sort_id": 1,
"product_name": "TEEBACCO 复古汽车印花短袖T恤",
"brand_id": 261,
"tags": [
],
"default_images": "http://img13.static.yhbimg.com/goodsimg/2016/05/05/13/02568978e0ea8c183e2638bba7c6bce004.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"stock_number": 117,
"storage_num": 117,
"is_soon_sold_out": "N",
"middle_sort_id": 11,
"sales_price": 49,
"is_promotion": 111,
"market_price": 129,
"vip_price": 0,
"status": 1
}
]
},
"md5": "419f9e002169d4d1332f5e523850b117",
"message": "Search List."
}
```
>
PS: 男生、女生、潮童、创意生活底部都包含《最新上架》,只不过是传的参数不同。
-------------------------------------------------------
## 二、搜索数据列表(http://list.yohobuy.com)
###### 商品列表
* 请求URL:
>http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&outlets=2&stocknumber=1&attribute_not=2&order=sales_num:desc&page=1&viewNum=59&gender=&rowNum=5&needFilter=1&p_d=0.01,0.399
### 字段说明
-------------------------------------------------------
|参数名 |值 |描述 |
|------ |---- |--- |
|status |1| 是否上架 1 或 2 |
|sales |Y | 是否销售 “N”或”Y” |
|outlets |2 | 1是奥莱,2是非奥莱|
|stocknumber |1 | 库存量如“stocknumber=2”,则过滤出库存量>=2的商品 |
|attribute_not |2 | 过滤商品属性,attribute_not=2过滤掉赠品 |
|order |sales_num:desc | 序类型格式:排序字段名:排序方式,如按热门正序排“hot_number:asc”多重排序以逗号分隔,如“order= hot_number:asc, shelve_time:desc” |
|page |1 | 当前页 |
|viewNum |59 | 每页记录数默认为10|
|gender | | 性别1-男2-女3-通用查多个性别以逗号分隔 |
|needFilter |1 | 需要返回过滤集合needFilter=1 |
|p_d |0.01,0.399 | 折扣区间 ,1~3折 |
### 参数返回
{
"code": 200,
"data": {
"filter": {
"ageLevel": [
{
"id": "1",
"name": "成人",
"product_count": 3652
},
{
"id": "5",
"name": "幼童",
"product_count": 40
}
],
"brand": [
{
"brand_alif": "P",
"brand_domain": "pass",
"brand_ico": "/2015/05/14/12/0255c1a5355cd41a884ede2217e0e08d55.jpg",
"brand_keyword": "",
"brand_name": "PASS",
"brand_name_cn": "",
"brand_name_en": "PASS",
"hot_keyword": "女装",
"id": 715,
"is_hot": "Y"
},
{
"brand_alif": null,
"brand_domain": null,
"brand_ico": "/2016/01/18/03/01f7e2adcbe8701d1b3f367157820ea59f.jpg",
"brand_keyword": null,
"brand_name": "心飞扬",
"brand_name_cn": "",
"brand_name_en": "xinfeiyang",
"hot_keyword": null,
"id": 1422,
"is_hot": "N"
}
],
"color": [
{
"color_code": "333333",
"color_id": 2,
"color_name": "黑色",
"color_value": ""
},
{
"color_code": "",
"color_id": 13,
"color_name": "银色",
"color_value": "http://static.yohobuy.com/images/color_p2.png"
}
],
"gender": {
"2,3": "GIRLS",
"1,3": "BOYS"
},
"limited": "Y",
"new": "Y",
"parameter_787": {
"standard_id": "787",
"standard_name": "领型",
"sub": [
{
"standard_id": "4438",
"standard_name": "圆领"
},
{
"standard_id": "4439",
"standard_name": "v领"
},
{
"standard_id": "5361",
"standard_name": "异形领"
}
]
},
"parameter_788": {
"standard_id": "788",
"standard_name": "衣长",
"sub": [
{
"standard_id": "4445",
"standard_name": "适中"
},
{
"standard_id": "4444",
"standard_name": "短款"
},
{
"standard_id": "4446",
"standard_name": "长款"
}
]
},
"parameter_825": {
"standard_id": "825",
"standard_name": "袖长",
"sub": [
{
"standard_id": "4626",
"standard_name": "长袖"
},
{
"standard_id": "4624",
"standard_name": "短袖"
},
{
"standard_id": "4625",
"standard_name": "7分袖"
},
{
"standard_id": "5439",
"standard_name": "5分袖"
}
]
},
"parameter_826": {
"standard_id": "826",
"standard_name": "版型",
"sub": [
{
"standard_id": "4628",
"standard_name": "正常"
},
{
"standard_id": "4629",
"standard_name": "宽松"
},
{
"standard_id": "4627",
"standard_name": "修身"
}
]
},
"parameter_827": {
"standard_id": "827",
"standard_name": "厚度",
"sub": [
{
"standard_id": "4631",
"standard_name": "中"
},
{
"standard_id": "4632",
"standard_name": "厚"
},
{
"standard_id": "4630",
"standard_name": "薄"
},
{
"standard_id": "4633",
"standard_name": "加厚"
}
]
},
"price": {
"0,159": "¥0-159",
"160,279": "¥160-279",
"280,569": "¥280-569",
"570,99999": "¥569以上"
},
"size": [
{
"size_id": 203,
"size_name": "M"
},
{
"size_id": 201,
"size_name": "L"
},
{
"size_id": 207,
"size_name": "S"
},
{
"size_id": 211,
"size_name": "XL"
},
{
"size_id": 177,
"size_name": "85"
},
{
"size_id": 188,
"size_name": "9月21日"
}
],
"specialoffer": "Y",
"style": [
{
"style_id": 991,
"style_name": "街头"
},
{
"style_id": 1000,
"style_name": "简约"
},
{
"style_id": 1101,
"style_name": "简洁"
},
{
"style_id": 994,
"style_name": "机车"
},
{
"style_id": 1096,
"style_name": "韩版"
}
]
},
"page": 1,
"page_total": 4865,
"product_list": [
{
"brand_domain": "mwowl",
"brand_id": 824,
"brand_name": "M.WOWL",
"cn_alphabet": "MWOWLLianYiQunWOWA503DS37BKX",
"default_images": "/2015/08/18/08/029301961e6b44194b3ae964d7578bb041.jpg",
"edit_time": 1441535857,
"gender": "2",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "",
"cover_2": "/2015/08/20/11/02de6b5d532c01a6f4e7c966ba1acb57df.jpg",
"goods_id": "301031",
"images_url": "/2015/08/18/08/029301961e6b44194b3ae964d7578bb041.jpg",
"is_default": "Y",
"product_skc": "251837",
"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": 299,
"max_sort_id": 4,
"middle_sort_id": 31,
"product_id": 228281,
"product_name": "M.WOWL字母印花欧根纱拼接连衣裙",
"product_skn": 51128961,
"sales_num": 3,
"sales_phrase": "",
"sales_price": 99,
"shelve_time": 1441535857,
"small_sort_id": 134,
"status": 1,
"stock_number": 81,
"storage_num": 81,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 3,
"vip_price": 0,
"yohood_id": null
},
{
"brand_domain": "lilbetter",
"brand_id": 385,
"brand_name": "Lilbetter",
"cn_alphabet": "LILBETTERShuiXiPoMoMoPoNiuZai91439926",
"default_images": "/2015/12/31/06/027a47aeabf37b6f6437d7e8eb77a59ec7.jpg",
"edit_time": 1451893132,
"gender": "1",
"goods_list": [
{
"color_code": "0000fe",
"color_id": "7",
"color_name": "蓝色",
"color_value": "",
"cover_1": "/2016/01/04/06/02790e3ea8fb8acf3de7e24114dad345e2.jpg",
"cover_2": "",
"goods_id": "432919",
"images_url": "/2016/01/04/06/02790e3ea8fb8acf3de7e24114dad345e2.jpg",
"is_default": "N",
"product_skc": "324421",
"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": 688,
"max_sort_id": 3,
"middle_sort_id": 27,
"product_id": 337015,
"product_name": "lilbetter 水洗泼墨磨破牛仔裤",
"product_skn": 51188049,
"sales_num": 0,
"sales_phrase": "",
"sales_price": 168,
"shelve_time": 1451893132,
"small_sort_id": 130,
"status": 1,
"stock_number": 340,
"storage_num": 340,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 1,
"vip_price": 0,
"yohood_id": null
}
],
"total": 9729
},
"message": "Search List."
}
-------------------------------------------------------
#### gateway接口
### (method=app.search.li,首页品类推荐获取商品列表页)
#### 请求参数
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
| :-- | :-- | :-- | :-- | :-- | :-- |
| method | String | 是 | app.search.li| |请求方法|
| query | String | 否 | ||关键词查询条件|
| limit | int | 否 | 10 ||每页展示条数,默认10条|
| sort | String | 否 | "116,117,115,119,124,122,413,258,173,227,125,118,121,123,114,293" ||查询小分类ID,查多个小类以逗号分隔|
| page | int | 否 | 1 ||当前页|
| yh_channel | String | 否 | "1" ||频道|
| order | String | 否 | "s_t_desc" ||排序信息 |
| p_d | String | 否 | "0.7" ||打折区间,以逗号分隔|
| color | String | 否 | "145" ||颜色ID|
| brand | String | 否 | "125" ||品牌ID|
| shop | String | 否 | "155" ||店铺ID|
| price | String | 否 | "300,600" ||价格区间,以逗号分隔|
| size | String | 否 | "16,17" ||尺寸ID,以逗号分隔|
| msort | String | 否 | "95" ||产品大分类ID|
| misort | String | 否 | "918" ||产品中分类ID|
| promotion | String | 否 | "5" ||促销ID|
| from | String | 否 | "45" || 来源于那个搜索词列表|
| gender | String | 否 | "1,3" ||性别,以逗号分隔|
| outlets | int | 否 | 1 ||outlets=1 奥莱商品 outlets=2非奥莱商品|
#### 注意:与以前方式兼容,如果筛选奥莱,只需增加outlets=1的请求参数
### 响应
code为200即为成功且只会返回200,每次都会有响应结果。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"filter": {
"brand": [
{
"brand_alif": "C",
"brand_domain": "cochinillo",
"brand_ico": "http://img10.static.yhbimg.com/brandLogo/2012/11/01/19/01a5a5d79177613a31ef894697f59c3c43.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "",
"brand_name": "Cochinillo",
"brand_name_cn": "Cochinillo",
"brand_name_en": "Cochinillo",
"hot_keyword": "",
"id": 323,
"is_hot": "N"
},
{
"brand_alif": "L",
"brand_domain": "lhouse",
"brand_ico": "http://img11.static.yhbimg.com/brandLogo/2011/06/27/19/01c1514a8a9d3f9bdf34d70c8ec0610870.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "l-house,T恤,休闲裤,包,LPAN,",
"brand_name": "L-HOUSE",
"brand_name_cn": "",
"brand_name_en": "L-HOUSE",
"hot_keyword": "l-house",
"id": 72,
"is_hot": "N"
},
{
"brand_alif": "T",
"brand_domain": "tyakasha",
"brand_ico": "http://img13.static.yhbimg.com/brandLogo/2015/12/07/10/02c11ab89b90ad104a080efc17310836a0.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "tyakasha,服装,",
"brand_name": "TYAKASHA",
"brand_name_cn": "塔卡沙",
"brand_name_en": "TYAKASHA",
"hot_keyword": "tyakasha",
"id": 141,
"is_hot": "Y"
},
{
"brand_alif": "P",
"brand_domain": "protest",
"brand_ico": "http://img13.static.yhbimg.com/brandLogo/2015/12/07/11/024f9654dd401202fa5aa93e21ab01056a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "",
"brand_name": "PROTEST博特斯",
"brand_name_cn": "",
"brand_name_en": "PROTEST",
"hot_keyword": "",
"id": 402,
"is_hot": "N"
},
{
"brand_alif": "C",
"brand_domain": "clottee",
"brand_ico": "http://img10.static.yhbimg.com/brandLogo/2015/12/03/15/01de6bf632d371c2d6c5f74c212aa284fb.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "明星、潮流、设计、细节、凸显个人的风格",
"brand_name": "CLOTtee",
"brand_name_cn": "",
"brand_name_en": "CLOTtee",
"hot_keyword": "CLOT主理人Edison Chen(陈冠希)和Kevin Poon(潘世亨)以“Essential”为题进",
"id": 518,
"is_hot": "Y"
},
{
"brand_alif": "5",
"brand_domain": "5preview",
"brand_ico": "http://img12.static.yhbimg.com/brandLogo/2015/11/17/16/02202c3d541b9b0b67aaf32068b32f4884.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "趣味,休闲",
"brand_name": "5 PREVIEW",
"brand_name_cn": "",
"brand_name_en": "5 PREVIEW",
"hot_keyword": "",
"id": 526,
"is_hot": "N"
}
],
"color": [
{
"color_code": "0000fe",
"color_id": 7,
"color_name": "蓝色",
"color_value": ""
},
{
"color_code": "FFFFFF",
"color_id": 1,
"color_name": "白色",
"color_value": ""
},
{
"color_code": "8b5402",
"color_id": 4,
"color_name": "棕色",
"color_value": ""
},
{
"color_code": "#fffff",
"color_id": 15,
"color_name": "彩色",
"color_value": "http://img02.static.yohobuy.com/adpic/2014/01/27/13/0272608508f09e2bf7eb5543bf5cc70d31.png"
},
{
"color_code": "333333",
"color_id": 2,
"color_name": "黑色",
"color_value": ""
},
{
"color_code": "b9b7af",
"color_id": 3,
"color_name": "灰色",
"color_value": ""
},
{
"color_code": "710098",
"color_id": 8,
"color_name": "紫色",
"color_value": ""
}
],
"discount": {
"0.01,0.399": {
"count": 3,
"name": "1~3"
},
"0.4,0.699": {
"count": 1,
"name": "4~6"
}
},
"gender": {
"1,3": "BOYS",
"2,3": "GIRLS"
},
"group_sort": [
{
"category_id": "5",
"category_name": "上衣",
"node_count": 0,
"parent_id": "1",
"relation_parameter": {
"sort": "598"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg",
"sub": [
{
"category_id": "56",
"category_name": "衬衫",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "115"
},
"sort_ico": ""
},
{
"category_id": "29",
"category_name": "防风外套",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "227"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}"
},
{
"category_id": "42",
"category_name": "毛衣/针织",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "258"
},
"sort_ico": "http://img12.static.yhbimg.com/taobaocms/2015/09/01/14/02d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}"
},
{
"category_id": "45",
"category_name": "T恤",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "114,293"
},
"sort_ico": ""
},
{
"category_id": "53",
"category_name": "背心",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "117"
},
"sort_ico": ""
}
]
},
{
"category_id": "8",
"category_name": "裤装",
"node_count": 0,
"parent_id": "1",
"relation_parameter": {
"sort": "131,129,346,133,348,130"
},
"sort_ico": "http://img10.static.yhbimg.com/taobaocms/2016/04/18/14/016bd577221e94e560d4686ec51f94a479.jpg",
"sub": [
{
"category_id": "92",
"category_name": "牛仔裤",
"node_count": 0,
"parent_id": "8",
"relation_parameter": {
"sort": "130,114,293"
},
"sort_ico": ""
}
]
}
],
"priceRange": {
"0,149": "¥0-149",
"150,299": "¥150-299",
"300,99999": "¥299以上"
},
"size": [
{
"size_id": 203,
"size_name": "M"
},
{
"size_id": 207,
"size_name": "S"
},
{
"size_id": 199,
"size_name": "F"
},
{
"size_id": 201,
"size_name": "L"
},
{
"size_id": 211,
"size_name": "XL"
},
{
"size_id": 213,
"size_name": "XS"
},
{
"size_id": 216,
"size_name": "XXL"
}
]
},
"page": 1,
"page_total": 1,
"product_list": [
{
"brand_domain": "lhouse",
"brand_id": 72,
"brand_name": "L-HOUSE",
"cn_alphabet": "LHOUSEA308XiangJiLPANTXu",
"default_images": "http://img12.static.yhbimg.com/goodsimg/2013/05/09/15/023d3a7e390c20c471978c847600399ba8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 1395997048,
"gender": "1",
"goods_list": [
{
"color_code": "FFFFFF",
"color_id": "1",
"color_name": "白",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "59474",
"images_url": "http://img12.static.yhbimg.com/goodsimg/2013/05/09/15/023d3a7e390c20c471978c847600399ba8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "Y",
"product_skc": "96567",
"status": "1"
},
{
"color_code": "0000fe",
"color_id": "7",
"color_name": "蓝",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "59475",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2013/05/09/16/0102c226f7faa1274e05cc038dc3c29f9f.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "96568",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "N",
"is_limited": "N",
"is_new": "N",
"is_outlets": 1,
"is_promotion": 0,
"is_soon_sold_out": "Y",
"is_special": "N",
"market_price": 148,
"max_sort_id": 1,
"middle_sort_id": 11,
"product_id": 38518,
"product_name": "L-HOUSE 相机LPAN T恤",
"product_skn": 51009846,
"sales_num": 65,
"sales_price": 148,
"shelve_time": 1395997048,
"small_sort_id": 114,
"status": 1,
"stock_number": 2,
"storage_num": 2,
"tags": [
"is_soon_sold_out"
],
"vip1_price": 140.6,
"vip2_price": 133.20000000000002,
"vip3_price": 130.24,
"vip_discount_type": 3,
"vip_price": 0
},
{
"brand_domain": "tyakasha",
"brand_id": 141,
"brand_name": "TYAKASHA",
"cn_alphabet": "TYAKASHANvKuanDaiZhenZhuErHuanDeAKAMaoYiT15DM6637B",
"default_images": "http://img12.static.yhbimg.com/goodsimg/2015/11/11/03/02d26c7111e3512e259466c07e21d60df9.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 1447215936,
"gender": "2",
"goods_list": [
{
"color_code": "0000fe",
"color_id": "7",
"color_name": "蓝色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "377595",
"images_url": "http://img12.static.yhbimg.com/goodsimg/2015/11/11/03/02d26c7111e3512e259466c07e21d60df9.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "293242",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_limited": "N",
"is_new": "N",
"is_outlets": 1,
"is_promotion": 101,
"is_soon_sold_out": "N",
"is_special": "Y",
"market_price": 678,
"max_sort_id": 1,
"middle_sort_id": 257,
"product_id": 294671,
"product_name": "TYAKASHA 女款戴珍珠耳环的AKA毛衣",
"product_skn": 51165107,
"sales_num": 0,
"sales_phrase": "",
"sales_price": 339,
"shelve_time": 1447215936,
"small_sort_id": 258,
"status": 1,
"stock_number": 423,
"storage_num": 423,
"tags": [],
"vip1_price": 322.05,
"vip2_price": 305.1,
"vip3_price": 298.32,
"vip_discount_type": 3,
"vip_price": 0
},
{
"brand_domain": "cochinillo",
"brand_id": 323,
"brand_name": "Cochinillo",
"cn_alphabet": "COCHINILLO676620030TXuShan",
"edit_time": 0,
"gender": "2",
"goods_list": [
{
"color_code": "0000fe",
"color_id": "7",
"color_name": "藏青",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "58024",
"images_url": "http://img13.static.yhbimg.com/goodsimg/2013/03/27/13/02456cdb599a3dd5109400d1c3838d58a0.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "95108",
"status": "1"
},
{
"color_code": "FFFFFF",
"color_id": "1",
"color_name": "白",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "58025",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2013/03/27/13/01b84e5a6d1c493b8112029c5796bf794b.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "95109",
"status": "1"
},
{
"color_code": "8b5402",
"color_id": "4",
"color_name": "杏色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "58026",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2013/03/27/13/01c5548a1e59b836728672a77b9c98917c.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "Y",
"product_skc": "95110",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_limited": "N",
"is_new": "N",
"is_outlets": 1,
"is_promotion": 0,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 458,
"max_sort_id": 1,
"middle_sort_id": 11,
"product_id": 37574,
"product_name": "Cochinillo 蕾丝拼接T恤衫",
"product_skn": 51008901,
"sales_num": 5,
"sales_phrase": "5折封顶",
"sales_price": 183,
"shelve_time": 1366248083,
"small_sort_id": 114,
"status": 1,
"stock_number": 5,
"storage_num": 5,
"tags": [
"is_discount"
],
"vip1_price": 173.85,
"vip2_price": 164.70000000000002,
"vip3_price": 161.04,
"vip_discount_type": 3,
"vip_price": 0
},
{
"brand_domain": "cochinillo",
"brand_id": 323,
"brand_name": "Cochinillo",
"cn_alphabet": "COCHINILLO661300110ChenShan",
"default_images": "http://img10.static.yhbimg.com/goodsimg/2012/12/24/11/0171ead672ff178f83cee6dd46112a9fb3.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 0,
"gender": "2",
"goods_list": [
{
"color_code": "FFFFFF",
"color_id": "1",
"color_name": "白",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "43737",
"images_url": "http://img13.static.yhbimg.com/goodsimg/2012/12/24/11/020b3137bc9f8f199ffb2bbc1d3acdab04.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "81171",
"status": "1"
},
{
"color_code": "8b5402",
"color_id": "4",
"color_name": "杏色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "43738",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2012/12/24/11/0171ead672ff178f83cee6dd46112a9fb3.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "Y",
"product_skc": "81172",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_limited": "N",
"is_new": "N",
"is_outlets": 1,
"is_promotion": 101,
"is_soon_sold_out": "Y",
"is_special": "N",
"market_price": 688,
"max_sort_id": 1,
"middle_sort_id": 12,
"product_id": 29426,
"product_name": "Cochinillo 豹纹雪纺上衣",
"product_skn": 51000729,
"sales_num": 11,
"sales_phrase": "5折封顶",
"sales_price": 275,
"shelve_time": 1358301176,
"small_sort_id": 115,
"status": 1,
"stock_number": 1,
"storage_num": 1,
"tags": [
"is_discount",
"is_soon_sold_out"
],
"vip1_price": 261.25,
"vip2_price": 247.5,
"vip3_price": 242,
"vip_discount_type": 3,
"vip_price": 0
},
{
"brand_domain": "5preview",
"brand_id": 526,
"brand_name": "5 PREVIEW",
"cn_alphabet": "I914_A25",
"default_images": "http://img10.static.yhbimg.com/goodsimg/2015/07/15/08/0151af4dd4ff03297dc92d4ef0a1efd724.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 1453952293,
"gender": "2",
"goods_list": [
{
"color_code": "#fffff",
"color_id": "15",
"color_name": "彩色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "267285",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2015/07/15/08/0151af4dd4ff03297dc92d4ef0a1efd724.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "234928",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_limited": "N",
"is_new": "N",
"is_outlets": 1,
"is_promotion": 0,
"is_soon_sold_out": "Y",
"is_special": "N",
"market_price": 980,
"max_sort_id": 1,
"middle_sort_id": 11,
"product_id": 199467,
"product_name": "5 PREVIEW 图案T恤",
"product_skn": 51114538,
"sales_num": 11,
"sales_phrase": "",
"sales_price": 294,
"shelve_time": 1453952293,
"small_sort_id": 114,
"status": 1,
"stock_number": 1,
"storage_num": 1,
"tags": [
"is_discount",
"is_soon_sold_out"
],
"vip1_price": 279.3,
"vip2_price": 264.6,
"vip3_price": 258.72,
"vip_discount_type": 3,
"vip_price": 0
},
{
"brand_domain": "clottee",
"brand_id": 518,
"brand_name": "CLOTtee",
"cn_alphabet": "CLA503OJ34ChongFengYi",
"default_images": "http://img10.static.yhbimg.com/goodsimg/2015/09/30/08/01d2be5e9d6a18d8958484fede5af853bd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 1452654408,
"gender": "1",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "314411",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2015/09/30/08/01d2be5e9d6a18d8958484fede5af853bd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "258548",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_limited": "N",
"is_new": "N",
"is_outlets": 1,
"is_promotion": 101,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 699,
"max_sort_id": 1,
"middle_sort_id": 226,
"product_id": 239715,
"product_name": "CLOTtee camouflage Printing Coat Tech Jacket",
"product_skn": 51134695,
"sales_num": 2,
"sales_phrase": "",
"sales_price": 139,
"shelve_time": 1452654408,
"small_sort_id": 227,
"status": 1,
"stock_number": 765,
"storage_num": 765,
"tags": [
"is_discount"
],
"vip1_price": 132.04999999999998,
"vip2_price": 125.10000000000001,
"vip3_price": 122.32000000000001,
"vip_discount_type": 3,
"vip_price": 0
},
{
"brand_domain": "protest",
"brand_id": 402,
"brand_name": "PROTEST博特斯",
"cn_alphabet": "PROTEST165521BeiXin",
"default_images": "http://img10.static.yhbimg.com/goodsimg/2013/09/05/11/013fd21b367badee4c101362d58131df95.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 1441689353,
"gender": "2",
"goods_list": [
{
"color_code": "710098",
"color_id": "8",
"color_name": "紫",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "74891",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2013/09/05/11/013fd21b367badee4c101362d58131df95.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "Y",
"product_skc": "111991",
"status": "1"
},
{
"color_code": "b9b7af",
"color_id": "3",
"color_name": "灰",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "74892",
"images_url": "http://img12.static.yhbimg.com/goodsimg/2013/09/04/14/02735f6597cdb30754a2af076587db12e9.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "111992",
"status": "1"
},
{
"color_code": "0000fe",
"color_id": "7",
"color_name": "蓝",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "74893",
"images_url": "http://img12.static.yhbimg.com/goodsimg/2013/09/06/11/02d02d3702690b164f268d64a81ad247ee.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "111993",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_limited": "N",
"is_new": "N",
"is_outlets": 1,
"is_promotion": 0,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 349,
"max_sort_id": 1,
"middle_sort_id": 14,
"product_id": 49470,
"product_name": "PROTEST博特斯 女款针织连帽背心",
"product_skn": 51020802,
"sales_num": 1,
"sales_price": 69,
"shelve_time": 1378368243,
"small_sort_id": 117,
"status": 1,
"stock_number": 27,
"storage_num": 27,
"tags": [
"is_discount"
],
"vip1_price": 65.55,
"vip2_price": 62.1,
"vip3_price": 60.72,
"vip_discount_type": 3,
"vip_price": 0
}
],
"standard": [
{
"standard_id": "789",
"standard_name": "袖长",
"sub": [
{
"standard_id": "4447",
"standard_name": "短袖"
},
{
"standard_id": "4449",
"standard_name": "长袖"
}
]
},
{
"standard_id": "787",
"standard_name": "领型",
"sub": [
{
"standard_id": "4438",
"standard_name": "圆领"
}
]
},
{
"standard_id": "788",
"standard_name": "衣长",
"sub": [
{
"standard_id": "4444",
"standard_name": "短款"
}
]
},
{
"standard_id": "790",
"standard_name": "版型",
"sub": [
{
"standard_id": "4450",
"standard_name": "修身"
},
{
"standard_id": "4451",
"standard_name": "正常"
}
]
},
{
"standard_id": "791",
"standard_name": "厚度",
"sub": [
{
"standard_id": "4453",
"standard_name": "薄"
}
]
}
],
"total": 7
},
"md5": "253e1f00dc682921e838fed19cc5974e",
"message": "Search List."
}
```
## 三、品类列表
###### 全部品类(http://list.yohobuy.com/)
* 请求URL:
>http://192.168.102.216:8080/yohosearch/sortgroup.json?sales=Y&status=1&stocknumber=1
### 字段说明
-------------------------------------------------------
|参数名 |值 |描述 |
|------ |---- |--- |
|status |1| 是否上架 1 或 2 |
|sales |Y | 是否销售 “N”或”Y” |
|stocknumber |2 | 库存量如“stocknumber=2”,则过滤出库存量>=2的商品 |
### 参数返回
{
"code": 200,
"data": {
"sort": [
{
"sort_id": "1",
"sort_name": "上衣",
"order_by": "100",
"count": 22712,
"sub": [
{
"sort_id": "11",
"sort_name": "T恤",
"order_by": "50",
"count": 5316
},
{
"sort_id": "412",
"sort_name": "套装",
"order_by": "0",
"count": 26
}
]
},
{
"sort_id": "3",
"sort_name": "裤装",
"order_by": "90",
"count": 5950,
"sub": [
{
"sort_id": "26",
"sort_name": "休闲裤",
"order_by": "30",
"count": 3415
},
{
"sort_id": "347",
"sort_name": "西裤",
"order_by": "0",
"count": 28
}
]
},
{
"sort_id": "6",
"sort_name": "鞋靴",
"order_by": "70",
"count": 3251,
"sub": [
{
"sort_id": "44",
"sort_name": "休闲/运动鞋",
"order_by": "22",
"count": 2002
},
{
"sort_id": "298",
"sort_name": "厚底鞋",
"order_by": "0",
"count": 2
}
]
},
{
"sort_id": "7",
"sort_name": "包类/装备",
"order_by": "60",
"count": 5907,
"sub": [
{
"sort_id": "49",
"sort_name": "双肩包",
"order_by": "20",
"count": 2001
},
{
"sort_id": "350",
"sort_name": "mini包",
"order_by": "0",
"count": 7
}
]
},
{
"sort_id": "8",
"sort_name": "服配",
"order_by": "50",
"count": 7121,
"sub": [
{
"sort_id": "61",
"sort_name": "太阳镜/眼镜",
"order_by": "20",
"count": 1117
},
{
"sort_id": "294",
"sort_name": "口罩",
"order_by": "0",
"count": 2
}
]
},
{
"sort_id": "308",
"sort_name": "内衣/家居服",
"order_by": "40",
"count": 1086,
"sub": [
{
"sort_id": "309",
"sort_name": "内裤",
"order_by": "10",
"count": 683
},
{
"sort_id": "363",
"sort_name": "文胸",
"order_by": "8",
"count": 82
},
{
"sort_id": "356",
"sort_name": "家居服",
"order_by": "6",
"count": 309
},
{
"sort_id": "358",
"sort_name": "家居鞋",
"order_by": "2",
"count": 8
}
]
},
{
"sort_id": "241",
"sort_name": "pinleimingcheng",
"order_by": "22",
"count": 3,
"sub": []
},
{
"sort_id": "10",
"sort_name": "创意生活",
"order_by": "20",
"count": 4432,
"sub": [
{
"sort_id": "103",
"sort_name": "数码3C",
"order_by": "28",
"count": 1831
},
{
"sort_id": "259",
"sort_name": "美妆",
"order_by": "20",
"count": 433
}
]
},
{
"sort_id": "360",
"sort_name": "泳衣",
"order_by": "10",
"count": 2,
"sub": [
{
"sort_id": "361",
"sort_name": "泳衣",
"order_by": "0",
"count": 2
}
]
},
{
"sort_id": "365",
"sort_name": "潮童",
"order_by": "0",
"count": 1425,
"sub": [
{
"sort_id": "396",
"sort_name": "卫衣",
"order_by": "0",
"count": 175
},
{
"sort_id": "427",
"sort_name": "手帕",
"order_by": "0",
"count": 1
}
]
}
]
},
"message": "sort List."
}
#### gateway接口
####method=web.regular.groupsort
#### 接口参数
#### 接口返回
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"sort": [
{
"sort_id": "1",
"sort_name": "上衣",
"order_by": "100",
"count": 22712,
"sub": [
{
"sort_id": "11",
"sort_name": "T恤",
"order_by": "50",
"count": 5316
},
{
"sort_id": "412",
"sort_name": "套装",
"order_by": "0",
"count": 26
}
]
},
{
"sort_id": "3",
"sort_name": "裤装",
"order_by": "90",
"count": 5950,
"sub": [
{
"sort_id": "26",
"sort_name": "休闲裤",
"order_by": "30",
"count": 3415
},
{
"sort_id": "347",
"sort_name": "西裤",
"order_by": "0",
"count": 28
}
]
},
{
"sort_id": "6",
"sort_name": "鞋靴",
"order_by": "70",
"count": 3251,
"sub": [
{
"sort_id": "44",
"sort_name": "休闲/运动鞋",
"order_by": "22",
"count": 2002
},
{
"sort_id": "298",
"sort_name": "厚底鞋",
"order_by": "0",
"count": 2
}
]
},
{
"sort_id": "7",
"sort_name": "包类/装备",
"order_by": "60",
"count": 5907,
"sub": [
{
"sort_id": "49",
"sort_name": "双肩包",
"order_by": "20",
"count": 2001
},
{
"sort_id": "350",
"sort_name": "mini包",
"order_by": "0",
"count": 7
}
]
},
{
"sort_id": "8",
"sort_name": "服配",
"order_by": "50",
"count": 7121,
"sub": [
{
"sort_id": "61",
"sort_name": "太阳镜/眼镜",
"order_by": "20",
"count": 1117
},
{
"sort_id": "294",
"sort_name": "口罩",
"order_by": "0",
"count": 2
}
]
},
{
"sort_id": "308",
"sort_name": "内衣/家居服",
"order_by": "40",
"count": 1086,
"sub": [
{
"sort_id": "309",
"sort_name": "内裤",
"order_by": "10",
"count": 683
},
{
"sort_id": "363",
"sort_name": "文胸",
"order_by": "8",
"count": 82
},
{
"sort_id": "356",
"sort_name": "家居服",
"order_by": "6",
"count": 309
},
{
"sort_id": "358",
"sort_name": "家居鞋",
"order_by": "2",
"count": 8
}
]
},
{
"sort_id": "241",
"sort_name": "pinleimingcheng",
"order_by": "22",
"count": 3,
"sub": [
]
},
{
"sort_id": "10",
"sort_name": "创意生活",
"order_by": "20",
"count": 4432,
"sub": [
{
"sort_id": "103",
"sort_name": "数码3C",
"order_by": "28",
"count": 1831
},
{
"sort_id": "259",
"sort_name": "美妆",
"order_by": "20",
"count": 433
}
]
},
{
"sort_id": "360",
"sort_name": "泳衣",
"order_by": "10",
"count": 2,
"sub": [
{
"sort_id": "361",
"sort_name": "泳衣",
"order_by": "0",
"count": 2
}
]
},
{
"sort_id": "365",
"sort_name": "潮童",
"order_by": "0",
"count": 1425,
"sub": [
{
"sort_id": "396",
"sort_name": "卫衣",
"order_by": "0",
"count": 175
},
{
"sort_id": "427",
"sort_name": "手帕",
"order_by": "0",
"count": 1
}
]
}
]
},
"md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
"message": "sort List."
}
```
-------------------------------------------------------
## 四、最近上架
###### 一周新品上架(http://list.yohobuy.com/new?gender=1,3&order=s_t_desc)
* 请求URL:
>http://192.168.102.216:8080/yohosearch/recent.json?
### 参数返回
{
"code": 200,
"data": {
"recent": {
"2016-06-29": 3,
"2016-06-28": 3,
"2016-06-27": 1,
"2016-06-18": 6,
"2016-06-06": 1,
"2016-06-02": 3,
"2016-05-27": 8
}
},
"message": "recentShelveDay List."
}
-------------------------------------------------------
#### gateway接口
暂无,需要新增接口
####method=web.regular.recent
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|yh_channel|string|是|1|null|频道|
|order|string|是|s_n_desc|null|排序规则|
#### 接口返回
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"recent": {
"2016-06-29": 3,
"2016-06-28": 3,
"2016-06-27": 1,
"2016-06-18": 6,
"2016-06-06": 1,
"2016-06-02": 3,
"2016-05-27": 8
}
},
"md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
"message": "recentShelveDay List."
}
```
## 五、折扣区间
###### 全部折扣(http://list.yohobuy.com/sale?msort=365)
* 请求URL:
>http://192.168.102.216:8080/yohosearch/discount.json?
### 参数返回
{
"code": 200,
"data": {
"discount": {
"0.01,0.399": {
"count": 33225,
"name": "1~3"
},
"0.4,0.699": {
"count": 63367,
"name": "4~6"
},
"0.7,0.999": {
"count": 28892,
"name": "7~9"
}
}
},
"message": "discount List."
}
-------------------------------------------------------
#### gateway接口
暂无,需要新增接口
#### method=web.regular.discount
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|msort|string|是|365|null|一级类目|
#### 接口返回
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"discount": {
"0.01,0.399": {
"count": 33225,
"name": "1~3"
},
"0.4,0.699": {
"count": 63367,
"name": "4~6"
},
"0.7,0.999": {
"count": 28892,
"name": "7~9"
}
}
},
"md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
"message": "discount List."
}
```
## 六、搜索词提示 :
###### 搜索输入框(http://search.yohobuy.com/?query=nike)
* 请求URL:
>http://192.168.102.216:8080/yohosearch/suggest.json?query=nike
### 字段说明
-------------------------------------------------------
|参数名 |值 |描述 |
|------ |---- |--- |
|query |nike | 关键字 |
### 参数返回
{
"code": 200,
"message": "suggest List.",
"suggest": {
"items": [
{
"frequency": 1939,
"item": "nike"
},
{
"frequency": 1928,
"item": "nike air"
},
{
"frequency": 218,
"item": "nike air max"
}
]
}
}
-------------------------------------------------------
#### gateway接口
method=app.search.fuzzy
### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
| :------- | ------: | ---: | ---: | ---: | ------------------: |
| keyword | String | 否 | a | null | 联想关键词 |
### 返回示例
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"count": 216,
"keyword": "阿迪达斯"
},
{
"count": 216,
"keyword": "adidas"
},
{
"count": 10,
"keyword": "aape"
},
{
"count": 1,
"keyword": "aj"
},
{
"count": 21,
"keyword": "asics"
},
{
"count": 170,
"keyword": "adidasoriginals"
},
{
"count": 216,
"keyword": "阿迪"
},
{
"count": 1,
"keyword": "air jordan"
},
{
"count": 216,
"keyword": "air"
},
{
"count": 20,
"keyword": "安德玛"
}
],
"md5": "8e678e9334361efc4bd3820980d1060f",
"message": "fuzzy search list"
}
```
## 七、获取品牌店铺 :
###### 品牌页(5min.yohobuy.com)
* 请求URL:
>http://192.168.102.216:8080/yohosearch/shops.json?keyword=nike
### 字段说明
-------------------------------------------------------
|参数名 |值 |描述 |
|------ |---- |--- |
|keyword |nike | 关键字 |
### 参数返回
{
"code": 200,
"data": {
"brand_domain": "nike",
"brand_ico": "/2015/04/10/16/02963cdc1aeab10959bfeccc400aaa8de8.jpg",
"brand_name": "Nike",
"id": 248
},
"message": "shops info"
}
-------------------------------------------------------
#### gateway接口
暂无,需要新增接口
#### method=web.search.shopInfo
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|keyword|string|否|nike|null|关键词|
#### 接口返回
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"brand_domain": "nike",
"brand_ico": "/2015/04/10/16/02963cdc1aeab10959bfeccc400aaa8de8.jpg",
"brand_name": "Nike",
"id": 248
},
"md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
"message": "shops info"
}
```
## 八、获取品牌列表 :
###### 你可能喜欢的品牌(http://www.yohobuy.com/home)
* 请求URL:
>http://192.168.102.216:8080/yohosearch/brand/list.json
### 参数返回
{
"code": 200,
"data": [
{
"brand_alif": "0",
"brand_domain": "004",
"brand_ico": "/2011/06/26/19/016f21d6a39d5071e1864943253dcdefde.jpg",
"brand_keyword": "004,服装,包类",
"brand_name": "004",
"brand_name_cn": "零零肆12121",
"brand_name_en": "jipeng",
"hot_keyword": "004",
"id": 1,
"is_hot": ""
},
{
"brand_alif": "D",
"brand_domain": "DOUCAN",
"brand_ico": "/2016/06/30/17/011ed7ff4510bcbd4a9e4242cc99b7ff99.jpg",
"brand_keyword": "",
"brand_name": "DOUCAN",
"brand_name_cn": "DOUCAN",
"brand_name_en": "DOUCAN",
"hot_keyword": "",
"id": 1726,
"is_hot": "N"
}
],
"message": "brands info"
}
-------------------------------------------------------
#### gateway接口
暂无,需要新增接口
#### method=web.search.favorBrand
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
#### 接口返回
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"brand_alif": "0",
"brand_domain": "004",
"brand_ico": "/2011/06/26/19/016f21d6a39d5071e1864943253dcdefde.jpg",
"brand_keyword": "004,服装,包类",
"brand_name": "004",
"brand_name_cn": "零零肆12121",
"brand_name_en": "jipeng",
"hot_keyword": "004",
"id": 1,
"is_hot": ""
},
{
"brand_alif": "D",
"brand_domain": "DOUCAN",
"brand_ico": "/2016/06/30/17/011ed7ff4510bcbd4a9e4242cc99b7ff99.jpg",
"brand_keyword": "",
"brand_name": "DOUCAN",
"brand_name_cn": "DOUCAN",
"brand_name_en": "DOUCAN",
"hot_keyword": "",
"id": 1726,
"is_hot": "N"
}
],
"md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
"message": "brands info"
}
```
>
PS: 菜单导航
1、男生(新品到着、 服饰、 鞋履、 包袋、 配饰 · 其他)
2、女生(新品到着、 服饰、 鞋履、 包袋、配饰 · 其他)
3、潮童(新品到着、 上装、 下装、 鞋包配饰)
4、创意生活(新品到着、 数码3C、 居家、 玩具娱乐、 美妆)
只是获取商品列表gender,msort参数不同而已,参数均是参考搜索文档上面的参数入参。
-------------------------------------------------------
>
>1、sort:品类
http://192.168.102.216:8080/yohosearch/sortgroup.json
>
2、discount:折扣区间
http://192.168.102.216:8080/yohosearch/discount.json
>
3、recent:最新上架
http://192.168.102.216:8080/yohosearch/recent.json
>
4、 suggest:搜索词提示
http://192.168.102.216:8080/yohosearch/suggest.json?query=nike
>
5、 new-shelve:获取推荐新品
http://192.168.102.216:8080/yohosearch/new-shelve.json
>
6、shop:获取品牌店铺
http://192.168.102.216:8080/yohosearch/shops.json?keyword=nike
>
7、search:搜索数据列表
http://192.168.102.216:8080/yohosearch/search.json
>
8、brand:获取品牌列表
http://192.168.102.216:8080/yohosearch/brand/list.json
>
* 上面搜索数据均是这八大连接支持。
* 入参出参均是参考搜索文档。
\ No newline at end of file
... ...
## 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&page=1&viewNum=5&query=51159630+51159661+51180447+51180452+51159636
##### 字段说明
-------------------------------------------------------
|参数名 |值 |描述 |
|------ |---- |--- |
|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 | 关键字 |
##### 响应: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."
}
##### gateway接口
暂无根据多个skn查询的接口,待新增
method=h5.product.batch
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|brand|string|是|649|null|品牌id|
|order|string|是|s_n_desc|null|排序规则|
|limit|int|是|20|20|每页数据大小|
|page|int|是|1|1|当前页|
|productSkn|string|否|5002700,5001700|null|商品skn,多个skn以逗号分隔|
#### 接口返回
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"page": 1,
"page_total": 14,
"product_list": [
{
"brand_domain": "macropus",
"brand_id": 350,
"brand_name": "MACROPUS",
"cn_alphabet": "MACROPUSShuangJianBaoMCPA601BK807",
"default_images": "http://img10.static.yhbimg.com/goodsimg/2016/01/21/07/010fb0f71f0a0dce9619e097d5b9f6eb37.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 1457575980,
"gender": "3",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "http://img10.static.yhbimg.com/goodsimg/2016/01/21/07/010fb0f71f0a0dce9619e097d5b9f6eb37.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"cover_2": "",
"goods_id": "404967",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2016/01/04/11/018c2c3e31c131f773cd371bdeda2b8a8a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "Y",
"product_skc": "306738",
"status": "1"
},
{
"color_code": "0000fe",
"color_id": "7",
"color_name": "蓝色",
"color_value": "",
"cover_1": "",
"cover_2": "http://img13.static.yhbimg.com/goodsimg/2016/01/21/07/021eeadc25e5956078a62766de8c613902.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"goods_id": "404969",
"images_url": "http://img12.static.yhbimg.com/goodsimg/2015/12/31/10/0242349adc8ca268b3945553c1e462440a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "306739",
"status": "1"
},
{
"color_code": "b9b7af",
"color_id": "3",
"color_name": "灰色",
"color_value": "",
"cover_1": "",
"cover_2": "http://img11.static.yhbimg.com/goodsimg/2016/01/21/07/017ee07092f40285d9cca35711fca60947.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"goods_id": "404971",
"images_url": "http://img11.static.yhbimg.com/goodsimg/2016/01/04/06/015f740b62058711b47dc5a620c7a0ab97.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "306740",
"status": "1"
},
{
"color_code": "ee0000",
"color_id": "11",
"color_name": "红色",
"color_value": "",
"cover_1": "http://img12.static.yhbimg.com/goodsimg/2016/01/21/07/022b6e53cfc1ecb42d62cc1a44a1697a7a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"cover_2": "",
"goods_id": "404973",
"images_url": "http://img13.static.yhbimg.com/goodsimg/2016/01/04/05/02820d9667af1de64df0dd4a3ed3489abd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "306741",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "N",
"is_limited": "N",
"is_new": "Y",
"is_outlets": 2,
"is_promotion": 103,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 369,
"max_sort_id": 7,
"middle_sort_id": 49,
"product_id": 314499,
"product_name": "MACROPUS 时尚军装系列 双肩包(男女通用)",
"product_skn": 51174855,
"sales_num": 0,
"sales_phrase": "",
"sales_price": 369,
"shelve_time": 1457575980,
"small_sort_id": 152,
"status": 1,
"stock_number": 1073,
"storage_num": 1073,
"tags": [
"is_new"
],
"vip1_price": 350.55,
"vip2_price": 332.1,
"vip3_price": 324.72,
"vip_discount_type": 4,
"vip_price": 295
}
],
"total": 26
},
"md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
"message": "Search List."
}
```
### 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&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."
}
##### gateway接口
见上面method=h5.product.batch
### 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
##### 字段说明
-------------------------------------------------------
|参数名 |值 |描述 |
|------ |---- |--- |
|Status |1| 是否上架 1 或 2 |
|sales |Y | 是否销售 |
|stocknumber|1 | 库存量如“stocknumber=1”,则过滤出库存量>=1的商品 |
|attribute_not|2 | 过滤商品属性,attribute_not=2过滤掉赠品 |
|order |shelve_time:desc | 排序类型 按时间降序 |
|viewNum |60 | 每页记录数默认为60 |
|brand |700 | 品牌 |
|gender|1,2,3 | 性别1-男2-女3-通用查多个性别以逗号分隔 |
##### 响应:code 200即为成功,否则为失败,响应json数据格式为下:
{
"code": 200,
"data": {
"page": 1,
"page_total": 6,
"product_list": [
{
"brand_domain": "misbhv",
"brand_id": 700,
"brand_name": "MISBHV",
"cn_alphabet": "MISBHVAFTERDARKFLEECETURTLENECKBLACKNO139HeiSe",
"default_images": "/2015/09/14/02/026cfec8af9928bb187806526746dc1afa.jpg",
"edit_time": 1442417903,
"gender": "3",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "/2015/09/30/05/01c44a368224daffcc4619506dd18d6e44.jpg",
"cover_2": "",
"goods_id": "311487",
"images_url": "/2015/09/14/02/026cfec8af9928bb187806526746dc1afa.jpg",
"is_default": "N",
"product_skc": "257101",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_global": "N",
"is_limited": "N",
"is_new": "N",
"is_outlets": 2,
"is_promotion": 104,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 729,
"max_sort_id": 1,
"middle_sort_id": 16,
"product_id": 237093,
"product_name": "MISBHV After Dark fleece turtleneck",
"product_skn": 51133401,
"sales_num": 0,
"sales_phrase": "",
"sales_price": 649,
"shelve_time": 1450491360,
"small_sort_id": 119,
"status": 1,
"stock_number": 9,
"storage_num": 9,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 3,
"vip_price": 0,
"yohood_id": null
}
],
"total": 36
},
"message": "Search List."
}
##### gateway接口
(method=app.search.brand)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|yh_channel|string|是|1|null|频道id|
|brand|string|是|649|null|品牌id|
|shop_id|string|是|649|null|店铺id|
|order|string|是|s_n_desc|null|排序规则|
|limit|int|是|20|20|每页数据大小|
|page|int|是|1|1|当前页|
|gender|string|是|1,3|null|性别,筛选条件|
|color|string|是|2|null|颜色,筛选条件|
|price|string|是|220,339|null|价格,筛选条件|
|size|string|是|109|null|尺码,筛选条件|
|p_d|string|是|0.4,0.699|null|折扣,筛选条件|
|sort|string|是|114,293|null|品类,筛选条件|
|tags_filter|int|是|0|0|标签过滤 1:全球购羊头品牌标签过滤|
注意,通用的头部没有列出,其他条件同原来保持一致,如果不清楚可以参考app的请求报文。
请求示例
http://devapi.yoho.cn:58078/gateway/?app_version=4.1.0&brand=144&client_secret=091b04ce5de86a8b0e0143ee513f9ed2&client_type=android&color=2
&gender=1%2C3&limit=20&method=app.search.brand&order=s_t_desc&os_version=android4.4.4%3AChe1-CL20&p_d=0.4%2C0.699&page=1&price=220%2C339
&productSize=240x319&screen_size=720x1280&size=109&sort=114%2C293&v=7&yh_channel=1&debug=XYZ
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"brand": {
"brand_banner": "http://img10.static.yhbimg.com/brandBanner/2015/07/20/02/01e3a6dc767d3bcce115a98c46f8e1a5c4.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_domain": "macropus",
"brand_ico": "http://img10.static.yhbimg.com/brandLogo/2013/01/14/14/01fe59a9d032ed8a69552209c34948addb.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_name": "MACROPUS",
"id": 350
},
"filter": {
"brand": [
{
"brand_alif": "M",
"brand_domain": "macropus",
"brand_ico": "http://img10.static.yhbimg.com/brandLogo/2016/02/29/18/01a64543a610586706d5957c06e9821c1d.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "",
"brand_name": "MACROPUS",
"brand_name_cn": "",
"brand_name_en": "MACROPUS",
"hot_keyword": "",
"id": 350,
"is_hot": "Y"
}
],
"color": [
{
"color_code": "333333",
"color_id": 2,
"color_name": "黑色",
"color_value": ""
},
{
"color_code": "0000fe",
"color_id": 7,
"color_name": "蓝色",
"color_value": ""
},
{
"color_code": "b9b7af",
"color_id": 3,
"color_name": "灰色",
"color_value": ""
},
{
"color_code": "47ba17",
"color_id": 6,
"color_name": "绿色",
"color_value": ""
},
{
"color_code": "ee0000",
"color_id": 11,
"color_name": "红色",
"color_value": ""
},
{
"color_code": "8b5402",
"color_id": 4,
"color_name": "棕色",
"color_value": ""
},
{
"color_code": "FFFFFF",
"color_id": 1,
"color_name": "白色",
"color_value": ""
},
{
"color_code": "ff5c01",
"color_id": 12,
"color_name": "橙色",
"color_value": ""
},
{
"color_code": "710098",
"color_id": 8,
"color_name": "紫色",
"color_value": ""
},
{
"color_code": "ffeb00",
"color_id": 9,
"color_name": "黄色",
"color_value": ""
},
{
"color_code": "#fffff",
"color_id": 15,
"color_name": "彩色",
"color_value": "http://img02.static.yohobuy.com/adpic/2014/01/27/13/0272608508f09e2bf7eb5543bf5cc70d31.png"
},
{
"color_code": "",
"color_id": 13,
"color_name": "银色",
"color_value": "http://static.yohobuy.com/images/color_p2.png"
},
{
"color_code": "FFD83D",
"color_id": 14,
"color_name": "金色",
"color_value": ""
}
],
"discount": {
"0.01,0.399": {
"count": 28,
"name": "1~3"
},
"0.4,0.699": {
"count": 193,
"name": "4~6"
},
"0.7,0.999": {
"count": 7,
"name": "7~9"
}
},
"gender": {
"1,3": "BOYS",
"2,3": "GIRLS"
},
"group_sort": [
{
"category_id": "14",
"category_name": "包类",
"node_count": 0,
"parent_id": "1",
"relation_parameter": {
"sort": "152,153,196,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,195,197"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/0155e4ec81db538c58a52f3066e396aac5.jpg?imageView/{mode}/w/{width}/h/{height}",
"sub": [
{
"category_id": "136",
"category_name": "双肩包",
"node_count": 0,
"parent_id": "14",
"relation_parameter": {
"sort": "152"
},
"sort_ico": ""
},
{
"category_id": "142",
"category_name": "手拎包/单肩包",
"node_count": 0,
"parent_id": "14",
"relation_parameter": {
"sort": "195,196,153,197"
},
"sort_ico": ""
},
{
"category_id": "150",
"category_name": "腰包",
"node_count": 0,
"parent_id": "14",
"relation_parameter": {
"sort": "157"
},
"sort_ico": ""
},
{
"category_id": "160",
"category_name": "电脑包",
"node_count": 0,
"parent_id": "14",
"relation_parameter": {
"sort": "156"
},
"sort_ico": ""
}
]
}
],
"priceRange": {
"0,119": "¥0-119",
"120,169": "¥120-169",
"170,269": "¥170-269",
"270,99999": "¥269以上"
},
"size": [
{
"size_id": 199,
"size_name": "F"
},
{
"size_id": 203,
"size_name": "M"
},
{
"size_id": 207,
"size_name": "S"
}
]
},
"page": 1,
"page_total": 14,
"product_list": [
{
"brand_domain": "macropus",
"brand_id": 350,
"brand_name": "MACROPUS",
"cn_alphabet": "MACROPUSShuangJianBaoMCPA601BK807",
"default_images": "http://img10.static.yhbimg.com/goodsimg/2016/01/21/07/010fb0f71f0a0dce9619e097d5b9f6eb37.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 1457575980,
"gender": "3",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "http://img10.static.yhbimg.com/goodsimg/2016/01/21/07/010fb0f71f0a0dce9619e097d5b9f6eb37.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"cover_2": "",
"goods_id": "404967",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2016/01/04/11/018c2c3e31c131f773cd371bdeda2b8a8a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "Y",
"product_skc": "306738",
"status": "1"
},
{
"color_code": "0000fe",
"color_id": "7",
"color_name": "蓝色",
"color_value": "",
"cover_1": "",
"cover_2": "http://img13.static.yhbimg.com/goodsimg/2016/01/21/07/021eeadc25e5956078a62766de8c613902.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"goods_id": "404969",
"images_url": "http://img12.static.yhbimg.com/goodsimg/2015/12/31/10/0242349adc8ca268b3945553c1e462440a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "306739",
"status": "1"
},
{
"color_code": "b9b7af",
"color_id": "3",
"color_name": "灰色",
"color_value": "",
"cover_1": "",
"cover_2": "http://img11.static.yhbimg.com/goodsimg/2016/01/21/07/017ee07092f40285d9cca35711fca60947.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"goods_id": "404971",
"images_url": "http://img11.static.yhbimg.com/goodsimg/2016/01/04/06/015f740b62058711b47dc5a620c7a0ab97.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "306740",
"status": "1"
},
{
"color_code": "ee0000",
"color_id": "11",
"color_name": "红色",
"color_value": "",
"cover_1": "http://img12.static.yhbimg.com/goodsimg/2016/01/21/07/022b6e53cfc1ecb42d62cc1a44a1697a7a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"cover_2": "",
"goods_id": "404973",
"images_url": "http://img13.static.yhbimg.com/goodsimg/2016/01/04/05/02820d9667af1de64df0dd4a3ed3489abd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "306741",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "N",
"is_limited": "N",
"is_new": "Y",
"is_outlets": 2,
"is_promotion": 103,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 369,
"max_sort_id": 7,
"middle_sort_id": 49,
"product_id": 314499,
"product_name": "MACROPUS 时尚军装系列 双肩包(男女通用)",
"product_skn": 51174855,
"sales_num": 0,
"sales_phrase": "",
"sales_price": 369,
"shelve_time": 1457575980,
"small_sort_id": 152,
"status": 1,
"stock_number": 1073,
"storage_num": 1073,
"tags": [
"is_new"
],
"vip1_price": 350.55,
"vip2_price": 332.1,
"vip3_price": 324.72,
"vip_discount_type": 4,
"vip_price": 295
}
],
"standard": [
{
"standard_id": "723",
"standard_name": "电脑隔层",
"sub": [
{
"standard_id": "3293",
"standard_name": "有"
},
{
"standard_id": "3294",
"standard_name": "无"
}
]
},
{
"standard_id": "18",
"standard_name": "面料材质",
"sub": [
{
"standard_id": "128",
"standard_name": "帆布"
},
{
"standard_id": "3080",
"standard_name": "尼龙"
},
{
"standard_id": "3092",
"standard_name": "涤纶"
},
{
"standard_id": "131",
"standard_name": "呢子"
},
{
"standard_id": "134",
"standard_name": "灯芯绒"
},
{
"standard_id": "3091",
"standard_name": "太空棉"
},
{
"standard_id": "132",
"standard_name": "毛线"
},
{
"standard_id": "3279",
"standard_name": "聚酯纤维"
}
]
},
{
"standard_id": "15",
"standard_name": "款式细节",
"sub": [
{
"standard_id": "104",
"standard_name": "logo图案"
},
{
"standard_id": "106",
"standard_name": "多口袋"
},
{
"standard_id": "100",
"standard_name": "图案印花"
},
{
"standard_id": "107",
"standard_name": "拼色"
},
{
"standard_id": "101",
"standard_name": "字母图案"
},
{
"standard_id": "103",
"standard_name": "绣标"
},
{
"standard_id": "109",
"standard_name": "纽扣装饰"
},
{
"standard_id": "108",
"standard_name": "金属装饰"
},
{
"standard_id": "111",
"standard_name": "贴布装饰"
}
]
},
{
"standard_id": "21",
"standard_name": "形状",
"sub": [
{
"standard_id": "150",
"standard_name": "横款"
},
{
"standard_id": "149",
"standard_name": "长款"
},
{
"standard_id": "152",
"standard_name": "水桶形"
}
]
}
],
"total": 269
},
"md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
"message": "Search List."
}
```
-----------------------------------------------------------------------
## 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."
}
#### gateway接口
### (method=app.search.category,获取品类商品列表)
#### 请求参数
| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
| :-- | :-- | :-- | :-- | :-- | :-- |
| method | String | 是 | app.search.category| |请求方法|
| type | String | 否 | “new” ||页面的标签字符串 “new” “price” “discount” |
| limit | int | 否 | 10 ||每页展示条数,默认10条|
| sort | String | 否 | "116,117,115,119,124,122,413,258,173,227,125,118,121,123,114,293" ||查询小分类ID,查多个小类以逗号分隔|
| page | int | 否 | 1 ||当前页|
| yh_channel | String | 否 | "1" ||频道|
| order | String | 否 | "s_t_desc" ||排序信息 |
| p_d | String | 否 | "0.7" ||打折区间,以逗号分隔|
| color | String | 否 | "145" ||颜色ID|
| brand | String | 否 | "125" ||品牌ID|
| shop | String | 否 | "155" ||店铺ID|
| price | String | 否 | "300,600" ||价格区间,以逗号分隔|
| size | String | 否 | "16,17" ||尺寸ID,以逗号分隔|
| msort | String | 否 | "95" ||产品大分类ID|
| misort | String | 否 | "918" ||产品中分类ID|
| standard | String[] | 否 | standard=13&standard=25 ||规格|
| categoryId | String | 否 | "5" ||运营二级分类ID|
| subCategoryId | String | 否 | "45" || 运营三级分类ID|
| gender | String | 否 | "1,3" ||性别,以逗号分隔|
| outlets | int | 否 | 1 ||outlets=1 奥莱商品 outlets=2非奥莱商品|
#### 注意:与以前方式兼容,如果筛选奥莱,只需增加outlets=1的请求参数
### 响应
code为200即为成功且只会返回200,每次都会有响应结果。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"filter": {
"brand": [
{
"brand_alif": "L",
"brand_domain": "lhouse",
"brand_ico": "http://img10.static.yhbimg.com/brandLogo/2011/06/27/19/01c1514a8a9d3f9bdf34d70c8ec0610870.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "l-house,T恤,休闲裤,包,LPAN,",
"brand_name": "L-HOUSE",
"brand_name_cn": "",
"brand_name_en": "L-HOUSE",
"hot_keyword": "l-house",
"id": 72,
"is_hot": "N"
},
{
"brand_alif": "C",
"brand_domain": "clottee",
"brand_ico": "http://img11.static.yhbimg.com/brandLogo/2015/12/03/15/01de6bf632d371c2d6c5f74c212aa284fb.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "明星、潮流、设计、细节、凸显个人的风格",
"brand_name": "CLOTtee",
"brand_name_cn": "",
"brand_name_en": "CLOTtee",
"hot_keyword": "CLOT主理人Edison Chen(陈冠希)和Kevin Poon(潘世亨)以“Essential”为题进",
"id": 518,
"is_hot": "Y"
}
],
"color": [
{
"color_code": "FFFFFF",
"color_id": 1,
"color_name": "白色",
"color_value": ""
},
{
"color_code": "333333",
"color_id": 2,
"color_name": "黑色",
"color_value": ""
},
{
"color_code": "0000fe",
"color_id": 7,
"color_name": "蓝色",
"color_value": ""
}
],
"discount": {
"0.01,0.399": {
"count": 1,
"name": "1~3"
}
},
"gender": {
"1,3": "BOYS",
"2,3": "GIRLS"
},
"group_sort": [
{
"category_id": "18",
"category_name": "上衣",
"node_count": 0,
"parent_id": "2",
"relation_parameter": {
"sort": "227,173,125,258,121,123,119,124,118,122,115,117,114,293,116,413"
},
"sort_ico": "http://img12.static.yhbimg.com/taobaocms/2016/04/25/15/021f6d7c1a73dd5823c6758186ef270611.png",
"sub": [
{
"category_id": "29",
"category_name": "防风外套",
"node_count": 0,
"parent_id": "18",
"relation_parameter": {
"sort": "227"
},
"sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}"
},
{
"category_id": "45",
"category_name": "T恤",
"node_count": 0,
"parent_id": "5",
"relation_parameter": {
"sort": "114,293"
},
"sort_ico": ""
}
]
},
{
"category_id": "8",
"category_name": "裤装",
"node_count": 0,
"parent_id": "1",
"relation_parameter": {
"sort": "131,129,346,133,348,130"
},
"sort_ico": "http://img10.static.yhbimg.com/taobaocms/2016/04/18/14/016bd577221e94e560d4686ec51f94a479.jpg",
"sub": [
{
"category_id": "92",
"category_name": "牛仔裤",
"node_count": 0,
"parent_id": "8",
"relation_parameter": {
"sort": "130,114,293"
},
"sort_ico": ""
}
]
}
],
"priceRange": {
"0,139": "¥0-139",
"140,149": "¥140-149",
"150,99999": "¥149以上"
},
"size": [
{
"size_id": 201,
"size_name": "L"
},
{
"size_id": 203,
"size_name": "M"
},
{
"size_id": 207,
"size_name": "S"
},
{
"size_id": 211,
"size_name": "XL"
},
{
"size_id": 216,
"size_name": "XXL"
}
]
},
"page": 1,
"page_total": 1,
"product_list": [
{
"brand_domain": "clottee",
"brand_id": 518,
"brand_name": "CLOTtee",
"cn_alphabet": "CLA503OJ34ChongFengYi",
"default_images": "http://img11.static.yhbimg.com/goodsimg/2015/09/30/08/01d2be5e9d6a18d8958484fede5af853bd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 1452654408,
"gender": "1",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "314411",
"images_url": "http://img11.static.yhbimg.com/goodsimg/2015/09/30/08/01d2be5e9d6a18d8958484fede5af853bd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "258548",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_limited": "N",
"is_new": "N",
"is_outlets": 1,
"is_promotion": 101,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 699,
"max_sort_id": 1,
"middle_sort_id": 226,
"product_id": 239715,
"product_name": "CLOTtee camouflage Printing Coat Tech Jacket",
"product_skn": 51134695,
"sales_num": 2,
"sales_phrase": "",
"sales_price": 139,
"shelve_time": 1452654408,
"small_sort_id": 227,
"status": 1,
"stock_number": 765,
"storage_num": 765,
"tags": [
"is_discount"
],
"vip1_price": 132.04999999999998,
"vip2_price": 125.10000000000001,
"vip3_price": 122.32000000000001,
"vip_discount_type": 3,
"vip_price": 0
},
{
"brand_domain": "lhouse",
"brand_id": 72,
"brand_name": "L-HOUSE",
"cn_alphabet": "LHOUSEA308XiangJiLPANTXu",
"default_images": "http://img13.static.yhbimg.com/goodsimg/2013/05/09/15/023d3a7e390c20c471978c847600399ba8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 1395997048,
"gender": "1",
"goods_list": [
{
"color_code": "FFFFFF",
"color_id": "1",
"color_name": "白",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "59474",
"images_url": "http://img13.static.yhbimg.com/goodsimg/2013/05/09/15/023d3a7e390c20c471978c847600399ba8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "Y",
"product_skc": "96567",
"status": "1"
},
{
"color_code": "0000fe",
"color_id": "7",
"color_name": "蓝",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "59475",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2013/05/09/16/0102c226f7faa1274e05cc038dc3c29f9f.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "96568",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "N",
"is_limited": "N",
"is_new": "N",
"is_outlets": 1,
"is_promotion": 0,
"is_soon_sold_out": "Y",
"is_special": "N",
"market_price": 148,
"max_sort_id": 1,
"middle_sort_id": 11,
"product_id": 38518,
"product_name": "L-HOUSE 相机LPAN T恤",
"product_skn": 51009846,
"sales_num": 65,
"sales_price": 148,
"shelve_time": 1395997048,
"small_sort_id": 114,
"status": 1,
"stock_number": 2,
"storage_num": 2,
"tags": [
"is_soon_sold_out"
],
"vip1_price": 140.6,
"vip2_price": 133.20000000000002,
"vip3_price": 130.24,
"vip_discount_type": 3,
"vip_price": 0
}
],
"standard": [
{
"standard_id": "879",
"standard_name": "袖长",
"sub": [
{
"standard_id": "4817",
"standard_name": "长袖"
}
]
},
{
"standard_id": "878",
"standard_name": "衣长",
"sub": [
{
"standard_id": "4814",
"standard_name": "长款"
}
]
},
{
"standard_id": "876",
"standard_name": "经典款型",
"sub": [
{
"standard_id": "5080",
"standard_name": "冲锋衣"
}
]
},
{
"standard_id": "882",
"standard_name": "厚度",
"sub": [
{
"standard_id": "4822",
"standard_name": "中"
}
]
},
{
"standard_id": "880",
"standard_name": "版型",
"sub": [
{
"standard_id": "4819",
"standard_name": "正常"
}
]
}
],
"total": 2
},
"md5": "2b4aa20d350ff2758d2d70687b788173",
"message": "Category Product 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 |
|sales |Y | 是否销售 |
|stocknumber|1 | 库存量如“stocknumber=1”,则过滤出库存量>=1的商品 |
|attribute_not|2 | 过滤商品属性,attribute_not=2过滤掉赠品 |
|order |shelve_time:desc | 排序类型 按时间降序 |
|viewNum |60 | 每页记录数默认为60 |
|brand |208 | 品牌 |
|Page|1 | 当前页码 |
##### 响应: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."
}
> PS:有筛选功能的商品列表页,可以根据选择的筛选条件进行筛选,只是传入的参数不同。目前涉及到的接口最终只有一个http://192.168.102.216:8080/yohosearch/search.json
#### gateway接口
请见上方method=app.search.brand
\ No newline at end of file
... ...
... ... @@ -384,7 +384,7 @@ class WebAction extends Controller_Abstract
$token = Helpers::makeToken($uid);
$uidCookie = $userInfo['data']['profile_name'] . '::' . $userInfo['data']['uid'] . '::' . $userInfo['data']['vip_info']['title'] . '::' . $token;
$this->setCookie('_UID',$uidCookie,time() + 86400 * 360);
UdpLog::info('【登录】同步登陆cookie生成',$uidCookie);
UdpLog::info('syncUserCookie :',$uidCookie);
}
$this->setSession('_TOKEN', $token);
$this->setSession('_LOGIN_UID', $uid);
... ...
... ... @@ -22,21 +22,21 @@ class Yohobuy
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
//java API
// const API_URL = 'http://api.yoho.yohoops.org/';//
// const API_URL2 = 'http://api.yoho.yohoops.org/';//
// const SERVICE_URL = 'http://service.yoho.yohoops.org/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_OLD = 'http://api2.open.yohobuy.com/';
// // 支付回调地址
// const SERVICE_NOTIFY = 'http://service.yoho.cn/';
// const API_URL = 'http://api.yoho.yohoops.org/';//
// const API_URL2 = 'http://api.yoho.yohoops.org/';//
// const SERVICE_URL = 'http://service.yoho.yohoops.org/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_OLD = 'http://api2.open.yohobuy.com/';
// 支付回调地址
// const SERVICE_NOTIFY = 'http://service.yoho.cn/';
// 测试环境 */
// const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/'
// const SERVICE_URL = 'http://testservice.yoho.cn:28077/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_OLD = 'http://test2.open.yohobuy.com/';
// // 支付回调地址
// const SERVICE_NOTIFY = 'http://testservice.yoho.cn:28077/';
const API_URL = 'http://testapi.yoho.cn:28078/'; // http://testapi.yoho.cn:28078/ http://devapi.yoho.cn:58078/
const SERVICE_URL = 'http://testservice.yoho.cn:28077/'; // http://testservice.yoho.cn:28077/ http://devservice.yoho.cn:58077/
const YOHOBUY_URL = 'http://www.yohobuy.com/';
const API_OLD = 'http://test2.open.yohobuy.com/';
// 支付回调地址
const SERVICE_NOTIFY = 'http://testservice.yoho.cn:28077/';
/* 预览环境 */
// const API_URL = 'http://preapi.yoho.cn/';
... ... @@ -44,13 +44,21 @@ class Yohobuy
// const SERVICE_URL = 'http://preservice.yoho.cn/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_OLD = 'http://api2.open.yohobuy.com/';
<<<<<<< HEAD
=======
>>>>>>> master
/**
* 登录老接口Api配置
*/
const API_LOGIN_URL = 'http://api.open.yohobuy.com';
const API_LOGIN_URL_TEST = 'http://test.open.yohobuy.com';
<<<<<<< HEAD
=======
>>>>>>> master
/**
* 私钥列表
*
... ... @@ -63,7 +71,11 @@ class Yohobuy
'web' => '0ed29744ed318fd28d2c07985d3ba633',
'h5' => 'fd4ad5fcfa0de589ef238c0e7331b585',
);
<<<<<<< HEAD
=======
>>>>>>> master
/**
... ... @@ -77,7 +89,11 @@ class Yohobuy
else {
return 'web';
}
<<<<<<< HEAD
=======
>>>>>>> master
// // 苹果设备
// if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone')) {
// return 'iphone';
... ... @@ -187,7 +203,11 @@ class Yohobuy
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
<<<<<<< HEAD
if ($useGzip) {
=======
if ($useGzip) {
>>>>>>> master
curl_setopt($ch, CURLOPT_ENCODING, 'gzip');
}
if (!empty($userAgent)) {
... ... @@ -230,7 +250,11 @@ class Yohobuy
public static function post($url, $data = array(), $returnJson = false, $timeout = 10, $header = array(), $cookie = array())
{
$ch = curl_init($url);
<<<<<<< HEAD
=======
>>>>>>> master
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
if (!empty($header)) {
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
... ... @@ -352,7 +376,11 @@ class Yohobuy
continue;
}
$result[$name] = $response['data'];
<<<<<<< HEAD
}
=======
}
>>>>>>> master
else {
$result[$name] = $response;
}
... ... @@ -496,7 +524,11 @@ class Yohobuy
return $result;
}
<<<<<<< HEAD
=======
>>>>>>> master
/**
* 获取用户User-Agent
* @return bool
... ... @@ -508,7 +540,11 @@ class Yohobuy
}
return $_SERVER['HTTP_USER_AGENT'];
}
<<<<<<< HEAD
=======
>>>>>>> master
/**
* 判断是否手机
* @return bool
... ...
... ... @@ -359,8 +359,10 @@ class CartData
* @param string $cartType 购物车类型
* @param int $deliveryTime 寄送时间ID
* @param int $deliveryWay 寄送方式ID
* @param string $invoiceTitle 发票说明
* @param int $invoiceId 发票类型ID
* @param int $invoiceType 发票类型 1:纸质,2:电子
* @param string $invoiceTitle 发票抬头
* @param int $invoiceContent 发票内容
* @param string $receiverMobile 发票接收人电话
* @param int $paymentId 支付方式ID
* @param int $paymentType 支付类型ID
* @param string $remark 留言
... ... @@ -374,7 +376,7 @@ class CartData
* @param int $redEnvelopes 红包
* @return array 接口返回的数据
*/
public static function orderSub($uid, $addressId, $cartType, $deliveryTime, $deliveryWay, $invoiceTitle, $invoiceId,
public static function orderSub($uid, $addressId, $cartType, $deliveryTime, $deliveryWay, $invoiceType, $invoiceTitle, $invoiceContent, $receiverMobile,
$paymentId, $paymentType, $remark,$couponCode,$promotionCode, $yohoCoin, $isPreContact, $isPrintPrice, $unionKey,$userAgent, $redEnvelopes)
{
$param = Yohobuy::param();
... ... @@ -387,11 +389,18 @@ class CartData
$param['delivery_time'] = $deliveryTime;
$param['delivery_way'] = $deliveryWay;
$param['uid'] = $uid;
if (!empty($invoiceType)) {
$param['invoices_type'] = $invoiceType;
}
if (!empty($invoiceTitle)) {
$param['invoices_title'] = $invoiceTitle;
}
if (!empty($invoiceId)) {
$param['invoices_type_id'] = $invoiceId;
if (!empty($invoiceContent)) {
$param['invoice_content'] = $invoiceContent;
}
if (!empty($receiverMobile)) {
$param['receiverMobile'] = $receiverMobile;
}
if (!empty($redEnvelopes)) {
$param['use_red_envelopes'] = $redEnvelopes;
... ... @@ -422,6 +431,7 @@ class CartData
$param['client_secret'] = Sign::getSign($param);
return Yohobuy::get(API_URL, $param, false, false, 10, $userAgent);
}
/**
... ... @@ -521,6 +531,10 @@ class CartData
$param['orderCode'] = $orderCode;
$param['payment'] = $payment;
$param['client_secret'] = Sign::getSign($param);
<<<<<<< HEAD
return Yohobuy::get(Yohobuy::API_URL, $param);
=======
return Yohobuy::get(API_URL, $param);
>>>>>>> master
}
}
... ...
... ... @@ -28,7 +28,7 @@ class UserData
/**
* 根据email获取用户信息
*
*
* @param string $email
* @return array
*/
... ... @@ -58,6 +58,22 @@ class UserData
}
/**
* 查询配置信息
*
* @param int $uid 用户ID
* @return array 用户配置接口返回的数据
*/
public static function getTipConfig($uid)
{
$param = Yohobuy::param();
$param['method'] = 'app.resources.config.clientInitConfig';
$param['uid'] = $uid;
$param['client_secret'] = Sign::getSign($param);
return Yohobuy::post(Yohobuy::API_URL, $param);
}
/**
* 修改个人详情数据
*
* @param array $params 需要修改的参数集合
... ... @@ -149,7 +165,7 @@ class UserData
* 修改用户习惯信息
* @param array $params 需要修改的参数集合
* uid:用户ID
* shopping:购物习惯 字符串 1
* shopping:购物习惯 字符串 1
* dress:着装习惯 字符串 1,2
*/
public static function editUserHabitsInfo($params)
... ... @@ -217,13 +233,23 @@ class UserData
* 个人中心页面优选新品数据
*
* @param int $channel 频道,1代表男生,2代表女生,3代表潮童,4代表创意生活
* @param $uid 用户ID
* @param $udid 设备ID
* @param $rec_pos 位置码
* @param $limit 数量限制
* @return array 接口返回的数据
*/
public static function preference($channel)
public static function newPreference($channel, $uid, $udid, $rec_pos, $limit)
{
$param = Yohobuy::param();
$param['method'] = 'app.home.preference';
$param['method'] = 'app.home.newPreference';
$param['yh_channel'] = $channel;
if ($uid != 0 && $uid != null) {
$param['uid'] = $uid;
}
$param['udid'] = $udid;
$param['rec_pos'] = $rec_pos;
$param['limit'] = $limit;
$param['client_secret'] = Sign::getSign($param);
return Yohobuy::get(API_URL, $param);
... ... @@ -453,7 +479,7 @@ class UserData
/**
* 获取省市区县的列表数据
*
*
* @param int $id ID
* @return array
*/
... ... @@ -492,8 +518,7 @@ class UserData
if (!empty($id)) { // 修改
$param['id'] = $id;
$param['method'] = 'app.address.update';
}
else { // 添加
} else { // 添加
$param['method'] = 'app.address.add';
}
... ...
... ... @@ -453,6 +453,57 @@ class HelperSearch
}
return $result;
}
/**
* 年龄
* $filter 搜索接口返回的商品筛选条件数据 $data['product']['filter']
* @return array
*/
public static function ageLevel($filter)
{
$result = array();
if (empty($filter) || !isset($filter['ageLevel']) || empty($filter['ageLevel'])) {
return $result;
}
$params = self::$params;
$ageLevel = isset($params['ageLevel']) ? $params['ageLevel'] : '';
if (isset($params['ageLevel'])) {
unset($params['ageLevel']);
}
if (self::$total == 0) {
return $result;
}
sort($filter['ageLevel']);
foreach ($filter['ageLevel'] as $key => $val) {
if (intval($val['id']) === $ageLevel) {
self::$selected['ageLevel'] = array(
'name' => $val['name'],
'href' => self::buildUrl($params)
);
}
$href = $val[id];
$result[] = array(
'name' => $val[name],
'href' => self::buildUrl(array_merge($params, array(
'ageLevel' => $href
))),
'checked' => isset(self::$params['ageLevel']) && self::$params['ageLevel'] == $href ? true : false
);
}
//如果只有一个选项,默认选中
if (count($filter['ageLevel'],COUNT_NORMAL) === 1){
self::$selected['ageLevel'] = array(
'name' => $filter['ageLevel']['0']['name'],
'href' => self::buildUrl($params)
);
$result['0']['checked'] = true;
}
return self::ageSort($result);
}
/**
* 组织搜索列表页面的左侧分类
* @param array $sort
... ... @@ -1184,6 +1235,34 @@ class HelperSearch
}
/**
* 年龄排序,为了解决接口传的id顺序有问题
*/
public static function ageSort($agefilter)
{
foreach($agefilter as $key => $val){
if ($val['name'] === '中童'){
$mid = $val;
}
if ($val['name'] === '小童'){
$sml = $val;
}
}
if (!empty($mid) && !empty($sml)){
foreach($agefilter as $key => $val){
if ($val['name'] === '中童'){
$agefilter[$key] = $sml;
}
if ($val['name'] === '小童'){
$agefilter[$key] = $mid;
}
}
}
// var_dump($agefilter);
return $agefilter;
}
/**
* 组织参数
* @param array $params 经过SearchModel::searchCondition()处理后的、用户输入的参数
* @return string
... ... @@ -1545,6 +1624,8 @@ class HelperSearch
$result = array();
//性别
$result['gender'] = self::gender(self::$filter);
//年龄
$result['ageLevel'] = self::ageLevel(self::$filter);
//品牌
$result['brand'] = self::brand(self::$filter);
//价格
... ...
... ... @@ -1090,7 +1090,11 @@ class Helpers
{
return preg_match("/[\x7f-\xff]/", $str);
}
<<<<<<< HEAD
=======
>>>>>>> master
/**
* 将首字符为//的url转换为http://
*
... ... @@ -1101,7 +1105,7 @@ class Helpers
{
return preg_replace('/^\/\//', 'http://', $url);
}
/**
* http和https转换成//
* @param type $url 地址
... ...
... ... @@ -2,6 +2,7 @@
<div class="order-ensure-page yoho-page clearfix">
{{# orderEnsure}}
<div class="order-edit">
<input type="hidden" id="recordMobileNumb" value="{{receiverMobile}}">
<div class="order-title">
<ul>
<li class="first">查看购物车</li>
... ... @@ -278,24 +279,28 @@
</tbody>
</table>
<!--YOHO-->
<div class="play-content clearfix">
<div class="play-left">
<dl class="play-piao-pan pan">
<dt>索要发票</dt>
<dd>
<div class="section-play">
<div class="section-head">发票信息</div>
<div class="play-pan">
<ul>
<li><label>发票抬头 :</label><input type="text" class="textbox" id="piaodesc" /></li>
<li><label>发票类型 :</label> <select class="dropdown" id="piaotype">
<option value="0">请选择</option>
{{#each piaoTypes}}
<option value="{{id}}">{{name}}</option>
{{/each}}
</select> </li>
</ul>
<input class="invoice mes" type="radio" id="" autocomplete="off" />发票开具
<div class="invoice-content-outter hide">
<div class="invoice-type mes">电子发票</div>
<div class="invoice-partment mes">个人</div>
<div class="invoice-kind mes">服装</div>
<div class="revise mes curser-button">修改</div>
</div>
</dd>
</dl>
<div class='invoice-upload hide'>
<div class="invoice-upload-type"></div>
<div class="invoice-upload-content"></div>
<div class="invoice-upload-mobile"></div>
<div class="invoice-upload-title"></div>
</div>
</div>
</div>
<div class="play-content clearfix">
<div class="play-left">
<dl class="play-remark-pan pan">
<dt>添加备注信息</dt>
<dd>
... ... @@ -391,6 +396,69 @@
</div>
</div>
</div>
<div class="receipt-info hide">
<div class="receipt-mask">
</div>
<div class="receipt-info-container">
<div class="receipt-title">发票信息
</div>
<div class="receipt-type receipt-margin">
<span class="e-receipt receipt-type-selected curser-button">电子发票</span>
<span class="paper-receipt curser-button">纸质发票</span>
</div>
<div class="receipt-container receipt-margin">
<div class="e-receipt-desc">
<a href="{{invoiceUrl}}" target="_blank"></a>
</div>
<div class="invoice-list invoice-title invoice-title-personal-hight">
<span class="invoice-star">*</span>
<span class="invoice-list-type">发票抬头</span>
<div class="invoice-line first-line">
<input checked="true" type="radio" value="1" name="title" />
<label>个人</label>
<input type="radio" value="2" name="title" />
<label>单位</label>
</div>
<div class="invoice-line second-line input-line hide">
<input id="input-organization-name" type="text" placeholder="请填写单位名称" maxlength="30"/>
<i class="enpty-input iconfont hide">&#xe63e; 请填写发票抬头</i>
</div>
</div>
<div class="invoice-list invoice-content">
<span class="invoice-star">*</span>
<span class="invoice-list-type">发票内容</span>
<div class="invoice-line first-line">
{{# piaoTypes}}
<div class="blind">
<input {{#if @first}}checked="true"{{/if}} type="radio" value="{{name}}" name="content" data-receiptID="{{id}}"/>
<label>{{name}}</label>
</div>
{{/ piaoTypes}}
</div>
</div>
<div class="invoice-list invoice-phone">
<span class="invoice-star">*</span>
<span class="invoice-list-type">收票人手机</span>
<div class="invoice-line first-line input-line">
<input id="input-mobile" value="{{receiverMobile}}" type="text" maxlength="11"/>
<i class="enpty-input iconfont hide">&#xe63e; 请填写手机号码</i>
</div>
</div>
</div>
<div class="receipt-footer">
<div class="save-receipt highlight curser-button">保存发票信息</div>
<div class="cancel-receipt normal curser-button">取消</div>
</div>
</div>
</div>
{{/ orderEnsure}}
<div class="loading"><span></span>请稍后...</div>
... ...
{{> layout/header}}
<div class="default-me-page me-page yoho-page clearfix">
{{# me}}
{{> home/path}}
{{> home/path}}
{{> home/navigation}}
{{> home/navigation}}
<div class="me-main">
{{# content}}
{{#if messages}}
<p class="message-tip">
消息提示:
{{# messages}}
<a href="{{href}}">{{name}}</a>
<b>({{count}})</b>
{{/ messages}}
<div class="me-main">
{{# content}}
{{#if messages}}
<p class="message-tip">
消息提示:
{{# messages}}
<a href="{{href}}">{{name}}</a>
<b>({{count}})</b>
{{/ messages}}
<span id="close-message" class="close iconfont">&#xe602;</span>
</p>
{{/if}}
<span id="close-message" class="close iconfont">&#xe602;</span>
</p>
{{/if}}
{{# latestOrders}}
<div class="latest-orders block">
<h2 class="title">
<a class="more-orders more" href="{{more}}">
更多订单
</a>
</h2>
{{> home/order-block}}
</div>
{{/ latestOrders}}
{{# latestOrders}}
<div class="latest-orders block">
<h2 class="title">
<a class="more-orders more" href="{{more}}">
更多订单
</a>
</h2>
{{> home/order-block}}
</div>
{{/ latestOrders}}
{{# favBrand}}
<div class="brands block">
<h2 class="title">
<a class="more-orders more" href="{{more}}">
更多品牌
</a>
</h2>
<ul class="clearfix">
{{# brands}}
<li>
<a href="{{href}}">
<img class="brand-logo" src="{{logo}}">
<span class="brand-name">{{name}}</span>
</a>
</li>
{{/ brands}}
</ul>
</div>
{{/ favBrand}}
{{# favBrand}}
<div class="brands block">
<h2 class="title">
<a class="more-orders more" href="{{more}}">
更多品牌
</a>
</h2>
<ul class="clearfix">
{{# brands}}
<li>
<a href="{{href}}">
<img class="brand-logo" src="{{logo}}">
<span class="brand-name">{{name}}</span>
</a>
</li>
{{/ brands}}
</ul>
</div>
{{/ favBrand}}
{{#if newArrival}}
<div class="new-arrival block">
<h2 class="title">
<p class="na-pager-wrap">
{{#if newArrival}}
<div class="new-arrival block">
<h2 class="title">
<p class="na-pager-wrap">
<span class="na-pager pre no-visible">
<i class="iconfont">&#xe622;</i>
</span>
<span class="na-pager next">
<i class="iconfont">&#xe621;</i>
</span>
</p>
</h2>
<ul class="clearfix">
{{# newArrival}}
<li>
<a href="{{href}}">
<img class="thumb" src="{{thumb}}">
<p class="name">{{name}}</p>
<span class="price">¥{{price}}</span>
</a>
</li>
{{/ newArrival}}
</ul>
</div>
{{/if}}
</p>
</h2>
<ul class="clearfix">
{{# newArrival}}
<li>
<a href="{{href}}">
<img class="thumb" src="{{thumb}}">
<p class="name">{{name}}</p>
<span class="price">¥{{price}}</span>
</a>
</li>
{{/ newArrival}}
</ul>
</div>
{{/if}}
{{{banner}}}
{{/ content}}
{{> home/help-us}}
</div>
{{/ content}}
</div>
<!--recommend-for-you-->
{{#if recommend}}
<div class="recommend block">
<h2 class="title">
<p class="na-pager-wrap">
<span class="rc-pager pre no-visible">
<i class="iconfont">&#xe622;</i>
</span>
<span class="rc-pager next">
<i class="iconfont">&#xe621;</i>
</span>
</p>
</h2>
<ul class="clearfix">
{{# recommend}}
<li>
<a href="{{href}}">
<img class="thumb" src="{{thumb}}">
<p class="name">{{name}}</p>
<span class="price">¥{{price}}</span>
</a>
</li>
{{/ recommend}}
</ul>
</div>
{{/if}}
<!--recommend-for-you-->
<div class="ho-btm">
{{{banner}}}
{{> home/help-us}}
</div>
{{/ me}}
</div>
{{> layout/footer}}
\ No newline at end of file
... ...
... ... @@ -99,6 +99,25 @@
</div>
{{/ orderInfo}}
<div class="pay-mode">
<p class="sub-title">
<span class="icon"></span>
发票信息
</p>
<div class="content">
{{#if invoiceMode}}
<div class="invoice-type"><p>发票类型:{{invoiceType}}</p>
{{#if pdfUrl}}<a class="invoice-button" href="{{pdfUrl}}">电子发票下载</a>
{{/if}}
</div>
<p>发票抬头:{{title}}</p>
<p>发票内容:{{contentValue}}</p>
{{^}}
<p>暂不需要发票
{{/if}}
</div>
</div>
<div class="order-remark">
<p class="sub-title">
<span class="icon"></span>
... ...
... ... @@ -13,9 +13,12 @@
{{> home/edit/favorite}}
</div>
</div>
{{#if isShowTip}}
<p class="help-us">
如果你还使用了我们的其他产品(Yoho!Now和mars)修改个人信息时将同步
</p>
{{/if}}
</div>
{{/ user}}
{{> home/help-us}}
</div>
{{> layout/footer}}
... ...
... ... @@ -48,6 +48,20 @@
</div>
{{/if}}
{{#if ageLevel}}
<div class="channel section">
<span class="title">年龄:</span>
<div class="attr-content clearfix">
{{#each ageLevel}}
<a class="attr {{#if checked}}checked{{/if}}" href="{{href}}">
{{name}}
</a>
{{/each}}
</div>
</div>
{{/if}}
{{#if sort}}
<div class="sort section">
<span class="title">分类:</span>
... ...
... ... @@ -21,36 +21,67 @@
</div>
</div>
{{/ brandBanner}}
{{# shopBanner}}
<div class="brand-banner base-shop-banner">
<div class="banner-img" style="height: {{bannerHeight}}px;background: url({{banner}})"></div>
<div class="opt-wrap">
<p class="opt center-content">
{{#if showShopName}}
<span class="shop-name">{{shopName}}</span>
{{/if}}
<a href="{{shopHome}}">
<i class="iconfont">&#xe617;</i>
店铺首页
</a>
<a href="{{shopIntro}}">
<i class="iconfont">&#xe631;</i>
店铺介绍
</a>
<span id="shop-favor" class="brand-favor shop-favor" data-id="{{shopId}}">
<i class="iconfont{{#if coled}} coled{{/if}}">&#xe616;</i>
</span>
</p>
</div>
</div>
{{/ shopBanner}}
<div class="center-content clearfix">
{{> layout/path-nav}}
{{#if brandAbout}}
{{#if shopAbout}}
<div class="brand-about">
{{{brandAbout}}}
{{{shopAbout}}}
</div>
{{^}}
<div class="list-left pull-left">
{{> product/left-content}}
</div>
<div class="list-right pull-right">
{{# sortIntro}}
<div class="sort-intro clearfix">
<div class="texts pull-left">
<p class="name">{{name}}</p>
<p class="en-name">{{enName}}</p>
<p class="desc">{{{description}}}</p>
<div class="key-entry">
{{#each keyEntry}}
<a href="{{url}}">{{name}}</a>
{{/each}}
{{#if brandAbout}}
<div class="brand-about">
{{{brandAbout}}}
</div>
{{^}}
<div class="list-left pull-left">
{{> product/left-content}}
</div>
<div class="list-right pull-right">
{{# sortIntro}}
<div class="sort-intro clearfix">
<div class="texts pull-left">
<p class="name">{{name}}</p>
<p class="en-name">{{enName}}</p>
<p class="desc">{{{description}}}</p>
<div class="key-entry">
{{#each keyEntry}}
<a href="{{url}}">{{name}}</a>
{{/each}}
</div>
</div>
<img class="pull-right img" src="{{img}}">
</div>
<img class="pull-right img" src="{{img}}">
</div>
{{/ sortIntro}}
{{> product/shop-entry}}
{{> product/standard-content}}
{{> product/latest-walk}}
</div>
{{/ sortIntro}}
{{> product/shop-entry}}
{{> product/standard-content}}
{{> product/latest-walk}}
</div>
{{/if}}
{{/if}}
</div>
{{/ list}}
... ...
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.