Authored by htoooth

add product pool

... ... @@ -9,6 +9,8 @@
const mRoot = '../models';
const sale = require(`${mRoot}/sale`); // sale model
const _ = require('lodash');
/**
* sale 首页
* @param {[type]} req [description]
... ... @@ -150,6 +152,9 @@ exports.special = (req, res, next) => {
return next();
}
_.omit(params, 'specialsale_id');
params.productPool = specialId;
sale.getSaleSpecialData(specialId, params, req.yoho.channel).then(result => {
res.render('sale/special', result);
}).catch(next);
... ...