Authored by 郭成尧

module和page参数

... ... @@ -18,8 +18,11 @@ exports.index = (req, res) => {
id: id
}).then((result) => {
res.render('detail', {
result: JSON.stringify(result, null, 4),
devEnv: true
result: result,
devEnv: true,
module: 'product',
page: 'detail',
title: result.goodsName
});
});
};
... ...
... ... @@ -484,7 +484,7 @@ const detailDataPkg = (origin, uid, vipLevel) => {
// 底部简介的URL链接
dest.introUrl = helpers.url('/product/intro_' + origin.erpProductId + '/' + origin.cnAlphabet + '.html', null, '');
dest.id = origin.id;
console.log('data:' + JSON.stringify(dest));
return dest;
};
... ...