Authored by 梁志锋

Merge remote-tracking branch 'remotes/origin/feature/userInfoTip' into release/4.8

@@ -215,6 +215,247 @@ @@ -215,6 +215,247 @@
215 ], 215 ],
216 "message": "new product List." 216 "message": "new product List."
217 } 217 }
  218 +
  219 +### gateway接口
  220 +#### method=app.search.newProduct
  221 +##### 字段说明
  222 +-------------------------------------------------------
  223 +| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
  224 +| :-- | :-- | :-- | :-- | :-- | :-- |
  225 +| method | String | 是 | app.search.category| |请求方法|
  226 +| dayLimit | String | 否 |1 || 时间区间标识 1:代表3天之内出售的,2:代表7天之内出售的,3代表30天以内的 |
  227 +| limit | int | 否 | 10 ||每页展示条数,默认10条|
  228 +| sort | String | 否 | "116,117,115,119,124,122,413,258,173,227,125,118,121,123,114,293" ||查询小分类ID,查多个小类以逗号分隔|
  229 +| page | int | 否 | 1 ||当前页|
  230 +| yh_channel | String | 否 | "1" ||频道|
  231 +| order | String | 否 | "s_t_desc" ||排序信息 |
  232 +| p_d | String | 否 | "0.7" ||打折区间,以逗号分隔|
  233 +| color | String | 否 | "145" ||颜色ID|
  234 +| brand | String | 否 | "125" ||品牌ID|
  235 +| shop_id | String | 否 | "155" ||店铺ID|
  236 +| price | String | 否 | "300,600" ||价格区间,以逗号分隔|
  237 +| size | String | 否 | "16,17" ||尺寸ID,以逗号分隔|
  238 +| gender | String | 否 | "1,3" ||性别,以逗号分隔|
  239 +| age_level | String | 否 | ||年龄层,以逗号分隔|
  240 +
  241 +##### 接口返回
  242 +```json
  243 +{
  244 + "alg": "SALT_MD5",
  245 + "code": 200,
  246 + "data": {
  247 + "filter": {
  248 + "color": [
  249 + {
  250 + "color_id": 2,
  251 + "color_name": "黑色",
  252 + "color_value": "",
  253 + "color_code": "333333"
  254 + }
  255 + ],
  256 + "gender": {
  257 + "2,3": "GIRLS"
  258 + },
  259 + "discount": {
  260 + "0.01,0.399": {
  261 + "count": 337,
  262 + "name": "1~3"
  263 + }
  264 + },
  265 + "ageLevel": [
  266 + {
  267 + "product_count": 98,
  268 + "name": "成人",
  269 + "id": "1"
  270 + }
  271 + ],
  272 + "group_sort": [
  273 + {
  274 + "category_id": "5",
  275 + "category_name": "上衣",
  276 + "node_count": 0,
  277 + "parent_id": "1",
  278 + "relation_parameter": {
  279 + "sort": "114,293,116,117,115,119,124,122,413,258,173,227,125,118,121,123"
  280 + },
  281 + "sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}",
  282 + "sub": [
  283 + {
  284 + "category_id": "45",
  285 + "category_name": "T恤",
  286 + "node_count": 0,
  287 + "parent_id": "5",
  288 + "relation_parameter": {
  289 + "sort": "114,293"
  290 + },
  291 + "sort_ico": ""
  292 + }
  293 + ]
  294 + }
  295 + ],
  296 + "size": [
  297 + {
  298 + "size_name": "F",
  299 + "size_id": 199
  300 + }
  301 + ],
  302 + "brand": [
  303 + {
  304 + "hot_keyword": "",
  305 + "brand_domain": "teebacco",
  306 + "brand_alif": "T",
  307 + "is_hot": "N",
  308 + "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",
  309 + "brand_name": "TEEBACCO",
  310 + "brand_keyword": "",
  311 + "id": 261,
  312 + "brand_name_en": "TEEBACCO",
  313 + "brand_name_cn": ""
  314 + }
  315 + ],
  316 + "priceRange": {
  317 + "0,269": "¥0-269",
  318 + "500,1199": "¥500-1199",
  319 + "270,499": "¥270-499",
  320 + "1200,99999": "¥1199以上"
  321 + }
  322 + },
  323 + "standard": [
  324 + {
  325 + "standard_id": "789",
  326 + "sub": [
  327 + {
  328 + "standard_id": "4447",
  329 + "standard_name": "短袖"
  330 + }
  331 + ],
  332 + "standard_name": "袖长"
  333 + }
  334 + ],
  335 + "total": 1999,
  336 + "page_total": 167,
  337 + "tabs": {
  338 + "1": "07月06日",
  339 + "2": "本周上新",
  340 + "3": "销量"
  341 + },
  342 + "page": 1,
  343 + "product_list": [
  344 + {
  345 + "small_sort_id": 147,
  346 + "vip1_price": 141.54999999999998,
  347 + "gender": "3",
  348 + "is_global": "N",
  349 + "vip3_price": 131.12,
  350 + "is_outlets": 2,
  351 + "is_discount": "Y",
  352 + "brand_domain": "ivyboi",
  353 + "is_special": "N",
  354 + "goods_list": [
  355 + {
  356 + "color_id": "1",
  357 + "product_skc": "224975",
  358 + "cover_1": "",
  359 + "goods_id": "246439",
  360 + "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",
  361 + "color_name": "白色",
  362 + "cover_2": "",
  363 + "color_value": "",
  364 + "is_default": "N",
  365 + "color_code": "FFFFFF",
  366 + "status": "1"
  367 + }
  368 + ],
  369 + "is_advance": "N",
  370 + "product_id": 181953,
  371 + "vip_discount_type": 3,
  372 + "sales_num": 445,
  373 + "cn_alphabet": "IVYBOIIBA502CS56WHX",
  374 + "product_skn": 51106125,
  375 + "shelve_time": 1467801284,
  376 + "vip2_price": 134.1,
  377 + "edit_time": 1467801284,
  378 + "is_new": "Y",
  379 + "is_limited": "N",
  380 + "brand_name": "Ivyboi",
  381 + "max_sort_id": 6,
  382 + "product_name": "IVYBOI×INTREPID 休闲洞洞鞋 贝壳白",
  383 + "brand_id": 302,
  384 + "tags": [
  385 +
  386 + ],
  387 + "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",
  388 + "stock_number": 494,
  389 + "storage_num": 494,
  390 + "is_soon_sold_out": "N",
  391 + "middle_sort_id": 44,
  392 + "sales_price": 149,
  393 + "is_promotion": 110,
  394 + "market_price": 199,
  395 + "vip_price": 0,
  396 + "status": 1
  397 + },
  398 + {
  399 + "small_sort_id": 114,
  400 + "vip1_price": 46.55,
  401 + "gender": "3",
  402 + "is_global": "N",
  403 + "vip3_price": 43.12,
  404 + "is_outlets": 2,
  405 + "is_discount": "Y",
  406 + "brand_domain": "teebacco",
  407 + "is_special": "N",
  408 + "goods_list": [
  409 + {
  410 + "color_id": "2",
  411 + "product_skc": "348920",
  412 + "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",
  413 + "goods_id": "480543",
  414 + "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",
  415 + "color_name": "黑色",
  416 + "cover_2": "",
  417 + "color_value": "",
  418 + "is_default": "N",
  419 + "color_code": "333333",
  420 + "status": "1"
  421 + }
  422 + ],
  423 + "is_advance": "N",
  424 + "product_id": 376601,
  425 + "vip_discount_type": 3,
  426 + "sales_num": 0,
  427 + "sales_phrase": "入夏新品尝鲜",
  428 + "cn_alphabet": "TEEBACCODuanXiuTXuTBA602TE190",
  429 + "product_skn": 51208313,
  430 + "shelve_time": 1467793587,
  431 + "vip2_price": 44.1,
  432 + "edit_time": 1467793587,
  433 + "is_new": "Y",
  434 + "is_limited": "N",
  435 + "brand_name": "TEEBACCO",
  436 + "max_sort_id": 1,
  437 + "product_name": "TEEBACCO 复古汽车印花短袖T恤",
  438 + "brand_id": 261,
  439 + "tags": [
  440 +
  441 + ],
  442 + "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",
  443 + "stock_number": 117,
  444 + "storage_num": 117,
  445 + "is_soon_sold_out": "N",
  446 + "middle_sort_id": 11,
  447 + "sales_price": 49,
  448 + "is_promotion": 111,
  449 + "market_price": 129,
  450 + "vip_price": 0,
  451 + "status": 1
  452 + }
  453 + ]
  454 + },
  455 + "md5": "419f9e002169d4d1332f5e523850b117",
  456 + "message": "Search List."
  457 +}
  458 +```
218 > 459 >
219 PS: 男生、女生、潮童、创意生活底部都包含《最新上架》,只不过是传的参数不同。 460 PS: 男生、女生、潮童、创意生活底部都包含《最新上架》,只不过是传的参数不同。
220 461
@@ -580,128 +821,1150 @@ PS: 男生、女生、潮童、创意生活底部都包含《最新上架》 @@ -580,128 +821,1150 @@ PS: 男生、女生、潮童、创意生活底部都包含《最新上架》
580 821
581 ------------------------------------------------------- 822 -------------------------------------------------------
582 823
  824 +#### gateway接口
  825 +### (method=app.search.li,首页品类推荐获取商品列表页)
  826 +#### 请求参数
  827 +| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
  828 +| :-- | :-- | :-- | :-- | :-- | :-- |
  829 +| method | String | 是 | app.search.li| |请求方法|
  830 +| query | String | 否 | ||关键词查询条件|
  831 +| limit | int | 否 | 10 ||每页展示条数,默认10条|
  832 +| sort | String | 否 | "116,117,115,119,124,122,413,258,173,227,125,118,121,123,114,293" ||查询小分类ID,查多个小类以逗号分隔|
  833 +| page | int | 否 | 1 ||当前页|
  834 +| yh_channel | String | 否 | "1" ||频道|
  835 +| order | String | 否 | "s_t_desc" ||排序信息 |
  836 +| p_d | String | 否 | "0.7" ||打折区间,以逗号分隔|
  837 +| color | String | 否 | "145" ||颜色ID|
  838 +| brand | String | 否 | "125" ||品牌ID|
  839 +| shop | String | 否 | "155" ||店铺ID|
  840 +| price | String | 否 | "300,600" ||价格区间,以逗号分隔|
  841 +| size | String | 否 | "16,17" ||尺寸ID,以逗号分隔|
  842 +| msort | String | 否 | "95" ||产品大分类ID|
  843 +| misort | String | 否 | "918" ||产品中分类ID|
  844 +| promotion | String | 否 | "5" ||促销ID|
  845 +| from | String | 否 | "45" || 来源于那个搜索词列表|
  846 +| gender | String | 否 | "1,3" ||性别,以逗号分隔|
  847 +| outlets | int | 否 | 1 ||outlets=1 奥莱商品 outlets=2非奥莱商品|
583 848
584 -## 三、品类列表  
585 -  
586 -###### 全部品类(http://list.yohobuy.com/)  
587 -  
588 -* 请求URL:  
589 -  
590 ->http://192.168.102.216:8080/yohosearch/sortgroup.json?sales=Y&status=1&stocknumber=1  
591 -  
592 -  
593 -### 字段说明  
594 --------------------------------------------------------  
595 -|参数名 |值 |描述 |  
596 -|------ |---- |--- |  
597 -|status |1| 是否上架 1 或 2 |  
598 -|sales |Y | 是否销售 “N”或”Y” |  
599 -|stocknumber |2 | 库存量如“stocknumber=2”,则过滤出库存量>=2的商品 |  
600 849
  850 +#### 注意:与以前方式兼容,如果筛选奥莱,只需增加outlets=1的请求参数
