Authored by Lixiaodi

Update vip_product_list.md

... ... @@ -204,4 +204,131 @@ code为200即为成功且只会返回200,每次都会有响应结果。
## 3、首页个性化-新品到着大数据推荐商品列表##
(method=app.firstpage.recproduct)
请求方式:get
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|String| 是| 8050496|null|用户id|
|udid|String| 是| 15bb9a72e92b13a2181579a27556c9522bc723d9|null|用户app标识码|
|yh_channel|String| 是| 1|1|频道|
|client_type|String| 是| ht|null|页数|
注意,通用的头部没有列出。
请求示例
http://127.0.0.1:8086/gateway/?method=app.firstpage.recproduct&uid=8050496&debug=XYZ&client_type=h5### 响应
code为200即为成功且只会返回200,每次都会有响应结果。
响应JSON格式如下所示:
1.无数据
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {},
"md5": "f4a7a490bb6666b005008d795ed14e5d",
"message": "product list."
}
```
2.有数据
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"total": 199,
"page_total": 1,
"page": 1,
"product_list": [
{
"vip1_price": 5,
"product_price_plan_list": [
{
"vip1_price": 5,
"create_time": 1488319281,
"vip_discount_type": 3,
"end_time": 0,
"vip3_price": 5,
"current_saleprice": 5,
"vip2_price": 5,
"plan_id": 1488297600,
"effect_time": 1488297600
}
],
"first_shelve_time": 0,
"is_outlets": 2,
"brand_domain": "5cm",
"is_special": "N",
"goods_list": [
{
"color_id": "37",
"storage_num": 97,
"product_skc": 679850,
"cover_1": "",
"goods_id": "670678",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2017/02/27/15/01f4a5eb1b4efbb9a7844253ca2000b434.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"color_name": "蓝色",
"cover_2": "",
"is_default": "N",
"color_value": "",
"color_code": "0000fe",
"status": "1"
}
],
"product_id": 508102,
"is_advance": "N",
"is_student_rebate": "N",
"cn_alphabet": "5CMnanzhangxiuTxu",
"is_deposit_advance": "N",
"is_student_price": "N",
"edit_time": 1488182082,
"is_new": "N",
"brand_name": "5CM",
"max_sort_id": 1,
"product_name": "5CM男长袖T恤",
"brand_id": 4,
"tags": [],
"default_images": "http://img10.static.yhbimg.com/goodsimg/2017/02/27/15/01f4a5eb1b4efbb9a7844253ca2000b434.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"shop_id": 834,
"stock_number": 97,
"is_soon_sold_out": "N",
"market_price": 10,
"vip_price": 0,
"country_id": 2,
"status": 1,
"small_sort_id": 293,
"is_seckill": "N",
"gender": "1",
"vip3_price": 5,
"is_global": "N",
"is_discount": "Y",
"tbl_plane": "N",
"vip_discount_type": 3,
"sales_num": 0,
"sales_phrase": "",
"product_skn": 512587406,
"shelve_time": 0,
"vip2_price": 5,
"age_level": "1",
"is_limited": "N",
"skn_default_img": "",
"storage_num": 97,
"middle_sort_id": 11,
"sales_price": 5,
"is_promotion": 0,
"is_limitbuy": "N"
}
],
"page_size": 500
},
"md5": "43422282ff989de697fa82c0393b3246",
"message": "product list."
}
```
... ...