Authored by 郝肖肖

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

@@ -79,13 +79,10 @@ const newDetail = { @@ -79,13 +79,10 @@ const newDetail = {
79 isMarsApp: req.yoho.isMarsApp, // 判断mars 79 isMarsApp: req.yoho.isMarsApp, // 判断mars
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: JSON.stringify({  
83 - productSkn: result.productSkn,  
84 - union_type: req.query.union_type || req.cookies.unionTypeYas || '',  
85 - }),  
86 - miniQrType: 7, 82 + param: result.productSkn,
  83 + miniQrType: 1,
87 isOpen: _.get(req.app, 'locals.wap.wechat.miniPathOpen', false) 84 isOpen: _.get(req.app, 'locals.wap.wechat.miniPathOpen', false)
88 - }), // param:品牌ID, name:品牌名称, miniQrType 7:商品 2 品牌,miniapp_type 0:有货,1:新与力,union_type商品详情页和默认页加 85 + }), // param:品牌ID, name:品牌名称, miniQrType 0:商品 2 品牌,miniapp_type 0:有货,1:新与力,union_type商品详情页和默认页加
89 miphtml: `https://m.yohobuy.com/mip/product/${result.productSkn}.html`, 86 miphtml: `https://m.yohobuy.com/mip/product/${result.productSkn}.html`,
90 }); 87 });
91 }).catch(next); 88 }).catch(next);
@@ -5,7 +5,6 @@ @@ -5,7 +5,6 @@
5 */ 5 */
6 6
7 'use strict'; 7 'use strict';
8 -const helpers = global.yoho.helpers;  
9 8
10 module.exports = () => { 9 module.exports = () => {
11 return (req, res, next) => { 10 return (req, res, next) => {
@@ -14,14 +13,7 @@ module.exports = () => { @@ -14,14 +13,7 @@ module.exports = () => {
14 13
15 Object.assign(res.locals, { 14 Object.assign(res.locals, {
16 module: arr[0], 15 module: arr[0],
17 - page: arr[1],  
18 - miniPath: helpers.urlFormat('/api/wechat/miniapp.jpg', {  
19 - miniapp_type: 0,  
20 - param: JSON.stringify({  
21 - union_type: req.query.union_type || req.cookies.unionTypeYas || '',  
22 - }),  
23 - miniQrType: 0  
24 - }) 16 + page: arr[1]
25 }); 17 });
26 } 18 }
27 19