Authored by 郭成尧

first-screen-server-render

... ... @@ -165,7 +165,7 @@ router.get('/index/getBrandCouponsList', list.getBrandCouponsList);
// 店铺重构
router.get('/shop', newShop.entry); // 统一店铺入口
router.get('/index/brand', newShop.index);
router.get('/index/brand', newShop.entry);
router.get('/index/baseShopFav', newShop.baseShopFav);
router.get('/index/brandFav', newShop.brandFav);
router.get('/new/shop/hotlist', newShop.shopHotList);
... ...
... ... @@ -6,6 +6,7 @@ let brandId = $('#brandId').val();
let productListWithFilterModel =
new ProductListWithFilter({
brand_id: brandId,
page: 2, // 首页服务端已经渲染
isBrandShop: 'Y' // 传给 filter,表明调用哪个接口获取筛选面板的数据
}, 'product/search/brand/goods');
... ...
... ... @@ -58,7 +58,7 @@ class ProductListWithFilter {
this.defaultOpt = Object.assign({}, this.navInfo.default, this.filterParams); // 默认参数
this.onSearching = false; // 是否正在搜索
this.isScrollLoad = false; // 是否是滚动加载
this.page = 1; // 页码
this.page = filterParams.page || 1;
this.view.listNav.bind('contextmenu', function() {
return false;
});
... ...