shop-brand.page.js
464 Bytes
require('product/shop/shop.page.css');
let ProductListWithFilter = require('product/product-list-with-filter');
let brandId = $('#brandId').val();
let productListWithFilterModel =
new ProductListWithFilter({
brand_id: brandId,
page: 2, // 首页服务端已经渲染
isShopBrand: 'Y' // 传给 filter,表明调用哪个接口获取筛选面板的数据
}, 'product/search/brand/goods');
productListWithFilterModel.getFilter();