...
|
...
|
@@ -73,9 +73,6 @@ const newDetail = { |
|
|
let description = result.goodsName + ' 有货网仅售' + result.goodsPrice.currentPrice + '元,购买' +
|
|
|
result.brandName + result.sortName + ',了解' + result.brandName + result.sortName + '商品信息就上有货网!';
|
|
|
|
|
|
// param:品牌ID, name:品牌名称, miniQrType 1:商品 2 品牌,miniapp_type 0:有货,1:新与力
|
|
|
let miniPath = `${global.yoho.config.domains.api}wechat/miniapp/img-check.jpg?miniapp_type=0¶m=${result.productSkn}&miniQrType=1`.replace(/http:|https:/, ''); // eslint-disable-line
|
|
|
|
|
|
res.render('detail/new/detail', {
|
|
|
pageHeader: headerData,
|
|
|
result: result,
|
...
|
...
|
@@ -90,7 +87,6 @@ const newDetail = { |
|
|
pageFooter: true,
|
|
|
localCss: true,
|
|
|
appPath: appPath,
|
|
|
miniPath: miniPath,
|
|
|
isMarsApp: req.yoho.isMarsApp, // 判断mars
|
|
|
showAnaJson: {
|
|
|
miptitle: title,
|
...
|
...
|
@@ -98,7 +94,12 @@ const newDetail = { |
|
|
mipPics: mipPics.slice(0, 5),
|
|
|
mipDes: description,
|
|
|
mipUrl: `${req.protocol}://m.yohobuy.com/product/${result.productSkn}.html`
|
|
|
}
|
|
|
},
|
|
|
miniPath: helpers.urlFormat('/wechat/miniapp.jpg', {
|
|
|
miniapp_type: 0,
|
|
|
param: result.productSkn,
|
|
|
miniQrType: 1
|
|
|
}) // param:品牌ID, name:品牌名称, miniQrType 1:商品 2 品牌,miniapp_type 0:有货,1:新与力
|
|
|
});
|
|
|
}).catch(next);
|
|
|
},
|
...
|
...
|
|