601 851
602 -### 参数返回  
603 - { 852 +### 响应
  853 +code为200即为成功且只会返回200,每次都会有响应结果。
  854 +响应JSON格式如下所示:
  855 +```json
  856 +{
  857 + "alg": "SALT_MD5",
604 "code": 200, 858 "code": 200,
605 "data": { 859 "data": {
606 - "sort": [ 860 + "filter": {
  861 + "brand": [
607 { 862 {
608 - "sort_id": "1",  
609 - "sort_name": "上衣",  
610 - "order_by": "100",  
611 - "count": 22712,  
612 - "sub": [ 863 + "brand_alif": "C",
  864 + "brand_domain": "cochinillo",
  865 + "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",
  866 + "brand_keyword": "",
  867 + "brand_name": "Cochinillo",
  868 + "brand_name_cn": "Cochinillo",
  869 + "brand_name_en": "Cochinillo",
  870 + "hot_keyword": "",
  871 + "id": 323,
  872 + "is_hot": "N"
  873 + },
613 { 874 {
614 - "sort_id": "11",  
615 - "sort_name": "T恤",  
616 - "order_by": "50",  
617 - "count": 5316 875 + "brand_alif": "L",
  876 + "brand_domain": "lhouse",
  877 + "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",
  878 + "brand_keyword": "l-house,T恤,休闲裤,包,LPAN,",
  879 + "brand_name": "L-HOUSE",
  880 + "brand_name_cn": "",
  881 + "brand_name_en": "L-HOUSE",
  882 + "hot_keyword": "l-house",
  883 + "id": 72,
  884 + "is_hot": "N"
618 }, 885 },
619 { 886 {
620 - "sort_id": "412",  
621 - "sort_name": "套装",  
622 - "order_by": "0",  
623 - "count": 26  
624 - }  
625 - ] 887 + "brand_alif": "T",
  888 + "brand_domain": "tyakasha",
  889 + "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",
  890 + "brand_keyword": "tyakasha,服装,",
  891 + "brand_name": "TYAKASHA",
  892 + "brand_name_cn": "塔卡沙",
  893 + "brand_name_en": "TYAKASHA",
  894 + "hot_keyword": "tyakasha",
  895 + "id": 141,
  896 + "is_hot": "Y"
626 }, 897 },
627 { 898 {
628 - "sort_id": "3",  
629 - "sort_name": "裤装",  
630 - "order_by": "90",  
631 - "count": 5950,  
632 - "sub": [ 899 + "brand_alif": "P",
  900 + "brand_domain": "protest",
  901 + "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",
  902 + "brand_keyword": "",
  903 + "brand_name": "PROTEST博特斯",
  904 + "brand_name_cn": "",
  905 + "brand_name_en": "PROTEST",
  906 + "hot_keyword": "",
  907 + "id": 402,
  908 + "is_hot": "N"
  909 + },
633 { 910 {
634 - "sort_id": "26",  
635 - "sort_name": "休闲裤",  
636 - "order_by": "30",  
637 - "count": 3415 911 + "brand_alif": "C",
  912 + "brand_domain": "clottee",
  913 + "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",
  914 + "brand_keyword": "明星、潮流、设计、细节、凸显个人的风格",
  915 + "brand_name": "CLOTtee",
  916 + "brand_name_cn": "",
  917 + "brand_name_en": "CLOTtee",
  918 + "hot_keyword": "CLOT主理人Edison Chen(陈冠希)和Kevin Poon(潘世亨)以“Essential”为题进",
  919 + "id": 518,
  920 + "is_hot": "Y"
638 }, 921 },
639 { 922 {
640 - "sort_id": "347",  
641 - "sort_name": "西裤",  
642 - "order_by": "0",  
643 - "count": 28 923 + "brand_alif": "5",
  924 + "brand_domain": "5preview",
  925 + "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",
  926 + "brand_keyword": "趣味,休闲",
  927 + "brand_name": "5 PREVIEW",
  928 + "brand_name_cn": "",
  929 + "brand_name_en": "5 PREVIEW",
  930 + "hot_keyword": "",
  931 + "id": 526,
  932 + "is_hot": "N"
644 } 933 }
645 - ] 934 + ],
  935 + "color": [
  936 + {
  937 + "color_code": "0000fe",
  938 + "color_id": 7,
  939 + "color_name": "蓝色",
  940 + "color_value": ""
646 }, 941 },
647 { 942 {
648 - "sort_id": "6",  
649 - "sort_name": "鞋靴",  
650 - "order_by": "70",  
651 - "count": 3251,  
652 - "sub": [ 943 + "color_code": "FFFFFF",
  944 + "color_id": 1,
  945 + "color_name": "白色",
  946 + "color_value": ""
  947 + },
653 { 948 {
654 - "sort_id": "44",  
655 - "sort_name": "休闲/运动鞋",  
656 - "order_by": "22",  
657 - "count": 2002 949 + "color_code": "8b5402",
  950 + "color_id": 4,
  951 + "color_name": "棕色",
  952 + "color_value": ""
658 }, 953 },
659 { 954 {
660 - "sort_id": "298",  
661 - "sort_name": "厚底鞋",  
662 - "order_by": "0",  
663 - "count": 2  
664 - }  
665 - ] 955 + "color_code": "#fffff",
  956 + "color_id": 15,
  957 + "color_name": "彩色",
  958 + "color_value": "http://img02.static.yohobuy.com/adpic/2014/01/27/13/0272608508f09e2bf7eb5543bf5cc70d31.png"
666 }, 959 },
667 { 960 {
668 - "sort_id": "7",  
669 - "sort_name": "包类/装备",  
670 - "order_by": "60",  
671 - "count": 5907,  
672 - "sub": [ 961 + "color_code": "333333",
  962 + "color_id": 2,
  963 + "color_name": "黑色",
  964 + "color_value": ""
  965 + },
673 { 966 {
674 - "sort_id": "49",  
675 - "sort_name": "双肩包",  
676 - "order_by": "20",  
677 - "count": 2001 967 + "color_code": "b9b7af",
  968 + "color_id": 3,
  969 + "color_name": "灰色",
  970 + "color_value": ""
678 }, 971 },
679 { 972 {
680 - "sort_id": "350",  
681 - "sort_name": "mini包",  
682 - "order_by": "0",  
683 - "count": 7 973 + "color_code": "710098",
  974 + "color_id": 8,
  975 + "color_name": "紫色",
  976 + "color_value": ""
684 } 977 }
685 - ] 978 + ],
  979 + "discount": {
  980 + "0.01,0.399": {
  981 + "count": 3,
  982 + "name": "1~3"
  983 + },
  984 + "0.4,0.699": {
  985 + "count": 1,
  986 + "name": "4~6"
  987 + }
  988 + },
  989 + "gender": {
  990 + "1,3": "BOYS",
  991 + "2,3": "GIRLS"
686 }, 992 },
  993 + "group_sort": [
687 { 994 {
688 - "sort_id": "8",  
689 - "sort_name": "服配",  
690 - "order_by": "50",  
691 - "count": 7121, 995 + "category_id": "5",
  996 + "category_name": "上衣",
  997 + "node_count": 0,
  998 + "parent_id": "1",
  999 + "relation_parameter": {
  1000 + "sort": "598"
  1001 + },
  1002 + "sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg",
692 "sub": [ 1003 "sub": [
693 { 1004 {
694 - "sort_id": "61",  
695 - "sort_name": "太阳镜/眼镜",  
696 - "order_by": "20",  
697 - "count": 1117 1005 + "category_id": "56",
  1006 + "category_name": "衬衫",
  1007 + "node_count": 0,
  1008 + "parent_id": "5",
  1009 + "relation_parameter": {
  1010 + "sort": "115"
  1011 + },
  1012 + "sort_ico": ""
698 }, 1013 },
699 { 1014 {
700 - "sort_id": "294",  
701 - "sort_name": "口罩",  
702 - "order_by": "0",  
703 - "count": 2  
704 - } 1015 + "category_id": "29",
  1016 + "category_name": "防风外套",
  1017 + "node_count": 0,
  1018 + "parent_id": "18",
  1019 + "relation_parameter": {
  1020 + "sort": "227"
  1021 + },
  1022 + "sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}"
  1023 + },
  1024 + {
  1025 + "category_id": "42",
  1026 + "category_name": "毛衣/针织",
  1027 + "node_count": 0,
  1028 + "parent_id": "18",
  1029 + "relation_parameter": {
  1030 + "sort": "258"
  1031 + },
  1032 + "sort_ico": "http://img12.static.yhbimg.com/taobaocms/2015/09/01/14/02d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}"
  1033 + },
  1034 + {
  1035 + "category_id": "45",
  1036 + "category_name": "T恤",
  1037 + "node_count": 0,
  1038 + "parent_id": "5",
  1039 + "relation_parameter": {
  1040 + "sort": "114,293"
  1041 + },
  1042 + "sort_ico": ""
  1043 + },
  1044 + {
  1045 + "category_id": "53",
  1046 + "category_name": "背心",
  1047 + "node_count": 0,
  1048 + "parent_id": "5",
  1049 + "relation_parameter": {
  1050 + "sort": "117"
  1051 + },
  1052 + "sort_ico": ""
  1053 + }
  1054 + ]
  1055 + },
  1056 + {
  1057 + "category_id": "8",
  1058 + "category_name": "裤装",
  1059 + "node_count": 0,
  1060 + "parent_id": "1",
  1061 + "relation_parameter": {
  1062 + "sort": "131,129,346,133,348,130"
  1063 + },
  1064 + "sort_ico": "http://img10.static.yhbimg.com/taobaocms/2016/04/18/14/016bd577221e94e560d4686ec51f94a479.jpg",
  1065 + "sub": [
  1066 + {
  1067 + "category_id": "92",
  1068 + "category_name": "牛仔裤",
  1069 + "node_count": 0,
  1070 + "parent_id": "8",
  1071 + "relation_parameter": {
  1072 + "sort": "130,114,293"
  1073 + },
  1074 + "sort_ico": ""
  1075 + }
  1076 + ]
  1077 + }
  1078 + ],
  1079 + "priceRange": {
  1080 + "0,149": "¥0-149",
  1081 + "150,299": "¥150-299",
  1082 + "300,99999": "¥299以上"
  1083 + },
  1084 + "size": [
  1085 + {
  1086 + "size_id": 203,
  1087 + "size_name": "M"
  1088 + },
  1089 + {
  1090 + "size_id": 207,
  1091 + "size_name": "S"
  1092 + },
  1093 + {
  1094 + "size_id": 199,
  1095 + "size_name": "F"
  1096 + },
  1097 + {
  1098 + "size_id": 201,
  1099 + "size_name": "L"
  1100 + },
  1101 + {
  1102 + "size_id": 211,
  1103 + "size_name": "XL"
  1104 + },
  1105 + {
  1106 + "size_id": 213,
  1107 + "size_name": "XS"
  1108 + },
  1109 + {
  1110 + "size_id": 216,
  1111 + "size_name": "XXL"
  1112 + }
  1113 + ]
  1114 + },
  1115 + "page": 1,
  1116 + "page_total": 1,
  1117 + "product_list": [
  1118 + {
  1119 + "brand_domain": "lhouse",
  1120 + "brand_id": 72,
  1121 + "brand_name": "L-HOUSE",
  1122 + "cn_alphabet": "LHOUSEA308XiangJiLPANTXu",
  1123 + "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",
  1124 + "edit_time": 1395997048,
  1125 + "gender": "1",
  1126 + "goods_list": [
  1127 + {
  1128 + "color_code": "FFFFFF",
  1129 + "color_id": "1",
  1130 + "color_name": "白",
  1131 + "color_value": "",
  1132 + "cover_1": "",
  1133 + "cover_2": "",
  1134 + "goods_id": "59474",
  1135 + "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",
  1136 + "is_default": "Y",
  1137 + "product_skc": "96567",
  1138 + "status": "1"
  1139 + },
  1140 + {
  1141 + "color_code": "0000fe",
  1142 + "color_id": "7",
  1143 + "color_name": "蓝",
  1144 + "color_value": "",
  1145 + "cover_1": "",
  1146 + "cover_2": "",
  1147 + "goods_id": "59475",
  1148 + "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",
  1149 + "is_default": "N",
  1150 + "product_skc": "96568",
  1151 + "status": "1"
  1152 + }
  1153 + ],
  1154 + "is_advance": "N",
  1155 + "is_discount": "N",
  1156 + "is_limited": "N",
  1157 + "is_new": "N",
  1158 + "is_outlets": 1,
  1159 + "is_promotion": 0,
  1160 + "is_soon_sold_out": "Y",
  1161 + "is_special": "N",
  1162 + "market_price": 148,
  1163 + "max_sort_id": 1,
  1164 + "middle_sort_id": 11,
  1165 + "product_id": 38518,
  1166 + "product_name": "L-HOUSE 相机LPAN T恤",
  1167 + "product_skn": 51009846,
  1168 + "sales_num": 65,
  1169 + "sales_price": 148,
  1170 + "shelve_time": 1395997048,
  1171 + "small_sort_id": 114,
  1172 + "status": 1,
  1173 + "stock_number": 2,
  1174 + "storage_num": 2,
  1175 + "tags": [
  1176 + "is_soon_sold_out"
  1177 + ],
  1178 + "vip1_price": 140.6,
  1179 + "vip2_price": 133.20000000000002,
  1180 + "vip3_price": 130.24,
  1181 + "vip_discount_type": 3,
  1182 + "vip_price": 0
  1183 + },
  1184 + {
  1185 + "brand_domain": "tyakasha",
  1186 + "brand_id": 141,
  1187 + "brand_name": "TYAKASHA",
  1188 + "cn_alphabet": "TYAKASHANvKuanDaiZhenZhuErHuanDeAKAMaoYiT15DM6637B",
  1189 + "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",
  1190 + "edit_time": 1447215936,
  1191 + "gender": "2",
  1192 + "goods_list": [
  1193 + {
  1194 + "color_code": "0000fe",
  1195 + "color_id": "7",
  1196 + "color_name": "蓝色",
  1197 + "color_value": "",
  1198 + "cover_1": "",
  1199 + "cover_2": "",
  1200 + "goods_id": "377595",
  1201 + "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",
  1202 + "is_default": "N",
  1203 + "product_skc": "293242",
  1204 + "status": "1"
  1205 + }
  1206 + ],
  1207 + "is_advance": "N",
  1208 + "is_discount": "Y",
  1209 + "is_limited": "N",
  1210 + "is_new": "N",
  1211 + "is_outlets": 1,
  1212 + "is_promotion": 101,
  1213 + "is_soon_sold_out": "N",
  1214 + "is_special": "Y",
  1215 + "market_price": 678,
  1216 + "max_sort_id": 1,
  1217 + "middle_sort_id": 257,
  1218 + "product_id": 294671,
  1219 + "product_name": "TYAKASHA 女款戴珍珠耳环的AKA毛衣",
  1220 + "product_skn": 51165107,
  1221 + "sales_num": 0,
  1222 + "sales_phrase": "",
  1223 + "sales_price": 339,
  1224 + "shelve_time": 1447215936,
  1225 + "small_sort_id": 258,
  1226 + "status": 1,
  1227 + "stock_number": 423,
  1228 + "storage_num": 423,
  1229 + "tags": [],
  1230 + "vip1_price": 322.05,
  1231 + "vip2_price": 305.1,
  1232 + "vip3_price": 298.32,
  1233 + "vip_discount_type": 3,
  1234 + "vip_price": 0
  1235 + },
  1236 + {
  1237 + "brand_domain": "cochinillo",
  1238 + "brand_id": 323,
  1239 + "brand_name": "Cochinillo",
  1240 + "cn_alphabet": "COCHINILLO676620030TXuShan",
  1241 + "edit_time": 0,
  1242 + "gender": "2",
  1243 + "goods_list": [
  1244 + {
  1245 + "color_code": "0000fe",
  1246 + "color_id": "7",
  1247 + "color_name": "藏青",
  1248 + "color_value": "",
  1249 + "cover_1": "",
  1250 + "cover_2": "",
  1251 + "goods_id": "58024",
  1252 + "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",
  1253 + "is_default": "N",
  1254 + "product_skc": "95108",
  1255 + "status": "1"
  1256 + },
  1257 + {
  1258 + "color_code": "FFFFFF",
  1259 + "color_id": "1",
  1260 + "color_name": "白",
  1261 + "color_value": "",
  1262 + "cover_1": "",
  1263 + "cover_2": "",
  1264 + "goods_id": "58025",
  1265 + "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",
  1266 + "is_default": "N",
  1267 + "product_skc": "95109",
  1268 + "status": "1"
  1269 + },
  1270 + {
  1271 + "color_code": "8b5402",
  1272 + "color_id": "4",
  1273 + "color_name": "杏色",
  1274 + "color_value": "",
  1275 + "cover_1": "",
  1276 + "cover_2": "",
  1277 + "goods_id": "58026",
  1278 + "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",
  1279 + "is_default": "Y",
  1280 + "product_skc": "95110",
  1281 + "status": "1"
  1282 + }
  1283 + ],
  1284 + "is_advance": "N",
  1285 + "is_discount": "Y",
  1286 + "is_limited": "N",
  1287 + "is_new": "N",
  1288 + "is_outlets": 1,
  1289 + "is_promotion": 0,
  1290 + "is_soon_sold_out": "N",
  1291 + "is_special": "N",
  1292 + "market_price": 458,
  1293 + "max_sort_id": 1,
  1294 + "middle_sort_id": 11,
  1295 + "product_id": 37574,
  1296 + "product_name": "Cochinillo 蕾丝拼接T恤衫",
  1297 + "product_skn": 51008901,
  1298 + "sales_num": 5,
  1299 + "sales_phrase": "5折封顶",
  1300 + "sales_price": 183,
  1301 + "shelve_time": 1366248083,
  1302 + "small_sort_id": 114,
  1303 + "status": 1,
  1304 + "stock_number": 5,
  1305 + "storage_num": 5,
  1306 + "tags": [
  1307 + "is_discount"
  1308 + ],
  1309 + "vip1_price": 173.85,
  1310 + "vip2_price": 164.70000000000002,
  1311 + "vip3_price": 161.04,
  1312 + "vip_discount_type": 3,
  1313 + "vip_price": 0
  1314 + },
  1315 + {
  1316 + "brand_domain": "cochinillo",
  1317 + "brand_id": 323,
  1318 + "brand_name": "Cochinillo",
  1319 + "cn_alphabet": "COCHINILLO661300110ChenShan",
  1320 + "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",
  1321 + "edit_time": 0,
  1322 + "gender": "2",
  1323 + "goods_list": [
  1324 + {
  1325 + "color_code": "FFFFFF",
  1326 + "color_id": "1",
  1327 + "color_name": "白",
  1328 + "color_value": "",
  1329 + "cover_1": "",
  1330 + "cover_2": "",
  1331 + "goods_id": "43737",
  1332 + "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",
  1333 + "is_default": "N",
  1334 + "product_skc": "81171",
  1335 + "status": "1"
  1336 + },
  1337 + {
  1338 + "color_code": "8b5402",
  1339 + "color_id": "4",
  1340 + "color_name": "杏色",
  1341 + "color_value": "",
  1342 + "cover_1": "",
  1343 + "cover_2": "",
  1344 + "goods_id": "43738",
  1345 + "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",
  1346 + "is_default": "Y",
  1347 + "product_skc": "81172",
  1348 + "status": "1"
  1349 + }
  1350 + ],
  1351 + "is_advance": "N",
  1352 + "is_discount": "Y",
  1353 + "is_limited": "N",
  1354 + "is_new": "N",
  1355 + "is_outlets": 1,
  1356 + "is_promotion": 101,
  1357 + "is_soon_sold_out": "Y",
  1358 + "is_special": "N",
  1359 + "market_price": 688,
  1360 + "max_sort_id": 1,
  1361 + "middle_sort_id": 12,
  1362 + "product_id": 29426,
  1363 + "product_name": "Cochinillo 豹纹雪纺上衣",
  1364 + "product_skn": 51000729,
  1365 + "sales_num": 11,
  1366 + "sales_phrase": "5折封顶",
  1367 + "sales_price": 275,
  1368 + "shelve_time": 1358301176,
  1369 + "small_sort_id": 115,
  1370 + "status": 1,
  1371 + "stock_number": 1,
  1372 + "storage_num": 1,
  1373 + "tags": [
  1374 + "is_discount",
  1375 + "is_soon_sold_out"
  1376 + ],
  1377 + "vip1_price": 261.25,
  1378 + "vip2_price": 247.5,
  1379 + "vip3_price": 242,
  1380 + "vip_discount_type": 3,
  1381 + "vip_price": 0
  1382 + },
  1383 + {
  1384 + "brand_domain": "5preview",
  1385 + "brand_id": 526,
  1386 + "brand_name": "5 PREVIEW",
  1387 + "cn_alphabet": "I914_A25",
  1388 + "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",
  1389 + "edit_time": 1453952293,
  1390 + "gender": "2",
  1391 + "goods_list": [
  1392 + {
  1393 + "color_code": "#fffff",
  1394 + "color_id": "15",
  1395 + "color_name": "彩色",
  1396 + "color_value": "",
  1397 + "cover_1": "",
  1398 + "cover_2": "",
  1399 + "goods_id": "267285",
  1400 + "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",
  1401 + "is_default": "N",
  1402 + "product_skc": "234928",
  1403 + "status": "1"
  1404 + }
  1405 + ],
  1406 + "is_advance": "N",
  1407 + "is_discount": "Y",
  1408 + "is_limited": "N",
  1409 + "is_new": "N",
  1410 + "is_outlets": 1,
  1411 + "is_promotion": 0,
  1412 + "is_soon_sold_out": "Y",
  1413 + "is_special": "N",
  1414 + "market_price": 980,
  1415 + "max_sort_id": 1,
  1416 + "middle_sort_id": 11,
  1417 + "product_id": 199467,
  1418 + "product_name": "5 PREVIEW 图案T恤",
  1419 + "product_skn": 51114538,
  1420 + "sales_num": 11,
  1421 + "sales_phrase": "",
  1422 + "sales_price": 294,
  1423 + "shelve_time": 1453952293,
  1424 + "small_sort_id": 114,
  1425 + "status": 1,
  1426 + "stock_number": 1,
  1427 + "storage_num": 1,
  1428 + "tags": [
  1429 + "is_discount",
  1430 + "is_soon_sold_out"
  1431 + ],
  1432 + "vip1_price": 279.3,
  1433 + "vip2_price": 264.6,
  1434 + "vip3_price": 258.72,
  1435 + "vip_discount_type": 3,
  1436 + "vip_price": 0
  1437 + },
  1438 + {
  1439 + "brand_domain": "clottee",
  1440 + "brand_id": 518,
  1441 + "brand_name": "CLOTtee",
  1442 + "cn_alphabet": "CLA503OJ34ChongFengYi",
  1443 + "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",
  1444 + "edit_time": 1452654408,
  1445 + "gender": "1",
  1446 + "goods_list": [
  1447 + {
  1448 + "color_code": "333333",
  1449 + "color_id": "2",
  1450 + "color_name": "黑色",
  1451 + "color_value": "",
  1452 + "cover_1": "",
  1453 + "cover_2": "",
  1454 + "goods_id": "314411",
  1455 + "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",
  1456 + "is_default": "N",
  1457 + "product_skc": "258548",
  1458 + "status": "1"
  1459 + }
  1460 + ],
  1461 + "is_advance": "N",
  1462 + "is_discount": "Y",
  1463 + "is_limited": "N",
  1464 + "is_new": "N",
  1465 + "is_outlets": 1,
  1466 + "is_promotion": 101,
  1467 + "is_soon_sold_out": "N",
  1468 + "is_special": "N",
  1469 + "market_price": 699,
  1470 + "max_sort_id": 1,
  1471 + "middle_sort_id": 226,
  1472 + "product_id": 239715,
  1473 + "product_name": "CLOTtee camouflage Printing Coat Tech Jacket",
  1474 + "product_skn": 51134695,
  1475 + "sales_num": 2,
  1476 + "sales_phrase": "",
  1477 + "sales_price": 139,
  1478 + "shelve_time": 1452654408,
  1479 + "small_sort_id": 227,
  1480 + "status": 1,
  1481 + "stock_number": 765,
  1482 + "storage_num": 765,
  1483 + "tags": [
  1484 + "is_discount"
  1485 + ],
  1486 + "vip1_price": 132.04999999999998,
  1487 + "vip2_price": 125.10000000000001,
  1488 + "vip3_price": 122.32000000000001,
  1489 + "vip_discount_type": 3,
  1490 + "vip_price": 0
  1491 + },
  1492 + {
  1493 + "brand_domain": "protest",
  1494 + "brand_id": 402,
  1495 + "brand_name": "PROTEST博特斯",
  1496 + "cn_alphabet": "PROTEST165521BeiXin",
  1497 + "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",
  1498 + "edit_time": 1441689353,
  1499 + "gender": "2",
  1500 + "goods_list": [
  1501 + {
  1502 + "color_code": "710098",
  1503 + "color_id": "8",
  1504 + "color_name": "紫",
  1505 + "color_value": "",
  1506 + "cover_1": "",
  1507 + "cover_2": "",
  1508 + "goods_id": "74891",
  1509 + "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",
  1510 + "is_default": "Y",
  1511 + "product_skc": "111991",
  1512 + "status": "1"
  1513 + },
  1514 + {
  1515 + "color_code": "b9b7af",
  1516 + "color_id": "3",
  1517 + "color_name": "灰",
  1518 + "color_value": "",
  1519 + "cover_1": "",
  1520 + "cover_2": "",
  1521 + "goods_id": "74892",
  1522 + "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",
  1523 + "is_default": "N",
  1524 + "product_skc": "111992",
  1525 + "status": "1"
  1526 + },
  1527 + {
  1528 + "color_code": "0000fe",
  1529 + "color_id": "7",
  1530 + "color_name": "蓝",
  1531 + "color_value": "",
  1532 + "cover_1": "",
  1533 + "cover_2": "",
  1534 + "goods_id": "74893",
  1535 + "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",
  1536 + "is_default": "N",
  1537 + "product_skc": "111993",
  1538 + "status": "1"
  1539 + }
  1540 + ],
  1541 + "is_advance": "N",
  1542 + "is_discount": "Y",
  1543 + "is_limited": "N",
  1544 + "is_new": "N",
  1545 + "is_outlets": 1,
  1546 + "is_promotion": 0,
  1547 + "is_soon_sold_out": "N",
  1548 + "is_special": "N",
  1549 + "market_price": 349,
  1550 + "max_sort_id": 1,
  1551 + "middle_sort_id": 14,
  1552 + "product_id": 49470,
  1553 + "product_name": "PROTEST博特斯 女款针织连帽背心",
  1554 + "product_skn": 51020802,
  1555 + "sales_num": 1,
  1556 + "sales_price": 69,
  1557 + "shelve_time": 1378368243,
  1558 + "small_sort_id": 117,
  1559 + "status": 1,
  1560 + "stock_number": 27,
  1561 + "storage_num": 27,
  1562 + "tags": [
  1563 + "is_discount"
  1564 + ],
  1565 + "vip1_price": 65.55,
  1566 + "vip2_price": 62.1,
  1567 + "vip3_price": 60.72,
  1568 + "vip_discount_type": 3,
  1569 + "vip_price": 0
  1570 + }
  1571 + ],
  1572 + "standard": [
  1573 + {
  1574 + "standard_id": "789",
  1575 + "standard_name": "袖长",
  1576 + "sub": [
  1577 + {
  1578 + "standard_id": "4447",
  1579 + "standard_name": "短袖"
  1580 + },
  1581 + {
  1582 + "standard_id": "4449",
  1583 + "standard_name": "长袖"
  1584 + }
  1585 + ]
  1586 + },
  1587 + {
  1588 + "standard_id": "787",
  1589 + "standard_name": "领型",
  1590 + "sub": [
  1591 + {
  1592 + "standard_id": "4438",
  1593 + "standard_name": "圆领"
  1594 + }
  1595 + ]
  1596 + },
  1597 + {
  1598 + "standard_id": "788",
  1599 + "standard_name": "衣长",
  1600 + "sub": [
  1601 + {
  1602 + "standard_id": "4444",
  1603 + "standard_name": "短款"
  1604 + }
  1605 + ]
  1606 + },
  1607 + {
  1608 + "standard_id": "790",
  1609 + "standard_name": "版型",
  1610 + "sub": [
  1611 + {
  1612 + "standard_id": "4450",
  1613 + "standard_name": "修身"
  1614 + },
  1615 + {
  1616 + "standard_id": "4451",
  1617 + "standard_name": "正常"
  1618 + }
  1619 + ]
  1620 + },
  1621 + {
  1622 + "standard_id": "791",
  1623 + "standard_name": "厚度",
  1624 + "sub": [
  1625 + {
  1626 + "standard_id": "4453",
  1627 + "standard_name": "薄"
  1628 + }
  1629 + ]
  1630 + }
  1631 + ],
  1632 + "total": 7
  1633 + },
  1634 + "md5": "253e1f00dc682921e838fed19cc5974e",
  1635 + "message": "Search List."
  1636 +}
  1637 +```
  1638 +## 三、品类列表
  1639 +
  1640 +###### 全部品类(http://list.yohobuy.com/)
  1641 +
  1642 +* 请求URL:
  1643 +
  1644 +>http://192.168.102.216:8080/yohosearch/sortgroup.json?sales=Y&status=1&stocknumber=1
  1645 +
  1646 +
  1647 +### 字段说明
  1648 +-------------------------------------------------------
  1649 +|参数名 |值 |描述 |
  1650 +|------ |---- |--- |
  1651 +|status |1| 是否上架 1 或 2 |
  1652 +|sales |Y | 是否销售 “N”或”Y” |
  1653 +|stocknumber |2 | 库存量如“stocknumber=2”,则过滤出库存量>=2的商品 |
  1654 +
  1655 +
  1656 +### 参数返回
  1657 + {
  1658 + "code": 200,
  1659 + "data": {
  1660 + "sort": [
  1661 + {
  1662 + "sort_id": "1",
  1663 + "sort_name": "上衣",
  1664 + "order_by": "100",
  1665 + "count": 22712,
  1666 + "sub": [
  1667 + {
  1668 + "sort_id": "11",
  1669 + "sort_name": "T恤",
  1670 + "order_by": "50",
  1671 + "count": 5316
  1672 + },
  1673 + {
  1674 + "sort_id": "412",
  1675 + "sort_name": "套装",
  1676 + "order_by": "0",
  1677 + "count": 26
  1678 + }
  1679 + ]
  1680 + },
  1681 + {
  1682 + "sort_id": "3",
  1683 + "sort_name": "裤装",
  1684 + "order_by": "90",
  1685 + "count": 5950,
  1686 + "sub": [
  1687 + {
  1688 + "sort_id": "26",
  1689 + "sort_name": "休闲裤",
  1690 + "order_by": "30",
  1691 + "count": 3415
  1692 + },
  1693 + {
  1694 + "sort_id": "347",
  1695 + "sort_name": "西裤",
  1696 + "order_by": "0",
  1697 + "count": 28
  1698 + }
  1699 + ]
  1700 + },
  1701 + {
  1702 + "sort_id": "6",
  1703 + "sort_name": "鞋靴",
  1704 + "order_by": "70",
  1705 + "count": 3251,
  1706 + "sub": [
  1707 + {
  1708 + "sort_id": "44",
  1709 + "sort_name": "休闲/运动鞋",
  1710 + "order_by": "22",
  1711 + "count": 2002
  1712 + },
  1713 + {
  1714 + "sort_id": "298",
  1715 + "sort_name": "厚底鞋",
  1716 + "order_by": "0",
  1717 + "count": 2
  1718 + }
  1719 + ]
  1720 + },
  1721 + {
  1722 + "sort_id": "7",
  1723 + "sort_name": "包类/装备",
  1724 + "order_by": "60",
  1725 + "count": 5907,
  1726 + "sub": [
  1727 + {
  1728 + "sort_id": "49",
  1729 + "sort_name": "双肩包",
  1730 + "order_by": "20",
  1731 + "count": 2001
  1732 + },
  1733 + {
  1734 + "sort_id": "350",
  1735 + "sort_name": "mini包",
  1736 + "order_by": "0",
  1737 + "count": 7
  1738 + }
  1739 + ]
  1740 + },
  1741 + {
  1742 + "sort_id": "8",
  1743 + "sort_name": "服配",
  1744 + "order_by": "50",
  1745 + "count": 7121,
  1746 + "sub": [
  1747 + {
  1748 + "sort_id": "61",
  1749 + "sort_name": "太阳镜/眼镜",
  1750 + "order_by": "20",
  1751 + "count": 1117
  1752 + },
  1753 + {
  1754 + "sort_id": "294",
  1755 + "sort_name": "口罩",
  1756 + "order_by": "0",
  1757 + "count": 2
  1758 + }
  1759 + ]
  1760 + },
  1761 + {
  1762 + "sort_id": "308",
  1763 + "sort_name": "内衣/家居服",
  1764 + "order_by": "40",
  1765 + "count": 1086,
  1766 + "sub": [
  1767 + {
  1768 + "sort_id": "309",
  1769 + "sort_name": "内裤",
  1770 + "order_by": "10",
  1771 + "count": 683
  1772 + },
  1773 + {
  1774 + "sort_id": "363",
  1775 + "sort_name": "文胸",
  1776 + "order_by": "8",
  1777 + "count": 82
  1778 + },
  1779 + {
  1780 + "sort_id": "356",
  1781 + "sort_name": "家居服",
  1782 + "order_by": "6",
  1783 + "count": 309
  1784 + },
  1785 + {
  1786 + "sort_id": "358",
  1787 + "sort_name": "家居鞋",
  1788 + "order_by": "2",
  1789 + "count": 8
  1790 + }
  1791 + ]
  1792 + },
  1793 + {
  1794 + "sort_id": "241",
  1795 + "sort_name": "pinleimingcheng",
  1796 + "order_by": "22",
  1797 + "count": 3,
  1798 + "sub": []
  1799 + },
  1800 + {
  1801 + "sort_id": "10",
  1802 + "sort_name": "创意生活",
  1803 + "order_by": "20",
  1804 + "count": 4432,
  1805 + "sub": [
  1806 + {
  1807 + "sort_id": "103",
  1808 + "sort_name": "数码3C",
  1809 + "order_by": "28",
  1810 + "count": 1831
  1811 + },
  1812 + {
  1813 + "sort_id": "259",
  1814 + "sort_name": "美妆",
  1815 + "order_by": "20",
  1816 + "count": 433
  1817 + }
  1818 + ]
  1819 + },
  1820 + {
  1821 + "sort_id": "360",
  1822 + "sort_name": "泳衣",
  1823 + "order_by": "10",
  1824 + "count": 2,
  1825 + "sub": [
  1826 + {
  1827 + "sort_id": "361",
  1828 + "sort_name": "泳衣",
  1829 + "order_by": "0",
  1830 + "count": 2
  1831 + }
  1832 + ]
  1833 + },
  1834 + {
  1835 + "sort_id": "365",
  1836 + "sort_name": "潮童",
  1837 + "order_by": "0",
  1838 + "count": 1425,
  1839 + "sub": [
  1840 + {
  1841 + "sort_id": "396",
  1842 + "sort_name": "卫衣",
  1843 + "order_by": "0",
  1844 + "count": 175
  1845 + },
  1846 + {
  1847 + "sort_id": "427",
  1848 + "sort_name": "手帕",
  1849 + "order_by": "0",
  1850 + "count": 1
  1851 + }
  1852 + ]
  1853 + }
  1854 + ]
  1855 +
  1856 + },
  1857 + "message": "sort List."
  1858 + }
  1859 +#### gateway接口
  1860 +####method=web.regular.groupsort
  1861 +#### 接口参数
  1862 +
  1863 +#### 接口返回
  1864 +```json
  1865 +{
  1866 + "alg": "SALT_MD5",
  1867 + "code": 200,
  1868 + "data": {
  1869 + "sort": [
  1870 + {
  1871 + "sort_id": "1",
  1872 + "sort_name": "上衣",
  1873 + "order_by": "100",
  1874 + "count": 22712,
  1875 + "sub": [
  1876 + {
  1877 + "sort_id": "11",
  1878 + "sort_name": "T恤",
  1879 + "order_by": "50",
  1880 + "count": 5316
  1881 + },
  1882 + {
  1883 + "sort_id": "412",
  1884 + "sort_name": "套装",
  1885 + "order_by": "0",
  1886 + "count": 26
  1887 + }
  1888 + ]
  1889 + },
  1890 + {
  1891 + "sort_id": "3",
  1892 + "sort_name": "裤装",
  1893 + "order_by": "90",
  1894 + "count": 5950,
  1895 + "sub": [
  1896 + {
  1897 + "sort_id": "26",
  1898 + "sort_name": "休闲裤",
  1899 + "order_by": "30",
  1900 + "count": 3415
  1901 + },
  1902 + {
  1903 + "sort_id": "347",
  1904 + "sort_name": "西裤",
  1905 + "order_by": "0",
  1906 + "count": 28
  1907 + }
  1908 + ]
  1909 + },
  1910 + {
  1911 + "sort_id": "6",
  1912 + "sort_name": "鞋靴",
  1913 + "order_by": "70",
  1914 + "count": 3251,
  1915 + "sub": [
  1916 + {
  1917 + "sort_id": "44",
  1918 + "sort_name": "休闲/运动鞋",
  1919 + "order_by": "22",
  1920 + "count": 2002
  1921 + },
  1922 + {
  1923 + "sort_id": "298",
  1924 + "sort_name": "厚底鞋",
  1925 + "order_by": "0",
  1926 + "count": 2
  1927 + }
  1928 + ]
  1929 + },
  1930 + {
  1931 + "sort_id": "7",
  1932 + "sort_name": "包类/装备",
  1933 + "order_by": "60",
  1934 + "count": 5907,
  1935 + "sub": [
  1936 + {
  1937 + "sort_id": "49",
  1938 + "sort_name": "双肩包",
  1939 + "order_by": "20",
  1940 + "count": 2001
  1941 + },
  1942 + {
  1943 + "sort_id": "350",
  1944 + "sort_name": "mini包",
  1945 + "order_by": "0",
  1946 + "count": 7
  1947 + }
  1948 + ]
  1949 + },
  1950 + {
  1951 + "sort_id": "8",
  1952 + "sort_name": "服配",
  1953 + "order_by": "50",
  1954 + "count": 7121,
  1955 + "sub": [
  1956 + {
  1957 + "sort_id": "61",
  1958 + "sort_name": "太阳镜/眼镜",
  1959 + "order_by": "20",
  1960 + "count": 1117
  1961 + },
  1962 + {
  1963 + "sort_id": "294",
  1964 + "sort_name": "口罩",
  1965 + "order_by": "0",
  1966 + "count": 2
  1967 + }
705 ] 1968 ]
706 }, 1969 },
707 { 1970 {
@@ -741,7 +2004,9 @@ PS: 男生、女生、潮童、创意生活底部都包含《最新上架》 @@ -741,7 +2004,9 @@ PS: 男生、女生、潮童、创意生活底部都包含《最新上架》
741 "sort_name": "pinleimingcheng", 2004 "sort_name": "pinleimingcheng",
742 "order_by": "22", 2005 "order_by": "22",
743 "count": 3, 2006 "count": 3,
744 - "sub": [] 2007 + "sub": [
  2008 +
  2009 + ]
745 }, 2010 },
746 { 2011 {
747 "sort_id": "10", 2012 "sort_id": "10",
@@ -799,8 +2064,10 @@ PS: 男生、女生、潮童、创意生活底部都包含《最新上架》 @@ -799,8 +2064,10 @@ PS: 男生、女生、潮童、创意生活底部都包含《最新上架》
799 } 2064 }
800 ] 2065 ]
801 }, 2066 },
  2067 + "md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
802 "message": "sort List." 2068 "message": "sort List."
803 - } 2069 +}
  2070 +```
804 ------------------------------------------------------- 2071 -------------------------------------------------------
805 2072
806 ## 四、最近上架 2073 ## 四、最近上架
@@ -828,7 +2095,36 @@ PS: 男生、女生、潮童、创意生活底部都包含《最新上架》 @@ -828,7 +2095,36 @@ PS: 男生、女生、潮童、创意生活底部都包含《最新上架》
828 "message": "recentShelveDay List." 2095 "message": "recentShelveDay List."
829 } 2096 }
830 ------------------------------------------------------- 2097 -------------------------------------------------------
  2098 +#### gateway接口
  2099 +暂无,需要新增接口
  2100 +
  2101 +####method=web.regular.recent
  2102 +#### 请求参数
  2103 +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
  2104 +|:-------| -----:|-----:|-----:|-----:|----:|
  2105 +|yh_channel|string|是|1|null|频道|
  2106 +|order|string|是|s_n_desc|null|排序规则|
