Authored by ccbikai(👎🏻🍜)

SALE 增加专区活动

@@ -16,21 +16,21 @@ module.exports = { @@ -16,21 +16,21 @@ module.exports = {
16 siteUrl: '//m.yohobuy.com', 16 siteUrl: '//m.yohobuy.com',
17 assetUrl: '//127.0.0.1:5001', 17 assetUrl: '//127.0.0.1:5001',
18 domains: { 18 domains: {
19 - api: 'http://api-test3.yohops.com:9999/',  
20 - service: 'http://service-test3.yohops.com:9999/',  
21 - liveApi: 'http://testapi.live.yohops.com:9999/',  
22 - singleApi: 'http://api-test3.yohops.com:9999/',  
23 - imSocket: 'ws://im.yohobuy.com:10240',  
24 - imCs: 'http://im.yohobuy.com/api',  
25 - imServer: 'http://im.yohobuy.com/server' 19 + // api: 'http://api-test3.yohops.com:9999/',
  20 + // service: 'http://service-test3.yohops.com:9999/',
  21 + // liveApi: 'http://testapi.live.yohops.com:9999/',
  22 + // singleApi: 'http://api-test3.yohops.com:9999/',
  23 + // imSocket: 'ws://im.yohobuy.com:10240',
  24 + // imCs: 'http://im.yohobuy.com/api',
  25 + // imServer: 'http://im.yohobuy.com/server'
26 26
27 - // api: 'http://api.yoho.cn/',  
28 - // service: 'http://service.yoho.cn/',  
29 - // liveApi: 'http://api.live.yoho.cn/',  
30 - // singleApi: 'http://single.yoho.cn/',  
31 - // imSocket: 'ws://imsocket.yohobuy.com:10000',  
32 - // imCs: 'https://imhttp.yohobuy.com/api',  
33 - // imServer: 'https://imhttp.yohobuy.com/server' 27 + api: 'http://api.yoho.cn/',
  28 + service: 'http://service.yoho.cn/',
  29 + liveApi: 'http://api.live.yoho.cn/',
  30 + singleApi: 'http://single.yoho.cn/',
  31 + imSocket: 'ws://imsocket.yohobuy.com:10000',
  32 + imCs: 'https://imhttp.yohobuy.com/api',
  33 + imServer: 'https://imhttp.yohobuy.com/server'
34 }, 34 },
35 subDomains: { 35 subDomains: {
36 host: '.m.yohobuy.com', 36 host: '.m.yohobuy.com',
@@ -58,7 +58,14 @@ module.exports = () => { @@ -58,7 +58,14 @@ module.exports = () => {
58 58
59 // 已经废弃,只是对老页面做兼容 --start 59 // 已经废弃,只是对老页面做兼容 --start
60 case 'sale': // sale 跳转到 m.yohobuy.com/product/sale 60 case 'sale': // sale 跳转到 m.yohobuy.com/product/sale
61 - res.redirect(301, helpers.urlFormat('/product/sale', req.query, 'default')); 61 + if (_.keys(req.query).length) {
  62 + req.query.title = '专区活动';
  63 +
  64 + delete req.query['openby:yohobuy'];
  65 + res.redirect(301, helpers.urlFormat('/', req.query, 'list'));
  66 + } else {
  67 + res.redirect(301, helpers.urlFormat('/product/sale', req.query, 'default'));
  68 + }
62 return; 69 return;
63 case 'cart': // 购物车 跳转到 m.yohobuy.com/cart/index/index 70 case 'cart': // 购物车 跳转到 m.yohobuy.com/cart/index/index
64 res.redirect(301, helpers.urlFormat('/cart/index/index', req.query, 'default')); 71 res.redirect(301, helpers.urlFormat('/cart/index/index', req.query, 'default'));