Authored by wangshusheng

vip product list

  1 +## 1、指定vip跳转,银卡、金卡、白金卡##
  2 +
  3 +(method=app.product.vip)
  4 +请求方式:get
  5 +#### 请求参数
  6 +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
  7 +|:-------| -----:|-----:|-----:|-----:|----:|
  8 +|user_vip_level|Integer| 否| 1|1|vip级别,1:银卡会员 2:金卡会员 3:白金卡会员|
  9 +
  10 +
  11 +注意,通用的头部没有列出。
  12 +请求示例
  13 +http://dev-api.yohops.com:9999/?app_version=4.9.2&debug=XYZ&client_secret=7b9ec13d4fdaeac331a9a0ddfbeac257&client_type=android&method=app.product.vip&os_version=android4.4.4%3AChe1-CL20&limit=10&page=1&gender=1&screen_size=720x1280&session_key=c7e4525e9e7608a24c5b0dce094ab091&uid=9963947&v=7&yh_channel=1&user_vip_level=1
  14 +### 响应
  15 +code为200即为成功且只会返回200,每次都会有响应结果。
  16 +响应JSON格式如下所示:
  17 +```json
  18 +{
  19 + "alg": "SALT_MD5",
  20 + "code": 200,
  21 + "data": {
  22 + "standard": [
  23 + {
  24 + "standard_id": "826",
  25 + "sub": [
  26 + {
  27 + "standard_id": "4628",
  28 + "standard_name": "正常"
  29 + },
  30 + {
  31 + "standard_id": "4629",
  32 + "standard_name": "宽松"
  33 + },
  34 + {
  35 + "standard_id": "4627",
  36 + "standard_name": "修身"
  37 + }
  38 + ],
  39 + "standard_name": "版型"
  40 + }
  41 + ],
  42 + "filter": {
  43 + "gender": {
  44 + "1,3": "BOYS"
  45 + },
  46 + "color": [
  47 + {
  48 + "color_id": 2,
  49 + "color_name": "黑色",
  50 + "color_value": "",
  51 + "color_code": "68EE68"
  52 + }
  53 + ],
  54 + "limited": "Y",
  55 + "discount": {
  56 + "0.01,0.399": {
  57 + "name": "1~3",
  58 + "count": 52760
  59 + },
  60 + "0.7,0.999": {
  61 + "name": "7~9",
  62 + "count": 194
  63 + },
  64 + "0.4,0.699": {
  65 + "name": "4~6",
  66 + "count": 277
  67 + }
  68 + },
  69 + "ageLevel": [
  70 + {
  71 + "product_count": 51841,
  72 + "name": "成人",
  73 + "id": "1"
  74 + },
  75 + {
  76 + "product_count": 966,
  77 + "name": "大童(11-15岁)",
  78 + "id": "2"
  79 + },
  80 + {
  81 + "product_count": 1325,
  82 + "name": "中童(7-10岁)",
  83 + "id": "4"
  84 + },
  85 + {
  86 + "product_count": 1374,
  87 + "name": "小童(2-6岁)",
  88 + "id": "3"
  89 + },
  90 + {
  91 + "product_count": 791,
  92 + "name": "婴童(0-12个月)",
  93 + "id": "5"
  94 + }
  95 + ]
  96 + "priceRange": {
  97 + "200,429": "¥200-429",
  98 + "430,799": "¥430-799",
  99 + "800,99999": "¥799以上",
  100 + "0,199": "¥0-199"
  101 + }
  102 + },
  103 + "total": 53264,
  104 + "page_total": 5327,
  105 + "page": 1,
  106 + "product_list": [
  107 + {
  108 + "vip1_price": 10.45,
  109 + "first_shelve_time": 1458029862,
  110 + "is_outlets": 2,
  111 + "brand_domain": "jnbybyjnby",
  112 + "is_special": "N",
  113 + "goods_list": [
  114 + {
  115 + "color_id": "11",
  116 + "storage_num": 3,
  117 + "product_skc": 295811,
  118 + "cover_1": "",
  119 + "goods_id": "382743",
  120 + "images_url": "http://img13.static.yhbimg.com/goodsimg/2015/10/31/03/02ba5cd854ca31decf38477a1a787473b8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
  121 + "color_name": "红色",
  122 + "cover_2": "",
  123 + "is_default": "N",
  124 + "color_value": "",
  125 + "color_code": "ee0000",
  126 + "status": "1"
  127 + }
  128 + ],
  129 + "product_id": 298837,
  130 + "is_advance": "N",
  131 + "is_student_rebate": "N",
  132 + "cn_alphabet": "1F070029",
  133 + "is_deposit_advance": "N",
  134 + "is_student_price": "N",
  135 + "edit_time": 1446637173,
  136 + "is_new": "N",
  137 + "brand_name": "jnby by JNBY",
  138 + "max_sort_id": 365,
  139 + "product_name": "jnby by JNBY 潮童大红可爱带帽羽绒服(白鸭绒 充绒量90%)",
  140 + "brand_id": 1028,
  141 + "tags": [],
  142 + "default_images": "http://img13.static.yhbimg.com/goodsimg/2015/10/31/03/02ba5cd854ca31decf38477a1a787473b8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
  143 + "shop_id": 21,
  144 + "stock_number": 3,
  145 + "is_soon_sold_out": "N",
  146 + "market_price": 795,
  147 + "vip_price": 11,
  148 + "country_id": 2,
  149 + "status": 1,
  150 + "small_sort_id": 432,
  151 + "is_seckill": "N",
  152 + "gender": "2",
  153 + "vip3_price": 9.68,
  154 + "is_global": "N",
  155 + "is_discount": "Y",
  156 + "tbl_plane": "N",
  157 + "vip_discount_type": 1,
  158 + "sales_num": 200,
  159 + "sales_phrase": "",
  160 + "product_skn": 51167185,
  161 + "shelve_time": 1458029862,
  162 + "vip2_price": 9.9,
  163 + "age_level": "3,4",
  164 + "is_limited": "N",
  165 + "skn_default_img": "/2011/06/16/07/0299961b31b3c1fb8f4d2861a9619a39a466.JPG",
  166 + "storage_num": 3,
  167 + "middle_sort_id": 430,
  168 + "sales_price": 11,
  169 + "is_promotion": 108,
  170 + "is_limitbuy": "N"
  171 + }
  172 + ],
  173 + "page_size": 10
  174 + },
  175 + "md5": "8d503ff101109ffb4f94f6cde95bc19c",
  176 + "message": "vip Search List."
  177 +}
  178 +```
  179 +
  180 +## 2、年度活动优惠##
  181 +
  182 +(method=app.search.sales)
  183 +请求方式:get
  184 +#### 请求参数
  185 +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
  186 +|:-------| -----:|-----:|-----:|-----:|----:|
  187 +|select_gender|Integer| 否| 1|null|用户选择的性别,1:男生,2:女生|
  188 +|limit|Integer| 是| 12|12|每页显示商品数量|
  189 +|page|Integer| 是| 1|1|页数|
  190 +
  191 +
  192 +注意,通用的头部没有列出。
  193 +请求示例
  194 +http://api.gray.yohops.com/?app_version=5.4.1&client_secret=a4988195ddc2294febb7496228543919&client_type=android&fromPage=aFP_DiscountProList&limit=20&method=app.search.sales&order=&os_version=android4.4.4%3AChe1-CL20&page=1&physical_channel=1&productSize=240x319&screen_size=720x1280&session_key=7f79caf9e43a2d713e21a8647eeba7ca&udid=867102020789521988090c62952acc1&uid=9963947&v=7&yh_channel=1
  195 +### 响应
  196 +code为200即为成功且只会返回200,每次都会有响应结果。
  197 +响应JSON格式如下所示:
  198 +```json
  199 +{
  200 +
  201 +}
  202 +```
  203 +
  204 +
  205 +
  206 +
  207 +