...
|
...
|
@@ -285,17 +285,15 @@ let search = (req, res, next) => { |
|
|
|
|
|
if (params.from === 'seckill' && req.yoho.isApp && _.isArray(result[0])) {
|
|
|
_.forEach(result[0], goods => {
|
|
|
goods.url = yasProcess.addParamsToGoodsHref(goods.url, req);
|
|
|
goods.url = yasProcess.addParamsToGoodsHref({
|
|
|
href: goods.url,
|
|
|
fromPageName: yasProcess.getPname(req),
|
|
|
fromPageParam: req.get('referer')
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
_.forEach(result[0], goods => {
|
|
|
goods.url = yasProcess.addParamsToGoodsHref({
|
|
|
href: goods.url,
|
|
|
fromPageName: yasProcess.getPname(req),
|
|
|
fromPageParam: req.get('referer')
|
|
|
});
|
|
|
});
|
|
|
|
|
|
|
|
|
res.render('sale/product', Object.assign({
|
|
|
layout: false,
|
...
|
...
|
|