831 2107
  2108 +#### 接口返回
  2109 +```json
  2110 +{
  2111 + "alg": "SALT_MD5",
  2112 + "code": 200,
  2113 + "data": {
  2114 + "recent": {
  2115 + "2016-06-29": 3,
  2116 + "2016-06-28": 3,
  2117 + "2016-06-27": 1,
  2118 + "2016-06-18": 6,
  2119 + "2016-06-06": 1,
  2120 + "2016-06-02": 3,
  2121 + "2016-05-27": 8
  2122 + }
  2123 + },
  2124 + "md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
  2125 + "message": "recentShelveDay List."
  2126 +}
  2127 +```
832 ## 五、折扣区间 2128 ## 五、折扣区间
833 2129
834 ###### 全部折扣(http://list.yohobuy.com/sale?msort=365) 2130 ###### 全部折扣(http://list.yohobuy.com/sale?msort=365)
@@ -860,8 +2156,38 @@ PS: 男生、女生、潮童、创意生活底部都包含《最新上架》 @@ -860,8 +2156,38 @@ PS: 男生、女生、潮童、创意生活底部都包含《最新上架》
860 } 2156 }
861 2157
862 ------------------------------------------------------- 2158 -------------------------------------------------------
863 -  
864 - 2159 +#### gateway接口
  2160 +暂无,需要新增接口
  2161 +#### method=web.regular.discount
  2162 +#### 请求参数
  2163 +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
  2164 +|:-------| -----:|-----:|-----:|-----:|----:|
  2165 +|msort|string|是|365|null|一级类目|
  2166 +#### 接口返回
  2167 +```json
  2168 +{
  2169 + "alg": "SALT_MD5",
  2170 + "code": 200,
  2171 + "data": {
  2172 + "discount": {
  2173 + "0.01,0.399": {
  2174 + "count": 33225,
  2175 + "name": "1~3"
  2176 + },
  2177 + "0.4,0.699": {
  2178 + "count": 63367,
  2179 + "name": "4~6"
  2180 + },
  2181 + "0.7,0.999": {
  2182 + "count": 28892,
  2183 + "name": "7~9"
  2184 + }
  2185 + }
  2186 + },
  2187 + "md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
  2188 + "message": "discount List."
  2189 +}
  2190 +```
