Authored by 梁志锋

update

... ... @@ -15,7 +15,7 @@ var filter = require('../../plugin/filter');
var loading = require('../../plugin/loading');
var $goodsContainer = $('#goods-container'),
$goodsChildren = $goodsContainer.children();
$goodsChildren = $goodsContainer.children(),
$ngc = $($goodsChildren.get(0)),
$pgc = $($goodsChildren.get(1)),
$dgc = $($goodsChildren.get(2));
... ... @@ -84,6 +84,7 @@ function search(opt) {
att,
nav, navType,
page;
if (searching) {
return;
}
... ... @@ -244,7 +245,6 @@ $.ajax({
});
lazyLoad($('.lazy'));
//导航栏点击逻辑说明:
//1.点击非active项时切换active状态
//2.价格和折扣active状态时继续点击切换排序
... ...
... ... @@ -18,7 +18,10 @@ var filter = require('../../plugin/filter');
var loading = require('../../plugin/loading');
var $goodsContainer = $('#goods-container'),
$goodsChildren = $goodsContainer.children();
$goodsChildren = $goodsContainer.children(),
$ngc = $($goodsChildren.get(0)),
$pgc = $($goodsChildren.get(1)).addClass('hide'),
$dgc = $($goodsChildren.get(2)).addClass('hide');
var winH = $(window).height(),
noResult = '<p class="no-result">未找到相关搜索结果</p>';
... ... @@ -65,9 +68,6 @@ var $listNav = $('#list-nav'),
navHammer,
searching;
$ngc = $($goodsChildren.get(0)),
$pgc = $($goodsChildren.get(1)).addClass('hide'),
$dgc = $($goodsChildren.get(2)).addClass('hide');
$('#today a').text(month + '月' + date + '号');
if ($('.swiper-container .swiper-slide').length > 1) {
... ...