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