...
|
...
|
@@ -11,6 +11,7 @@ var $ = require('yoho.zepto'), |
|
|
var swiper;
|
|
|
|
|
|
var filter = require('../../plugin/filter');
|
|
|
var loading = require('../../plugin/loading');
|
|
|
|
|
|
var $goodsContainer = $('#goods-container'),
|
|
|
$ngc = $($goodsContainer.children().get(0)),
|
...
|
...
|
@@ -192,6 +193,7 @@ function search(opt) { |
|
|
});
|
|
|
|
|
|
searching = true;
|
|
|
loading.showLoadingMask();
|
|
|
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
...
|
...
|
@@ -233,6 +235,7 @@ function search(opt) { |
|
|
nav.page = page;
|
|
|
|
|
|
searching = false;
|
|
|
loading.hideLoadingMask();
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
@@ -241,6 +244,7 @@ function search(opt) { |
|
|
lazyLoad($('.lazy'));
|
|
|
|
|
|
filter.registerCbFn(search);
|
|
|
loading.initLoadingMask();
|
|
|
|
|
|
//导航栏点击逻辑说明:
|
|
|
//1.点击非active项时切换active状态
|
...
|
...
|
@@ -248,6 +252,7 @@ filter.registerCbFn(search); |
|
|
//3.筛选无active时点击展开筛选面板
|
|
|
//4.筛选有active时点击隐藏筛选面板并恢复点击筛选前active项的active状态
|
|
|
//5.当前active为筛选并且点击其他项时,隐藏筛选面板
|
|
|
|
|
|
$listNav.delegate('li', 'tap', function() {
|
|
|
var $this = $(this),
|
|
|
nav,
|
...
|
...
|
|