...
|
...
|
@@ -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) {
|
...
|
...
|
@@ -205,7 +205,7 @@ function search(opt) { |
|
|
data: setting,
|
|
|
success: function(data) {
|
|
|
var $container,
|
|
|
num;
|
|
|
num;
|
|
|
|
|
|
switch (navType) {
|
|
|
case 'today':
|
...
|
...
|
@@ -270,7 +270,7 @@ $.ajax({ |
|
|
}
|
|
|
});
|
|
|
lazyLoad($('.lazy'));
|
|
|
|
|
|
|
|
|
//导航栏点击逻辑说明:
|
|
|
//1.点击非active项时切换active状态
|
|
|
//2.价格和折扣active状态时继续点击切换排序
|
...
|
...
|
|