Authored by LUOXC

init

  1 +### 我的订单
  2 +
  3 +#### 说明
  4 +我的订单
  5 +#### 请求参数
  6 +| Param Name | Param Value | Desc|
  7 +| :-------- | --------------:|----:|
  8 +| method | app.SpaceOrders.get| 请求方法 |
  9 +| type | 1 | 订单类型 |
  10 +| page | 1 | 页数 |
  11 +| limit | 10 | 每页大小 |
  12 +
  13 +#### 响应内容
  14 +```json
  15 +{
  16 +"code":200,
  17 +"message":"ok",
  18 +"data":[]
  19 +}
  20 +```
  21 +
  22 +### 根据订单号取消订单
  23 +
  24 +#### 说明
  25 +根据订单号取消订单
  26 +#### 请求参数
  27 +| Param Name | Param Value | Desc|
  28 +| :-------- | --------------:|----:|
  29 +| method | app.SpaceOrders.close| 请求方法 |
  30 +| order_code | 1061003682 | 订单号 |
  31 +
  32 +#### 响应内容
  33 +```json
  34 +{
  35 +"code":200,
  36 +"message":"订单取消成功"
  37 +}
  38 +```
  39 +
  40 +### 根据订单号确认订单
  41 +
  42 +#### 说明
  43 +根据订单号确认订单
  44 +#### 请求参数
  45 +| Param Name | Param Value | Desc|
  46 +| :-------- | --------------:|----:|
  47 +| method | app.SpaceOrders.confirm| 请求方法 |
  48 +| order_code | 1061003682 | 订单号 |
  49 +
  50 +#### 响应内容
  51 +```json
  52 +{
  53 +"code":200,
  54 +"message":"订单确认成功"
  55 +}
  56 +```
  57 +
  58 +
  59 +### 获取电子票列表-app.SpaceOrders.getQrByOrderCode
  60 +
  61 +
  62 +
  63 +#### 说明
  64 +根据订单号获取电子票列表
  65 +#### 请求参数
  66 +| Param Name | Param Value | Desc|
  67 +| :-------- | --------------:|----:|
  68 +| method | app.SpaceOrders.getQrByOrderCode| 请求方法 |
  69 +| order_code | 1061003682 | 订单号 |
  70 +
  71 +#### 响应内容
  72 +```json
  73 +{
  74 + "code": 200,
  75 + "data": {
  76 + "ticks": [{
  77 + "ticket_code":"8611779901",
  78 + "passkit":"Y"
  79 + }],
  80 + "title": "FURY ANIMALS Normal迷彩系列BUNNY短袖TEE"
  81 + },
  82 + "md5": "24aff7ba505dccb63a14b5d78ae22821",
  83 + "message": "ok"
  84 +}
  85 +```
  86 +##### 响应内容描述
  87 +| Param Name | Param Type | Desc |
  88 +| ---------- | ---------- | ---- |
  89 +| title | string | 商品名称 |
  90 +| ticks | json | 电子票 |
  91 +| ticket_code| string | |
  92 +| passkit | string | |
  93 +
  94 +### 获取YOHOGift
  95 +
  96 +#### 说明
  97 +根据skn获取yohoGift
  98 +#### 请求参数
  99 +| Param Name | Param Value | Desc|
  100 +| :-------- | --------------:|----:|
  101 +| method | web.Shopping.yohoGift| 请求方法 |
  102 +| skn_list | [50001829,50002280]| skn列表 |
  103 +
  104 +#### 响应内容
  105 +```json
  106 + {
  107 + "alg": "SALT_MD5",
  108 + "code": 200,
  109 + "data":
  110 + [
  111 + {
  112 + "default_pic": "http://img11.static.yhbimg.com/goodsimg/2012/03/02/17/019a0794f1eb1ad77ce5d8a2c2b2cf2e50.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
  113 + "id": 3,
  114 + "price":
  115 + {
  116 + "sales_price": 250,
  117 + "yoho_coin_num": 0
  118 + },
  119 + "product_name": "OVERKILL 天使山羊TEE",
  120 + "storage": 0,
  121 + "storage_list":
  122 + [
  123 + {
  124 + "erp_sku_id": 102009,
  125 + "goods_dimension_id": 201,
  126 + "goods_id": 3,
  127 + "product_id": 3,
  128 + "size":
  129 + {
  130 + "size_name": "L"
  131 + },
  132 + "storage_num": 0
  133 + },
  134 + {
  135 + "erp_sku_id": 102010,
  136 + "goods_dimension_id": 203,
  137 + "goods_id": 3,
  138 + "product_id": 3,
  139 + "size":
  140 + {
  141 + "size_name": "M"
  142 + },
  143 + "storage_num": 0
  144 + },
  145 + {
  146 + "erp_sku_id": 102012,
  147 + "goods_dimension_id": 211,
  148 + "goods_id": 3,
  149 + "product_id": 3,
  150 + "size":
  151 + {
  152 + "size_name": "XL"
  153 + },
  154 + "storage_num": 0
  155 + }
  156 + ],
  157 + "url": "http://www.yohobuy.com/product/pro_3_3/OVERKILL TianShiShanYangTEE.html"
  158 + },
  159 + {
  160 + "default_pic": "http://img10.static.yhbimg.com/goodsimg/2011/06/23/04/0158a984a768a351328138ea3671e270de.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
  161 + "id": 5,
  162 + "price":
  163 + {
  164 + "sales_price": 138,
  165 + "yoho_coin_num": 0
  166 + },
  167 + "product_name": "MANIA TAKI X 圆领印花短袖TEE",
  168 + "storage": 0,
  169 + "storage_list":
  170 + [
  171 + {
  172 + "erp_sku_id": 102015,
  173 + "goods_dimension_id": 213,
  174 + "goods_id": 5,
  175 + "product_id": 5,
  176 + "size":
  177 + {
  178 + "size_name": "XS"
  179 + },
  180 + "storage_num": 0
  181 + }
  182 + ],
  183 + "url": "http://www.yohobuy.com/product/pro_5_5/MANIA TAKI X YuanLingYinHuaDuanXiuTEE.html"
  184 + }
  185 + ],
  186 + "md5": "d6e4c90434e98a90555d864cf4798679",
  187 + "message": "操作成功"
  188 + }
  189 +```
  190 +
  191 +### 购物车列表
  192 +
  193 +#### 说明
  194 +
  195 +#### 请求参数
  196 +| Param Name | Param Value | Desc|
  197 +| :-------- | --------------:|----:|
  198 +| method | app.Shopping.cart| 请求方法 |
  199 +| shopping_key | 9c101f734768105aafc792d460d12206 | |
  200 +| uid | 10166061 | |
  201 +
  202 +#### 响应内容
  203 +```json
  204 +{
  205 + "code": 200,
  206 + "data": {
  207 + "advance_cart_data": {
  208 + "gift_list": [],
  209 + "goods_list": [],
  210 + "price_gift": [],
  211 + "promotion_info": [],
  212 + "shopping_cart_data": {
  213 + "discount_amount": 0,
  214 + "fast_shopping_cost": 0,
  215 + "gain_yoho_coin": 0,
  216 + "goods_count": 0,
  217 + "last_order_amount": 0,
  218 + "order_amount": 0,
  219 + "promotion_formula": "总计¥0.00=商品金额¥0.00",
  220 + "promotion_formula_list": [
  221 + {
  222 + "promotion": "商品金额",
  223 + "promotion_amount": "¥0.00"
  224 + }
  225 + ],
  226 + "selected_goods_count": 0,
  227 + "shipping_cost": 0,
  228 + "str_discount_amount": "¥0.00",
  229 + "str_order_amount": "¥0.00"
  230 + },
  231 + "sold_out_goods_list": []
  232 + },
  233 + "ordinary_cart_data": {
  234 + "gift_list": [],
  235 + "goods_list": [
  236 + {
  237 + "attribute": "1",
  238 + "brand_id": "350",
  239 + "buy_limit": 0,
  240 + "buy_number": "1",
  241 + "color_id": "7",
  242 + "color_name": "蓝色",
  243 + "expect_arrival_time": "",
  244 + "fit_promotions": [
  245 + "8579",
  246 + "8479",
  247 + "8477",
  248 + "8475"
  249 + ],
  250 + "get_yoho_coin": "0",
  251 + "goods_id": "404795",
  252 + "goods_images": "http://....jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
  253 + "goods_type": "ordinary",
  254 + "is_advance": "N",
  255 + "is_jit": "N",
  256 + "is_limited": "N",
  257 + "is_outlets": "N",
  258 + "is_special": "N",
  259 + "last_price": "319.0",
  260 + "last_vip_price": 369,
  261 + "market_price": 369,
  262 + "max_sort_id": "7",
  263 + "middle_sort_id": "49",
  264 + "product_id": 314449,
  265 + "product_name": "MACROPUS 复古帆布系列 双肩包(男女通用)",
  266 + "product_skc": "306652",
  267 + "product_skn": "51174830",
  268 + "product_sku": "967008",
  269 + "promotion_flag": "103",
  270 + "promotion_id": "0",
  271 + "real_price": 319,
  272 + "real_vip_price": 0,
  273 + "sale_price": 0,
  274 + "sales_price": 369,
  275 + "selected": "Y",
  276 + "shop_id": 0,
  277 + "shopping_cart_goods_id": "94305847",
  278 + "shopping_cart_id": "130769237",
  279 + "size_id": "199",
  280 + "size_name": "F",
  281 + "small_sort_id": "152",
  282 + "storage_number": "99",
  283 + "str_subtotal": "¥369.00",
  284 + "subtotal": 369,
  285 + "supplier_id": 0,
  286 + "uid": "10166061",
  287 + "vip1_price": "350.55",
  288 + "vip2_price": "332.10",
  289 + "vip3_price": "324.72",
  290 + "vip_discount": 1,
  291 + "vip_discount_money": 0,
  292 + "vip_discount_type": "1",
  293 + "vip_price": 0,
  294 + "yoho_coin_num": "0"
  295 + }
  296 + ],
  297 + "price_gift": [
  298 + {
  299 + "gift_price": 39,
  300 + "goods_list": [
  301 + {
  302 + "goods_images": "http://...jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
  303 + "last_price": 39,
  304 + "market_price": 90,
  305 + "product_id": 269401,
  306 + "product_name": "VOCHIC 欧式多用抗菌艺术砧板",
  307 + "product_skn": 51150012,
  308 + "sales_price": 49,
  309 + "storage_number": 150
  310 + }
  311 + ],
  312 + "max_select_number": "1",
  313 + "promotion_id": 8475,
  314 + "promotion_title": "【全场39元加价购】",
  315 + "promotion_type": "Needpaygift"
  316 + }
  317 + ],
  318 + "promotion_info": [
  319 + {
  320 + "cutdown_amount": 50,
  321 + "promotion_id": 8579,
  322 + "promotion_title": "【包配随行】满¥299减¥50",
  323 + "promotion_type": "Cashreduce"
  324 + }
  325 + ],
  326 + "shopping_cart_data": {
  327 + "discount_amount": 50,
  328 + "fast_shopping_cost": 15,
  329 + "gain_yoho_coin": 0,
  330 + "goods_count": 1,
  331 + "last_order_amount": 319,
  332 + "order_amount": 369,
  333 + "promotion_formula": "总计¥319.00=商品金额¥369.00-活动金额¥50.00",
  334 + "promotion_formula_list": [
  335 + {
  336 + "promotion": "商品金额",
  337 + "promotion_amount": "¥369.00"
  338 + }
  339 + ],
  340 + "selected_goods_count": 1,
  341 + "shipping_cost": 10,
  342 + "str_discount_amount": "¥50.00",
  343 + "str_order_amount": "¥369.00"
  344 + },
  345 + "sold_out_goods_list": []
  346 + }
  347 + },
  348 + "md5": "d222cf08c9d43d0c5f3ab31d278cabd8",
  349 + "message": "cart goods list."
  350 +}
  351 +```
  352 +
  353 +
  354 +### 获取待处理订单总数
  355 +
  356 +#### 说明
  357 +根据获取待处理订单总数
  358 +#### 请求参数
  359 +| Param Name | Param Value | Desc |
  360 +| ---------- | ----------- | ---- |
  361 +| method | web.SpaceOrders.getPendingOrderCount| 请求方法 |
  362 +| uid | 5772257 | |
  363 +
  364 +#### 响应内容
  365 +
  366 +```json
  367 +{
  368 + "code": 200,
  369 + "message": "操作成功"
  370 + "data": {
  371 + "count": 100
  372 + }
  373 +}
  374 +```