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