...
|
...
|
@@ -26,8 +26,8 @@ exports.order = (req, res, next) => { |
|
|
|
|
|
// 获取第一页数据做服务端渲染
|
|
|
let initialData = {
|
|
|
type: 1,
|
|
|
page: 1,
|
|
|
type: req.query.type || 1,
|
|
|
page: req.query.page || 1,
|
|
|
gender: req.query.gender || '1,3',
|
|
|
yh_channel: req.query.channel || 1,
|
|
|
uid: req.user.uid
|
...
|
...
|
@@ -46,6 +46,7 @@ exports.order = (req, res, next) => { |
|
|
title: 'Yoho!Buy 有货',
|
|
|
pageFooter: true,
|
|
|
order: result[0] || [],
|
|
|
walkwayUrl: result[1] && result[1].length ? '' : '//m.yohobuy.com/product/new',
|
|
|
firstPageOrdersList: result[1] || []
|
|
|
});
|
|
|
}).catch(next);
|
...
|
...
|
|