...
|
...
|
@@ -50,15 +50,19 @@ exports.index = (req, res, next) => { |
|
|
* @param {[type]} res [description]
|
|
|
* @return {[type]} [description]
|
|
|
*/
|
|
|
exports.intro = (req, res) => {
|
|
|
introModel({
|
|
|
exports.intro = (req, res, next) => {
|
|
|
if (!req.params.productskn) {
|
|
|
return next();
|
|
|
}
|
|
|
|
|
|
introModel.getintroData({
|
|
|
productskn: req.params.productskn
|
|
|
}).then((result) => {
|
|
|
}, req).then((result) => {
|
|
|
res.render('detail/intro', {
|
|
|
result: result,
|
|
|
layout: false
|
|
|
});
|
|
|
});
|
|
|
}).catch(next);
|
|
|
};
|
|
|
|
|
|
/**
|
...
|
...
|
|