Authored by 郭成尧

module和page参数

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