controller.js
533 Bytes
'use strict';
import {
Controller
} from 'yoho-mvc';
const ProductListWithFilter = require('product/list/product-list-with-filter');
const lazyLoad = require('yoho-jquery-lazyload');
let productListWithFilter = new ProductListWithFilter({
page: 2,
material: true,
unionType: window.queryString.union_type
});
class MaterialController extends Controller {
constructor() {
super();
productListWithFilter.getFilter();
lazyLoad($('img.lazy'));
}
}
module.exports = MaterialController;