|
@@ -178,7 +178,7 @@ function shopNavData() { |
|
@@ -178,7 +178,7 @@ function shopNavData() { |
178
|
navList: data
|
178
|
navList: data
|
179
|
});
|
179
|
});
|
180
|
|
180
|
|
181
|
- if(data === false) {
|
181
|
+ if (data === false) {
|
182
|
shopListData('null');
|
182
|
shopListData('null');
|
183
|
$('.shop-nav').hide();
|
183
|
$('.shop-nav').hide();
|
184
|
return;
|
184
|
return;
|
|
@@ -206,7 +206,8 @@ function shopNavData() { |
|
@@ -206,7 +206,8 @@ function shopNavData() { |
206
|
shopListData($('.shop-nav').find('li').eq(0).data('type'));
|
206
|
shopListData($('.shop-nav').find('li').eq(0).data('type'));
|
207
|
}
|
207
|
}
|
208
|
|
208
|
|
209
|
- console.log($('.shop-nav').length)
|
209
|
+ console.log($('.shop-nav').length);
|
|
|
210
|
+
|
210
|
// 导航点击事件
|
211
|
// 导航点击事件
|
211
|
$('.shop-nav').find('li').on('click', function() {
|
212
|
$('.shop-nav').find('li').on('click', function() {
|
212
|
var $this = $(this),
|
213
|
var $this = $(this),
|
|
@@ -225,7 +226,8 @@ function shopNavData() { |
|
@@ -225,7 +226,8 @@ function shopNavData() { |
225
|
|
226
|
|
226
|
},
|
227
|
},
|
227
|
error: function() {
|
228
|
error: function() {
|
228
|
- console.log('123')
|
229
|
+ console.log('123');
|
|
|
230
|
+
|
229
|
// tip.show('网络断开连接了~');
|
231
|
// tip.show('网络断开连接了~');
|
230
|
$('.shop-nav').hide();
|
232
|
$('.shop-nav').hide();
|
231
|
$('.shop-list').hide();
|
233
|
$('.shop-list').hide();
|