Authored by 郝肖肖

'商品详情页miniApp'

... ... @@ -80,9 +80,10 @@ const newDetail = {
miniPath: helpers.urlFormat('/api/wechat/miniapp.jpg', {
miniapp_type: 0,
param: result.productSkn,
miniQrType: 1,
miniQrType: 7,
union_type: req.query.union_type || req.cookies.unionTypeYas || '',
isOpen: _.get(req.app, 'locals.wap.wechat.miniPathOpen', false)
}), // param:品牌ID, name:品牌名称, miniQrType 1:商品 2 品牌,miniapp_type 0:有货,1:新与力
}), // param:品牌ID, name:品牌名称, miniQrType 7:商品 2 品牌,miniapp_type 0:有货,1:新与力,union_type商品详情页和首页加
miphtml: `https://m.yohobuy.com/mip/product/${result.productSkn}.html`,
});
}).catch(next);
... ...
... ... @@ -203,7 +203,7 @@ const shop = {
_getMiniAppPath(req, brands, shopId) {
let minis = {};
// param:品牌ID|店铺ID, name:品牌名称, miniQrType 1:商品,2:品牌,3:店铺,miniapp_type 0:有货,1:新与力
// param:品牌ID|店铺ID, name:品牌名称, miniQrType 7:商品,2:品牌,3:店铺,miniapp_type 0:有货,1:新与力
if (shopId) {
minis = Object.assign(minis, {
param: shopId,
... ...