Authored by 郝肖肖

'新版小程序二维码回退'

... ... @@ -79,13 +79,10 @@ const newDetail = {
isMarsApp: req.yoho.isMarsApp, // 判断mars
miniPath: helpers.urlFormat('/api/wechat/miniapp.jpg', {
miniapp_type: 0,
param: JSON.stringify({
productSkn: result.productSkn,
union_type: req.query.union_type || req.cookies.unionTypeYas || '',
}),
miniQrType: 7,
param: result.productSkn,
miniQrType: 1,
isOpen: _.get(req.app, 'locals.wap.wechat.miniPathOpen', false)
}), // param:品牌ID, name:品牌名称, miniQrType 7:商品 2 品牌,miniapp_type 0:有货,1:新与力,union_type商品详情页和默认页加
}), // param:品牌ID, name:品牌名称, miniQrType 0:商品 2 品牌,miniapp_type 0:有货,1:新与力,union_type商品详情页和默认页加
miphtml: `https://m.yohobuy.com/mip/product/${result.productSkn}.html`,
});
}).catch(next);
... ...
... ... @@ -5,7 +5,6 @@
*/
'use strict';
const helpers = global.yoho.helpers;
module.exports = () => {
return (req, res, next) => {
... ... @@ -14,14 +13,7 @@ module.exports = () => {
Object.assign(res.locals, {
module: arr[0],
page: arr[1],
miniPath: helpers.urlFormat('/api/wechat/miniapp.jpg', {
miniapp_type: 0,
param: JSON.stringify({
union_type: req.query.union_type || req.cookies.unionTypeYas || '',
}),
miniQrType: 0
})
page: arr[1]
});
}
... ...