shop-brand.page.js 554 Bytes
require('product/shop/shop.page.css');
let ProductListWithFilter = require('product/list/product-list-with-filter');

const brandId = $('#brandId').val();
const goodsTotal = $('#goodsTotal').val();

let productListWithFilterModel =
    new ProductListWithFilter({
        brand_id: brandId,
        page: 2, // 首页服务端已经渲染
        isShopBrand: 'Y' // 传给 filter,表明调用哪个接口获取筛选面板的数据
    }, 'product/search/brand/goods', {
        goodsTotal: goodsTotal
    });

productListWithFilterModel.getFilter();