865 ## 六、搜索词提示 : 2191 ## 六、搜索词提示 :
866 2192
867 ###### 搜索输入框(http://search.yohobuy.com/?query=nike) 2193 ###### 搜索输入框(http://search.yohobuy.com/?query=nike)
@@ -900,7 +2226,67 @@ PS: 男生、女生、潮童、创意生活底部都包含《最新上架》 @@ -900,7 +2226,67 @@ PS: 男生、女生、潮童、创意生活底部都包含《最新上架》
900 } 2226 }
901 2227
902 ------------------------------------------------------- 2228 -------------------------------------------------------
  2229 +#### gateway接口
  2230 +method=app.search.fuzzy
  2231 +
  2232 +### 请求参数
903 2233
  2234 +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
  2235 +| :------- | ------: | ---: | ---: | ---: | ------------------: |
  2236 +| keyword | String | 否 | a | null | 联想关键词 |
  2237 +
  2238 +
  2239 +### 返回示例
  2240 +```json
  2241 +{
  2242 + "alg": "SALT_MD5",
  2243 + "code": 200,
  2244 + "data": [
  2245 + {
  2246 + "count": 216,
  2247 + "keyword": "阿迪达斯"
  2248 + },
  2249 + {
  2250 + "count": 216,
  2251 + "keyword": "adidas"
  2252 + },
  2253 + {
  2254 + "count": 10,
  2255 + "keyword": "aape"
  2256 + },
  2257 + {
  2258 + "count": 1,
  2259 + "keyword": "aj"
  2260 + },
  2261 + {
  2262 + "count": 21,
  2263 + "keyword": "asics"
  2264 + },
  2265 + {
  2266 + "count": 170,
  2267 + "keyword": "adidasoriginals"
  2268 + },
  2269 + {
  2270 + "count": 216,
  2271 + "keyword": "阿迪"
  2272 + },
  2273 + {
  2274 + "count": 1,
  2275 + "keyword": "air jordan"
  2276 + },
  2277 + {
  2278 + "count": 216,
  2279 + "keyword": "air"
  2280 + },
  2281 + {
  2282 + "count": 20,
  2283 + "keyword": "安德玛"
  2284 + }
  2285 + ],
  2286 + "md5": "8e678e9334361efc4bd3820980d1060f",
  2287 + "message": "fuzzy search list"
  2288 +}
  2289 +```
