Authored by 郝肖肖

'商品详情页miniApp'

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