reds-shop.page.js
811 Bytes
require('layout/_swiper.css');
require('product/search/list.page.css');
require('product/shop/redshop.page.css');
const $ = require('yoho-jquery');
const allProduct = require('./shop/all-product');
let Tab = require('../plugin/tab');
let $filterBox = $('.filter-box');
Tab.prototype.home = function() { // 隐藏筛选 TAB
$filterBox.css('display', 'none');
};
Tab.prototype.getallgoods = function() { // 显示筛选 TAB
$filterBox.css('display', 'block');
allProduct.getGoodsList({type: 'default', page: 0});
};
Tab.prototype.getnewgoods = function() {
$filterBox.css('display', 'none');
allProduct.getGoodsList({type: 'new', page: 0});
};
// 页面打开直接加载筛选项
allProduct.getFilter();
require('../plugin/sticky');
require('./shop/coupon');
require('./shop/red-shop');