reds-shop.page.js 759 Bytes
const $ = require('yoho-jquery');
const allProduct = require('./shop/all-product');
let Tab = require('../plugin/tab');

require('feature.css');
require('product/search/list.page.css');
require('product/shop/redshop.page.css');

let $filterBox = $('.filter-box');
let $goodsContainer = $('#goods-container');

Tab.prototype.filterhide = function() { // 隐藏筛选 TAB
    $filterBox.css('display', 'none');
};
Tab.prototype.filtershow = function() { // 显示筛选 TAB
    $filterBox.css('display', 'block');
    if ($goodsContainer.find('.good-info').length < 1) {
        allProduct.getGoodsList();
    }
};

// 页面打开直接加载筛选项
allProduct.getFilter();

require('../plugin/sticky');
require('./shop/coupon');
require('./shop/red-shop');