904 ## 七、获取品牌店铺 : 2290 ## 七、获取品牌店铺 :
905 2291
906 ###### 品牌页(5min.yohobuy.com) 2292 ###### 品牌页(5min.yohobuy.com)
@@ -928,7 +2314,28 @@ PS: 男生、女生、潮童、创意生活底部都包含《最新上架》 @@ -928,7 +2314,28 @@ PS: 男生、女生、潮童、创意生活底部都包含《最新上架》
928 "message": "shops info" 2314 "message": "shops info"
929 } 2315 }
930 ------------------------------------------------------- 2316 -------------------------------------------------------
931 - 2317 +#### gateway接口
  2318 +暂无,需要新增接口
  2319 +#### method=web.search.shopInfo
  2320 +#### 请求参数
  2321 +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
  2322 +|:-------| -----:|-----:|-----:|-----:|----:|
  2323 +|keyword|string|否|nike|null|关键词|
  2324 +#### 接口返回
  2325 +```json
  2326 +{
  2327 + "alg": "SALT_MD5",
  2328 + "code": 200,
  2329 + "data": {
  2330 + "brand_domain": "nike",
  2331 + "brand_ico": "/2015/04/10/16/02963cdc1aeab10959bfeccc400aaa8de8.jpg",
  2332 + "brand_name": "Nike",
  2333 + "id": 248
  2334 + },
  2335 + "md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
  2336 + "message": "shops info"
  2337 +}
  2338 +```
932 2339
933 ## 八、获取品牌列表 : 2340 ## 八、获取品牌列表 :
934 ###### 你可能喜欢的品牌(http://www.yohobuy.com/home) 2341 ###### 你可能喜欢的品牌(http://www.yohobuy.com/home)
@@ -968,8 +2375,47 @@ PS: 男生、女生、潮童、创意生活底部都包含《最新上架》 @@ -968,8 +2375,47 @@ PS: 男生、女生、潮童、创意生活底部都包含《最新上架》
968 "message": "brands info" 2375 "message": "brands info"
969 } 2376 }
970 ------------------------------------------------------- 2377 -------------------------------------------------------
971 -  
972 - 2378 +#### gateway接口
  2379 +暂无,需要新增接口
  2380 +#### method=web.search.favorBrand
  2381 +#### 请求参数
  2382 +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
  2383 +|:-------| -----:|-----:|-----:|-----:|----:|
  2384 +#### 接口返回
  2385 +```json
  2386 +{
  2387 + "alg": "SALT_MD5",
  2388 + "code": 200,
  2389 + "data": [
  2390 + {
  2391 + "brand_alif": "0",
  2392 + "brand_domain": "004",
  2393 + "brand_ico": "/2011/06/26/19/016f21d6a39d5071e1864943253dcdefde.jpg",
  2394 + "brand_keyword": "004,服装,包类",
  2395 + "brand_name": "004",
  2396 + "brand_name_cn": "零零肆12121",
  2397 + "brand_name_en": "jipeng",
  2398 + "hot_keyword": "004",
  2399 + "id": 1,
  2400 + "is_hot": ""
  2401 + },
  2402 + {
  2403 + "brand_alif": "D",
  2404 + "brand_domain": "DOUCAN",
  2405 + "brand_ico": "/2016/06/30/17/011ed7ff4510bcbd4a9e4242cc99b7ff99.jpg",
  2406 + "brand_keyword": "",
  2407 + "brand_name": "DOUCAN",
  2408 + "brand_name_cn": "DOUCAN",
  2409 + "brand_name_en": "DOUCAN",
  2410 + "hot_keyword": "",
  2411 + "id": 1726,
  2412 + "is_hot": "N"
  2413 + }
  2414 + ],
  2415 + "md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
  2416 + "message": "brands info"
  2417 +}
  2418 +```
