...
|
...
|
@@ -151,7 +151,7 @@ function newData(callback) { |
|
|
type: 'newest',
|
|
|
order: '1',
|
|
|
page: navInfo.new.page,
|
|
|
shop_id: shopId,
|
|
|
shop_id: shopId
|
|
|
};
|
|
|
req.callBack = function(data) {
|
|
|
$('#new-arrival').append(data);
|
...
|
...
|
@@ -173,7 +173,7 @@ function hotData(callback) { |
|
|
type: 'hot',
|
|
|
order: '1',
|
|
|
page: navInfo.hot.page,
|
|
|
shop_id: shopId,
|
|
|
shop_id: shopId
|
|
|
};
|
|
|
req.callBack = function(data) {
|
|
|
$('#popularity').append(data);
|
...
|
...
|
@@ -512,7 +512,7 @@ $.ajax({ |
|
|
type: 'GET',
|
|
|
url: '/search/filter',
|
|
|
data: {
|
|
|
shop_id: shopId,
|
|
|
shop_id: shopId
|
|
|
},
|
|
|
success: function(data) {
|
|
|
$goodsContainer.append(data);
|
...
|
...
|
@@ -603,6 +603,23 @@ $subNav.on('touchend touchcancel', function(e) { |
|
|
$pre = $this; //更新pre为当前项
|
|
|
nav.reload = true; //重置reload,HTML会被替换为逆序的HTML
|
|
|
nav.order = nav.order === 0 ? 1 : 0; //切换排序
|
|
|
|
|
|
$goodsContainer.children('.container:not(.hide)').addClass('hide');
|
|
|
|
|
|
switch (navType) {
|
|
|
case 'newest':
|
|
|
$ngc.removeClass('hide');
|
|
|
break;
|
|
|
|
|
|
case 'price':
|
|
|
$pgc.removeClass('hide');
|
|
|
break;
|
|
|
|
|
|
case 'discount':
|
|
|
$dgc.removeClass('hide');
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
} else {
|
|
|
$active = $subNav.find('.active');
|
...
|
...
|
|