|
@@ -278,9 +278,74 @@ const getTogetherProduct = (req, res) => { |
|
@@ -278,9 +278,74 @@ const getTogetherProduct = (req, res) => { |
278
|
message: '凑单商品'
|
278
|
message: '凑单商品'
|
279
|
};*/
|
279
|
};*/
|
280
|
|
280
|
|
281
|
- let ret = yield service.getTogetherProduct(page);
|
|
|
282
|
-
|
|
|
283
|
- return res.send(ret);
|
281
|
+ // let ret = yield service.getTogetherProduct(page);
|
|
|
282
|
+
|
|
|
283
|
+ // return res.send(ret);
|
|
|
284
|
+ // test
|
|
|
285
|
+ return res.send({
|
|
|
286
|
+ 'code': 200,
|
|
|
287
|
+ 'message': '',
|
|
|
288
|
+ 'data': {
|
|
|
289
|
+ 'header': '\u51d1\u5355\u5546\u54c1',
|
|
|
290
|
+ 'hasPrev': true,
|
|
|
291
|
+ 'hasNext': true,
|
|
|
292
|
+ 'item': [{
|
|
|
293
|
+ 'id': 675944,
|
|
|
294
|
+ 'skn': 51486050,
|
|
|
295
|
+ 'href': '\/\/item.yohobuy.com\/product\/pro_675944_831288\/MYFUN yinliaopingxiuhuanvmianwa 1611DPA0195.html',
|
|
|
296
|
+ 'title': 'MY FUN \u996e\u6599\u74f6\u7ee3\u82b1\u5973\u68c9\u889c',
|
|
|
297
|
+ 'img': '\/\/img10.static.yhbimg.com\/goodsimg\/2017\/01\/12\/08\/01fcff8810cf74104dcb166d971a3fca91.jpg?imageMogr2\/thumbnail\/100x100\/extent\/100x100\/background\/d2hpdGU=\/position\/center\/quality\/80',
|
|
|
298
|
+ 'alt': 'MY FUN \u996e\u6599\u74f6\u7ee3\u82b1\u5973\u68c9\u889c',
|
|
|
299
|
+ 'price': '19.00',
|
|
|
300
|
+ 'marketPrice': '49.00'
|
|
|
301
|
+ }, {
|
|
|
302
|
+ 'id': 675942,
|
|
|
303
|
+ 'skn': 51486048,
|
|
|
304
|
+ 'href': '\/\/item.yohobuy.com\/product\/pro_675942_831286\/MYFUN siyecaoxiuhuanvmianwa 1611DPA0194.html',
|
|
|
305
|
+ 'title': 'MY FUN \u56db\u53f6\u8349\u7ee3\u82b1\u5973\u68c9\u889c',
|
|
|
306
|
+ 'img': '\/\/img10.static.yhbimg.com\/goodsimg\/2017\/01\/12\/08\/01b5f0a983a76de8fe730e67247cdac0e6.jpg?imageMogr2\/thumbnail\/100x100\/extent\/100x100\/background\/d2hpdGU=\/position\/center\/quality\/80',
|
|
|
307
|
+ 'alt': 'MY FUN \u56db\u53f6\u8349\u7ee3\u82b1\u5973\u68c9\u889c',
|
|
|
308
|
+ 'price': '19.00',
|
|
|
309
|
+ 'marketPrice': '49.00'
|
|
|
310
|
+ }, {
|
|
|
311
|
+ 'id': 675876,
|
|
|
312
|
+ 'skn': 51485982,
|
|
|
313
|
+ 'href': '\/\/item.yohobuy.com\/product\/pro_675876_831220\/MYFUN caitiaowennanshizhangtongwa 1611DPA0045.html',
|
|
|
314
|
+ 'title': 'MYFUN \u5f69\u6761\u7eb9\u7537\u58eb\u957f\u7b52\u889c',
|
|
|
315
|
+ 'img': '\/\/img12.static.yhbimg.com\/goodsimg\/2017\/01\/12\/10\/0290b5aafe4137bc7c5ec90f3963546cb9.jpg?imageMogr2\/thumbnail\/100x100\/extent\/100x100\/background\/d2hpdGU=\/position\/center\/quality\/80',
|
|
|
316
|
+ 'alt': 'MYFUN \u5f69\u6761\u7eb9\u7537\u58eb\u957f\u7b52\u889c',
|
|
|
317
|
+ 'price': '19.00',
|
|
|
318
|
+ 'marketPrice': '39.00'
|
|
|
319
|
+ }, {
|
|
|
320
|
+ 'id': 675874,
|
|
|
321
|
+ 'skn': 51485980,
|
|
|
322
|
+ 'href': '\/\/item.yohobuy.com\/product\/pro_675874_831218\/MYFUN caitiaowennanshizhangtongwa 1611DPA0043.html',
|
|
|
323
|
+ 'title': 'MY FUN \u5f69\u6761\u7eb9\u7537\u58eb\u957f\u7b52\u889c',
|
|
|
324
|
+ 'img': '\/\/img10.static.yhbimg.com\/goodsimg\/2017\/01\/12\/10\/01604804248080b4c8cd60dd623e569d24.jpg?imageMogr2\/thumbnail\/100x100\/extent\/100x100\/background\/d2hpdGU=\/position\/center\/quality\/80',
|
|
|
325
|
+ 'alt': 'MY FUN \u5f69\u6761\u7eb9\u7537\u58eb\u957f\u7b52\u889c',
|
|
|
326
|
+ 'price': '19.00',
|
|
|
327
|
+ 'marketPrice': '39.00'
|
|
|
328
|
+ }, {
|
|
|
329
|
+ 'id': 675872,
|
|
|
330
|
+ 'skn': 51485978,
|
|
|
331
|
+ 'href': '\/\/item.yohobuy.com\/product\/pro_675872_831216\/MYFUN ertiaogangnanshizhongtongwa 1611DPA0034.html',
|
|
|
332
|
+ 'title': 'MY FUN \u7537\u58eb\u4e2d\u7b52\u889c',
|
|
|
333
|
+ 'img': '\/\/img12.static.yhbimg.com\/goodsimg\/2017\/01\/12\/10\/02888bca5ef68cb669a0c47ae31232d87e.jpg?imageMogr2\/thumbnail\/100x100\/extent\/100x100\/background\/d2hpdGU=\/position\/center\/quality\/80',
|
|
|
334
|
+ 'alt': 'MY FUN \u7537\u58eb\u4e2d\u7b52\u889c',
|
|
|
335
|
+ 'price': '15.00',
|
|
|
336
|
+ 'marketPrice': '29.00'
|
|
|
337
|
+ }, {
|
|
|
338
|
+ 'id': 675870,
|
|
|
339
|
+ 'skn': 51485976,
|
|
|
340
|
+ 'href': '\/\/item.yohobuy.com\/product\/pro_675870_831214\/MYFUN ertiaogangnanshizhongtongwa 1611DPA0033.html',
|
|
|
341
|
+ 'title': 'MY FUN \u7537\u58eb\u4e2d\u7b52\u889c',
|
|
|
342
|
+ 'img': '\/\/img10.static.yhbimg.com\/goodsimg\/2017\/01\/12\/10\/015ef2fb172c81a128b8c6603f89671f03.jpg?imageMogr2\/thumbnail\/100x100\/extent\/100x100\/background\/d2hpdGU=\/position\/center\/quality\/80',
|
|
|
343
|
+ 'alt': 'MY FUN \u7537\u58eb\u4e2d\u7b52\u889c',
|
|
|
344
|
+ 'price': '15.00',
|
|
|
345
|
+ 'marketPrice': '29.00'
|
|
|
346
|
+ }]
|
|
|
347
|
+ }
|
|
|
348
|
+ });
|
284
|
})();
|
349
|
})();
|
285
|
};
|
350
|
};
|
286
|
|
351
|
|
|
@@ -300,9 +365,72 @@ const getRecommendProductAction = (req, res) => { |
|
@@ -300,9 +365,72 @@ const getRecommendProductAction = (req, res) => { |
300
|
page = 1;
|
365
|
page = 1;
|
301
|
}
|
366
|
}
|
302
|
|
367
|
|
303
|
- let ret = yield service.getRecommendProduct(channel, uid, udid, page);
|
|
|
304
|
-
|
|
|
305
|
- res.send(ret);
|
368
|
+ // let ret = yield service.getRecommendProduct(channel, uid, udid, page);
|
|
|
369
|
+
|
|
|
370
|
+ // res.send(ret);
|
|
|
371
|
+
|
|
|
372
|
+ res.send({
|
|
|
373
|
+ 'code': 200,
|
|
|
374
|
+ 'message': '',
|
|
|
375
|
+ 'data': {
|
|
|
376
|
+ 'header': '\u4e3a\u60a8\u4f18\u9009',
|
|
|
377
|
+ 'hasPrev': false,
|
|
|
378
|
+ 'hasNext': true,
|
|
|
379
|
+ 'item': [{
|
|
|
380
|
+ 'id': 493102,
|
|
|
381
|
+ 'skn': 51295054,
|
|
|
382
|
+ 'href': '\/\/item.yohobuy.com\/product\/pro_493102_450622\/LIFEAFTERLIFEDaYiLALA603WO97.html',
|
|
|
383
|
+ 'title': 'Life\u00b7After Life \u6e14\u592b\u6263\u5927\u8863\u3010\u591a\u8272\u53ef\u9009\u3011',
|
|
|
384
|
+ 'img': '\/\/img11.static.yhbimg.com\/goodsimg\/2016\/10\/08\/17\/01a6ac4cfb94fc6ca1bf4c8450ab7828c9.jpg?imageMogr2\/thumbnail\/100x100\/extent\/100x100\/background\/d2hpdGU=\/position\/center\/quality\/80',
|
|
|
385
|
+ 'alt': 'Life\u00b7After Life \u6e14\u592b\u6263\u5927\u8863\u3010\u591a\u8272\u53ef\u9009\u3011',
|
|
|
386
|
+ 'price': '589.00',
|
|
|
387
|
+ 'marketPrice': '1389.00'
|
|
|
388
|
+ }, {
|
|
|
389
|
+ 'id': 599258,
|
|
|
390
|
+ 'skn': 51404992,
|
|
|
391
|
+ 'href': '\/\/item.yohobuy.com\/product\/pro_599258_575876\/VEIL KEIOS x GARFIELD Sports Cap: Monday landicixiudiandaojiafei heisewanyanmao GFK-007.html',
|
|
|
392
|
+ 'title': 'keios under the veil \u84dd\u5e95\u523a\u7ee3\u985b\u5012\u52a0\u83f2 \u9ed1\u8272\u5f2f\u6a90\u5e3d',
|
|
|
393
|
+ 'img': '\/\/img10.static.yhbimg.com\/goodsimg\/2016\/10\/08\/14\/01816e75629f40c58a138a30aee2a9eca6.jpg?imageMogr2\/thumbnail\/100x100\/extent\/100x100\/background\/d2hpdGU=\/position\/center\/quality\/80',
|
|
|
394
|
+ 'alt': 'keios under the veil \u84dd\u5e95\u523a\u7ee3\u985b\u5012\u52a0\u83f2 \u9ed1\u8272\u5f2f\u6a90\u5e3d',
|
|
|
395
|
+ 'price': '248.00'
|
|
|
396
|
+ }, {
|
|
|
397
|
+ 'id': 494118,
|
|
|
398
|
+ 'skn': 51296096,
|
|
|
399
|
+ 'href': '\/\/item.yohobuy.com\/product\/pro_494118_451958\/PHANTACIPH16LTT02TXu.html',
|
|
|
400
|
+ 'title': '\u3010JAY CHOU\u5730\u8868\u6700\u5f3a\u6f14\u5531\u4f1a\u7ebf\u4e0a\u72ec\u5bb6\u4e13\u5c5e\u3011PHANTACi X LOONEYTUNES X THEINVINCIBLE TEE-White',
|
|
|
401
|
+ 'img': '\/\/img12.static.yhbimg.com\/goodsimg\/2016\/10\/12\/09\/022e6b74072cdce1c4df430707905fc4c6.jpg?imageMogr2\/thumbnail\/100x100\/extent\/100x100\/background\/d2hpdGU=\/position\/center\/quality\/80',
|
|
|
402
|
+ 'alt': '\u3010JAY CHOU\u5730\u8868\u6700\u5f3a\u6f14\u5531\u4f1a\u7ebf\u4e0a\u72ec\u5bb6\u4e13\u5c5e\u3011PHANTACi X LOONEYTUNES X THEINVINCIBLE TEE-White',
|
|
|
403
|
+ 'price': '119.00',
|
|
|
404
|
+ 'marketPrice': '300.00'
|
|
|
405
|
+ }, {
|
|
|
406
|
+ 'id': 657894,
|
|
|
407
|
+ 'skn': 51466614,
|
|
|
408
|
+ 'href': '\/\/item.yohobuy.com\/product\/pro_657894_644268\/converse JACK PURCELL MODERN 155020Cnan.html',
|
|
|
409
|
+ 'title': 'converse JACK PURCELL MODERN Man',
|
|
|
410
|
+ 'img': '\/\/img10.static.yhbimg.com\/goodsimg\/2016\/12\/18\/14\/01cb0aef0bd168ebcb1de93cefc0d2e376.jpg?imageMogr2\/thumbnail\/100x100\/extent\/100x100\/background\/d2hpdGU=\/position\/center\/quality\/80',
|
|
|
411
|
+ 'alt': 'converse JACK PURCELL MODERN Man',
|
|
|
412
|
+ 'price': '989.00',
|
|
|
413
|
+ 'marketPrice': '1099.00'
|
|
|
414
|
+ }, {
|
|
|
415
|
+ 'id': 646540,
|
|
|
416
|
+ 'skn': 51454606,
|
|
|
417
|
+ 'href': '\/\/item.yohobuy.com\/product\/pro_646540_631202\/5cm MEN SWEAT SHIRT 5CXSWX3503W67BKX.html',
|
|
|
418
|
+ 'title': '5cm X KYE \u540e\u80cc\u5370\u82b1\u8fde\u5e3d\u536b\u8863',
|
|
|
419
|
+ 'img': '\/\/img11.static.yhbimg.com\/goodsimg\/2016\/12\/08\/10\/0116d5eb256f45a66f082ab54d9ed7926f.jpg?imageMogr2\/thumbnail\/100x100\/extent\/100x100\/background\/d2hpdGU=\/position\/center\/quality\/80',
|
|
|
420
|
+ 'alt': '5cm X KYE \u540e\u80cc\u5370\u82b1\u8fde\u5e3d\u536b\u8863',
|
|
|
421
|
+ 'price': '1099.00'
|
|
|
422
|
+ }, {
|
|
|
423
|
+ 'id': 496860,
|
|
|
424
|
+ 'skn': 51298904,
|
|
|
425
|
+ 'href': '\/\/item.yohobuy.com\/product\/pro_496860_454976\/INTOTHERAINBOWDuanXiuTXuITRMA603TE103.html',
|
|
|
426
|
+ 'title': 'Into The Rainbow \u7f8e\u56fd\u961f\u957f75\u5468\u5e74 \u77ed\u8896T\u6064',
|
|
|
427
|
+ 'img': '\/\/img10.static.yhbimg.com\/goodsimg\/2016\/07\/18\/16\/01497d761773446050fcc57c414bee4653.jpg?imageMogr2\/thumbnail\/100x100\/extent\/100x100\/background\/d2hpdGU=\/position\/center\/quality\/80',
|
|
|
428
|
+ 'alt': 'Into The Rainbow \u7f8e\u56fd\u961f\u957f75\u5468\u5e74 \u77ed\u8896T\u6064',
|
|
|
429
|
+ 'price': '89.00',
|
|
|
430
|
+ 'marketPrice': '299.00'
|
|
|
431
|
+ }]
|
|
|
432
|
+ }
|
|
|
433
|
+ });
|
306
|
})();
|
434
|
})();
|
307
|
};
|
435
|
};
|
308
|
|
436
|
|