973 > 2419 >
974 PS: 菜单导航 2420 PS: 菜单导航
975 1、男生(新品到着、 服饰、 鞋履、 包袋、 配饰 · 其他) 2421 1、男生(新品到着、 服饰、 鞋履、 包袋、 配饰 · 其他)
@@ -87,8 +87,127 @@ http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber= @@ -87,8 +87,127 @@ http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=
87 "message": "Search List." 87 "message": "Search List."
88 } 88 }
89 89
90 -  
91 - 90 +##### gateway接口
  91 +暂无根据多个skn查询的接口,待新增
  92 +method=h5.product.batch
  93 +#### 请求参数
  94 +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
  95 +|:-------| -----:|-----:|-----:|-----:|----:|
  96 +|brand|string|是|649|null|品牌id|
  97 +|order|string|是|s_n_desc|null|排序规则|
  98 +|limit|int|是|20|20|每页数据大小|
  99 +|page|int|是|1|1|当前页|
  100 +|productSkn|string|否|5002700,5001700|null|商品skn,多个skn以逗号分隔|
  101 +
  102 +#### 接口返回
  103 +```json
  104 +{
  105 + "alg": "SALT_MD5",
  106 + "code": 200,
  107 + "data": {
  108 + "page": 1,
  109 + "page_total": 14,
  110 + "product_list": [
  111 + {
  112 + "brand_domain": "macropus",
  113 + "brand_id": 350,
  114 + "brand_name": "MACROPUS",
  115 + "cn_alphabet": "MACROPUSShuangJianBaoMCPA601BK807",
  116 + "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",
  117 + "edit_time": 1457575980,
  118 + "gender": "3",
  119 + "goods_list": [
  120 + {
  121 + "color_code": "333333",
  122 + "color_id": "2",
  123 + "color_name": "黑色",
  124 + "color_value": "",
  125 + "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",
  126 + "cover_2": "",
  127 + "goods_id": "404967",
  128 + "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",
  129 + "is_default": "Y",
  130 + "product_skc": "306738",
  131 + "status": "1"
  132 + },
  133 + {
  134 + "color_code": "0000fe",
  135 + "color_id": "7",
  136 + "color_name": "蓝色",
  137 + "color_value": "",
  138 + "cover_1": "",
  139 + "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",
  140 + "goods_id": "404969",
  141 + "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",
  142 + "is_default": "N",
  143 + "product_skc": "306739",
  144 + "status": "1"
  145 + },
  146 + {
  147 + "color_code": "b9b7af",
  148 + "color_id": "3",
  149 + "color_name": "灰色",
  150 + "color_value": "",
  151 + "cover_1": "",
  152 + "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",
  153 + "goods_id": "404971",
  154 + "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",
  155 + "is_default": "N",
  156 + "product_skc": "306740",
  157 + "status": "1"
  158 + },
  159 + {
  160 + "color_code": "ee0000",
  161 + "color_id": "11",
  162 + "color_name": "红色",
  163 + "color_value": "",
  164 + "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",
  165 + "cover_2": "",
  166 + "goods_id": "404973",
  167 + "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",
  168 + "is_default": "N",
  169 + "product_skc": "306741",
  170 + "status": "1"
  171 + }
  172 + ],
  173 + "is_advance": "N",
  174 + "is_discount": "N",
  175 + "is_limited": "N",
  176 + "is_new": "Y",
  177 + "is_outlets": 2,
  178 + "is_promotion": 103,
  179 + "is_soon_sold_out": "N",
  180 + "is_special": "N",
  181 + "market_price": 369,
  182 + "max_sort_id": 7,
  183 + "middle_sort_id": 49,
  184 + "product_id": 314499,
  185 + "product_name": "MACROPUS 时尚军装系列 双肩包(男女通用)",
  186 + "product_skn": 51174855,
  187 + "sales_num": 0,
  188 + "sales_phrase": "",
  189 + "sales_price": 369,
  190 + "shelve_time": 1457575980,
  191 + "small_sort_id": 152,
  192 + "status": 1,
  193 + "stock_number": 1073,
  194 + "storage_num": 1073,
  195 + "tags": [
  196 + "is_new"
  197 + ],
  198 + "vip1_price": 350.55,
  199 + "vip2_price": 332.1,
  200 + "vip3_price": 324.72,
  201 + "vip_discount_type": 4,
  202 + "vip_price": 295
  203 + }
  204 + ],
  205 + "total": 26
  206 + },
  207 + "md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
  208 + "message": "Search List."
  209 +}
  210 +```
92 211
93 ### B.悬停浮动商品列表接口 212 ### B.悬停浮动商品列表接口
94 >访问地址:http://guang.m.yohobuy.com/info/index?id=50853 213 >访问地址:http://guang.m.yohobuy.com/info/index?id=50853
@@ -175,11 +294,8 @@ http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber= @@ -175,11 +294,8 @@ http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=
175 "message": "Search List." 294 "message": "Search List."
176 } 295 }
177 296
178 -  
179 -  
180 -  
181 -  
182 - 297 +##### gateway接口
  298 +见上面method=h5.product.batch
183 ### C.品牌介绍页面 NEW ARRIVAL 商品列表接口 299 ### C.品牌介绍页面 NEW ARRIVAL 商品列表接口
184 >访问地址: http://guang.m.yohobuy.com/plustar/brandinfo?id=342&gender=1%2C3 300 >访问地址: http://guang.m.yohobuy.com/plustar/brandinfo?id=342&gender=1%2C3
185 301
@@ -267,7 +383,451 @@ http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber= @@ -267,7 +383,451 @@ http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=
267 "message": "Search List." 383 "message": "Search List."
268 } 384 }
269 385
270 - 386 +##### gateway接口
  387 +
  388 +(method=app.search.brand)
  389 +#### 请求参数
  390 +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
  391 +|:-------| -----:|-----:|-----:|-----:|----:|
  392 +|yh_channel|string|是|1|null|频道id|
  393 +|brand|string|是|649|null|品牌id|
  394 +|shop_id|string|是|649|null|店铺id|
  395 +|order|string|是|s_n_desc|null|排序规则|
  396 +|limit|int|是|20|20|每页数据大小|
  397 +|page|int|是|1|1|当前页|
  398 +|gender|string|是|1,3|null|性别,筛选条件|
  399 +|color|string|是|2|null|颜色,筛选条件|
  400 +|price|string|是|220,339|null|价格,筛选条件|
  401 +|size|string|是|109|null|尺码,筛选条件|
  402 +|p_d|string|是|0.4,0.699|null|折扣,筛选条件|
  403 +|sort|string|是|114,293|null|品类,筛选条件|
  404 +|tags_filter|int|是|0|0|标签过滤 1:全球购羊头品牌标签过滤|
  405 +
  406 +注意,通用的头部没有列出,其他条件同原来保持一致,如果不清楚可以参考app的请求报文。
  407 +请求示例
  408 +http://devapi.yoho.cn:58078/gateway/?app_version=4.1.0&brand=144&client_secret=091b04ce5de86a8b0e0143ee513f9ed2&client_type=android&color=2
  409 +&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
  410 +&productSize=240x319&screen_size=720x1280&size=109&sort=114%2C293&v=7&yh_channel=1&debug=XYZ
  411 +### 响应
  412 +code为200即为成功,否则是失败。
  413 +响应JSON格式如下所示:
  414 +```json
  415 +{
  416 + "alg": "SALT_MD5",
  417 + "code": 200,
  418 + "data": {
  419 + "brand": {
  420 + "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",
  421 + "brand_domain": "macropus",
  422 + "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",
  423 + "brand_name": "MACROPUS",
  424 + "id": 350
  425 + },
  426 + "filter": {
  427 + "brand": [
  428 + {
  429 + "brand_alif": "M",
  430 + "brand_domain": "macropus",
  431 + "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",
  432 + "brand_keyword": "",
  433 + "brand_name": "MACROPUS",
  434 + "brand_name_cn": "",
  435 + "brand_name_en": "MACROPUS",
  436 + "hot_keyword": "",
  437 + "id": 350,
  438 + "is_hot": "Y"
  439 + }
  440 + ],
  441 + "color": [
  442 + {
  443 + "color_code": "333333",
  444 + "color_id": 2,
  445 + "color_name": "黑色",
  446 + "color_value": ""
  447 + },
  448 + {
  449 + "color_code": "0000fe",
  450 + "color_id": 7,
  451 + "color_name": "蓝色",
  452 + "color_value": ""
  453 + },
  454 + {
  455 + "color_code": "b9b7af",
  456 + "color_id": 3,
  457 + "color_name": "灰色",
  458 + "color_value": ""
  459 + },
  460 + {
  461 + "color_code": "47ba17",
  462 + "color_id": 6,
  463 + "color_name": "绿色",
  464 + "color_value": ""
  465 + },
  466 + {
  467 + "color_code": "ee0000",
  468 + "color_id": 11,
  469 + "color_name": "红色",
  470 + "color_value": ""
  471 + },
  472 + {
  473 + "color_code": "8b5402",
  474 + "color_id": 4,
  475 + "color_name": "棕色",
  476 + "color_value": ""
  477 + },
  478 + {
  479 + "color_code": "FFFFFF",
  480 + "color_id": 1,
  481 + "color_name": "白色",
  482 + "color_value": ""
  483 + },
  484 + {
  485 + "color_code": "ff5c01",
  486 + "color_id": 12,
  487 + "color_name": "橙色",
  488 + "color_value": ""
  489 + },
  490 + {
  491 + "color_code": "710098",
  492 + "color_id": 8,
  493 + "color_name": "紫色",
  494 + "color_value": ""
  495 + },
  496 + {
  497 + "color_code": "ffeb00",
  498 + "color_id": 9,
  499 + "color_name": "黄色",
  500 + "color_value": ""
  501 + },
  502 + {
  503 + "color_code": "#fffff",
  504 + "color_id": 15,
  505 + "color_name": "彩色",
  506 + "color_value": "http://img02.static.yohobuy.com/adpic/2014/01/27/13/0272608508f09e2bf7eb5543bf5cc70d31.png"
  507 + },
  508 + {
  509 + "color_code": "",
  510 + "color_id": 13,
  511 + "color_name": "银色",
  512 + "color_value": "http://static.yohobuy.com/images/color_p2.png"
  513 + },
  514 + {
  515 + "color_code": "FFD83D",
  516 + "color_id": 14,
  517 + "color_name": "金色",
  518 + "color_value": ""
  519 + }
  520 + ],
  521 + "discount": {
  522 + "0.01,0.399": {
  523 + "count": 28,
  524 + "name": "1~3"
  525 + },
  526 + "0.4,0.699": {
  527 + "count": 193,
  528 + "name": "4~6"
  529 + },
  530 + "0.7,0.999": {
  531 + "count": 7,
  532 + "name": "7~9"
  533 + }
  534 + },
  535 + "gender": {
  536 + "1,3": "BOYS",
  537 + "2,3": "GIRLS"
  538 + },
  539 + "group_sort": [
  540 + {
  541 + "category_id": "14",
  542 + "category_name": "包类",
  543 + "node_count": 0,
  544 + "parent_id": "1",
  545 + "relation_parameter": {
  546 + "sort": "152,153,196,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,195,197"
  547 + },
  548 + "sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/0155e4ec81db538c58a52f3066e396aac5.jpg?imageView/{mode}/w/{width}/h/{height}",
  549 + "sub": [
  550 + {
  551 + "category_id": "136",
  552 + "category_name": "双肩包",
  553 + "node_count": 0,
  554 + "parent_id": "14",
  555 + "relation_parameter": {
  556 + "sort": "152"
  557 + },
  558 + "sort_ico": ""
  559 + },
  560 + {
  561 + "category_id": "142",
  562 + "category_name": "手拎包/单肩包",
  563 + "node_count": 0,
  564 + "parent_id": "14",
  565 + "relation_parameter": {
  566 + "sort": "195,196,153,197"
  567 + },
  568 + "sort_ico": ""
  569 + },
  570 + {
  571 + "category_id": "150",
  572 + "category_name": "腰包",
  573 + "node_count": 0,
  574 + "parent_id": "14",
  575 + "relation_parameter": {
  576 + "sort": "157"
  577 + },
  578 + "sort_ico": ""
  579 + },
  580 + {
  581 + "category_id": "160",
  582 + "category_name": "电脑包",
  583 + "node_count": 0,
  584 + "parent_id": "14",
  585 + "relation_parameter": {
  586 + "sort": "156"
  587 + },
  588 + "sort_ico": ""
  589 + }
  590 + ]
  591 + }
  592 + ],
  593 + "priceRange": {
  594 + "0,119": "¥0-119",
  595 + "120,169": "¥120-169",
  596 + "170,269": "¥170-269",
  597 + "270,99999": "¥269以上"
  598 + },
  599 + "size": [
  600 + {
  601 + "size_id": 199,
  602 + "size_name": "F"
  603 + },
  604 + {
  605 + "size_id": 203,
  606 + "size_name": "M"
  607 + },
  608 + {
  609 + "size_id": 207,
  610 + "size_name": "S"
  611 + }
  612 + ]
  613 + },
  614 + "page": 1,
  615 + "page_total": 14,
  616 + "product_list": [
  617 + {
  618 + "brand_domain": "macropus",
  619 + "brand_id": 350,
  620 + "brand_name": "MACROPUS",
  621 + "cn_alphabet": "MACROPUSShuangJianBaoMCPA601BK807",
  622 + "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",
  623 + "edit_time": 1457575980,
  624 + "gender": "3",
  625 + "goods_list": [
  626 + {
  627 + "color_code": "333333",
  628 + "color_id": "2",
  629 + "color_name": "黑色",
  630 + "color_value": "",
  631 + "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",
  632 + "cover_2": "",
  633 + "goods_id": "404967",
  634 + "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",
  635 + "is_default": "Y",
  636 + "product_skc": "306738",
  637 + "status": "1"
  638 + },
  639 + {
  640 + "color_code": "0000fe",
  641 + "color_id": "7",
  642 + "color_name": "蓝色",
  643 + "color_value": "",
  644 + "cover_1": "",
  645 + "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",
  646 + "goods_id": "404969",
  647 + "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",
  648 + "is_default": "N",
  649 + "product_skc": "306739",
  650 + "status": "1"
  651 + },
  652 + {
  653 + "color_code": "b9b7af",
  654 + "color_id": "3",
  655 + "color_name": "灰色",
  656 + "color_value": "",
  657 + "cover_1": "",
  658 + "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",
  659 + "goods_id": "404971",
  660 + "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",
  661 + "is_default": "N",
  662 + "product_skc": "306740",
  663 + "status": "1"
  664 + },
  665 + {
  666 + "color_code": "ee0000",
  667 + "color_id": "11",
  668 + "color_name": "红色",
  669 + "color_value": "",
  670 + "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",
  671 + "cover_2": "",
  672 + "goods_id": "404973",
  673 + "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",
  674 + "is_default": "N",
  675 + "product_skc": "306741",
  676 + "status": "1"
  677 + }
  678 + ],
  679 + "is_advance": "N",
  680 + "is_discount": "N",
  681 + "is_limited": "N",
  682 + "is_new": "Y",
  683 + "is_outlets": 2,
  684 + "is_promotion": 103,
  685 + "is_soon_sold_out": "N",
  686 + "is_special": "N",
  687 + "market_price": 369,
  688 + "max_sort_id": 7,
  689 + "middle_sort_id": 49,
  690 + "product_id": 314499,
  691 + "product_name": "MACROPUS 时尚军装系列 双肩包(男女通用)",
  692 + "product_skn": 51174855,
  693 + "sales_num": 0,
  694 + "sales_phrase": "",
  695 + "sales_price": 369,
  696 + "shelve_time": 1457575980,
  697 + "small_sort_id": 152,
  698 + "status": 1,
  699 + "stock_number": 1073,
  700 + "storage_num": 1073,
  701 + "tags": [
  702 + "is_new"
  703 + ],
  704 + "vip1_price": 350.55,
  705 + "vip2_price": 332.1,
  706 + "vip3_price": 324.72,
  707 + "vip_discount_type": 4,
  708 + "vip_price": 295
  709 + }
  710 + ],
  711 + "standard": [
  712 + {
  713 + "standard_id": "723",
  714 + "standard_name": "电脑隔层",
  715 + "sub": [
  716 + {
  717 + "standard_id": "3293",
  718 + "standard_name": "有"
  719 + },
  720 + {
  721 + "standard_id": "3294",
  722 + "standard_name": "无"
  723 + }
  724 + ]
  725 + },
  726 + {
  727 + "standard_id": "18",
  728 + "standard_name": "面料材质",
  729 + "sub": [
  730 + {
  731 + "standard_id": "128",
  732 + "standard_name": "帆布"
  733 + },
  734 + {
  735 + "standard_id": "3080",
  736 + "standard_name": "尼龙"
  737 + },
  738 + {
  739 + "standard_id": "3092",
  740 + "standard_name": "涤纶"
  741 + },
  742 + {
  743 + "standard_id": "131",
  744 + "standard_name": "呢子"
  745 + },
  746 + {
  747 + "standard_id": "134",
  748 + "standard_name": "灯芯绒"
  749 + },
  750 + {
  751 + "standard_id": "3091",
  752 + "standard_name": "太空棉"
  753 + },
  754 + {
  755 + "standard_id": "132",
  756 + "standard_name": "毛线"
  757 + },
  758 + {
  759 + "standard_id": "3279",
  760 + "standard_name": "聚酯纤维"
  761 + }
  762 + ]
  763 + },
  764 + {
  765 + "standard_id": "15",
  766 + "standard_name": "款式细节",
  767 + "sub": [
  768 + {
  769 + "standard_id": "104",
  770 + "standard_name": "logo图案"
  771 + },
  772 + {
  773 + "standard_id": "106",
  774 + "standard_name": "多口袋"
  775 + },
  776 + {
  777 + "standard_id": "100",
  778 + "standard_name": "图案印花"
  779 + },
  780 + {
  781 + "standard_id": "107",
  782 + "standard_name": "拼色"
  783 + },
  784 + {
  785 + "standard_id": "101",
  786 + "standard_name": "字母图案"
  787 + },
  788 + {
  789 + "standard_id": "103",
  790 + "standard_name": "绣标"
  791 + },
  792 + {
  793 + "standard_id": "109",
  794 + "standard_name": "纽扣装饰"
  795 + },
  796 + {
  797 + "standard_id": "108",
  798 + "standard_name": "金属装饰"
  799 + },
  800 + {
  801 + "standard_id": "111",
  802 + "standard_name": "贴布装饰"
  803 + }
  804 + ]
  805 + },
  806 + {
  807 + "standard_id": "21",
  808 + "standard_name": "形状",
  809 + "sub": [
  810 + {
  811 + "standard_id": "150",
  812 + "standard_name": "横款"
  813 + },
  814 + {
  815 + "standard_id": "149",
  816 + "standard_name": "长款"
  817 + },
  818 + {
  819 + "standard_id": "152",
  820 + "standard_name": "水桶形"
  821 + }
  822 + ]
  823 + }
  824 + ],
  825 + "total": 269
  826 + },
  827 + "md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
  828 + "message": "Search List."
  829 +}
  830 +```
