Authored by yyq

req domain

@@ -471,7 +471,7 @@ const getShopAbout = (shopId, uid, channel) => { @@ -471,7 +471,7 @@ const getShopAbout = (shopId, uid, channel) => {
471 shopId: shopId, 471 shopId: shopId,
472 bannerHeight: 150, 472 bannerHeight: 150,
473 shopHome: `/?shopId=${shopId}`, 473 shopHome: `/?shopId=${shopId}`,
474 - shopIntro: `/about?shopId=${shopId}`, 474 + shopIntro: `/shop${shopId}-about`,
475 coled: _.get(result, '[2].data.is_favorite', 'N') === 'Y' 475 coled: _.get(result, '[2].data.is_favorite', 'N') === 'Y'
476 }); 476 });
477 _.set(resData, 'brand.shopBanner', decorator.shopTopBannerBase); 477 _.set(resData, 'brand.shopBanner', decorator.shopTopBannerBase);
@@ -928,7 +928,7 @@ const getBaseShopData = (params, extra, channel, shopId) => { @@ -928,7 +928,7 @@ const getBaseShopData = (params, extra, channel, shopId) => {
928 shopId: shopId, 928 shopId: shopId,
929 bannerHeight: 150, 929 bannerHeight: 150,
930 shopHome: `/?shopId=${shopId}`, 930 shopHome: `/?shopId=${shopId}`,
931 - shopIntro: `/about?shopId=${shopId}`, 931 + shopIntro: `/shop${shopId}-about`,
932 coled: _.get(result[2], 'data.is_favorite', 'N') === 'Y' 932 coled: _.get(result[2], 'data.is_favorite', 'N') === 'Y'
933 }); 933 });
934 934
@@ -69,12 +69,11 @@ module.exports = () => { @@ -69,12 +69,11 @@ module.exports = () => {
69 } 69 }
70 default: // 其它(识别为品牌) 70 default: // 其它(识别为品牌)
71 { // eslint-disable-line 71 { // eslint-disable-line
  72 + req.query.domain = req.subdomains[0];
72 if (!req.path || req.path === '/') { 73 if (!req.path || req.path === '/') {
73 req.url = `/product/index/brand?domain=${req.subdomains[0]}`; 74 req.url = `/product/index/brand?domain=${req.subdomains[0]}`;
74 - req.query.domain = req.subdomains[0];  
75 } else if (req.path === '/about') { 75 } else if (req.path === '/about') {
76 req.url = `/product/index/about?domain=${req.subdomains[0]}`; 76 req.url = `/product/index/about?domain=${req.subdomains[0]}`;
77 - req.query.domain = req.subdomains[0];  
78 } else if (/\/shop([\d]+)-about/.exec(req.path) !== null) { 77 } else if (/\/shop([\d]+)-about/.exec(req.path) !== null) {
79 req.query.shopId = RegExp.$1; 78 req.query.shopId = RegExp.$1;
80 req.url = '/product/index/about'; 79 req.url = '/product/index/about';