...
|
...
|
@@ -104,16 +104,19 @@ router.post('/detail/consultuseful', detail.consultUpvoteOrUseful); // 商品咨 |
|
|
|
|
|
router.get('/sale', rewrite.channel, sale.indexRedirect);
|
|
|
|
|
|
router.get(/^\/(.*?)-sale\/discount\/detail/,
|
|
|
router.get('/:channel-sale/discount/detail(/:pathParams)?',
|
|
|
rewrite.resolve,
|
|
|
rewrite.resolvePathParams,
|
|
|
sale.discountDetail);
|
|
|
router.get(/^\/(.*?)-sale\/breakingYards/,
|
|
|
router.get('/:channel-sale/breakingYards(/:pathParams)?',
|
|
|
rewrite.resolve,
|
|
|
rewrite.resolvePathParams,
|
|
|
sale.breakingYards);
|
|
|
router.get(/^\/(.*?)-sale\/vip/, rewrite.resolve, sale.vip);
|
|
|
router.get(/^\/(.*?)-sale/, rewrite.resolve, sale.index);
|
|
|
router.get('/:channel-sale/vip(/:pathParams)?',
|
|
|
rewrite.resolve,
|
|
|
rewrite.resolvePathParams,
|
|
|
sale.vip);
|
|
|
router.get('/:channel-sale/', rewrite.resolve, sale.index);
|
|
|
|
|
|
router.get('/sale/discount', sale.discount);
|
|
|
router.get('/sale/discount/detail', sale.discountDetail);
|
...
|
...
|
@@ -147,10 +150,10 @@ router.get('/search/search', search.search); // ajax 请求商品数据 |
|
|
router.get('/search/brand/goods', search.searchBrandGoods); // 搜索品牌下的商品
|
|
|
router.get('/search/shop/goods', search.searchShopGoods); // 搜索店铺下的商品
|
|
|
|
|
|
router.get('/list/global(/*)?', rewrite.resolvePathParams, globalPro.list); // 全球购路由重写 全球购列表页
|
|
|
router.get('/list/global(/:pathParams)?', rewrite.resolvePathParams, globalPro.list); // 全球购路由重写 全球购列表页
|
|
|
router.get('/index/index', rewrite.sortParams, list.category); // 旧品类首页
|
|
|
router.get('/list/index', rewrite.sortParams, list.category); // 兼容 PC 的链接
|
|
|
router.get('/list(/*)?', rewrite.resolvePathParams, list.listNew); // 列表新的 URL
|
|
|
router.get('/list(/:pathParams)?', rewrite.resolvePathParams, list.listNew); // 列表新的 URL
|
|
|
router.get('/search/category',
|
|
|
cors,
|
|
|
rewrite.resolvePathParamsAjax,
|
...
|
...
|
@@ -164,7 +167,7 @@ router.get('/index/getBrandCouponsList', list.getBrandCouponsList); |
|
|
|
|
|
router.get('/shop', newShop.redirect); // 老路由重定向前置处理
|
|
|
router.get('/shop/:domain-:shop_id.html', newShop.resolveParams); // 新入口
|
|
|
router.get('/shop/:domain-:shop_id/*', rewrite.resolvePathParams, newShop.goodsList); // 店铺商品列表
|
|
|
router.get('/shop/:domain-:shop_id+(/:pathParams)?', rewrite.resolvePathParams, newShop.goodsList); // 店铺商品列表
|
|
|
router.get('/shop/goodslist',
|
|
|
cors,
|
|
|
rewrite.resolvePathParamsAjax,
|
...
|
...
|
@@ -184,7 +187,7 @@ router.get('/index/allBrand', newShop.allBrand); // 店铺全部品牌 |
|
|
router.get('/new', rewrite.channel, news.newGoodsRedirect);
|
|
|
|
|
|
// 新品到着 SEO优化
|
|
|
router.get(/^\/(.*?)-new/, rewrite.resolve, rewrite.resolvePathParams, news.newGoods);
|
|
|
router.get('/:channel-new(/:pathParams)?', rewrite.resolve, rewrite.resolvePathParams, news.newGoods);
|
|
|
router.get('/list/new', news.newGoods); // 兼容 PC 的链接
|
|
|
router.get('/new/selectNewSale', rewrite.resolvePathParamsAjax, news.selectNewSale);
|
|
|
router.get('/new/filter', rewrite.resolvePathParamsAjax, news.filter);
|
...
|
...
|
|