271 831
272 ----------------------------------------------------------------------- 832 -----------------------------------------------------------------------
273 ## 2.获取搜索的数据(Ajax 异步筛选请求) 833 ## 2.获取搜索的数据(Ajax 异步筛选请求)
@@ -359,7 +919,367 @@ http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber= @@ -359,7 +919,367 @@ http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=
359 "message": "Search List." 919 "message": "Search List."
360 } 920 }
361 921
362 - 922 +#### gateway接口
  923 +### (method=app.search.category,获取品类商品列表)
  924 +
  925 +#### 请求参数
  926 +| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 |
  927 +| :-- | :-- | :-- | :-- | :-- | :-- |
  928 +| method | String | 是 | app.search.category| |请求方法|
  929 +| type | String | 否 | “new” ||页面的标签字符串 “new” “price” “discount” |
  930 +| limit | int | 否 | 10 ||每页展示条数,默认10条|
  931 +| sort | String | 否 | "116,117,115,119,124,122,413,258,173,227,125,118,121,123,114,293" ||查询小分类ID,查多个小类以逗号分隔|
  932 +| page | int | 否 | 1 ||当前页|
  933 +| yh_channel | String | 否 | "1" ||频道|
  934 +| order | String | 否 | "s_t_desc" ||排序信息 |
  935 +| p_d | String | 否 | "0.7" ||打折区间,以逗号分隔|
  936 +| color | String | 否 | "145" ||颜色ID|
  937 +| brand | String | 否 | "125" ||品牌ID|
  938 +| shop | String | 否 | "155" ||店铺ID|
  939 +| price | String | 否 | "300,600" ||价格区间,以逗号分隔|
  940 +| size | String | 否 | "16,17" ||尺寸ID,以逗号分隔|
  941 +| msort | String | 否 | "95" ||产品大分类ID|
  942 +| misort | String | 否 | "918" ||产品中分类ID|
  943 +| standard | String[] | 否 | standard=13&standard=25 ||规格|
  944 +| categoryId | String | 否 | "5" ||运营二级分类ID|
  945 +| subCategoryId | String | 否 | "45" || 运营三级分类ID|
  946 +| gender | String | 否 | "1,3" ||性别,以逗号分隔|
  947 +| outlets | int | 否 | 1 ||outlets=1 奥莱商品 outlets=2非奥莱商品|
  948 +
  949 +
  950 +#### 注意:与以前方式兼容,如果筛选奥莱,只需增加outlets=1的请求参数
  951 +
  952 +### 响应
  953 +code为200即为成功且只会返回200,每次都会有响应结果。
  954 +响应JSON格式如下所示:
  955 +```json
  956 +{
  957 + "alg": "SALT_MD5",
  958 + "code": 200,
  959 + "data": {
  960 + "filter": {
  961 + "brand": [
  962 + {
  963 + "brand_alif": "L",
  964 + "brand_domain": "lhouse",
  965 + "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",
  966 + "brand_keyword": "l-house,T恤,休闲裤,包,LPAN,",
  967 + "brand_name": "L-HOUSE",
  968 + "brand_name_cn": "",
  969 + "brand_name_en": "L-HOUSE",
  970 + "hot_keyword": "l-house",
  971 + "id": 72,
  972 + "is_hot": "N"
  973 + },
  974 + {
  975 + "brand_alif": "C",
  976 + "brand_domain": "clottee",
  977 + "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",
  978 + "brand_keyword": "明星、潮流、设计、细节、凸显个人的风格",
  979 + "brand_name": "CLOTtee",
  980 + "brand_name_cn": "",
  981 + "brand_name_en": "CLOTtee",
  982 + "hot_keyword": "CLOT主理人Edison Chen(陈冠希)和Kevin Poon(潘世亨)以“Essential”为题进",
  983 + "id": 518,
  984 + "is_hot": "Y"
  985 + }
  986 + ],
  987 + "color": [
  988 + {
  989 + "color_code": "FFFFFF",
  990 + "color_id": 1,
  991 + "color_name": "白色",
  992 + "color_value": ""
  993 + },
  994 + {
  995 + "color_code": "333333",
  996 + "color_id": 2,
  997 + "color_name": "黑色",
  998 + "color_value": ""
  999 + },
  1000 + {
  1001 + "color_code": "0000fe",
  1002 + "color_id": 7,
  1003 + "color_name": "蓝色",
  1004 + "color_value": ""
  1005 + }
  1006 + ],
  1007 + "discount": {
  1008 + "0.01,0.399": {
  1009 + "count": 1,
  1010 + "name": "1~3"
  1011 + }
  1012 + },
  1013 + "gender": {
  1014 + "1,3": "BOYS",
  1015 + "2,3": "GIRLS"
  1016 + },
  1017 + "group_sort": [
  1018 + {
  1019 + "category_id": "18",
  1020 + "category_name": "上衣",
  1021 + "node_count": 0,
  1022 + "parent_id": "2",
  1023 + "relation_parameter": {
  1024 + "sort": "227,173,125,258,121,123,119,124,118,122,115,117,114,293,116,413"
  1025 + },
  1026 + "sort_ico": "http://img12.static.yhbimg.com/taobaocms/2016/04/25/15/021f6d7c1a73dd5823c6758186ef270611.png",
  1027 + "sub": [
  1028 + {
  1029 + "category_id": "29",
  1030 + "category_name": "防风外套",
  1031 + "node_count": 0,
  1032 + "parent_id": "18",
  1033 + "relation_parameter": {
  1034 + "sort": "227"
  1035 + },
  1036 + "sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}"
  1037 + },
  1038 + {
  1039 + "category_id": "45",
  1040 + "category_name": "T恤",
  1041 + "node_count": 0,
  1042 + "parent_id": "5",
  1043 + "relation_parameter": {
  1044 + "sort": "114,293"
  1045 + },
  1046 + "sort_ico": ""
  1047 + }
  1048 + ]
  1049 + },
  1050 + {
  1051 + "category_id": "8",
  1052 + "category_name": "裤装",
  1053 + "node_count": 0,
  1054 + "parent_id": "1",
  1055 + "relation_parameter": {
  1056 + "sort": "131,129,346,133,348,130"
  1057 + },
  1058 + "sort_ico": "http://img10.static.yhbimg.com/taobaocms/2016/04/18/14/016bd577221e94e560d4686ec51f94a479.jpg",
  1059 + "sub": [
  1060 + {
  1061 + "category_id": "92",
  1062 + "category_name": "牛仔裤",
  1063 + "node_count": 0,
  1064 + "parent_id": "8",
  1065 + "relation_parameter": {
  1066 + "sort": "130,114,293"
  1067 + },
  1068 + "sort_ico": ""
  1069 + }
  1070 + ]
  1071 + }
  1072 + ],
  1073 + "priceRange": {
  1074 + "0,139": "¥0-139",
  1075 + "140,149": "¥140-149",
  1076 + "150,99999": "¥149以上"
  1077 + },
  1078 + "size": [
  1079 + {
  1080 + "size_id": 201,
  1081 + "size_name": "L"
  1082 + },
  1083 + {
  1084 + "size_id": 203,
  1085 + "size_name": "M"
  1086 + },
  1087 + {
  1088 + "size_id": 207,
  1089 + "size_name": "S"
  1090 + },
  1091 + {
  1092 + "size_id": 211,
  1093 + "size_name": "XL"
  1094 + },
  1095 + {
  1096 + "size_id": 216,
  1097 + "size_name": "XXL"
  1098 + }
  1099 + ]
  1100 + },
  1101 + "page": 1,
  1102 + "page_total": 1,
  1103 + "product_list": [
  1104 + {
  1105 + "brand_domain": "clottee",
  1106 + "brand_id": 518,
  1107 + "brand_name": "CLOTtee",
  1108 + "cn_alphabet": "CLA503OJ34ChongFengYi",
  1109 + "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",
  1110 + "edit_time": 1452654408,
  1111 + "gender": "1",
  1112 + "goods_list": [
  1113 + {
  1114 + "color_code": "333333",
  1115 + "color_id": "2",
  1116 + "color_name": "黑色",
  1117 + "color_value": "",
  1118 + "cover_1": "",
  1119 + "cover_2": "",
  1120 + "goods_id": "314411",
  1121 + "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",
  1122 + "is_default": "N",
  1123 + "product_skc": "258548",
  1124 + "status": "1"
  1125 + }
  1126 + ],
  1127 + "is_advance": "N",
  1128 + "is_discount": "Y",
  1129 + "is_limited": "N",
  1130 + "is_new": "N",
  1131 + "is_outlets": 1,
  1132 + "is_promotion": 101,
  1133 + "is_soon_sold_out": "N",
  1134 + "is_special": "N",
  1135 + "market_price": 699,
  1136 + "max_sort_id": 1,
  1137 + "middle_sort_id": 226,
  1138 + "product_id": 239715,
  1139 + "product_name": "CLOTtee camouflage Printing Coat Tech Jacket",
  1140 + "product_skn": 51134695,
  1141 + "sales_num": 2,
  1142 + "sales_phrase": "",
  1143 + "sales_price": 139,
  1144 + "shelve_time": 1452654408,
  1145 + "small_sort_id": 227,
  1146 + "status": 1,
  1147 + "stock_number": 765,
  1148 + "storage_num": 765,
  1149 + "tags": [
  1150 + "is_discount"
  1151 + ],
  1152 + "vip1_price": 132.04999999999998,
  1153 + "vip2_price": 125.10000000000001,
  1154 + "vip3_price": 122.32000000000001,
  1155 + "vip_discount_type": 3,
  1156 + "vip_price": 0
  1157 + },
  1158 + {
  1159 + "brand_domain": "lhouse",
  1160 + "brand_id": 72,
  1161 + "brand_name": "L-HOUSE",
  1162 + "cn_alphabet": "LHOUSEA308XiangJiLPANTXu",
  1163 + "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",
  1164 + "edit_time": 1395997048,
  1165 + "gender": "1",
  1166 + "goods_list": [
  1167 + {
  1168 + "color_code": "FFFFFF",
  1169 + "color_id": "1",
  1170 + "color_name": "白",
  1171 + "color_value": "",
  1172 + "cover_1": "",
  1173 + "cover_2": "",
  1174 + "goods_id": "59474",
  1175 + "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",
  1176 + "is_default": "Y",
  1177 + "product_skc": "96567",
  1178 + "status": "1"
  1179 + },
  1180 + {
  1181 + "color_code": "0000fe",
  1182 + "color_id": "7",
  1183 + "color_name": "蓝",
  1184 + "color_value": "",
  1185 + "cover_1": "",
  1186 + "cover_2": "",
  1187 + "goods_id": "59475",
  1188 + "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",
  1189 + "is_default": "N",
  1190 + "product_skc": "96568",
  1191 + "status": "1"
  1192 + }
  1193 + ],
  1194 + "is_advance": "N",
  1195 + "is_discount": "N",
  1196 + "is_limited": "N",
  1197 + "is_new": "N",
  1198 + "is_outlets": 1,
  1199 + "is_promotion": 0,
  1200 + "is_soon_sold_out": "Y",
  1201 + "is_special": "N",
  1202 + "market_price": 148,
  1203 + "max_sort_id": 1,
  1204 + "middle_sort_id": 11,
  1205 + "product_id": 38518,
  1206 + "product_name": "L-HOUSE 相机LPAN T恤",
  1207 + "product_skn": 51009846,
  1208 + "sales_num": 65,
  1209 + "sales_price": 148,
  1210 + "shelve_time": 1395997048,
  1211 + "small_sort_id": 114,
  1212 + "status": 1,
  1213 + "stock_number": 2,
  1214 + "storage_num": 2,
  1215 + "tags": [
  1216 + "is_soon_sold_out"
  1217 + ],
  1218 + "vip1_price": 140.6,
  1219 + "vip2_price": 133.20000000000002,
  1220 + "vip3_price": 130.24,
  1221 + "vip_discount_type": 3,
  1222 + "vip_price": 0
  1223 + }
  1224 + ],
  1225 + "standard": [
  1226 + {
  1227 + "standard_id": "879",
  1228 + "standard_name": "袖长",
  1229 + "sub": [
  1230 + {
  1231 + "standard_id": "4817",
  1232 + "standard_name": "长袖"
  1233 + }
  1234 + ]
  1235 + },
  1236 + {
  1237 + "standard_id": "878",
  1238 + "standard_name": "衣长",
  1239 + "sub": [
  1240 + {
  1241 + "standard_id": "4814",
  1242 + "standard_name": "长款"
  1243 + }
  1244 + ]
  1245 + },
  1246 + {
  1247 + "standard_id": "876",
  1248 + "standard_name": "经典款型",
  1249 + "sub": [
  1250 + {
  1251 + "standard_id": "5080",
  1252 + "standard_name": "冲锋衣"
  1253 + }
  1254 + ]
  1255 + },
  1256 + {
  1257 + "standard_id": "882",
  1258 + "standard_name": "厚度",
  1259 + "sub": [
  1260 + {
  1261 + "standard_id": "4822",
  1262 + "standard_name": "中"
  1263 + }
  1264 + ]
  1265 + },
  1266 + {
  1267 + "standard_id": "880",
  1268 + "standard_name": "版型",
  1269 + "sub": [
  1270 + {
  1271 + "standard_id": "4819",
  1272 + "standard_name": "正常"
  1273 + }
  1274 + ]
  1275 + }
  1276 + ],
  1277 + "total": 2
  1278 + },
  1279 + "md5": "2b4aa20d350ff2758d2d70687b788173",
  1280 + "message": "Category Product List."
  1281 +}
  1282 +```
