...
|
...
|
@@ -178,6 +178,12 @@ function shopNavData() { |
|
|
navList: data
|
|
|
});
|
|
|
|
|
|
if(data === false) {
|
|
|
shopListData('null');
|
|
|
$('.shop-nav').hide();
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
$('.shop-nav').html(navString);
|
|
|
|
|
|
// 导航滑动效果
|
...
|
...
|
@@ -200,6 +206,7 @@ function shopNavData() { |
|
|
shopListData($('.shop-nav').find('li').eq(0).data('type'));
|
|
|
}
|
|
|
|
|
|
console.log($('.shop-nav').length)
|
|
|
// 导航点击事件
|
|
|
$('.shop-nav').find('li').on('click', function() {
|
|
|
var $this = $(this),
|
...
|
...
|
@@ -218,6 +225,7 @@ function shopNavData() { |
|
|
|
|
|
},
|
|
|
error: function() {
|
|
|
console.log('123')
|
|
|
// tip.show('网络断开连接了~');
|
|
|
$('.shop-nav').hide();
|
|
|
$('.shop-list').hide();
|
...
|
...
|
|