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