363 1283
364 1284
365 ### B.品牌商品列表页接口 1285 ### B.品牌商品列表页接口
@@ -547,3 +1467,6 @@ http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber= @@ -547,3 +1467,6 @@ http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=
547 1467
548 1468
549 > PS:有筛选功能的商品列表页,可以根据选择的筛选条件进行筛选,只是传入的参数不同。目前涉及到的接口最终只有一个http://192.168.102.216:8080/yohosearch/search.json 1469 > PS:有筛选功能的商品列表页,可以根据选择的筛选条件进行筛选,只是传入的参数不同。目前涉及到的接口最终只有一个http://192.168.102.216:8080/yohosearch/search.json
  1470 +
  1471 +#### gateway接口
  1472 +请见上方method=app.search.brand
@@ -58,6 +58,22 @@ class UserData @@ -58,6 +58,22 @@ class UserData
58 } 58 }
59 59
60 /** 60 /**
  61 + * 查询配置信息
  62 + *
  63 + * @param int $uid 用户ID
  64 + * @return array 用户配置接口返回的数据
  65 + */
  66 + public static function getTipConfig($uid)
  67 + {
  68 + $param = Yohobuy::param();
  69 + $param['method'] = 'app.resources.config.clientInitConfig';
  70 + $param['uid'] = $uid;
  71 + $param['client_secret'] = Sign::getSign($param);
  72 +
  73 + return Yohobuy::post(Yohobuy::API_URL, $param);
  74 + }
  75 +
  76 + /**
61 * 修改个人详情数据 77 * 修改个人详情数据
62 * 78 *
63 * @param array $params 需要修改的参数集合 79 * @param array $params 需要修改的参数集合
@@ -14,8 +14,11 @@ @@ -14,8 +14,11 @@
14 </div> 14 </div>
15 </div> 15 </div>
16 </div> 16 </div>
  17 + {{#if isShowTip}}
  18 + <p class="help-us">
  19 + 如果你还使用了我们的其他产品(Yoho!Now和mars)修改个人信息时将同步
  20 + </p>
  21 + {{/if}}
17 {{/ user}} 22 {{/ user}}
18 -  
19 - {{> home/help-us}}  
20 </div> 23 </div>
21 {{> layout/footer}} 24 {{> layout/footer}}
@@ -24,6 +24,8 @@ class UserController extends WebAction @@ -24,6 +24,8 @@ class UserController extends WebAction
24 $leftNav = UserModel::getCenterLeftNav('编辑个人资料',$uid); 24 $leftNav = UserModel::getCenterLeftNav('编辑个人资料',$uid);
25 //用户信息-基础信息 25 //用户信息-基础信息
26 $userInfo = UserModel::getUserInfo($uid); 26 $userInfo = UserModel::getUserInfo($uid);
  27 + //配置信息
  28 + $configInfo = UserData::getTipConfig($uid);
27 //联系信息 29 //联系信息
28 $userContactInfo = UserModel::getUserContactInfo($uid); 30 $userContactInfo = UserModel::getUserContactInfo($uid);
29 //习惯信息 31 //习惯信息
@@ -35,6 +37,7 @@ class UserController extends WebAction @@ -35,6 +37,7 @@ class UserController extends WebAction
35 'path' => $path, 37 'path' => $path,
36 'homeNav' => $leftNav, 38 'homeNav' => $leftNav,
37 'userThumb' => $userInfo['headIco'], 39 'userThumb' => $userInfo['headIco'],
  40 + 'isShowTip' => intval($configInfo['data']['config']['sn']),
38 'userPersonalInfo' => array( 41 'userPersonalInfo' => array(
39 'subTitle' => '会员信息', 42 'subTitle' => '会员信息',
40 'firstBox' => true, 43 'firstBox' => true,
@@ -49,13 +52,13 @@ class UserController extends WebAction @@ -49,13 +52,13 @@ class UserController extends WebAction
49 'labelText' => '昵称:', 52 'labelText' => '昵称:',
50 'value' => $userInfo['nickname'], 53 'value' => $userInfo['nickname'],
51 'key' => 'nickname', 54 'key' => 'nickname',
52 - 'tips' => '昵称必须大于2而小于20个字符' 55 + 'tips' => '与Yoho!业务或商家品牌冲突的昵称,Yoho!将有可能收回'
53 ), 56 ),
54 array( 57 array(
55 'labelText' => '真实姓名:', 58 'labelText' => '真实姓名:',
56 'value' => $userInfo['username'], 59 'value' => $userInfo['username'],
57 'key' => 'username', 60 'key' => 'username',
58 - 'tips' => '真实姓名至少2个中文,最多5个中文' 61 + 'tips' => '' // 4.8去掉该提示
59 ) 62 )
60 ), 63 ),
61 'gender' => array( 64 'gender' => array(
@@ -172,7 +175,6 @@ class UserController extends WebAction @@ -172,7 +175,6 @@ class UserController extends WebAction
172 'hotBrands' => $userLikeBrandInfo['hotBrands'], 175 'hotBrands' => $userLikeBrandInfo['hotBrands'],
173 ) 176 )
174 ); 177 );
175 -  
176 $this->_view->display('user', array( 178 $this->_view->display('user', array(
177 'user' => $data, 179 'user' => $data,
178 'meEditPage' => true 180 'meEditPage' => true