Authored by ccbikai(👎🏻🍜)

SALE 增加专区活动

... ... @@ -16,21 +16,21 @@ module.exports = {
siteUrl: '//m.yohobuy.com',
assetUrl: '//127.0.0.1:5001',
domains: {
api: 'http://api-test3.yohops.com:9999/',
service: 'http://service-test3.yohops.com:9999/',
liveApi: 'http://testapi.live.yohops.com:9999/',
singleApi: 'http://api-test3.yohops.com:9999/',
imSocket: 'ws://im.yohobuy.com:10240',
imCs: 'http://im.yohobuy.com/api',
imServer: 'http://im.yohobuy.com/server'
// api: 'http://api-test3.yohops.com:9999/',
// service: 'http://service-test3.yohops.com:9999/',
// liveApi: 'http://testapi.live.yohops.com:9999/',
// singleApi: 'http://api-test3.yohops.com:9999/',
// imSocket: 'ws://im.yohobuy.com:10240',
// imCs: 'http://im.yohobuy.com/api',
// imServer: 'http://im.yohobuy.com/server'
// api: 'http://api.yoho.cn/',
// service: 'http://service.yoho.cn/',
// liveApi: 'http://api.live.yoho.cn/',
// singleApi: 'http://single.yoho.cn/',
// imSocket: 'ws://imsocket.yohobuy.com:10000',
// imCs: 'https://imhttp.yohobuy.com/api',
// imServer: 'https://imhttp.yohobuy.com/server'
api: 'http://api.yoho.cn/',
service: 'http://service.yoho.cn/',
liveApi: 'http://api.live.yoho.cn/',
singleApi: 'http://single.yoho.cn/',
imSocket: 'ws://imsocket.yohobuy.com:10000',
imCs: 'https://imhttp.yohobuy.com/api',
imServer: 'https://imhttp.yohobuy.com/server'
},
subDomains: {
host: '.m.yohobuy.com',
... ...
... ... @@ -58,7 +58,14 @@ module.exports = () => {
// 已经废弃,只是对老页面做兼容 --start
case 'sale': // sale 跳转到 m.yohobuy.com/product/sale
res.redirect(301, helpers.urlFormat('/product/sale', req.query, 'default'));
if (_.keys(req.query).length) {
req.query.title = '专区活动';
delete req.query['openby:yohobuy'];
res.redirect(301, helpers.urlFormat('/', req.query, 'list'));
} else {
res.redirect(301, helpers.urlFormat('/product/sale', req.query, 'default'));
}
return;
case 'cart': // 购物车 跳转到 m.yohobuy.com/cart/index/index
res.redirect(301, helpers.urlFormat('/cart/index/index', req.query, 'default'));
... ...